Debian Codegraph @

api/v0/mesosproto/messages.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo.
2 // source: messages.proto
3 // DO NOT EDIT!
4
5 package mesosproto
6
7 import proto "github.com/gogo/protobuf/proto"
8 import fmt "fmt"
9 import math "math"
10
11 // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
12
13 import bytes "bytes"
14
15 import strings "strings"
16 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
17 import sort "sort"
18 import strconv "strconv"
19 import reflect "reflect"
20
21 import io "io"
22
23 // Reference imports to suppress errors if they are not otherwise used.
24 var _ = proto.Marshal
25 var _ = fmt.Errorf
26 var _ = math.Inf
27
28 type StatusUpdateRecord_Type int32
29
30 const (
31 StatusUpdateRecord_UPDATE StatusUpdateRecord_Type = 0
32 StatusUpdateRecord_ACK StatusUpdateRecord_Type = 1
33 )
34
35 var StatusUpdateRecord_Type_name = map[int32]string{
36 0: "UPDATE",
37 1: "ACK",
38 }
39 var StatusUpdateRecord_Type_value = map[string]int32{
40 "UPDATE": 0,
41 "ACK": 1,
42 }
43
44 func (x StatusUpdateRecord_Type) Enum() *StatusUpdateRecord_Type {
45 p := new(StatusUpdateRecord_Type)
46 *p = x
47 return p
48 }
49 func (x StatusUpdateRecord_Type) String() string {
50 return proto.EnumName(StatusUpdateRecord_Type_name, int32(x))
51 }
52 func (x *StatusUpdateRecord_Type) UnmarshalJSON(data []byte) error {
53 value, err := proto.UnmarshalJSONEnum(StatusUpdateRecord_Type_value, data, "StatusUpdateRecord_Type")
54 if err != nil {
55 return err
56 }
57 *x = StatusUpdateRecord_Type(value)
58 return nil
59 }
60
61 // *
62 // Describes a task, similar to `TaskInfo`.
63 //
64 // `Task` is used in some of the Mesos messages found below.
65 // `Task` is used instead of `TaskInfo` if:
66 // 1) we need additional IDs, such as a specific
67 // framework, executor, or agent; or
68 // 2) we do not need the additional data, such as the command run by the
69 // task, the specific containerization, or health checks. These
70 // additional fields may be large and unnecessary for some Mesos messages.
71 //
72 // `Task` is generally constructed from a `TaskInfo`. See protobuf::createTask.
73 type Task struct {
74 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
75 TaskId *TaskID `protobuf:"bytes,2,req,name=task_id" json:"task_id,omitempty"`
76 FrameworkId *FrameworkID `protobuf:"bytes,3,req,name=framework_id" json:"framework_id,omitempty"`
77 ExecutorId *ExecutorID `protobuf:"bytes,4,opt,name=executor_id" json:"executor_id,omitempty"`
78 SlaveId *SlaveID `protobuf:"bytes,5,req,name=slave_id" json:"slave_id,omitempty"`
79 State *TaskState `protobuf:"varint,6,req,name=state,enum=mesosproto.TaskState" json:"state,omitempty"`
80 Resources []*Resource `protobuf:"bytes,7,rep,name=resources" json:"resources,omitempty"`
81 Statuses []*TaskStatus `protobuf:"bytes,8,rep,name=statuses" json:"statuses,omitempty"`
82 // These fields correspond to the state and uuid of the latest
83 // status update forwarded to the master.
84 // NOTE: Either both the fields must be set or both must be unset.
85 StatusUpdateState *TaskState `protobuf:"varint,9,opt,name=status_update_state,enum=mesosproto.TaskState" json:"status_update_state,omitempty"`
86 StatusUpdateUuid []byte `protobuf:"bytes,10,opt,name=status_update_uuid" json:"status_update_uuid,omitempty"`
87 Labels *Labels `protobuf:"bytes,11,opt,name=labels" json:"labels,omitempty"`
88 // Service discovery information for the task. It is not interpreted
89 // or acted upon by Mesos. It is up to a service discovery system
90 // to use this information as needed and to handle tasks without
91 // service discovery information.
92 Discovery *DiscoveryInfo `protobuf:"bytes,12,opt,name=discovery" json:"discovery,omitempty"`
93 XXX_unrecognized []byte `json:"-"`
94 }
95
96 func (m *Task) Reset() { *m = Task{} }
97 func (*Task) ProtoMessage() {}
98
99 func (m *Task) GetName() string {
100 if m != nil && m.Name != nil {
101 return *m.Name
102 }
103 return ""
104 }
105
106 func (m *Task) GetTaskId() *TaskID {
107 if m != nil {
108 return m.TaskId
109 }
110 return nil
111 }
112
113 func (m *Task) GetFrameworkId() *FrameworkID {
114 if m != nil {
115 return m.FrameworkId
116 }
117 return nil
118 }
119
120 func (m *Task) GetExecutorId() *ExecutorID {
121 if m != nil {
122 return m.ExecutorId
123 }
124 return nil
125 }
126
127 func (m *Task) GetSlaveId() *SlaveID {
128 if m != nil {
129 return m.SlaveId
130 }
131 return nil
132 }
133
134 func (m *Task) GetState() TaskState {
135 if m != nil && m.State != nil {
136 return *m.State
137 }
138 return TaskState_TASK_STAGING
139 }
140
141 func (m *Task) GetResources() []*Resource {
142 if m != nil {
143 return m.Resources
144 }
145 return nil
146 }
147
148 func (m *Task) GetStatuses() []*TaskStatus {
149 if m != nil {
150 return m.Statuses
151 }
152 return nil
153 }
154
155 func (m *Task) GetStatusUpdateState() TaskState {
156 if m != nil && m.StatusUpdateState != nil {
157 return *m.StatusUpdateState
158 }
159 return TaskState_TASK_STAGING
160 }
161
162 func (m *Task) GetStatusUpdateUuid() []byte {
163 if m != nil {
164 return m.StatusUpdateUuid
165 }
166 return nil
167 }
168
169 func (m *Task) GetLabels() *Labels {
170 if m != nil {
171 return m.Labels
172 }
173 return nil
174 }
175
176 func (m *Task) GetDiscovery() *DiscoveryInfo {
177 if m != nil {
178 return m.Discovery
179 }
180 return nil
181 }
182
183 // *
184 // Describes a task's status.
185 //
186 // `StatusUpdate` is used in some of the Mesos messages found below.
187 // The master and agent use `StatusUpdate` to wrap a `TaskStatus` when
188 // passing it from the agent to the framework that spawned the task.
189 //
190 // See protobuf::createStatusUpdate.
191 type StatusUpdate struct {
192 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
193 ExecutorId *ExecutorID `protobuf:"bytes,2,opt,name=executor_id" json:"executor_id,omitempty"`
194 SlaveId *SlaveID `protobuf:"bytes,3,opt,name=slave_id" json:"slave_id,omitempty"`
195 // Since 0.23.0 we set 'status.uuid' in the executor
196 // driver for all retryable status updates.
197 Status *TaskStatus `protobuf:"bytes,4,req,name=status" json:"status,omitempty"`
198 Timestamp *float64 `protobuf:"fixed64,5,req,name=timestamp" json:"timestamp,omitempty"`
199 // Since 0.26.0 this is deprecated in favor of 'status.uuid'.
200 Uuid []byte `protobuf:"bytes,6,opt,name=uuid" json:"uuid,omitempty"`
201 // This corresponds to the latest state of the task according to the
202 // agent. Note that this state might be different than the state in
203 // 'status' because status update manager queues updates. In other
204 // words, 'status' corresponds to the update at top of the queue and
205 // 'latest_state' corresponds to the update at bottom of the queue.
206 LatestState *TaskState `protobuf:"varint,7,opt,name=latest_state,enum=mesosproto.TaskState" json:"latest_state,omitempty"`
207 XXX_unrecognized []byte `json:"-"`
208 }
209
210 func (m *StatusUpdate) Reset() { *m = StatusUpdate{} }
211 func (*StatusUpdate) ProtoMessage() {}
212
213 func (m *StatusUpdate) GetFrameworkId() *FrameworkID {
214 if m != nil {
215 return m.FrameworkId
216 }
217 return nil
218 }
219
220 func (m *StatusUpdate) GetExecutorId() *ExecutorID {
221 if m != nil {
222 return m.ExecutorId
223 }
224 return nil
225 }
226
227 func (m *StatusUpdate) GetSlaveId() *SlaveID {
228 if m != nil {
229 return m.SlaveId
230 }
231 return nil
232 }
233
234 func (m *StatusUpdate) GetStatus() *TaskStatus {
235 if m != nil {
236 return m.Status
237 }
238 return nil
239 }
240
241 func (m *StatusUpdate) GetTimestamp() float64 {
242 if m != nil && m.Timestamp != nil {
243 return *m.Timestamp
244 }
245 return 0
246 }
247
248 func (m *StatusUpdate) GetUuid() []byte {
249 if m != nil {
250 return m.Uuid
251 }
252 return nil
253 }
254
255 func (m *StatusUpdate) GetLatestState() TaskState {
256 if m != nil && m.LatestState != nil {
257 return *m.LatestState
258 }
259 return TaskState_TASK_STAGING
260 }
261
262 // *
263 // Encapsulates how we checkpoint a `StatusUpdate` to disk.
264 //
265 // See the StatusUpdateManager and slave/state.cpp.
266 type StatusUpdateRecord struct {
267 Type *StatusUpdateRecord_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.StatusUpdateRecord_Type" json:"type,omitempty"`
268 // Required if type == UPDATE.
269 Update *StatusUpdate `protobuf:"bytes,2,opt,name=update" json:"update,omitempty"`
270 // Required if type == ACK.
271 Uuid []byte `protobuf:"bytes,3,opt,name=uuid" json:"uuid,omitempty"`
272 XXX_unrecognized []byte `json:"-"`
273 }
274
275 func (m *StatusUpdateRecord) Reset() { *m = StatusUpdateRecord{} }
276 func (*StatusUpdateRecord) ProtoMessage() {}
277
278 func (m *StatusUpdateRecord) GetType() StatusUpdateRecord_Type {
279 if m != nil && m.Type != nil {
280 return *m.Type
281 }
282 return StatusUpdateRecord_UPDATE
283 }
284
285 func (m *StatusUpdateRecord) GetUpdate() *StatusUpdate {
286 if m != nil {
287 return m.Update
288 }
289 return nil
290 }
291
292 func (m *StatusUpdateRecord) GetUuid() []byte {
293 if m != nil {
294 return m.Uuid
295 }
296 return nil
297 }
298
299 // TODO(josephw): Check if this can be removed. This appears to be
300 // for backwards compatibility with very early versions of Mesos.
301 type SubmitSchedulerRequest struct {
302 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
303 XXX_unrecognized []byte `json:"-"`
304 }
305
306 func (m *SubmitSchedulerRequest) Reset() { *m = SubmitSchedulerRequest{} }
307 func (*SubmitSchedulerRequest) ProtoMessage() {}
308
309 func (m *SubmitSchedulerRequest) GetName() string {
310 if m != nil && m.Name != nil {
311 return *m.Name
312 }
313 return ""
314 }
315
316 // TODO(josephw): Remove for the same reason as `SubmitSchedulerRequest`.
317 type SubmitSchedulerResponse struct {
318 Okay *bool `protobuf:"varint,1,req,name=okay" json:"okay,omitempty"`
319 XXX_unrecognized []byte `json:"-"`
320 }
321
322 func (m *SubmitSchedulerResponse) Reset() { *m = SubmitSchedulerResponse{} }
323 func (*SubmitSchedulerResponse) ProtoMessage() {}
324
325 func (m *SubmitSchedulerResponse) GetOkay() bool {
326 if m != nil && m.Okay != nil {
327 return *m.Okay
328 }
329 return false
330 }
331
332 // *
333 // Sends a free-form message from the executor to the framework.
334 // Mesos forwards the message, if necessary, via the agents and the master.
335 //
336 // See scheduler::Event::Message.
337 type ExecutorToFrameworkMessage struct {
338 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
339 FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"`
340 ExecutorId *ExecutorID `protobuf:"bytes,3,req,name=executor_id" json:"executor_id,omitempty"`
341 Data []byte `protobuf:"bytes,4,req,name=data" json:"data,omitempty"`
342 XXX_unrecognized []byte `json:"-"`
343 }
344
345 func (m *ExecutorToFrameworkMessage) Reset() { *m = ExecutorToFrameworkMessage{} }
346 func (*ExecutorToFrameworkMessage) ProtoMessage() {}
347
348 func (m *ExecutorToFrameworkMessage) GetSlaveId() *SlaveID {
349 if m != nil {
350 return m.SlaveId
351 }
352 return nil
353 }
354
355 func (m *ExecutorToFrameworkMessage) GetFrameworkId() *FrameworkID {
356 if m != nil {
357 return m.FrameworkId
358 }
359 return nil
360 }
361
362 func (m *ExecutorToFrameworkMessage) GetExecutorId() *ExecutorID {
363 if m != nil {
364 return m.ExecutorId
365 }
366 return nil
367 }
368
369 func (m *ExecutorToFrameworkMessage) GetData() []byte {
370 if m != nil {
371 return m.Data
372 }
373 return nil
374 }
375
376 // *
377 // Sends a free-form message from the framework to the executor.
378 // Mesos forwards the message, if necessary, via the agents and the master.
379 //
380 // See scheduler::Call::Message.
381 type FrameworkToExecutorMessage struct {
382 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
383 FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"`
384 ExecutorId *ExecutorID `protobuf:"bytes,3,req,name=executor_id" json:"executor_id,omitempty"`
385 Data []byte `protobuf:"bytes,4,req,name=data" json:"data,omitempty"`
386 XXX_unrecognized []byte `json:"-"`
387 }
388
389 func (m *FrameworkToExecutorMessage) Reset() { *m = FrameworkToExecutorMessage{} }
390 func (*FrameworkToExecutorMessage) ProtoMessage() {}
391
392 func (m *FrameworkToExecutorMessage) GetSlaveId() *SlaveID {
393 if m != nil {
394 return m.SlaveId
395 }
396 return nil
397 }
398
399 func (m *FrameworkToExecutorMessage) GetFrameworkId() *FrameworkID {
400 if m != nil {
401 return m.FrameworkId
402 }
403 return nil
404 }
405
406 func (m *FrameworkToExecutorMessage) GetExecutorId() *ExecutorID {
407 if m != nil {
408 return m.ExecutorId
409 }
410 return nil
411 }
412
413 func (m *FrameworkToExecutorMessage) GetData() []byte {
414 if m != nil {
415 return m.Data
416 }
417 return nil
418 }
419
420 // *
421 // Subscribes the framework with the master to receive events.
422 //
423 // Used by the pre-Event/Call Mesos scheduler driver.
424 // See scheduler::Call::Subscribe.
425 type RegisterFrameworkMessage struct {
426 Framework *FrameworkInfo `protobuf:"bytes,1,req,name=framework" json:"framework,omitempty"`
427 XXX_unrecognized []byte `json:"-"`
428 }
429
430 func (m *RegisterFrameworkMessage) Reset() { *m = RegisterFrameworkMessage{} }
431 func (*RegisterFrameworkMessage) ProtoMessage() {}
432
433 func (m *RegisterFrameworkMessage) GetFramework() *FrameworkInfo {
434 if m != nil {
435 return m.Framework
436 }
437 return nil
438 }
439
440 // *
441 // Subscribes the framework with the master to receive events.
442 // This is used when the framework has previously registered and
443 // the master changes to a newly elected master.
444 //
445 // Used by the pre-Event/Call Mesos scheduler driver.
446 // See scheduler::Call::Subscribe.
447 type ReregisterFrameworkMessage struct {
448 Framework *FrameworkInfo `protobuf:"bytes,2,req,name=framework" json:"framework,omitempty"`
449 Failover *bool `protobuf:"varint,3,req,name=failover" json:"failover,omitempty"`
450 XXX_unrecognized []byte `json:"-"`
451 }
452
453 func (m *ReregisterFrameworkMessage) Reset() { *m = ReregisterFrameworkMessage{} }
454 func (*ReregisterFrameworkMessage) ProtoMessage() {}
455
456 func (m *ReregisterFrameworkMessage) GetFramework() *FrameworkInfo {
457 if m != nil {
458 return m.Framework
459 }
460 return nil
461 }
462
463 func (m *ReregisterFrameworkMessage) GetFailover() bool {
464 if m != nil && m.Failover != nil {
465 return *m.Failover
466 }
467 return false
468 }
469
470 // *
471 // Notifies the framework that the master has registered it.
472 // The `framework_id` holds a unique ID for distinguishing this framework.
473 //
474 // See scheduler::Event::Subscribed.
475 type FrameworkRegisteredMessage struct {
476 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
477 MasterInfo *MasterInfo `protobuf:"bytes,2,req,name=master_info" json:"master_info,omitempty"`
478 XXX_unrecognized []byte `json:"-"`
479 }
480
481 func (m *FrameworkRegisteredMessage) Reset() { *m = FrameworkRegisteredMessage{} }
482 func (*FrameworkRegisteredMessage) ProtoMessage() {}
483
484 func (m *FrameworkRegisteredMessage) GetFrameworkId() *FrameworkID {
485 if m != nil {
486 return m.FrameworkId
487 }
488 return nil
489 }
490
491 func (m *FrameworkRegisteredMessage) GetMasterInfo() *MasterInfo {
492 if m != nil {
493 return m.MasterInfo
494 }
495 return nil
496 }
497
498 // *
499 // Notifies the framework that the master has reregistered it.
500 // This message is used in the same conditions as `ReregisterFrameworkMessage`.
501 //
502 // See scheduler::Event::Subscribed.
503 type FrameworkReregisteredMessage struct {
504 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
505 MasterInfo *MasterInfo `protobuf:"bytes,2,req,name=master_info" json:"master_info,omitempty"`
506 XXX_unrecognized []byte `json:"-"`
507 }
508
509 func (m *FrameworkReregisteredMessage) Reset() { *m = FrameworkReregisteredMessage{} }
510 func (*FrameworkReregisteredMessage) ProtoMessage() {}
511
512 func (m *FrameworkReregisteredMessage) GetFrameworkId() *FrameworkID {
513 if m != nil {
514 return m.FrameworkId
515 }
516 return nil
517 }
518
519 func (m *FrameworkReregisteredMessage) GetMasterInfo() *MasterInfo {
520 if m != nil {
521 return m.MasterInfo
522 }
523 return nil
524 }
525
526 // *
527 // Stops the framework and shuts down all its tasks and executors.
528 //
529 // Used by the pre-Event/Call Mesos scheduler driver.
530 // See scheduler::Call::Teardown.
531 type UnregisterFrameworkMessage struct {
532 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
533 XXX_unrecognized []byte `json:"-"`
534 }
535
536 func (m *UnregisterFrameworkMessage) Reset() { *m = UnregisterFrameworkMessage{} }
537 func (*UnregisterFrameworkMessage) ProtoMessage() {}
538
539 func (m *UnregisterFrameworkMessage) GetFrameworkId() *FrameworkID {
540 if m != nil {
541 return m.FrameworkId
542 }
543 return nil
544 }
545
546 // *
547 // Aborts the scheduler driver and prevents further callbacks to the driver.
548 //
549 // Used exclusively by the pre-Event/Call Mesos scheduler driver.
550 type DeactivateFrameworkMessage struct {
551 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
552 XXX_unrecognized []byte `json:"-"`
553 }
554
555 func (m *DeactivateFrameworkMessage) Reset() { *m = DeactivateFrameworkMessage{} }
556 func (*DeactivateFrameworkMessage) ProtoMessage() {}
557
558 func (m *DeactivateFrameworkMessage) GetFrameworkId() *FrameworkID {
559 if m != nil {
560 return m.FrameworkId
561 }
562 return nil
563 }
564
565 // *
566 // Requests specific resources from Mesos's allocator.
567 // If the allocator supports resource requests, any corresponding
568 // resources will be sent like a normal resource offer.
569 //
570 // Used by the pre-Event/Call Mesos scheduler driver.
571 // See scheduler::Call::Request.
572 type ResourceRequestMessage struct {
573 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
574 Requests []*Request `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"`
575 XXX_unrecognized []byte `json:"-"`
576 }
577
578 func (m *ResourceRequestMessage) Reset() { *m = ResourceRequestMessage{} }
579 func (*ResourceRequestMessage) ProtoMessage() {}
580
581 func (m *ResourceRequestMessage) GetFrameworkId() *FrameworkID {
582 if m != nil {
583 return m.FrameworkId
584 }
585 return nil
586 }
587
588 func (m *ResourceRequestMessage) GetRequests() []*Request {
589 if m != nil {
590 return m.Requests
591 }
592 return nil
593 }
594
595 // *
596 // Sends resources offers to the scheduler.
597 //
598 // See scheduler::Event::Offers.
599 type ResourceOffersMessage struct {
600 Offers []*Offer `protobuf:"bytes,1,rep,name=offers" json:"offers,omitempty"`
601 Pids []string `protobuf:"bytes,2,rep,name=pids" json:"pids,omitempty"`
602 // The `inverse_offers` field is added here because we currently use it in
603 // `master.cpp` when constructing the message to send to schedulers. We use
604 // the original version of the proto API until we do a full refactor of all
605 // the messages being sent.
606 // It is not fully implemented in the old scheduler; only the V1 scheduler
607 // currently implements inverse offers.
608 InverseOffers []*InverseOffer `protobuf:"bytes,3,rep,name=inverse_offers" json:"inverse_offers,omitempty"`
609 XXX_unrecognized []byte `json:"-"`
610 }
611
612 func (m *ResourceOffersMessage) Reset() { *m = ResourceOffersMessage{} }
613 func (*ResourceOffersMessage) ProtoMessage() {}
614
615 func (m *ResourceOffersMessage) GetOffers() []*Offer {
616 if m != nil {
617 return m.Offers
618 }
619 return nil
620 }
621
622 func (m *ResourceOffersMessage) GetPids() []string {
623 if m != nil {
624 return m.Pids
625 }
626 return nil
627 }
628
629 func (m *ResourceOffersMessage) GetInverseOffers() []*InverseOffer {
630 if m != nil {
631 return m.InverseOffers
632 }
633 return nil
634 }
635
636 // *
637 // Launches tasks using resources from the specified offers.
638 //
639 // Used by the pre-Event/Call Mesos scheduler driver.
640 // See scheduler::Call::Accept and scheduler::Call::Decline.
641 type LaunchTasksMessage struct {
642 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
643 Tasks []*TaskInfo `protobuf:"bytes,3,rep,name=tasks" json:"tasks,omitempty"`
644 Filters *Filters `protobuf:"bytes,5,req,name=filters" json:"filters,omitempty"`
645 OfferIds []*OfferID `protobuf:"bytes,6,rep,name=offer_ids" json:"offer_ids,omitempty"`
646 XXX_unrecognized []byte `json:"-"`
647 }
648
649 func (m *LaunchTasksMessage) Reset() { *m = LaunchTasksMessage{} }
650 func (*LaunchTasksMessage) ProtoMessage() {}
651
652 func (m *LaunchTasksMessage) GetFrameworkId() *FrameworkID {
653 if m != nil {
654 return m.FrameworkId
655 }
656 return nil
657 }
658
659 func (m *LaunchTasksMessage) GetTasks() []*TaskInfo {
660 if m != nil {
661 return m.Tasks
662 }
663 return nil
664 }
665
666 func (m *LaunchTasksMessage) GetFilters() *Filters {
667 if m != nil {
668 return m.Filters
669 }
670 return nil
671 }
672
673 func (m *LaunchTasksMessage) GetOfferIds() []*OfferID {
674 if m != nil {
675 return m.OfferIds
676 }
677 return nil
678 }
679
680 // *
681 // Notifies the scheduler that a particular offer is not longer valid.
682 //
683 // See scheduler::Event::Rescind.
684 type RescindResourceOfferMessage struct {
685 OfferId *OfferID `protobuf:"bytes,1,req,name=offer_id" json:"offer_id,omitempty"`
686 XXX_unrecognized []byte `json:"-"`
687 }
688
689 func (m *RescindResourceOfferMessage) Reset() { *m = RescindResourceOfferMessage{} }
690 func (*RescindResourceOfferMessage) ProtoMessage() {}
691
692 func (m *RescindResourceOfferMessage) GetOfferId() *OfferID {
693 if m != nil {
694 return m.OfferId
695 }
696 return nil
697 }
698
699 // *
700 // Removes all filters previously set by the scheduler.
701 //
702 // Used by the pre-Event/Call Mesos scheduler driver.
703 // See scheduler::Call::Revive.
704 type ReviveOffersMessage struct {
705 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
706 XXX_unrecognized []byte `json:"-"`
707 }
708
709 func (m *ReviveOffersMessage) Reset() { *m = ReviveOffersMessage{} }
710 func (*ReviveOffersMessage) ProtoMessage() {}
711
712 func (m *ReviveOffersMessage) GetFrameworkId() *FrameworkID {
713 if m != nil {
714 return m.FrameworkId
715 }
716 return nil
717 }
718
719 // *
720 // Depending on the `TaskInfo`, this message either notifies an existing
721 // executor to run the task, or starts a new executor and runs the task.
722 // This message is sent when scheduler::Call::Accept is sent with
723 // Offer::Operation::Launch.
724 //
725 // See executor::Event::Launch.
726 type RunTaskMessage struct {
727 // TODO(karya): Remove framework_id after MESOS-2559 has shipped.
728 FrameworkId *FrameworkID `protobuf:"bytes,1,opt,name=framework_id" json:"framework_id,omitempty"`
729 Framework *FrameworkInfo `protobuf:"bytes,2,req,name=framework" json:"framework,omitempty"`
730 Task *TaskInfo `protobuf:"bytes,4,req,name=task" json:"task,omitempty"`
731 // The pid of the framework. This was moved to 'optional' in
732 // 0.24.0 to support schedulers using the HTTP API. For now, we
733 // continue to always set pid since it was required in 0.23.x.
734 // When 'pid' is unset, or set to empty string, the agent will
735 // forward executor messages through the master. For schedulers
736 // still using the driver, this will remain set.
737 Pid *string `protobuf:"bytes,3,opt,name=pid" json:"pid,omitempty"`
738 XXX_unrecognized []byte `json:"-"`
739 }
740
741 func (m *RunTaskMessage) Reset() { *m = RunTaskMessage{} }
742 func (*RunTaskMessage) ProtoMessage() {}
743
744 func (m *RunTaskMessage) GetFrameworkId() *FrameworkID {
745 if m != nil {
746 return m.FrameworkId
747 }
748 return nil
749 }
750
751 func (m *RunTaskMessage) GetFramework() *FrameworkInfo {
752 if m != nil {
753 return m.Framework
754 }
755 return nil
756 }
757
758 func (m *RunTaskMessage) GetTask() *TaskInfo {
759 if m != nil {
760 return m.Task
761 }
762 return nil
763 }
764
765 func (m *RunTaskMessage) GetPid() string {
766 if m != nil && m.Pid != nil {
767 return *m.Pid
768 }
769 return ""
770 }
771
772 // *
773 // Kills a specific task.
774 //
775 // See scheduler::Call::Kill and executor::Event::Kill.
776 type KillTaskMessage struct {
777 // TODO(bmahler): Include the SlaveID here to improve the Master's
778 // ability to respond for non-activated agents.
779 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
780 TaskId *TaskID `protobuf:"bytes,2,req,name=task_id" json:"task_id,omitempty"`
781 XXX_unrecognized []byte `json:"-"`
782 }
783
784 func (m *KillTaskMessage) Reset() { *m = KillTaskMessage{} }
785 func (*KillTaskMessage) ProtoMessage() {}
786
787 func (m *KillTaskMessage) GetFrameworkId() *FrameworkID {
788 if m != nil {
789 return m.FrameworkId
790 }
791 return nil
792 }
793
794 func (m *KillTaskMessage) GetTaskId() *TaskID {
795 if m != nil {
796 return m.TaskId
797 }
798 return nil
799 }
800
801 // *
802 // Sends a task status update to the scheduler.
803 //
804 // See scheduler::Event::Update.
805 type StatusUpdateMessage struct {
806 Update *StatusUpdate `protobuf:"bytes,1,req,name=update" json:"update,omitempty"`
807 // If present, scheduler driver automatically sends an acknowledgement
808 // to the `pid`. This only applies to the pre-Event/Call Mesos
809 // scheduler driver.
810 Pid *string `protobuf:"bytes,2,opt,name=pid" json:"pid,omitempty"`
811 XXX_unrecognized []byte `json:"-"`
812 }
813
814 func (m *StatusUpdateMessage) Reset() { *m = StatusUpdateMessage{} }
815 func (*StatusUpdateMessage) ProtoMessage() {}
816
817 func (m *StatusUpdateMessage) GetUpdate() *StatusUpdate {
818 if m != nil {
819 return m.Update
820 }
821 return nil
822 }
823
824 func (m *StatusUpdateMessage) GetPid() string {
825 if m != nil && m.Pid != nil {
826 return *m.Pid
827 }
828 return ""
829 }
830
831 // *
832 // This message is used by the scheduler to acknowledge the receipt of a status
833 // update. Mesos forwards the acknowledgement to the executor running the task.
834 //
835 // See scheduler::Call::Acknowledge and executor::Event::Acknowledged.
836 type StatusUpdateAcknowledgementMessage struct {
837 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
838 FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"`
839 TaskId *TaskID `protobuf:"bytes,3,req,name=task_id" json:"task_id,omitempty"`
840 Uuid []byte `protobuf:"bytes,4,req,name=uuid" json:"uuid,omitempty"`
841 XXX_unrecognized []byte `json:"-"`
842 }
843
844 func (m *StatusUpdateAcknowledgementMessage) Reset() { *m = StatusUpdateAcknowledgementMessage{} }
845 func (*StatusUpdateAcknowledgementMessage) ProtoMessage() {}
846
847 func (m *StatusUpdateAcknowledgementMessage) GetSlaveId() *SlaveID {
848 if m != nil {
849 return m.SlaveId
850 }
851 return nil
852 }
853
854 func (m *StatusUpdateAcknowledgementMessage) GetFrameworkId() *FrameworkID {
855 if m != nil {
856 return m.FrameworkId
857 }
858 return nil
859 }
860
861 func (m *StatusUpdateAcknowledgementMessage) GetTaskId() *TaskID {
862 if m != nil {
863 return m.TaskId
864 }
865 return nil
866 }
867
868 func (m *StatusUpdateAcknowledgementMessage) GetUuid() []byte {
869 if m != nil {
870 return m.Uuid
871 }
872 return nil
873 }
874
875 // *
876 // Notifies the scheduler that the agent was lost.
877 //
878 // See scheduler::Event::Failure.
879 type LostSlaveMessage struct {
880 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
881 XXX_unrecognized []byte `json:"-"`
882 }
883
884 func (m *LostSlaveMessage) Reset() { *m = LostSlaveMessage{} }
885 func (*LostSlaveMessage) ProtoMessage() {}
886
887 func (m *LostSlaveMessage) GetSlaveId() *SlaveID {
888 if m != nil {
889 return m.SlaveId
890 }
891 return nil
892 }
893
894 // *
895 // Allows the scheduler to query the status for non-terminal tasks.
896 // This causes the master to send back the latest task status for
897 // each task in `statuses`, if possible. Tasks that are no longer
898 // known will result in a `TASK_LOST` update. If `statuses` is empty,
899 // then the master will send the latest status for each task
900 // currently known.
901 type ReconcileTasksMessage struct {
902 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
903 Statuses []*TaskStatus `protobuf:"bytes,2,rep,name=statuses" json:"statuses,omitempty"`
904 XXX_unrecognized []byte `json:"-"`
905 }
906
907 func (m *ReconcileTasksMessage) Reset() { *m = ReconcileTasksMessage{} }
908 func (*ReconcileTasksMessage) ProtoMessage() {}
909
910 func (m *ReconcileTasksMessage) GetFrameworkId() *FrameworkID {
911 if m != nil {
912 return m.FrameworkId
913 }
914 return nil
915 }
916
917 func (m *ReconcileTasksMessage) GetStatuses() []*TaskStatus {
918 if m != nil {
919 return m.Statuses
920 }
921 return nil
922 }
923
924 // *
925 // Notifies the framework about errors during registration.
926 //
927 // See scheduler::Event::Error.
928 type FrameworkErrorMessage struct {
929 Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
930 XXX_unrecognized []byte `json:"-"`
931 }
932
933 func (m *FrameworkErrorMessage) Reset() { *m = FrameworkErrorMessage{} }
934 func (*FrameworkErrorMessage) ProtoMessage() {}
935
936 func (m *FrameworkErrorMessage) GetMessage() string {
937 if m != nil && m.Message != nil {
938 return *m.Message
939 }
940 return ""
941 }
942
943 // *
944 // Registers the agent with the master.
945 //
946 // If registration fails, a `ShutdownMessage` is sent to the agent.
947 // Failure conditions are documented inline in Master::registerSlave.
948 type RegisterSlaveMessage struct {
949 Slave *SlaveInfo `protobuf:"bytes,1,req,name=slave" json:"slave,omitempty"`
950 // Resources that are checkpointed by the agent (e.g., persistent
951 // volume or dynamic reservation). Frameworks need to release
952 // checkpointed resources explicitly.
953 CheckpointedResources []*Resource `protobuf:"bytes,3,rep,name=checkpointed_resources" json:"checkpointed_resources,omitempty"`
954 // NOTE: This is a hack for the master to detect the agent's
955 // version. If unset the agent is < 0.21.0.
956 // TODO(bmahler): Do proper versioning: MESOS-986.
957 Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
958 XXX_unrecognized []byte `json:"-"`
959 }
960
961 func (m *RegisterSlaveMessage) Reset() { *m = RegisterSlaveMessage{} }
962 func (*RegisterSlaveMessage) ProtoMessage() {}
963
964 func (m *RegisterSlaveMessage) GetSlave() *SlaveInfo {
965 if m != nil {
966 return m.Slave
967 }
968 return nil
969 }
970
971 func (m *RegisterSlaveMessage) GetCheckpointedResources() []*Resource {
972 if m != nil {
973 return m.CheckpointedResources
974 }
975 return nil
976 }
977
978 func (m *RegisterSlaveMessage) GetVersion() string {
979 if m != nil && m.Version != nil {
980 return *m.Version
981 }
982 return ""
983 }
984
985 // *
986 // Registers the agent with the master.
987 // This is used when the agent has previously registered and
988 // the master changes to a newly elected master.
989 //
990 // If registration fails, a `ShutdownMessage` is sent to the agent.
991 // Failure conditions are documented inline in Master::reregisterSlave.
992 type ReregisterSlaveMessage struct {
993 Slave *SlaveInfo `protobuf:"bytes,2,req,name=slave" json:"slave,omitempty"`
994 // Resources that are checkpointed by the agent (e.g., persistent
995 // volume or dynamic reservation). Frameworks need to release
996 // checkpointed resources explicitly.
997 CheckpointedResources []*Resource `protobuf:"bytes,7,rep,name=checkpointed_resources" json:"checkpointed_resources,omitempty"`
998 ExecutorInfos []*ExecutorInfo `protobuf:"bytes,4,rep,name=executor_infos" json:"executor_infos,omitempty"`
999 Tasks []*Task `protobuf:"bytes,3,rep,name=tasks" json:"tasks,omitempty"`
1000 CompletedFrameworks []*Archive_Framework `protobuf:"bytes,5,rep,name=completed_frameworks" json:"completed_frameworks,omitempty"`
1001 // NOTE: This is a hack for the master to detect the agent's
1002 // version. If unset the agent is < 0.21.0.
1003 // TODO(bmahler): Do proper versioning: MESOS-986.
1004 Version *string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"`
1005 XXX_unrecognized []byte `json:"-"`
1006 }
1007
1008 func (m *ReregisterSlaveMessage) Reset() { *m = ReregisterSlaveMessage{} }
1009 func (*ReregisterSlaveMessage) ProtoMessage() {}
1010
1011 func (m *ReregisterSlaveMessage) GetSlave() *SlaveInfo {
1012 if m != nil {
1013 return m.Slave
1014 }
1015 return nil
1016 }
1017
1018 func (m *ReregisterSlaveMessage) GetCheckpointedResources() []*Resource {
1019 if m != nil {
1020 return m.CheckpointedResources
1021 }
1022 return nil
1023 }
1024
1025 func (m *ReregisterSlaveMessage) GetExecutorInfos() []*ExecutorInfo {
1026 if m != nil {
1027 return m.ExecutorInfos
1028 }
1029 return nil
1030 }
1031
1032 func (m *ReregisterSlaveMessage) GetTasks() []*Task {
1033 if m != nil {
1034 return m.Tasks
1035 }
1036 return nil
1037 }
1038
1039 func (m *ReregisterSlaveMessage) GetCompletedFrameworks() []*Archive_Framework {
1040 if m != nil {
1041 return m.CompletedFrameworks
1042 }
1043 return nil
1044 }
1045
1046 func (m *ReregisterSlaveMessage) GetVersion() string {
1047 if m != nil && m.Version != nil {
1048 return *m.Version
1049 }
1050 return ""
1051 }
1052
1053 // *
1054 // Notifies the agent that the master has registered it.
1055 // The `slave_id` holds a unique ID for distinguishing this agent.
1056 type SlaveRegisteredMessage struct {
1057 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1058 Connection *MasterSlaveConnection `protobuf:"bytes,2,opt,name=connection" json:"connection,omitempty"`
1059 XXX_unrecognized []byte `json:"-"`
1060 }
1061
1062 func (m *SlaveRegisteredMessage) Reset() { *m = SlaveRegisteredMessage{} }
1063 func (*SlaveRegisteredMessage) ProtoMessage() {}
1064
1065 func (m *SlaveRegisteredMessage) GetSlaveId() *SlaveID {
1066 if m != nil {
1067 return m.SlaveId
1068 }
1069 return nil
1070 }
1071
1072 func (m *SlaveRegisteredMessage) GetConnection() *MasterSlaveConnection {
1073 if m != nil {
1074 return m.Connection
1075 }
1076 return nil
1077 }
1078
1079 // *
1080 // Notifies the agent that the master has reregistered it.
1081 // This message is used in the same conditions as `ReregisterSlaveMessage`.
1082 type SlaveReregisteredMessage struct {
1083 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1084 // Contains a list of non-terminal tasks that the master believes to
1085 // be running on the agent. The agent should respond `TASK_LOST` to
1086 // any tasks that are unknown, so the master knows to remove those.
1087 Reconciliations []*ReconcileTasksMessage `protobuf:"bytes,2,rep,name=reconciliations" json:"reconciliations,omitempty"`
1088 Connection *MasterSlaveConnection `protobuf:"bytes,3,opt,name=connection" json:"connection,omitempty"`
1089 XXX_unrecognized []byte `json:"-"`
1090 }
1091
1092 func (m *SlaveReregisteredMessage) Reset() { *m = SlaveReregisteredMessage{} }
1093 func (*SlaveReregisteredMessage) ProtoMessage() {}
1094
1095 func (m *SlaveReregisteredMessage) GetSlaveId() *SlaveID {
1096 if m != nil {
1097 return m.SlaveId
1098 }
1099 return nil
1100 }
1101
1102 func (m *SlaveReregisteredMessage) GetReconciliations() []*ReconcileTasksMessage {
1103 if m != nil {
1104 return m.Reconciliations
1105 }
1106 return nil
1107 }
1108
1109 func (m *SlaveReregisteredMessage) GetConnection() *MasterSlaveConnection {
1110 if m != nil {
1111 return m.Connection
1112 }
1113 return nil
1114 }
1115
1116 // *
1117 // This message is sent by the agent to the master during agent shutdown.
1118 // The master updates its state to reflect the removed agent.
1119 type UnregisterSlaveMessage struct {
1120 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1121 XXX_unrecognized []byte `json:"-"`
1122 }
1123
1124 func (m *UnregisterSlaveMessage) Reset() { *m = UnregisterSlaveMessage{} }
1125 func (*UnregisterSlaveMessage) ProtoMessage() {}
1126
1127 func (m *UnregisterSlaveMessage) GetSlaveId() *SlaveID {
1128 if m != nil {
1129 return m.SlaveId
1130 }
1131 return nil
1132 }
1133
1134 // *
1135 // Describes the connection between the master and agent.
1136 type MasterSlaveConnection struct {
1137 // Product of max_slave_ping_timeouts * slave_ping_timeout.
1138 // If no pings are received within the total timeout,
1139 // the master will remove the agent.
1140 TotalPingTimeoutSeconds *float64 `protobuf:"fixed64,1,opt,name=total_ping_timeout_seconds" json:"total_ping_timeout_seconds,omitempty"`
1141 XXX_unrecognized []byte `json:"-"`
1142 }
1143
1144 func (m *MasterSlaveConnection) Reset() { *m = MasterSlaveConnection{} }
1145 func (*MasterSlaveConnection) ProtoMessage() {}
1146
1147 func (m *MasterSlaveConnection) GetTotalPingTimeoutSeconds() float64 {
1148 if m != nil && m.TotalPingTimeoutSeconds != nil {
1149 return *m.TotalPingTimeoutSeconds
1150 }
1151 return 0
1152 }
1153
1154 // *
1155 // This message is periodically sent by the master to the agent.
1156 // If the agent is connected to the master, "connected" is true.
1157 type PingSlaveMessage struct {
1158 Connected *bool `protobuf:"varint,1,req,name=connected" json:"connected,omitempty"`
1159 XXX_unrecognized []byte `json:"-"`
1160 }
1161
1162 func (m *PingSlaveMessage) Reset() { *m = PingSlaveMessage{} }
1163 func (*PingSlaveMessage) ProtoMessage() {}
1164
1165 func (m *PingSlaveMessage) GetConnected() bool {
1166 if m != nil && m.Connected != nil {
1167 return *m.Connected
1168 }
1169 return false
1170 }
1171
1172 // *
1173 // This message is sent by the agent to the master in response to the
1174 // `PingSlaveMessage`.
1175 type PongSlaveMessage struct {
1176 XXX_unrecognized []byte `json:"-"`
1177 }
1178
1179 func (m *PongSlaveMessage) Reset() { *m = PongSlaveMessage{} }
1180 func (*PongSlaveMessage) ProtoMessage() {}
1181
1182 // *
1183 // Tells an agent to shut down all executors of the given framework.
1184 type ShutdownFrameworkMessage struct {
1185 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
1186 XXX_unrecognized []byte `json:"-"`
1187 }
1188
1189 func (m *ShutdownFrameworkMessage) Reset() { *m = ShutdownFrameworkMessage{} }
1190 func (*ShutdownFrameworkMessage) ProtoMessage() {}
1191
1192 func (m *ShutdownFrameworkMessage) GetFrameworkId() *FrameworkID {
1193 if m != nil {
1194 return m.FrameworkId
1195 }
1196 return nil
1197 }
1198
1199 // *
1200 // Tells an agent (and consequently the executor) to shutdown an executor.
1201 type ShutdownExecutorMessage struct {
1202 // TODO(vinod): Make these fields required. These are made optional
1203 // for backwards compatibility between 0.23.0 agent and pre 0.23.0
1204 // executor driver.
1205 ExecutorId *ExecutorID `protobuf:"bytes,1,opt,name=executor_id" json:"executor_id,omitempty"`
1206 FrameworkId *FrameworkID `protobuf:"bytes,2,opt,name=framework_id" json:"framework_id,omitempty"`
1207 XXX_unrecognized []byte `json:"-"`
1208 }
1209
1210 func (m *ShutdownExecutorMessage) Reset() { *m = ShutdownExecutorMessage{} }
1211 func (*ShutdownExecutorMessage) ProtoMessage() {}
1212
1213 func (m *ShutdownExecutorMessage) GetExecutorId() *ExecutorID {
1214 if m != nil {
1215 return m.ExecutorId
1216 }
1217 return nil
1218 }
1219
1220 func (m *ShutdownExecutorMessage) GetFrameworkId() *FrameworkID {
1221 if m != nil {
1222 return m.FrameworkId
1223 }
1224 return nil
1225 }
1226
1227 // *
1228 // Broadcasts updated framework information from master to all agents.
1229 type UpdateFrameworkMessage struct {
1230 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
1231 // See the comment on RunTaskMessage.pid.
1232 Pid *string `protobuf:"bytes,2,opt,name=pid" json:"pid,omitempty"`
1233 XXX_unrecognized []byte `json:"-"`
1234 }
1235
1236 func (m *UpdateFrameworkMessage) Reset() { *m = UpdateFrameworkMessage{} }
1237 func (*UpdateFrameworkMessage) ProtoMessage() {}
1238
1239 func (m *UpdateFrameworkMessage) GetFrameworkId() *FrameworkID {
1240 if m != nil {
1241 return m.FrameworkId
1242 }
1243 return nil
1244 }
1245
1246 func (m *UpdateFrameworkMessage) GetPid() string {
1247 if m != nil && m.Pid != nil {
1248 return *m.Pid
1249 }
1250 return ""
1251 }
1252
1253 // *
1254 // This message is sent to the agent whenever there is an update of
1255 // the resources that need to be checkpointed (e.g., persistent volume
1256 // or dynamic reservation).
1257 type CheckpointResourcesMessage struct {
1258 Resources []*Resource `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"`
1259 XXX_unrecognized []byte `json:"-"`
1260 }
1261
1262 func (m *CheckpointResourcesMessage) Reset() { *m = CheckpointResourcesMessage{} }
1263 func (*CheckpointResourcesMessage) ProtoMessage() {}
1264
1265 func (m *CheckpointResourcesMessage) GetResources() []*Resource {
1266 if m != nil {
1267 return m.Resources
1268 }
1269 return nil
1270 }
1271
1272 // *
1273 // This message is sent by the agent to the master to inform the
1274 // master about the total amount of oversubscribed (allocated and
1275 // allocatable) resources.
1276 type UpdateSlaveMessage struct {
1277 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1278 OversubscribedResources []*Resource `protobuf:"bytes,2,rep,name=oversubscribed_resources" json:"oversubscribed_resources,omitempty"`
1279 XXX_unrecognized []byte `json:"-"`
1280 }
1281
1282 func (m *UpdateSlaveMessage) Reset() { *m = UpdateSlaveMessage{} }
1283 func (*UpdateSlaveMessage) ProtoMessage() {}
1284
1285 func (m *UpdateSlaveMessage) GetSlaveId() *SlaveID {
1286 if m != nil {
1287 return m.SlaveId
1288 }
1289 return nil
1290 }
1291
1292 func (m *UpdateSlaveMessage) GetOversubscribedResources() []*Resource {
1293 if m != nil {
1294 return m.OversubscribedResources
1295 }
1296 return nil
1297 }
1298
1299 // *
1300 // Subscribes the executor with the agent to receive events.
1301 //
1302 // See executor::Call::Subscribe.
1303 type RegisterExecutorMessage struct {
1304 FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"`
1305 ExecutorId *ExecutorID `protobuf:"bytes,2,req,name=executor_id" json:"executor_id,omitempty"`
1306 XXX_unrecognized []byte `json:"-"`
1307 }
1308
1309 func (m *RegisterExecutorMessage) Reset() { *m = RegisterExecutorMessage{} }
1310 func (*RegisterExecutorMessage) ProtoMessage() {}
1311
1312 func (m *RegisterExecutorMessage) GetFrameworkId() *FrameworkID {
1313 if m != nil {
1314 return m.FrameworkId
1315 }
1316 return nil
1317 }
1318
1319 func (m *RegisterExecutorMessage) GetExecutorId() *ExecutorID {
1320 if m != nil {
1321 return m.ExecutorId
1322 }
1323 return nil
1324 }
1325
1326 // *
1327 // Notifies the executor that the agent has registered it.
1328 //
1329 // See executor::Event::Subscribed.
1330 type ExecutorRegisteredMessage struct {
1331 ExecutorInfo *ExecutorInfo `protobuf:"bytes,2,req,name=executor_info" json:"executor_info,omitempty"`
1332 FrameworkId *FrameworkID `protobuf:"bytes,3,req,name=framework_id" json:"framework_id,omitempty"`
1333 FrameworkInfo *FrameworkInfo `protobuf:"bytes,4,req,name=framework_info" json:"framework_info,omitempty"`
1334 SlaveId *SlaveID `protobuf:"bytes,5,req,name=slave_id" json:"slave_id,omitempty"`
1335 SlaveInfo *SlaveInfo `protobuf:"bytes,6,req,name=slave_info" json:"slave_info,omitempty"`
1336 XXX_unrecognized []byte `json:"-"`
1337 }
1338
1339 func (m *ExecutorRegisteredMessage) Reset() { *m = ExecutorRegisteredMessage{} }
1340 func (*ExecutorRegisteredMessage) ProtoMessage() {}
1341
1342 func (m *ExecutorRegisteredMessage) GetExecutorInfo() *ExecutorInfo {
1343 if m != nil {
1344 return m.ExecutorInfo
1345 }
1346 return nil
1347 }
1348
1349 func (m *ExecutorRegisteredMessage) GetFrameworkId() *FrameworkID {
1350 if m != nil {
1351 return m.FrameworkId
1352 }
1353 return nil
1354 }
1355
1356 func (m *ExecutorRegisteredMessage) GetFrameworkInfo() *FrameworkInfo {
1357 if m != nil {
1358 return m.FrameworkInfo
1359 }
1360 return nil
1361 }
1362
1363 func (m *ExecutorRegisteredMessage) GetSlaveId() *SlaveID {
1364 if m != nil {
1365 return m.SlaveId
1366 }
1367 return nil
1368 }
1369
1370 func (m *ExecutorRegisteredMessage) GetSlaveInfo() *SlaveInfo {
1371 if m != nil {
1372 return m.SlaveInfo
1373 }
1374 return nil
1375 }
1376
1377 // *
1378 // Notifies the executor that the agent has reregistered it.
1379 //
1380 // See executor::Event::Subscribed.
1381 type ExecutorReregisteredMessage struct {
1382 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1383 SlaveInfo *SlaveInfo `protobuf:"bytes,2,req,name=slave_info" json:"slave_info,omitempty"`
1384 XXX_unrecognized []byte `json:"-"`
1385 }
1386
1387 func (m *ExecutorReregisteredMessage) Reset() { *m = ExecutorReregisteredMessage{} }
1388 func (*ExecutorReregisteredMessage) ProtoMessage() {}
1389
1390 func (m *ExecutorReregisteredMessage) GetSlaveId() *SlaveID {
1391 if m != nil {
1392 return m.SlaveId
1393 }
1394 return nil
1395 }
1396
1397 func (m *ExecutorReregisteredMessage) GetSlaveInfo() *SlaveInfo {
1398 if m != nil {
1399 return m.SlaveInfo
1400 }
1401 return nil
1402 }
1403
1404 // *
1405 // Notifies the scheduler about terminated executors.
1406 //
1407 // See scheduler::Event::Failure.
1408 type ExitedExecutorMessage struct {
1409 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1410 FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"`
1411 ExecutorId *ExecutorID `protobuf:"bytes,3,req,name=executor_id" json:"executor_id,omitempty"`
1412 Status *int32 `protobuf:"varint,4,req,name=status" json:"status,omitempty"`
1413 XXX_unrecognized []byte `json:"-"`
1414 }
1415
1416 func (m *ExitedExecutorMessage) Reset() { *m = ExitedExecutorMessage{} }
1417 func (*ExitedExecutorMessage) ProtoMessage() {}
1418
1419 func (m *ExitedExecutorMessage) GetSlaveId() *SlaveID {
1420 if m != nil {
1421 return m.SlaveId
1422 }
1423 return nil
1424 }
1425
1426 func (m *ExitedExecutorMessage) GetFrameworkId() *FrameworkID {
1427 if m != nil {
1428 return m.FrameworkId
1429 }
1430 return nil
1431 }
1432
1433 func (m *ExitedExecutorMessage) GetExecutorId() *ExecutorID {
1434 if m != nil {
1435 return m.ExecutorId
1436 }
1437 return nil
1438 }
1439
1440 func (m *ExitedExecutorMessage) GetStatus() int32 {
1441 if m != nil && m.Status != nil {
1442 return *m.Status
1443 }
1444 return 0
1445 }
1446
1447 // *
1448 // Reestablishes the connection between executor and agent after agent failover.
1449 // This message originates from the agent.
1450 type ReconnectExecutorMessage struct {
1451 SlaveId *SlaveID `protobuf:"bytes,1,req,name=slave_id" json:"slave_id,omitempty"`
1452 XXX_unrecognized []byte `json:"-"`
1453 }
1454
1455 func (m *ReconnectExecutorMessage) Reset() { *m = ReconnectExecutorMessage{} }
1456 func (*ReconnectExecutorMessage) ProtoMessage() {}
1457
1458 func (m *ReconnectExecutorMessage) GetSlaveId() *SlaveID {
1459 if m != nil {
1460 return m.SlaveId
1461 }
1462 return nil
1463 }
1464
1465 // *
1466 // Subscribes the executor with the agent to receive events.
1467 // This is used after a disconnection. The executor must include
1468 // any unacknowledged tasks or updates.
1469 //
1470 // See executor::Call::Subscribe.
1471 type ReregisterExecutorMessage struct {
1472 ExecutorId *ExecutorID `protobuf:"bytes,1,req,name=executor_id" json:"executor_id,omitempty"`
1473 FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"`
1474 Tasks []*TaskInfo `protobuf:"bytes,3,rep,name=tasks" json:"tasks,omitempty"`
1475 Updates []*StatusUpdate `protobuf:"bytes,4,rep,name=updates" json:"updates,omitempty"`
1476 XXX_unrecognized []byte `json:"-"`
1477 }
1478
1479 func (m *ReregisterExecutorMessage) Reset() { *m = ReregisterExecutorMessage{} }
1480 func (*ReregisterExecutorMessage) ProtoMessage() {}
1481
1482 func (m *ReregisterExecutorMessage) GetExecutorId() *ExecutorID {
1483 if m != nil {
1484 return m.ExecutorId
1485 }
1486 return nil
1487 }
1488
1489 func (m *ReregisterExecutorMessage) GetFrameworkId() *FrameworkID {
1490 if m != nil {
1491 return m.FrameworkId
1492 }
1493 return nil
1494 }
1495
1496 func (m *ReregisterExecutorMessage) GetTasks() []*TaskInfo {
1497 if m != nil {
1498 return m.Tasks
1499 }
1500 return nil
1501 }
1502
1503 func (m *ReregisterExecutorMessage) GetUpdates() []*StatusUpdate {
1504 if m != nil {
1505 return m.Updates
1506 }
1507 return nil
1508 }
1509
1510 // *
1511 // Sends a free-form message from the master to an agent.
1512 // The agent should gracefully terminate in response, which includes
1513 // shutting down all executors and tasks on the agent.
1514 type ShutdownMessage struct {
1515 Message *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
1516 XXX_unrecognized []byte `json:"-"`
1517 }
1518
1519 func (m *ShutdownMessage) Reset() { *m = ShutdownMessage{} }
1520 func (*ShutdownMessage) ProtoMessage() {}
1521
1522 func (m *ShutdownMessage) GetMessage() string {
1523 if m != nil && m.Message != nil {
1524 return *m.Message
1525 }
1526 return ""
1527 }
1528
1529 // *
1530 // Describes Completed Frameworks, etc. for archival.
1531 type Archive struct {
1532 Frameworks []*Archive_Framework `protobuf:"bytes,1,rep,name=frameworks" json:"frameworks,omitempty"`
1533 XXX_unrecognized []byte `json:"-"`
1534 }
1535
1536 func (m *Archive) Reset() { *m = Archive{} }
1537 func (*Archive) ProtoMessage() {}
1538
1539 func (m *Archive) GetFrameworks() []*Archive_Framework {
1540 if m != nil {
1541 return m.Frameworks
1542 }
1543 return nil
1544 }
1545
1546 type Archive_Framework struct {
1547 FrameworkInfo *FrameworkInfo `protobuf:"bytes,1,req,name=framework_info" json:"framework_info,omitempty"`
1548 Pid *string `protobuf:"bytes,2,opt,name=pid" json:"pid,omitempty"`
1549 Tasks []*Task `protobuf:"bytes,3,rep,name=tasks" json:"tasks,omitempty"`
1550 XXX_unrecognized []byte `json:"-"`
1551 }
1552
1553 func (m *Archive_Framework) Reset() { *m = Archive_Framework{} }
1554 func (*Archive_Framework) ProtoMessage() {}
1555
1556 func (m *Archive_Framework) GetFrameworkInfo() *FrameworkInfo {
1557 if m != nil {
1558 return m.FrameworkInfo
1559 }
1560 return nil
1561 }
1562
1563 func (m *Archive_Framework) GetPid() string {
1564 if m != nil && m.Pid != nil {
1565 return *m.Pid
1566 }
1567 return ""
1568 }
1569
1570 func (m *Archive_Framework) GetTasks() []*Task {
1571 if m != nil {
1572 return m.Tasks
1573 }
1574 return nil
1575 }
1576
1577 // *
1578 // Message describing task current health status that is sent by
1579 // the task health checker to the command executor.
1580 // The command executor reports the task status back to the
1581 // on each receive. If the health checker configured failure
1582 // condition meets, then `kill_task` flag will be set to true which
1583 // the executor on message receive will kill the task.
1584 type TaskHealthStatus struct {
1585 TaskId *TaskID `protobuf:"bytes,1,req,name=task_id" json:"task_id,omitempty"`
1586 Healthy *bool `protobuf:"varint,2,req,name=healthy" json:"healthy,omitempty"`
1587 // Flag to initiate task kill.
1588 KillTask *bool `protobuf:"varint,3,opt,name=kill_task,def=0" json:"kill_task,omitempty"`
1589 // Number of consecutive counts in current status.
1590 // This will not be populated if task is healthy.
1591 ConsecutiveFailures *int32 `protobuf:"varint,4,opt,name=consecutive_failures" json:"consecutive_failures,omitempty"`
1592 XXX_unrecognized []byte `json:"-"`
1593 }
1594
1595 func (m *TaskHealthStatus) Reset() { *m = TaskHealthStatus{} }
1596 func (*TaskHealthStatus) ProtoMessage() {}
1597
1598 const Default_TaskHealthStatus_KillTask bool = false
1599
1600 func (m *TaskHealthStatus) GetTaskId() *TaskID {
1601 if m != nil {
1602 return m.TaskId
1603 }
1604 return nil
1605 }
1606
1607 func (m *TaskHealthStatus) GetHealthy() bool {
1608 if m != nil && m.Healthy != nil {
1609 return *m.Healthy
1610 }
1611 return false
1612 }
1613
1614 func (m *TaskHealthStatus) GetKillTask() bool {
1615 if m != nil && m.KillTask != nil {
1616 return *m.KillTask
1617 }
1618 return Default_TaskHealthStatus_KillTask
1619 }
1620
1621 func (m *TaskHealthStatus) GetConsecutiveFailures() int32 {
1622 if m != nil && m.ConsecutiveFailures != nil {
1623 return *m.ConsecutiveFailures
1624 }
1625 return 0
1626 }
1627
1628 // *
1629 // Message to signal completion of an event within a module.
1630 type HookExecuted struct {
1631 Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
1632 XXX_unrecognized []byte `json:"-"`
1633 }
1634
1635 func (m *HookExecuted) Reset() { *m = HookExecuted{} }
1636 func (*HookExecuted) ProtoMessage() {}
1637
1638 func (m *HookExecuted) GetModule() string {
1639 if m != nil && m.Module != nil {
1640 return *m.Module
1641 }
1642 return ""
1643 }
1644
1645 func init() {
1646 proto.RegisterEnum("mesosproto.StatusUpdateRecord_Type", StatusUpdateRecord_Type_name, StatusUpdateRecord_Type_value)
1647 }
1648 func (this *Task) VerboseEqual(that interface{}) error {
1649 if that == nil {
1650 if this == nil {
1651 return nil
1652 }
1653 return fmt.Errorf("that == nil && this != nil")
1654 }
1655
1656 that1, ok := that.(*Task)
1657 if !ok {
1658 return fmt.Errorf("that is not of type *Task")
1659 }
1660 if that1 == nil {
1661 if this == nil {
1662 return nil
1663 }
1664 return fmt.Errorf("that is type *Task but is nil && this != nil")
1665 } else if this == nil {
1666 return fmt.Errorf("that is type *Taskbut is not nil && this == nil")
1667 }
1668 if this.Name != nil && that1.Name != nil {
1669 if *this.Name != *that1.Name {
1670 return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name)
1671 }
1672 } else if this.Name != nil {
1673 return fmt.Errorf("this.Name == nil && that.Name != nil")
1674 } else if that1.Name != nil {
1675 return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name)
1676 }
1677 if !this.TaskId.Equal(that1.TaskId) {
1678 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
1679 }
1680 if !this.FrameworkId.Equal(that1.FrameworkId) {
1681 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
1682 }
1683 if !this.ExecutorId.Equal(that1.ExecutorId) {
1684 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
1685 }
1686 if !this.SlaveId.Equal(that1.SlaveId) {
1687 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1688 }
1689 if this.State != nil && that1.State != nil {
1690 if *this.State != *that1.State {
1691 return fmt.Errorf("State this(%v) Not Equal that(%v)", *this.State, *that1.State)
1692 }
1693 } else if this.State != nil {
1694 return fmt.Errorf("this.State == nil && that.State != nil")
1695 } else if that1.State != nil {
1696 return fmt.Errorf("State this(%v) Not Equal that(%v)", this.State, that1.State)
1697 }
1698 if len(this.Resources) != len(that1.Resources) {
1699 return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources))
1700 }
1701 for i := range this.Resources {
1702 if !this.Resources[i].Equal(that1.Resources[i]) {
1703 return fmt.Errorf("Resources this[%v](%v) Not Equal that[%v](%v)", i, this.Resources[i], i, that1.Resources[i])
1704 }
1705 }
1706 if len(this.Statuses) != len(that1.Statuses) {
1707 return fmt.Errorf("Statuses this(%v) Not Equal that(%v)", len(this.Statuses), len(that1.Statuses))
1708 }
1709 for i := range this.Statuses {
1710 if !this.Statuses[i].Equal(that1.Statuses[i]) {
1711 return fmt.Errorf("Statuses this[%v](%v) Not Equal that[%v](%v)", i, this.Statuses[i], i, that1.Statuses[i])
1712 }
1713 }
1714 if this.StatusUpdateState != nil && that1.StatusUpdateState != nil {
1715 if *this.StatusUpdateState != *that1.StatusUpdateState {
1716 return fmt.Errorf("StatusUpdateState this(%v) Not Equal that(%v)", *this.StatusUpdateState, *that1.StatusUpdateState)
1717 }
1718 } else if this.StatusUpdateState != nil {
1719 return fmt.Errorf("this.StatusUpdateState == nil && that.StatusUpdateState != nil")
1720 } else if that1.StatusUpdateState != nil {
1721 return fmt.Errorf("StatusUpdateState this(%v) Not Equal that(%v)", this.StatusUpdateState, that1.StatusUpdateState)
1722 }
1723 if !bytes.Equal(this.StatusUpdateUuid, that1.StatusUpdateUuid) {
1724 return fmt.Errorf("StatusUpdateUuid this(%v) Not Equal that(%v)", this.StatusUpdateUuid, that1.StatusUpdateUuid)
1725 }
1726 if !this.Labels.Equal(that1.Labels) {
1727 return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels)
1728 }
1729 if !this.Discovery.Equal(that1.Discovery) {
1730 return fmt.Errorf("Discovery this(%v) Not Equal that(%v)", this.Discovery, that1.Discovery)
1731 }
1732 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1733 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1734 }
1735 return nil
1736 }
1737 func (this *Task) Equal(that interface{}) bool {
1738 if that == nil {
1739 if this == nil {
1740 return true
1741 }
1742 return false
1743 }
1744
1745 that1, ok := that.(*Task)
1746 if !ok {
1747 return false
1748 }
1749 if that1 == nil {
1750 if this == nil {
1751 return true
1752 }
1753 return false
1754 } else if this == nil {
1755 return false
1756 }
1757 if this.Name != nil && that1.Name != nil {
1758 if *this.Name != *that1.Name {
1759 return false
1760 }
1761 } else if this.Name != nil {
1762 return false
1763 } else if that1.Name != nil {
1764 return false
1765 }
1766 if !this.TaskId.Equal(that1.TaskId) {
1767 return false
1768 }
1769 if !this.FrameworkId.Equal(that1.FrameworkId) {
1770 return false
1771 }
1772 if !this.ExecutorId.Equal(that1.ExecutorId) {
1773 return false
1774 }
1775 if !this.SlaveId.Equal(that1.SlaveId) {
1776 return false
1777 }
1778 if this.State != nil && that1.State != nil {
1779 if *this.State != *that1.State {
1780 return false
1781 }
1782 } else if this.State != nil {
1783 return false
1784 } else if that1.State != nil {
1785 return false
1786 }
1787 if len(this.Resources) != len(that1.Resources) {
1788 return false
1789 }
1790 for i := range this.Resources {
1791 if !this.Resources[i].Equal(that1.Resources[i]) {
1792 return false
1793 }
1794 }
1795 if len(this.Statuses) != len(that1.Statuses) {
1796 return false
1797 }
1798 for i := range this.Statuses {
1799 if !this.Statuses[i].Equal(that1.Statuses[i]) {
1800 return false
1801 }
1802 }
1803 if this.StatusUpdateState != nil && that1.StatusUpdateState != nil {
1804 if *this.StatusUpdateState != *that1.StatusUpdateState {
1805 return false
1806 }
1807 } else if this.StatusUpdateState != nil {
1808 return false
1809 } else if that1.StatusUpdateState != nil {
1810 return false
1811 }
1812 if !bytes.Equal(this.StatusUpdateUuid, that1.StatusUpdateUuid) {
1813 return false
1814 }
1815 if !this.Labels.Equal(that1.Labels) {
1816 return false
1817 }
1818 if !this.Discovery.Equal(that1.Discovery) {
1819 return false
1820 }
1821 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1822 return false
1823 }
1824 return true
1825 }
1826 func (this *StatusUpdate) VerboseEqual(that interface{}) error {
1827 if that == nil {
1828 if this == nil {
1829 return nil
1830 }
1831 return fmt.Errorf("that == nil && this != nil")
1832 }
1833
1834 that1, ok := that.(*StatusUpdate)
1835 if !ok {
1836 return fmt.Errorf("that is not of type *StatusUpdate")
1837 }
1838 if that1 == nil {
1839 if this == nil {
1840 return nil
1841 }
1842 return fmt.Errorf("that is type *StatusUpdate but is nil && this != nil")
1843 } else if this == nil {
1844 return fmt.Errorf("that is type *StatusUpdatebut is not nil && this == nil")
1845 }
1846 if !this.FrameworkId.Equal(that1.FrameworkId) {
1847 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
1848 }
1849 if !this.ExecutorId.Equal(that1.ExecutorId) {
1850 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
1851 }
1852 if !this.SlaveId.Equal(that1.SlaveId) {
1853 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
1854 }
1855 if !this.Status.Equal(that1.Status) {
1856 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1857 }
1858 if this.Timestamp != nil && that1.Timestamp != nil {
1859 if *this.Timestamp != *that1.Timestamp {
1860 return fmt.Errorf("Timestamp this(%v) Not Equal that(%v)", *this.Timestamp, *that1.Timestamp)
1861 }
1862 } else if this.Timestamp != nil {
1863 return fmt.Errorf("this.Timestamp == nil && that.Timestamp != nil")
1864 } else if that1.Timestamp != nil {
1865 return fmt.Errorf("Timestamp this(%v) Not Equal that(%v)", this.Timestamp, that1.Timestamp)
1866 }
1867 if !bytes.Equal(this.Uuid, that1.Uuid) {
1868 return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid)
1869 }
1870 if this.LatestState != nil && that1.LatestState != nil {
1871 if *this.LatestState != *that1.LatestState {
1872 return fmt.Errorf("LatestState this(%v) Not Equal that(%v)", *this.LatestState, *that1.LatestState)
1873 }
1874 } else if this.LatestState != nil {
1875 return fmt.Errorf("this.LatestState == nil && that.LatestState != nil")
1876 } else if that1.LatestState != nil {
1877 return fmt.Errorf("LatestState this(%v) Not Equal that(%v)", this.LatestState, that1.LatestState)
1878 }
1879 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1880 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1881 }
1882 return nil
1883 }
1884 func (this *StatusUpdate) Equal(that interface{}) bool {
1885 if that == nil {
1886 if this == nil {
1887 return true
1888 }
1889 return false
1890 }
1891
1892 that1, ok := that.(*StatusUpdate)
1893 if !ok {
1894 return false
1895 }
1896 if that1 == nil {
1897 if this == nil {
1898 return true
1899 }
1900 return false
1901 } else if this == nil {
1902 return false
1903 }
1904 if !this.FrameworkId.Equal(that1.FrameworkId) {
1905 return false
1906 }
1907 if !this.ExecutorId.Equal(that1.ExecutorId) {
1908 return false
1909 }
1910 if !this.SlaveId.Equal(that1.SlaveId) {
1911 return false
1912 }
1913 if !this.Status.Equal(that1.Status) {
1914 return false
1915 }
1916 if this.Timestamp != nil && that1.Timestamp != nil {
1917 if *this.Timestamp != *that1.Timestamp {
1918 return false
1919 }
1920 } else if this.Timestamp != nil {
1921 return false
1922 } else if that1.Timestamp != nil {
1923 return false
1924 }
1925 if !bytes.Equal(this.Uuid, that1.Uuid) {
1926 return false
1927 }
1928 if this.LatestState != nil && that1.LatestState != nil {
1929 if *this.LatestState != *that1.LatestState {
1930 return false
1931 }
1932 } else if this.LatestState != nil {
1933 return false
1934 } else if that1.LatestState != nil {
1935 return false
1936 }
1937 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1938 return false
1939 }
1940 return true
1941 }
1942 func (this *StatusUpdateRecord) VerboseEqual(that interface{}) error {
1943 if that == nil {
1944 if this == nil {
1945 return nil
1946 }
1947 return fmt.Errorf("that == nil && this != nil")
1948 }
1949
1950 that1, ok := that.(*StatusUpdateRecord)
1951 if !ok {
1952 return fmt.Errorf("that is not of type *StatusUpdateRecord")
1953 }
1954 if that1 == nil {
1955 if this == nil {
1956 return nil
1957 }
1958 return fmt.Errorf("that is type *StatusUpdateRecord but is nil && this != nil")
1959 } else if this == nil {
1960 return fmt.Errorf("that is type *StatusUpdateRecordbut is not nil && this == nil")
1961 }
1962 if this.Type != nil && that1.Type != nil {
1963 if *this.Type != *that1.Type {
1964 return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type)
1965 }
1966 } else if this.Type != nil {
1967 return fmt.Errorf("this.Type == nil && that.Type != nil")
1968 } else if that1.Type != nil {
1969 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
1970 }
1971 if !this.Update.Equal(that1.Update) {
1972 return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
1973 }
1974 if !bytes.Equal(this.Uuid, that1.Uuid) {
1975 return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid)
1976 }
1977 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
1978 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
1979 }
1980 return nil
1981 }
1982 func (this *StatusUpdateRecord) Equal(that interface{}) bool {
1983 if that == nil {
1984 if this == nil {
1985 return true
1986 }
1987 return false
1988 }
1989
1990 that1, ok := that.(*StatusUpdateRecord)
1991 if !ok {
1992 return false
1993 }
1994 if that1 == nil {
1995 if this == nil {
1996 return true
1997 }
1998 return false
1999 } else if this == nil {
2000 return false
2001 }
2002 if this.Type != nil && that1.Type != nil {
2003 if *this.Type != *that1.Type {
2004 return false
2005 }
2006 } else if this.Type != nil {
2007 return false
2008 } else if that1.Type != nil {
2009 return false
2010 }
2011 if !this.Update.Equal(that1.Update) {
2012 return false
2013 }
2014 if !bytes.Equal(this.Uuid, that1.Uuid) {
2015 return false
2016 }
2017 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2018 return false
2019 }
2020 return true
2021 }
2022 func (this *SubmitSchedulerRequest) VerboseEqual(that interface{}) error {
2023 if that == nil {
2024 if this == nil {
2025 return nil
2026 }
2027 return fmt.Errorf("that == nil && this != nil")
2028 }
2029
2030 that1, ok := that.(*SubmitSchedulerRequest)
2031 if !ok {
2032 return fmt.Errorf("that is not of type *SubmitSchedulerRequest")
2033 }
2034 if that1 == nil {
2035 if this == nil {
2036 return nil
2037 }
2038 return fmt.Errorf("that is type *SubmitSchedulerRequest but is nil && this != nil")
2039 } else if this == nil {
2040 return fmt.Errorf("that is type *SubmitSchedulerRequestbut is not nil && this == nil")
2041 }
2042 if this.Name != nil && that1.Name != nil {
2043 if *this.Name != *that1.Name {
2044 return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name)
2045 }
2046 } else if this.Name != nil {
2047 return fmt.Errorf("this.Name == nil && that.Name != nil")
2048 } else if that1.Name != nil {
2049 return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name)
2050 }
2051 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2052 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2053 }
2054 return nil
2055 }
2056 func (this *SubmitSchedulerRequest) Equal(that interface{}) bool {
2057 if that == nil {
2058 if this == nil {
2059 return true
2060 }
2061 return false
2062 }
2063
2064 that1, ok := that.(*SubmitSchedulerRequest)
2065 if !ok {
2066 return false
2067 }
2068 if that1 == nil {
2069 if this == nil {
2070 return true
2071 }
2072 return false
2073 } else if this == nil {
2074 return false
2075 }
2076 if this.Name != nil && that1.Name != nil {
2077 if *this.Name != *that1.Name {
2078 return false
2079 }
2080 } else if this.Name != nil {
2081 return false
2082 } else if that1.Name != nil {
2083 return false
2084 }
2085 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2086 return false
2087 }
2088 return true
2089 }
2090 func (this *SubmitSchedulerResponse) VerboseEqual(that interface{}) error {
2091 if that == nil {
2092 if this == nil {
2093 return nil
2094 }
2095 return fmt.Errorf("that == nil && this != nil")
2096 }
2097
2098 that1, ok := that.(*SubmitSchedulerResponse)
2099 if !ok {
2100 return fmt.Errorf("that is not of type *SubmitSchedulerResponse")
2101 }
2102 if that1 == nil {
2103 if this == nil {
2104 return nil
2105 }
2106 return fmt.Errorf("that is type *SubmitSchedulerResponse but is nil && this != nil")
2107 } else if this == nil {
2108 return fmt.Errorf("that is type *SubmitSchedulerResponsebut is not nil && this == nil")
2109 }
2110 if this.Okay != nil && that1.Okay != nil {
2111 if *this.Okay != *that1.Okay {
2112 return fmt.Errorf("Okay this(%v) Not Equal that(%v)", *this.Okay, *that1.Okay)
2113 }
2114 } else if this.Okay != nil {
2115 return fmt.Errorf("this.Okay == nil && that.Okay != nil")
2116 } else if that1.Okay != nil {
2117 return fmt.Errorf("Okay this(%v) Not Equal that(%v)", this.Okay, that1.Okay)
2118 }
2119 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2120 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2121 }
2122 return nil
2123 }
2124 func (this *SubmitSchedulerResponse) Equal(that interface{}) bool {
2125 if that == nil {
2126 if this == nil {
2127 return true
2128 }
2129 return false
2130 }
2131
2132 that1, ok := that.(*SubmitSchedulerResponse)
2133 if !ok {
2134 return false
2135 }
2136 if that1 == nil {
2137 if this == nil {
2138 return true
2139 }
2140 return false
2141 } else if this == nil {
2142 return false
2143 }
2144 if this.Okay != nil && that1.Okay != nil {
2145 if *this.Okay != *that1.Okay {
2146 return false
2147 }
2148 } else if this.Okay != nil {
2149 return false
2150 } else if that1.Okay != nil {
2151 return false
2152 }
2153 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2154 return false
2155 }
2156 return true
2157 }
2158 func (this *ExecutorToFrameworkMessage) VerboseEqual(that interface{}) error {
2159 if that == nil {
2160 if this == nil {
2161 return nil
2162 }
2163 return fmt.Errorf("that == nil && this != nil")
2164 }
2165
2166 that1, ok := that.(*ExecutorToFrameworkMessage)
2167 if !ok {
2168 return fmt.Errorf("that is not of type *ExecutorToFrameworkMessage")
2169 }
2170 if that1 == nil {
2171 if this == nil {
2172 return nil
2173 }
2174 return fmt.Errorf("that is type *ExecutorToFrameworkMessage but is nil && this != nil")
2175 } else if this == nil {
2176 return fmt.Errorf("that is type *ExecutorToFrameworkMessagebut is not nil && this == nil")
2177 }
2178 if !this.SlaveId.Equal(that1.SlaveId) {
2179 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
2180 }
2181 if !this.FrameworkId.Equal(that1.FrameworkId) {
2182 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2183 }
2184 if !this.ExecutorId.Equal(that1.ExecutorId) {
2185 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
2186 }
2187 if !bytes.Equal(this.Data, that1.Data) {
2188 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
2189 }
2190 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2191 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2192 }
2193 return nil
2194 }
2195 func (this *ExecutorToFrameworkMessage) Equal(that interface{}) bool {
2196 if that == nil {
2197 if this == nil {
2198 return true
2199 }
2200 return false
2201 }
2202
2203 that1, ok := that.(*ExecutorToFrameworkMessage)
2204 if !ok {
2205 return false
2206 }
2207 if that1 == nil {
2208 if this == nil {
2209 return true
2210 }
2211 return false
2212 } else if this == nil {
2213 return false
2214 }
2215 if !this.SlaveId.Equal(that1.SlaveId) {
2216 return false
2217 }
2218 if !this.FrameworkId.Equal(that1.FrameworkId) {
2219 return false
2220 }
2221 if !this.ExecutorId.Equal(that1.ExecutorId) {
2222 return false
2223 }
2224 if !bytes.Equal(this.Data, that1.Data) {
2225 return false
2226 }
2227 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2228 return false
2229 }
2230 return true
2231 }
2232 func (this *FrameworkToExecutorMessage) VerboseEqual(that interface{}) error {
2233 if that == nil {
2234 if this == nil {
2235 return nil
2236 }
2237 return fmt.Errorf("that == nil && this != nil")
2238 }
2239
2240 that1, ok := that.(*FrameworkToExecutorMessage)
2241 if !ok {
2242 return fmt.Errorf("that is not of type *FrameworkToExecutorMessage")
2243 }
2244 if that1 == nil {
2245 if this == nil {
2246 return nil
2247 }
2248 return fmt.Errorf("that is type *FrameworkToExecutorMessage but is nil && this != nil")
2249 } else if this == nil {
2250 return fmt.Errorf("that is type *FrameworkToExecutorMessagebut is not nil && this == nil")
2251 }
2252 if !this.SlaveId.Equal(that1.SlaveId) {
2253 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
2254 }
2255 if !this.FrameworkId.Equal(that1.FrameworkId) {
2256 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2257 }
2258 if !this.ExecutorId.Equal(that1.ExecutorId) {
2259 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
2260 }
2261 if !bytes.Equal(this.Data, that1.Data) {
2262 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
2263 }
2264 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2265 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2266 }
2267 return nil
2268 }
2269 func (this *FrameworkToExecutorMessage) Equal(that interface{}) bool {
2270 if that == nil {
2271 if this == nil {
2272 return true
2273 }
2274 return false
2275 }
2276
2277 that1, ok := that.(*FrameworkToExecutorMessage)
2278 if !ok {
2279 return false
2280 }
2281 if that1 == nil {
2282 if this == nil {
2283 return true
2284 }
2285 return false
2286 } else if this == nil {
2287 return false
2288 }
2289 if !this.SlaveId.Equal(that1.SlaveId) {
2290 return false
2291 }
2292 if !this.FrameworkId.Equal(that1.FrameworkId) {
2293 return false
2294 }
2295 if !this.ExecutorId.Equal(that1.ExecutorId) {
2296 return false
2297 }
2298 if !bytes.Equal(this.Data, that1.Data) {
2299 return false
2300 }
2301 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2302 return false
2303 }
2304 return true
2305 }
2306 func (this *RegisterFrameworkMessage) VerboseEqual(that interface{}) error {
2307 if that == nil {
2308 if this == nil {
2309 return nil
2310 }
2311 return fmt.Errorf("that == nil && this != nil")
2312 }
2313
2314 that1, ok := that.(*RegisterFrameworkMessage)
2315 if !ok {
2316 return fmt.Errorf("that is not of type *RegisterFrameworkMessage")
2317 }
2318 if that1 == nil {
2319 if this == nil {
2320 return nil
2321 }
2322 return fmt.Errorf("that is type *RegisterFrameworkMessage but is nil && this != nil")
2323 } else if this == nil {
2324 return fmt.Errorf("that is type *RegisterFrameworkMessagebut is not nil && this == nil")
2325 }
2326 if !this.Framework.Equal(that1.Framework) {
2327 return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework)
2328 }
2329 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2330 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2331 }
2332 return nil
2333 }
2334 func (this *RegisterFrameworkMessage) Equal(that interface{}) bool {
2335 if that == nil {
2336 if this == nil {
2337 return true
2338 }
2339 return false
2340 }
2341
2342 that1, ok := that.(*RegisterFrameworkMessage)
2343 if !ok {
2344 return false
2345 }
2346 if that1 == nil {
2347 if this == nil {
2348 return true
2349 }
2350 return false
2351 } else if this == nil {
2352 return false
2353 }
2354 if !this.Framework.Equal(that1.Framework) {
2355 return false
2356 }
2357 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2358 return false
2359 }
2360 return true
2361 }
2362 func (this *ReregisterFrameworkMessage) VerboseEqual(that interface{}) error {
2363 if that == nil {
2364 if this == nil {
2365 return nil
2366 }
2367 return fmt.Errorf("that == nil && this != nil")
2368 }
2369
2370 that1, ok := that.(*ReregisterFrameworkMessage)
2371 if !ok {
2372 return fmt.Errorf("that is not of type *ReregisterFrameworkMessage")
2373 }
2374 if that1 == nil {
2375 if this == nil {
2376 return nil
2377 }
2378 return fmt.Errorf("that is type *ReregisterFrameworkMessage but is nil && this != nil")
2379 } else if this == nil {
2380 return fmt.Errorf("that is type *ReregisterFrameworkMessagebut is not nil && this == nil")
2381 }
2382 if !this.Framework.Equal(that1.Framework) {
2383 return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework)
2384 }
2385 if this.Failover != nil && that1.Failover != nil {
2386 if *this.Failover != *that1.Failover {
2387 return fmt.Errorf("Failover this(%v) Not Equal that(%v)", *this.Failover, *that1.Failover)
2388 }
2389 } else if this.Failover != nil {
2390 return fmt.Errorf("this.Failover == nil && that.Failover != nil")
2391 } else if that1.Failover != nil {
2392 return fmt.Errorf("Failover this(%v) Not Equal that(%v)", this.Failover, that1.Failover)
2393 }
2394 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2395 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2396 }
2397 return nil
2398 }
2399 func (this *ReregisterFrameworkMessage) Equal(that interface{}) bool {
2400 if that == nil {
2401 if this == nil {
2402 return true
2403 }
2404 return false
2405 }
2406
2407 that1, ok := that.(*ReregisterFrameworkMessage)
2408 if !ok {
2409 return false
2410 }
2411 if that1 == nil {
2412 if this == nil {
2413 return true
2414 }
2415 return false
2416 } else if this == nil {
2417 return false
2418 }
2419 if !this.Framework.Equal(that1.Framework) {
2420 return false
2421 }
2422 if this.Failover != nil && that1.Failover != nil {
2423 if *this.Failover != *that1.Failover {
2424 return false
2425 }
2426 } else if this.Failover != nil {
2427 return false
2428 } else if that1.Failover != nil {
2429 return false
2430 }
2431 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2432 return false
2433 }
2434 return true
2435 }
2436 func (this *FrameworkRegisteredMessage) VerboseEqual(that interface{}) error {
2437 if that == nil {
2438 if this == nil {
2439 return nil
2440 }
2441 return fmt.Errorf("that == nil && this != nil")
2442 }
2443
2444 that1, ok := that.(*FrameworkRegisteredMessage)
2445 if !ok {
2446 return fmt.Errorf("that is not of type *FrameworkRegisteredMessage")
2447 }
2448 if that1 == nil {
2449 if this == nil {
2450 return nil
2451 }
2452 return fmt.Errorf("that is type *FrameworkRegisteredMessage but is nil && this != nil")
2453 } else if this == nil {
2454 return fmt.Errorf("that is type *FrameworkRegisteredMessagebut is not nil && this == nil")
2455 }
2456 if !this.FrameworkId.Equal(that1.FrameworkId) {
2457 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2458 }
2459 if !this.MasterInfo.Equal(that1.MasterInfo) {
2460 return fmt.Errorf("MasterInfo this(%v) Not Equal that(%v)", this.MasterInfo, that1.MasterInfo)
2461 }
2462 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2463 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2464 }
2465 return nil
2466 }
2467 func (this *FrameworkRegisteredMessage) Equal(that interface{}) bool {
2468 if that == nil {
2469 if this == nil {
2470 return true
2471 }
2472 return false
2473 }
2474
2475 that1, ok := that.(*FrameworkRegisteredMessage)
2476 if !ok {
2477 return false
2478 }
2479 if that1 == nil {
2480 if this == nil {
2481 return true
2482 }
2483 return false
2484 } else if this == nil {
2485 return false
2486 }
2487 if !this.FrameworkId.Equal(that1.FrameworkId) {
2488 return false
2489 }
2490 if !this.MasterInfo.Equal(that1.MasterInfo) {
2491 return false
2492 }
2493 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2494 return false
2495 }
2496 return true
2497 }
2498 func (this *FrameworkReregisteredMessage) VerboseEqual(that interface{}) error {
2499 if that == nil {
2500 if this == nil {
2501 return nil
2502 }
2503 return fmt.Errorf("that == nil && this != nil")
2504 }
2505
2506 that1, ok := that.(*FrameworkReregisteredMessage)
2507 if !ok {
2508 return fmt.Errorf("that is not of type *FrameworkReregisteredMessage")
2509 }
2510 if that1 == nil {
2511 if this == nil {
2512 return nil
2513 }
2514 return fmt.Errorf("that is type *FrameworkReregisteredMessage but is nil && this != nil")
2515 } else if this == nil {
2516 return fmt.Errorf("that is type *FrameworkReregisteredMessagebut is not nil && this == nil")
2517 }
2518 if !this.FrameworkId.Equal(that1.FrameworkId) {
2519 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2520 }
2521 if !this.MasterInfo.Equal(that1.MasterInfo) {
2522 return fmt.Errorf("MasterInfo this(%v) Not Equal that(%v)", this.MasterInfo, that1.MasterInfo)
2523 }
2524 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2525 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2526 }
2527 return nil
2528 }
2529 func (this *FrameworkReregisteredMessage) Equal(that interface{}) bool {
2530 if that == nil {
2531 if this == nil {
2532 return true
2533 }
2534 return false
2535 }
2536
2537 that1, ok := that.(*FrameworkReregisteredMessage)
2538 if !ok {
2539 return false
2540 }
2541 if that1 == nil {
2542 if this == nil {
2543 return true
2544 }
2545 return false
2546 } else if this == nil {
2547 return false
2548 }
2549 if !this.FrameworkId.Equal(that1.FrameworkId) {
2550 return false
2551 }
2552 if !this.MasterInfo.Equal(that1.MasterInfo) {
2553 return false
2554 }
2555 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2556 return false
2557 }
2558 return true
2559 }
2560 func (this *UnregisterFrameworkMessage) VerboseEqual(that interface{}) error {
2561 if that == nil {
2562 if this == nil {
2563 return nil
2564 }
2565 return fmt.Errorf("that == nil && this != nil")
2566 }
2567
2568 that1, ok := that.(*UnregisterFrameworkMessage)
2569 if !ok {
2570 return fmt.Errorf("that is not of type *UnregisterFrameworkMessage")
2571 }
2572 if that1 == nil {
2573 if this == nil {
2574 return nil
2575 }
2576 return fmt.Errorf("that is type *UnregisterFrameworkMessage but is nil && this != nil")
2577 } else if this == nil {
2578 return fmt.Errorf("that is type *UnregisterFrameworkMessagebut is not nil && this == nil")
2579 }
2580 if !this.FrameworkId.Equal(that1.FrameworkId) {
2581 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2582 }
2583 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2584 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2585 }
2586 return nil
2587 }
2588 func (this *UnregisterFrameworkMessage) Equal(that interface{}) bool {
2589 if that == nil {
2590 if this == nil {
2591 return true
2592 }
2593 return false
2594 }
2595
2596 that1, ok := that.(*UnregisterFrameworkMessage)
2597 if !ok {
2598 return false
2599 }
2600 if that1 == nil {
2601 if this == nil {
2602 return true
2603 }
2604 return false
2605 } else if this == nil {
2606 return false
2607 }
2608 if !this.FrameworkId.Equal(that1.FrameworkId) {
2609 return false
2610 }
2611 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2612 return false
2613 }
2614 return true
2615 }
2616 func (this *DeactivateFrameworkMessage) VerboseEqual(that interface{}) error {
2617 if that == nil {
2618 if this == nil {
2619 return nil
2620 }
2621 return fmt.Errorf("that == nil && this != nil")
2622 }
2623
2624 that1, ok := that.(*DeactivateFrameworkMessage)
2625 if !ok {
2626 return fmt.Errorf("that is not of type *DeactivateFrameworkMessage")
2627 }
2628 if that1 == nil {
2629 if this == nil {
2630 return nil
2631 }
2632 return fmt.Errorf("that is type *DeactivateFrameworkMessage but is nil && this != nil")
2633 } else if this == nil {
2634 return fmt.Errorf("that is type *DeactivateFrameworkMessagebut is not nil && this == nil")
2635 }
2636 if !this.FrameworkId.Equal(that1.FrameworkId) {
2637 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2638 }
2639 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2640 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2641 }
2642 return nil
2643 }
2644 func (this *DeactivateFrameworkMessage) Equal(that interface{}) bool {
2645 if that == nil {
2646 if this == nil {
2647 return true
2648 }
2649 return false
2650 }
2651
2652 that1, ok := that.(*DeactivateFrameworkMessage)
2653 if !ok {
2654 return false
2655 }
2656 if that1 == nil {
2657 if this == nil {
2658 return true
2659 }
2660 return false
2661 } else if this == nil {
2662 return false
2663 }
2664 if !this.FrameworkId.Equal(that1.FrameworkId) {
2665 return false
2666 }
2667 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2668 return false
2669 }
2670 return true
2671 }
2672 func (this *ResourceRequestMessage) VerboseEqual(that interface{}) error {
2673 if that == nil {
2674 if this == nil {
2675 return nil
2676 }
2677 return fmt.Errorf("that == nil && this != nil")
2678 }
2679
2680 that1, ok := that.(*ResourceRequestMessage)
2681 if !ok {
2682 return fmt.Errorf("that is not of type *ResourceRequestMessage")
2683 }
2684 if that1 == nil {
2685 if this == nil {
2686 return nil
2687 }
2688 return fmt.Errorf("that is type *ResourceRequestMessage but is nil && this != nil")
2689 } else if this == nil {
2690 return fmt.Errorf("that is type *ResourceRequestMessagebut is not nil && this == nil")
2691 }
2692 if !this.FrameworkId.Equal(that1.FrameworkId) {
2693 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2694 }
2695 if len(this.Requests) != len(that1.Requests) {
2696 return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests))
2697 }
2698 for i := range this.Requests {
2699 if !this.Requests[i].Equal(that1.Requests[i]) {
2700 return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i])
2701 }
2702 }
2703 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2704 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2705 }
2706 return nil
2707 }
2708 func (this *ResourceRequestMessage) Equal(that interface{}) bool {
2709 if that == nil {
2710 if this == nil {
2711 return true
2712 }
2713 return false
2714 }
2715
2716 that1, ok := that.(*ResourceRequestMessage)
2717 if !ok {
2718 return false
2719 }
2720 if that1 == nil {
2721 if this == nil {
2722 return true
2723 }
2724 return false
2725 } else if this == nil {
2726 return false
2727 }
2728 if !this.FrameworkId.Equal(that1.FrameworkId) {
2729 return false
2730 }
2731 if len(this.Requests) != len(that1.Requests) {
2732 return false
2733 }
2734 for i := range this.Requests {
2735 if !this.Requests[i].Equal(that1.Requests[i]) {
2736 return false
2737 }
2738 }
2739 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2740 return false
2741 }
2742 return true
2743 }
2744 func (this *ResourceOffersMessage) VerboseEqual(that interface{}) error {
2745 if that == nil {
2746 if this == nil {
2747 return nil
2748 }
2749 return fmt.Errorf("that == nil && this != nil")
2750 }
2751
2752 that1, ok := that.(*ResourceOffersMessage)
2753 if !ok {
2754 return fmt.Errorf("that is not of type *ResourceOffersMessage")
2755 }
2756 if that1 == nil {
2757 if this == nil {
2758 return nil
2759 }
2760 return fmt.Errorf("that is type *ResourceOffersMessage but is nil && this != nil")
2761 } else if this == nil {
2762 return fmt.Errorf("that is type *ResourceOffersMessagebut is not nil && this == nil")
2763 }
2764 if len(this.Offers) != len(that1.Offers) {
2765 return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers))
2766 }
2767 for i := range this.Offers {
2768 if !this.Offers[i].Equal(that1.Offers[i]) {
2769 return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i])
2770 }
2771 }
2772 if len(this.Pids) != len(that1.Pids) {
2773 return fmt.Errorf("Pids this(%v) Not Equal that(%v)", len(this.Pids), len(that1.Pids))
2774 }
2775 for i := range this.Pids {
2776 if this.Pids[i] != that1.Pids[i] {
2777 return fmt.Errorf("Pids this[%v](%v) Not Equal that[%v](%v)", i, this.Pids[i], i, that1.Pids[i])
2778 }
2779 }
2780 if len(this.InverseOffers) != len(that1.InverseOffers) {
2781 return fmt.Errorf("InverseOffers this(%v) Not Equal that(%v)", len(this.InverseOffers), len(that1.InverseOffers))
2782 }
2783 for i := range this.InverseOffers {
2784 if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
2785 return fmt.Errorf("InverseOffers this[%v](%v) Not Equal that[%v](%v)", i, this.InverseOffers[i], i, that1.InverseOffers[i])
2786 }
2787 }
2788 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2789 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2790 }
2791 return nil
2792 }
2793 func (this *ResourceOffersMessage) Equal(that interface{}) bool {
2794 if that == nil {
2795 if this == nil {
2796 return true
2797 }
2798 return false
2799 }
2800
2801 that1, ok := that.(*ResourceOffersMessage)
2802 if !ok {
2803 return false
2804 }
2805 if that1 == nil {
2806 if this == nil {
2807 return true
2808 }
2809 return false
2810 } else if this == nil {
2811 return false
2812 }
2813 if len(this.Offers) != len(that1.Offers) {
2814 return false
2815 }
2816 for i := range this.Offers {
2817 if !this.Offers[i].Equal(that1.Offers[i]) {
2818 return false
2819 }
2820 }
2821 if len(this.Pids) != len(that1.Pids) {
2822 return false
2823 }
2824 for i := range this.Pids {
2825 if this.Pids[i] != that1.Pids[i] {
2826 return false
2827 }
2828 }
2829 if len(this.InverseOffers) != len(that1.InverseOffers) {
2830 return false
2831 }
2832 for i := range this.InverseOffers {
2833 if !this.InverseOffers[i].Equal(that1.InverseOffers[i]) {
2834 return false
2835 }
2836 }
2837 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2838 return false
2839 }
2840 return true
2841 }
2842 func (this *LaunchTasksMessage) VerboseEqual(that interface{}) error {
2843 if that == nil {
2844 if this == nil {
2845 return nil
2846 }
2847 return fmt.Errorf("that == nil && this != nil")
2848 }
2849
2850 that1, ok := that.(*LaunchTasksMessage)
2851 if !ok {
2852 return fmt.Errorf("that is not of type *LaunchTasksMessage")
2853 }
2854 if that1 == nil {
2855 if this == nil {
2856 return nil
2857 }
2858 return fmt.Errorf("that is type *LaunchTasksMessage but is nil && this != nil")
2859 } else if this == nil {
2860 return fmt.Errorf("that is type *LaunchTasksMessagebut is not nil && this == nil")
2861 }
2862 if !this.FrameworkId.Equal(that1.FrameworkId) {
2863 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
2864 }
2865 if len(this.Tasks) != len(that1.Tasks) {
2866 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
2867 }
2868 for i := range this.Tasks {
2869 if !this.Tasks[i].Equal(that1.Tasks[i]) {
2870 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
2871 }
2872 }
2873 if !this.Filters.Equal(that1.Filters) {
2874 return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters)
2875 }
2876 if len(this.OfferIds) != len(that1.OfferIds) {
2877 return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds))
2878 }
2879 for i := range this.OfferIds {
2880 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
2881 return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i])
2882 }
2883 }
2884 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2885 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2886 }
2887 return nil
2888 }
2889 func (this *LaunchTasksMessage) Equal(that interface{}) bool {
2890 if that == nil {
2891 if this == nil {
2892 return true
2893 }
2894 return false
2895 }
2896
2897 that1, ok := that.(*LaunchTasksMessage)
2898 if !ok {
2899 return false
2900 }
2901 if that1 == nil {
2902 if this == nil {
2903 return true
2904 }
2905 return false
2906 } else if this == nil {
2907 return false
2908 }
2909 if !this.FrameworkId.Equal(that1.FrameworkId) {
2910 return false
2911 }
2912 if len(this.Tasks) != len(that1.Tasks) {
2913 return false
2914 }
2915 for i := range this.Tasks {
2916 if !this.Tasks[i].Equal(that1.Tasks[i]) {
2917 return false
2918 }
2919 }
2920 if !this.Filters.Equal(that1.Filters) {
2921 return false
2922 }
2923 if len(this.OfferIds) != len(that1.OfferIds) {
2924 return false
2925 }
2926 for i := range this.OfferIds {
2927 if !this.OfferIds[i].Equal(that1.OfferIds[i]) {
2928 return false
2929 }
2930 }
2931 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2932 return false
2933 }
2934 return true
2935 }
2936 func (this *RescindResourceOfferMessage) VerboseEqual(that interface{}) error {
2937 if that == nil {
2938 if this == nil {
2939 return nil
2940 }
2941 return fmt.Errorf("that == nil && this != nil")
2942 }
2943
2944 that1, ok := that.(*RescindResourceOfferMessage)
2945 if !ok {
2946 return fmt.Errorf("that is not of type *RescindResourceOfferMessage")
2947 }
2948 if that1 == nil {
2949 if this == nil {
2950 return nil
2951 }
2952 return fmt.Errorf("that is type *RescindResourceOfferMessage but is nil && this != nil")
2953 } else if this == nil {
2954 return fmt.Errorf("that is type *RescindResourceOfferMessagebut is not nil && this == nil")
2955 }
2956 if !this.OfferId.Equal(that1.OfferId) {
2957 return fmt.Errorf("OfferId this(%v) Not Equal that(%v)", this.OfferId, that1.OfferId)
2958 }
2959 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2960 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
2961 }
2962 return nil
2963 }
2964 func (this *RescindResourceOfferMessage) Equal(that interface{}) bool {
2965 if that == nil {
2966 if this == nil {
2967 return true
2968 }
2969 return false
2970 }
2971
2972 that1, ok := that.(*RescindResourceOfferMessage)
2973 if !ok {
2974 return false
2975 }
2976 if that1 == nil {
2977 if this == nil {
2978 return true
2979 }
2980 return false
2981 } else if this == nil {
2982 return false
2983 }
2984 if !this.OfferId.Equal(that1.OfferId) {
2985 return false
2986 }
2987 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
2988 return false
2989 }
2990 return true
2991 }
2992 func (this *ReviveOffersMessage) VerboseEqual(that interface{}) error {
2993 if that == nil {
2994 if this == nil {
2995 return nil
2996 }
2997 return fmt.Errorf("that == nil && this != nil")
2998 }
2999
3000 that1, ok := that.(*ReviveOffersMessage)
3001 if !ok {
3002 return fmt.Errorf("that is not of type *ReviveOffersMessage")
3003 }
3004 if that1 == nil {
3005 if this == nil {
3006 return nil
3007 }
3008 return fmt.Errorf("that is type *ReviveOffersMessage but is nil && this != nil")
3009 } else if this == nil {
3010 return fmt.Errorf("that is type *ReviveOffersMessagebut is not nil && this == nil")
3011 }
3012 if !this.FrameworkId.Equal(that1.FrameworkId) {
3013 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
3014 }
3015 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3016 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3017 }
3018 return nil
3019 }
3020 func (this *ReviveOffersMessage) Equal(that interface{}) bool {
3021 if that == nil {
3022 if this == nil {
3023 return true
3024 }
3025 return false
3026 }
3027
3028 that1, ok := that.(*ReviveOffersMessage)
3029 if !ok {
3030 return false
3031 }
3032 if that1 == nil {
3033 if this == nil {
3034 return true
3035 }
3036 return false
3037 } else if this == nil {
3038 return false
3039 }
3040 if !this.FrameworkId.Equal(that1.FrameworkId) {
3041 return false
3042 }
3043 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3044 return false
3045 }
3046 return true
3047 }
3048 func (this *RunTaskMessage) VerboseEqual(that interface{}) error {
3049 if that == nil {
3050 if this == nil {
3051 return nil
3052 }
3053 return fmt.Errorf("that == nil && this != nil")
3054 }
3055
3056 that1, ok := that.(*RunTaskMessage)
3057 if !ok {
3058 return fmt.Errorf("that is not of type *RunTaskMessage")
3059 }
3060 if that1 == nil {
3061 if this == nil {
3062 return nil
3063 }
3064 return fmt.Errorf("that is type *RunTaskMessage but is nil && this != nil")
3065 } else if this == nil {
3066 return fmt.Errorf("that is type *RunTaskMessagebut is not nil && this == nil")
3067 }
3068 if !this.FrameworkId.Equal(that1.FrameworkId) {
3069 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
3070 }
3071 if !this.Framework.Equal(that1.Framework) {
3072 return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework)
3073 }
3074 if !this.Task.Equal(that1.Task) {
3075 return fmt.Errorf("Task this(%v) Not Equal that(%v)", this.Task, that1.Task)
3076 }
3077 if this.Pid != nil && that1.Pid != nil {
3078 if *this.Pid != *that1.Pid {
3079 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid)
3080 }
3081 } else if this.Pid != nil {
3082 return fmt.Errorf("this.Pid == nil && that.Pid != nil")
3083 } else if that1.Pid != nil {
3084 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid)
3085 }
3086 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3087 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3088 }
3089 return nil
3090 }
3091 func (this *RunTaskMessage) Equal(that interface{}) bool {
3092 if that == nil {
3093 if this == nil {
3094 return true
3095 }
3096 return false
3097 }
3098
3099 that1, ok := that.(*RunTaskMessage)
3100 if !ok {
3101 return false
3102 }
3103 if that1 == nil {
3104 if this == nil {
3105 return true
3106 }
3107 return false
3108 } else if this == nil {
3109 return false
3110 }
3111 if !this.FrameworkId.Equal(that1.FrameworkId) {
3112 return false
3113 }
3114 if !this.Framework.Equal(that1.Framework) {
3115 return false
3116 }
3117 if !this.Task.Equal(that1.Task) {
3118 return false
3119 }
3120 if this.Pid != nil && that1.Pid != nil {
3121 if *this.Pid != *that1.Pid {
3122 return false
3123 }
3124 } else if this.Pid != nil {
3125 return false
3126 } else if that1.Pid != nil {
3127 return false
3128 }
3129 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3130 return false
3131 }
3132 return true
3133 }
3134 func (this *KillTaskMessage) VerboseEqual(that interface{}) error {
3135 if that == nil {
3136 if this == nil {
3137 return nil
3138 }
3139 return fmt.Errorf("that == nil && this != nil")
3140 }
3141
3142 that1, ok := that.(*KillTaskMessage)
3143 if !ok {
3144 return fmt.Errorf("that is not of type *KillTaskMessage")
3145 }
3146 if that1 == nil {
3147 if this == nil {
3148 return nil
3149 }
3150 return fmt.Errorf("that is type *KillTaskMessage but is nil && this != nil")
3151 } else if this == nil {
3152 return fmt.Errorf("that is type *KillTaskMessagebut is not nil && this == nil")
3153 }
3154 if !this.FrameworkId.Equal(that1.FrameworkId) {
3155 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
3156 }
3157 if !this.TaskId.Equal(that1.TaskId) {
3158 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
3159 }
3160 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3161 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3162 }
3163 return nil
3164 }
3165 func (this *KillTaskMessage) Equal(that interface{}) bool {
3166 if that == nil {
3167 if this == nil {
3168 return true
3169 }
3170 return false
3171 }
3172
3173 that1, ok := that.(*KillTaskMessage)
3174 if !ok {
3175 return false
3176 }
3177 if that1 == nil {
3178 if this == nil {
3179 return true
3180 }
3181 return false
3182 } else if this == nil {
3183 return false
3184 }
3185 if !this.FrameworkId.Equal(that1.FrameworkId) {
3186 return false
3187 }
3188 if !this.TaskId.Equal(that1.TaskId) {
3189 return false
3190 }
3191 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3192 return false
3193 }
3194 return true
3195 }
3196 func (this *StatusUpdateMessage) VerboseEqual(that interface{}) error {
3197 if that == nil {
3198 if this == nil {
3199 return nil
3200 }
3201 return fmt.Errorf("that == nil && this != nil")
3202 }
3203
3204 that1, ok := that.(*StatusUpdateMessage)
3205 if !ok {
3206 return fmt.Errorf("that is not of type *StatusUpdateMessage")
3207 }
3208 if that1 == nil {
3209 if this == nil {
3210 return nil
3211 }
3212 return fmt.Errorf("that is type *StatusUpdateMessage but is nil && this != nil")
3213 } else if this == nil {
3214 return fmt.Errorf("that is type *StatusUpdateMessagebut is not nil && this == nil")
3215 }
3216 if !this.Update.Equal(that1.Update) {
3217 return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
3218 }
3219 if this.Pid != nil && that1.Pid != nil {
3220 if *this.Pid != *that1.Pid {
3221 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid)
3222 }
3223 } else if this.Pid != nil {
3224 return fmt.Errorf("this.Pid == nil && that.Pid != nil")
3225 } else if that1.Pid != nil {
3226 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid)
3227 }
3228 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3229 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3230 }
3231 return nil
3232 }
3233 func (this *StatusUpdateMessage) Equal(that interface{}) bool {
3234 if that == nil {
3235 if this == nil {
3236 return true
3237 }
3238 return false
3239 }
3240
3241 that1, ok := that.(*StatusUpdateMessage)
3242 if !ok {
3243 return false
3244 }
3245 if that1 == nil {
3246 if this == nil {
3247 return true
3248 }
3249 return false
3250 } else if this == nil {
3251 return false
3252 }
3253 if !this.Update.Equal(that1.Update) {
3254 return false
3255 }
3256 if this.Pid != nil && that1.Pid != nil {
3257 if *this.Pid != *that1.Pid {
3258 return false
3259 }
3260 } else if this.Pid != nil {
3261 return false
3262 } else if that1.Pid != nil {
3263 return false
3264 }
3265 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3266 return false
3267 }
3268 return true
3269 }
3270 func (this *StatusUpdateAcknowledgementMessage) VerboseEqual(that interface{}) error {
3271 if that == nil {
3272 if this == nil {
3273 return nil
3274 }
3275 return fmt.Errorf("that == nil && this != nil")
3276 }
3277
3278 that1, ok := that.(*StatusUpdateAcknowledgementMessage)
3279 if !ok {
3280 return fmt.Errorf("that is not of type *StatusUpdateAcknowledgementMessage")
3281 }
3282 if that1 == nil {
3283 if this == nil {
3284 return nil
3285 }
3286 return fmt.Errorf("that is type *StatusUpdateAcknowledgementMessage but is nil && this != nil")
3287 } else if this == nil {
3288 return fmt.Errorf("that is type *StatusUpdateAcknowledgementMessagebut is not nil && this == nil")
3289 }
3290 if !this.SlaveId.Equal(that1.SlaveId) {
3291 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
3292 }
3293 if !this.FrameworkId.Equal(that1.FrameworkId) {
3294 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
3295 }
3296 if !this.TaskId.Equal(that1.TaskId) {
3297 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
3298 }
3299 if !bytes.Equal(this.Uuid, that1.Uuid) {
3300 return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid)
3301 }
3302 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3303 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3304 }
3305 return nil
3306 }
3307 func (this *StatusUpdateAcknowledgementMessage) Equal(that interface{}) bool {
3308 if that == nil {
3309 if this == nil {
3310 return true
3311 }
3312 return false
3313 }
3314
3315 that1, ok := that.(*StatusUpdateAcknowledgementMessage)
3316 if !ok {
3317 return false
3318 }
3319 if that1 == nil {
3320 if this == nil {
3321 return true
3322 }
3323 return false
3324 } else if this == nil {
3325 return false
3326 }
3327 if !this.SlaveId.Equal(that1.SlaveId) {
3328 return false
3329 }
3330 if !this.FrameworkId.Equal(that1.FrameworkId) {
3331 return false
3332 }
3333 if !this.TaskId.Equal(that1.TaskId) {
3334 return false
3335 }
3336 if !bytes.Equal(this.Uuid, that1.Uuid) {
3337 return false
3338 }
3339 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3340 return false
3341 }
3342 return true
3343 }
3344 func (this *LostSlaveMessage) VerboseEqual(that interface{}) error {
3345 if that == nil {
3346 if this == nil {
3347 return nil
3348 }
3349 return fmt.Errorf("that == nil && this != nil")
3350 }
3351
3352 that1, ok := that.(*LostSlaveMessage)
3353 if !ok {
3354 return fmt.Errorf("that is not of type *LostSlaveMessage")
3355 }
3356 if that1 == nil {
3357 if this == nil {
3358 return nil
3359 }
3360 return fmt.Errorf("that is type *LostSlaveMessage but is nil && this != nil")
3361 } else if this == nil {
3362 return fmt.Errorf("that is type *LostSlaveMessagebut is not nil && this == nil")
3363 }
3364 if !this.SlaveId.Equal(that1.SlaveId) {
3365 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
3366 }
3367 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3368 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3369 }
3370 return nil
3371 }
3372 func (this *LostSlaveMessage) Equal(that interface{}) bool {
3373 if that == nil {
3374 if this == nil {
3375 return true
3376 }
3377 return false
3378 }
3379
3380 that1, ok := that.(*LostSlaveMessage)
3381 if !ok {
3382 return false
3383 }
3384 if that1 == nil {
3385 if this == nil {
3386 return true
3387 }
3388 return false
3389 } else if this == nil {
3390 return false
3391 }
3392 if !this.SlaveId.Equal(that1.SlaveId) {
3393 return false
3394 }
3395 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3396 return false
3397 }
3398 return true
3399 }
3400 func (this *ReconcileTasksMessage) VerboseEqual(that interface{}) error {
3401 if that == nil {
3402 if this == nil {
3403 return nil
3404 }
3405 return fmt.Errorf("that == nil && this != nil")
3406 }
3407
3408 that1, ok := that.(*ReconcileTasksMessage)
3409 if !ok {
3410 return fmt.Errorf("that is not of type *ReconcileTasksMessage")
3411 }
3412 if that1 == nil {
3413 if this == nil {
3414 return nil
3415 }
3416 return fmt.Errorf("that is type *ReconcileTasksMessage but is nil && this != nil")
3417 } else if this == nil {
3418 return fmt.Errorf("that is type *ReconcileTasksMessagebut is not nil && this == nil")
3419 }
3420 if !this.FrameworkId.Equal(that1.FrameworkId) {
3421 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
3422 }
3423 if len(this.Statuses) != len(that1.Statuses) {
3424 return fmt.Errorf("Statuses this(%v) Not Equal that(%v)", len(this.Statuses), len(that1.Statuses))
3425 }
3426 for i := range this.Statuses {
3427 if !this.Statuses[i].Equal(that1.Statuses[i]) {
3428 return fmt.Errorf("Statuses this[%v](%v) Not Equal that[%v](%v)", i, this.Statuses[i], i, that1.Statuses[i])
3429 }
3430 }
3431 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3432 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3433 }
3434 return nil
3435 }
3436 func (this *ReconcileTasksMessage) Equal(that interface{}) bool {
3437 if that == nil {
3438 if this == nil {
3439 return true
3440 }
3441 return false
3442 }
3443
3444 that1, ok := that.(*ReconcileTasksMessage)
3445 if !ok {
3446 return false
3447 }
3448 if that1 == nil {
3449 if this == nil {
3450 return true
3451 }
3452 return false
3453 } else if this == nil {
3454 return false
3455 }
3456 if !this.FrameworkId.Equal(that1.FrameworkId) {
3457 return false
3458 }
3459 if len(this.Statuses) != len(that1.Statuses) {
3460 return false
3461 }
3462 for i := range this.Statuses {
3463 if !this.Statuses[i].Equal(that1.Statuses[i]) {
3464 return false
3465 }
3466 }
3467 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3468 return false
3469 }
3470 return true
3471 }
3472 func (this *FrameworkErrorMessage) VerboseEqual(that interface{}) error {
3473 if that == nil {
3474 if this == nil {
3475 return nil
3476 }
3477 return fmt.Errorf("that == nil && this != nil")
3478 }
3479
3480 that1, ok := that.(*FrameworkErrorMessage)
3481 if !ok {
3482 return fmt.Errorf("that is not of type *FrameworkErrorMessage")
3483 }
3484 if that1 == nil {
3485 if this == nil {
3486 return nil
3487 }
3488 return fmt.Errorf("that is type *FrameworkErrorMessage but is nil && this != nil")
3489 } else if this == nil {
3490 return fmt.Errorf("that is type *FrameworkErrorMessagebut is not nil && this == nil")
3491 }
3492 if this.Message != nil && that1.Message != nil {
3493 if *this.Message != *that1.Message {
3494 return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message)
3495 }
3496 } else if this.Message != nil {
3497 return fmt.Errorf("this.Message == nil && that.Message != nil")
3498 } else if that1.Message != nil {
3499 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
3500 }
3501 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3502 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3503 }
3504 return nil
3505 }
3506 func (this *FrameworkErrorMessage) Equal(that interface{}) bool {
3507 if that == nil {
3508 if this == nil {
3509 return true
3510 }
3511 return false
3512 }
3513
3514 that1, ok := that.(*FrameworkErrorMessage)
3515 if !ok {
3516 return false
3517 }
3518 if that1 == nil {
3519 if this == nil {
3520 return true
3521 }
3522 return false
3523 } else if this == nil {
3524 return false
3525 }
3526 if this.Message != nil && that1.Message != nil {
3527 if *this.Message != *that1.Message {
3528 return false
3529 }
3530 } else if this.Message != nil {
3531 return false
3532 } else if that1.Message != nil {
3533 return false
3534 }
3535 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3536 return false
3537 }
3538 return true
3539 }
3540 func (this *RegisterSlaveMessage) VerboseEqual(that interface{}) error {
3541 if that == nil {
3542 if this == nil {
3543 return nil
3544 }
3545 return fmt.Errorf("that == nil && this != nil")
3546 }
3547
3548 that1, ok := that.(*RegisterSlaveMessage)
3549 if !ok {
3550 return fmt.Errorf("that is not of type *RegisterSlaveMessage")
3551 }
3552 if that1 == nil {
3553 if this == nil {
3554 return nil
3555 }
3556 return fmt.Errorf("that is type *RegisterSlaveMessage but is nil && this != nil")
3557 } else if this == nil {
3558 return fmt.Errorf("that is type *RegisterSlaveMessagebut is not nil && this == nil")
3559 }
3560 if !this.Slave.Equal(that1.Slave) {
3561 return fmt.Errorf("Slave this(%v) Not Equal that(%v)", this.Slave, that1.Slave)
3562 }
3563 if len(this.CheckpointedResources) != len(that1.CheckpointedResources) {
3564 return fmt.Errorf("CheckpointedResources this(%v) Not Equal that(%v)", len(this.CheckpointedResources), len(that1.CheckpointedResources))
3565 }
3566 for i := range this.CheckpointedResources {
3567 if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) {
3568 return fmt.Errorf("CheckpointedResources this[%v](%v) Not Equal that[%v](%v)", i, this.CheckpointedResources[i], i, that1.CheckpointedResources[i])
3569 }
3570 }
3571 if this.Version != nil && that1.Version != nil {
3572 if *this.Version != *that1.Version {
3573 return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version)
3574 }
3575 } else if this.Version != nil {
3576 return fmt.Errorf("this.Version == nil && that.Version != nil")
3577 } else if that1.Version != nil {
3578 return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version)
3579 }
3580 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3581 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3582 }
3583 return nil
3584 }
3585 func (this *RegisterSlaveMessage) Equal(that interface{}) bool {
3586 if that == nil {
3587 if this == nil {
3588 return true
3589 }
3590 return false
3591 }
3592
3593 that1, ok := that.(*RegisterSlaveMessage)
3594 if !ok {
3595 return false
3596 }
3597 if that1 == nil {
3598 if this == nil {
3599 return true
3600 }
3601 return false
3602 } else if this == nil {
3603 return false
3604 }
3605 if !this.Slave.Equal(that1.Slave) {
3606 return false
3607 }
3608 if len(this.CheckpointedResources) != len(that1.CheckpointedResources) {
3609 return false
3610 }
3611 for i := range this.CheckpointedResources {
3612 if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) {
3613 return false
3614 }
3615 }
3616 if this.Version != nil && that1.Version != nil {
3617 if *this.Version != *that1.Version {
3618 return false
3619 }
3620 } else if this.Version != nil {
3621 return false
3622 } else if that1.Version != nil {
3623 return false
3624 }
3625 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3626 return false
3627 }
3628 return true
3629 }
3630 func (this *ReregisterSlaveMessage) VerboseEqual(that interface{}) error {
3631 if that == nil {
3632 if this == nil {
3633 return nil
3634 }
3635 return fmt.Errorf("that == nil && this != nil")
3636 }
3637
3638 that1, ok := that.(*ReregisterSlaveMessage)
3639 if !ok {
3640 return fmt.Errorf("that is not of type *ReregisterSlaveMessage")
3641 }
3642 if that1 == nil {
3643 if this == nil {
3644 return nil
3645 }
3646 return fmt.Errorf("that is type *ReregisterSlaveMessage but is nil && this != nil")
3647 } else if this == nil {
3648 return fmt.Errorf("that is type *ReregisterSlaveMessagebut is not nil && this == nil")
3649 }
3650 if !this.Slave.Equal(that1.Slave) {
3651 return fmt.Errorf("Slave this(%v) Not Equal that(%v)", this.Slave, that1.Slave)
3652 }
3653 if len(this.CheckpointedResources) != len(that1.CheckpointedResources) {
3654 return fmt.Errorf("CheckpointedResources this(%v) Not Equal that(%v)", len(this.CheckpointedResources), len(that1.CheckpointedResources))
3655 }
3656 for i := range this.CheckpointedResources {
3657 if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) {
3658 return fmt.Errorf("CheckpointedResources this[%v](%v) Not Equal that[%v](%v)", i, this.CheckpointedResources[i], i, that1.CheckpointedResources[i])
3659 }
3660 }
3661 if len(this.ExecutorInfos) != len(that1.ExecutorInfos) {
3662 return fmt.Errorf("ExecutorInfos this(%v) Not Equal that(%v)", len(this.ExecutorInfos), len(that1.ExecutorInfos))
3663 }
3664 for i := range this.ExecutorInfos {
3665 if !this.ExecutorInfos[i].Equal(that1.ExecutorInfos[i]) {
3666 return fmt.Errorf("ExecutorInfos this[%v](%v) Not Equal that[%v](%v)", i, this.ExecutorInfos[i], i, that1.ExecutorInfos[i])
3667 }
3668 }
3669 if len(this.Tasks) != len(that1.Tasks) {
3670 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
3671 }
3672 for i := range this.Tasks {
3673 if !this.Tasks[i].Equal(that1.Tasks[i]) {
3674 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
3675 }
3676 }
3677 if len(this.CompletedFrameworks) != len(that1.CompletedFrameworks) {
3678 return fmt.Errorf("CompletedFrameworks this(%v) Not Equal that(%v)", len(this.CompletedFrameworks), len(that1.CompletedFrameworks))
3679 }
3680 for i := range this.CompletedFrameworks {
3681 if !this.CompletedFrameworks[i].Equal(that1.CompletedFrameworks[i]) {
3682 return fmt.Errorf("CompletedFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.CompletedFrameworks[i], i, that1.CompletedFrameworks[i])
3683 }
3684 }
3685 if this.Version != nil && that1.Version != nil {
3686 if *this.Version != *that1.Version {
3687 return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version)
3688 }
3689 } else if this.Version != nil {
3690 return fmt.Errorf("this.Version == nil && that.Version != nil")
3691 } else if that1.Version != nil {
3692 return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version)
3693 }
3694 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3695 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3696 }
3697 return nil
3698 }
3699 func (this *ReregisterSlaveMessage) Equal(that interface{}) bool {
3700 if that == nil {
3701 if this == nil {
3702 return true
3703 }
3704 return false
3705 }
3706
3707 that1, ok := that.(*ReregisterSlaveMessage)
3708 if !ok {
3709 return false
3710 }
3711 if that1 == nil {
3712 if this == nil {
3713 return true
3714 }
3715 return false
3716 } else if this == nil {
3717 return false
3718 }
3719 if !this.Slave.Equal(that1.Slave) {
3720 return false
3721 }
3722 if len(this.CheckpointedResources) != len(that1.CheckpointedResources) {
3723 return false
3724 }
3725 for i := range this.CheckpointedResources {
3726 if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) {
3727 return false
3728 }
3729 }
3730 if len(this.ExecutorInfos) != len(that1.ExecutorInfos) {
3731 return false
3732 }
3733 for i := range this.ExecutorInfos {
3734 if !this.ExecutorInfos[i].Equal(that1.ExecutorInfos[i]) {
3735 return false
3736 }
3737 }
3738 if len(this.Tasks) != len(that1.Tasks) {
3739 return false
3740 }
3741 for i := range this.Tasks {
3742 if !this.Tasks[i].Equal(that1.Tasks[i]) {
3743 return false
3744 }
3745 }
3746 if len(this.CompletedFrameworks) != len(that1.CompletedFrameworks) {
3747 return false
3748 }
3749 for i := range this.CompletedFrameworks {
3750 if !this.CompletedFrameworks[i].Equal(that1.CompletedFrameworks[i]) {
3751 return false
3752 }
3753 }
3754 if this.Version != nil && that1.Version != nil {
3755 if *this.Version != *that1.Version {
3756 return false
3757 }
3758 } else if this.Version != nil {
3759 return false
3760 } else if that1.Version != nil {
3761 return false
3762 }
3763 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3764 return false
3765 }
3766 return true
3767 }
3768 func (this *SlaveRegisteredMessage) VerboseEqual(that interface{}) error {
3769 if that == nil {
3770 if this == nil {
3771 return nil
3772 }
3773 return fmt.Errorf("that == nil && this != nil")
3774 }
3775
3776 that1, ok := that.(*SlaveRegisteredMessage)
3777 if !ok {
3778 return fmt.Errorf("that is not of type *SlaveRegisteredMessage")
3779 }
3780 if that1 == nil {
3781 if this == nil {
3782 return nil
3783 }
3784 return fmt.Errorf("that is type *SlaveRegisteredMessage but is nil && this != nil")
3785 } else if this == nil {
3786 return fmt.Errorf("that is type *SlaveRegisteredMessagebut is not nil && this == nil")
3787 }
3788 if !this.SlaveId.Equal(that1.SlaveId) {
3789 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
3790 }
3791 if !this.Connection.Equal(that1.Connection) {
3792 return fmt.Errorf("Connection this(%v) Not Equal that(%v)", this.Connection, that1.Connection)
3793 }
3794 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3795 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3796 }
3797 return nil
3798 }
3799 func (this *SlaveRegisteredMessage) Equal(that interface{}) bool {
3800 if that == nil {
3801 if this == nil {
3802 return true
3803 }
3804 return false
3805 }
3806
3807 that1, ok := that.(*SlaveRegisteredMessage)
3808 if !ok {
3809 return false
3810 }
3811 if that1 == nil {
3812 if this == nil {
3813 return true
3814 }
3815 return false
3816 } else if this == nil {
3817 return false
3818 }
3819 if !this.SlaveId.Equal(that1.SlaveId) {
3820 return false
3821 }
3822 if !this.Connection.Equal(that1.Connection) {
3823 return false
3824 }
3825 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3826 return false
3827 }
3828 return true
3829 }
3830 func (this *SlaveReregisteredMessage) VerboseEqual(that interface{}) error {
3831 if that == nil {
3832 if this == nil {
3833 return nil
3834 }
3835 return fmt.Errorf("that == nil && this != nil")
3836 }
3837
3838 that1, ok := that.(*SlaveReregisteredMessage)
3839 if !ok {
3840 return fmt.Errorf("that is not of type *SlaveReregisteredMessage")
3841 }
3842 if that1 == nil {
3843 if this == nil {
3844 return nil
3845 }
3846 return fmt.Errorf("that is type *SlaveReregisteredMessage but is nil && this != nil")
3847 } else if this == nil {
3848 return fmt.Errorf("that is type *SlaveReregisteredMessagebut is not nil && this == nil")
3849 }
3850 if !this.SlaveId.Equal(that1.SlaveId) {
3851 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
3852 }
3853 if len(this.Reconciliations) != len(that1.Reconciliations) {
3854 return fmt.Errorf("Reconciliations this(%v) Not Equal that(%v)", len(this.Reconciliations), len(that1.Reconciliations))
3855 }
3856 for i := range this.Reconciliations {
3857 if !this.Reconciliations[i].Equal(that1.Reconciliations[i]) {
3858 return fmt.Errorf("Reconciliations this[%v](%v) Not Equal that[%v](%v)", i, this.Reconciliations[i], i, that1.Reconciliations[i])
3859 }
3860 }
3861 if !this.Connection.Equal(that1.Connection) {
3862 return fmt.Errorf("Connection this(%v) Not Equal that(%v)", this.Connection, that1.Connection)
3863 }
3864 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3865 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3866 }
3867 return nil
3868 }
3869 func (this *SlaveReregisteredMessage) Equal(that interface{}) bool {
3870 if that == nil {
3871 if this == nil {
3872 return true
3873 }
3874 return false
3875 }
3876
3877 that1, ok := that.(*SlaveReregisteredMessage)
3878 if !ok {
3879 return false
3880 }
3881 if that1 == nil {
3882 if this == nil {
3883 return true
3884 }
3885 return false
3886 } else if this == nil {
3887 return false
3888 }
3889 if !this.SlaveId.Equal(that1.SlaveId) {
3890 return false
3891 }
3892 if len(this.Reconciliations) != len(that1.Reconciliations) {
3893 return false
3894 }
3895 for i := range this.Reconciliations {
3896 if !this.Reconciliations[i].Equal(that1.Reconciliations[i]) {
3897 return false
3898 }
3899 }
3900 if !this.Connection.Equal(that1.Connection) {
3901 return false
3902 }
3903 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3904 return false
3905 }
3906 return true
3907 }
3908 func (this *UnregisterSlaveMessage) VerboseEqual(that interface{}) error {
3909 if that == nil {
3910 if this == nil {
3911 return nil
3912 }
3913 return fmt.Errorf("that == nil && this != nil")
3914 }
3915
3916 that1, ok := that.(*UnregisterSlaveMessage)
3917 if !ok {
3918 return fmt.Errorf("that is not of type *UnregisterSlaveMessage")
3919 }
3920 if that1 == nil {
3921 if this == nil {
3922 return nil
3923 }
3924 return fmt.Errorf("that is type *UnregisterSlaveMessage but is nil && this != nil")
3925 } else if this == nil {
3926 return fmt.Errorf("that is type *UnregisterSlaveMessagebut is not nil && this == nil")
3927 }
3928 if !this.SlaveId.Equal(that1.SlaveId) {
3929 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
3930 }
3931 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3932 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3933 }
3934 return nil
3935 }
3936 func (this *UnregisterSlaveMessage) Equal(that interface{}) bool {
3937 if that == nil {
3938 if this == nil {
3939 return true
3940 }
3941 return false
3942 }
3943
3944 that1, ok := that.(*UnregisterSlaveMessage)
3945 if !ok {
3946 return false
3947 }
3948 if that1 == nil {
3949 if this == nil {
3950 return true
3951 }
3952 return false
3953 } else if this == nil {
3954 return false
3955 }
3956 if !this.SlaveId.Equal(that1.SlaveId) {
3957 return false
3958 }
3959 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3960 return false
3961 }
3962 return true
3963 }
3964 func (this *MasterSlaveConnection) VerboseEqual(that interface{}) error {
3965 if that == nil {
3966 if this == nil {
3967 return nil
3968 }
3969 return fmt.Errorf("that == nil && this != nil")
3970 }
3971
3972 that1, ok := that.(*MasterSlaveConnection)
3973 if !ok {
3974 return fmt.Errorf("that is not of type *MasterSlaveConnection")
3975 }
3976 if that1 == nil {
3977 if this == nil {
3978 return nil
3979 }
3980 return fmt.Errorf("that is type *MasterSlaveConnection but is nil && this != nil")
3981 } else if this == nil {
3982 return fmt.Errorf("that is type *MasterSlaveConnectionbut is not nil && this == nil")
3983 }
3984 if this.TotalPingTimeoutSeconds != nil && that1.TotalPingTimeoutSeconds != nil {
3985 if *this.TotalPingTimeoutSeconds != *that1.TotalPingTimeoutSeconds {
3986 return fmt.Errorf("TotalPingTimeoutSeconds this(%v) Not Equal that(%v)", *this.TotalPingTimeoutSeconds, *that1.TotalPingTimeoutSeconds)
3987 }
3988 } else if this.TotalPingTimeoutSeconds != nil {
3989 return fmt.Errorf("this.TotalPingTimeoutSeconds == nil && that.TotalPingTimeoutSeconds != nil")
3990 } else if that1.TotalPingTimeoutSeconds != nil {
3991 return fmt.Errorf("TotalPingTimeoutSeconds this(%v) Not Equal that(%v)", this.TotalPingTimeoutSeconds, that1.TotalPingTimeoutSeconds)
3992 }
3993 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
3994 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
3995 }
3996 return nil
3997 }
3998 func (this *MasterSlaveConnection) Equal(that interface{}) bool {
3999 if that == nil {
4000 if this == nil {
4001 return true
4002 }
4003 return false
4004 }
4005
4006 that1, ok := that.(*MasterSlaveConnection)
4007 if !ok {
4008 return false
4009 }
4010 if that1 == nil {
4011 if this == nil {
4012 return true
4013 }
4014 return false
4015 } else if this == nil {
4016 return false
4017 }
4018 if this.TotalPingTimeoutSeconds != nil && that1.TotalPingTimeoutSeconds != nil {
4019 if *this.TotalPingTimeoutSeconds != *that1.TotalPingTimeoutSeconds {
4020 return false
4021 }
4022 } else if this.TotalPingTimeoutSeconds != nil {
4023 return false
4024 } else if that1.TotalPingTimeoutSeconds != nil {
4025 return false
4026 }
4027 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4028 return false
4029 }
4030 return true
4031 }
4032 func (this *PingSlaveMessage) VerboseEqual(that interface{}) error {
4033 if that == nil {
4034 if this == nil {
4035 return nil
4036 }
4037 return fmt.Errorf("that == nil && this != nil")
4038 }
4039
4040 that1, ok := that.(*PingSlaveMessage)
4041 if !ok {
4042 return fmt.Errorf("that is not of type *PingSlaveMessage")
4043 }
4044 if that1 == nil {
4045 if this == nil {
4046 return nil
4047 }
4048 return fmt.Errorf("that is type *PingSlaveMessage but is nil && this != nil")
4049 } else if this == nil {
4050 return fmt.Errorf("that is type *PingSlaveMessagebut is not nil && this == nil")
4051 }
4052 if this.Connected != nil && that1.Connected != nil {
4053 if *this.Connected != *that1.Connected {
4054 return fmt.Errorf("Connected this(%v) Not Equal that(%v)", *this.Connected, *that1.Connected)
4055 }
4056 } else if this.Connected != nil {
4057 return fmt.Errorf("this.Connected == nil && that.Connected != nil")
4058 } else if that1.Connected != nil {
4059 return fmt.Errorf("Connected this(%v) Not Equal that(%v)", this.Connected, that1.Connected)
4060 }
4061 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4062 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4063 }
4064 return nil
4065 }
4066 func (this *PingSlaveMessage) Equal(that interface{}) bool {
4067 if that == nil {
4068 if this == nil {
4069 return true
4070 }
4071 return false
4072 }
4073
4074 that1, ok := that.(*PingSlaveMessage)
4075 if !ok {
4076 return false
4077 }
4078 if that1 == nil {
4079 if this == nil {
4080 return true
4081 }
4082 return false
4083 } else if this == nil {
4084 return false
4085 }
4086 if this.Connected != nil && that1.Connected != nil {
4087 if *this.Connected != *that1.Connected {
4088 return false
4089 }
4090 } else if this.Connected != nil {
4091 return false
4092 } else if that1.Connected != nil {
4093 return false
4094 }
4095 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4096 return false
4097 }
4098 return true
4099 }
4100 func (this *PongSlaveMessage) VerboseEqual(that interface{}) error {
4101 if that == nil {
4102 if this == nil {
4103 return nil
4104 }
4105 return fmt.Errorf("that == nil && this != nil")
4106 }
4107
4108 that1, ok := that.(*PongSlaveMessage)
4109 if !ok {
4110 return fmt.Errorf("that is not of type *PongSlaveMessage")
4111 }
4112 if that1 == nil {
4113 if this == nil {
4114 return nil
4115 }
4116 return fmt.Errorf("that is type *PongSlaveMessage but is nil && this != nil")
4117 } else if this == nil {
4118 return fmt.Errorf("that is type *PongSlaveMessagebut is not nil && this == nil")
4119 }
4120 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4121 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4122 }
4123 return nil
4124 }
4125 func (this *PongSlaveMessage) Equal(that interface{}) bool {
4126 if that == nil {
4127 if this == nil {
4128 return true
4129 }
4130 return false
4131 }
4132
4133 that1, ok := that.(*PongSlaveMessage)
4134 if !ok {
4135 return false
4136 }
4137 if that1 == nil {
4138 if this == nil {
4139 return true
4140 }
4141 return false
4142 } else if this == nil {
4143 return false
4144 }
4145 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4146 return false
4147 }
4148 return true
4149 }
4150 func (this *ShutdownFrameworkMessage) VerboseEqual(that interface{}) error {
4151 if that == nil {
4152 if this == nil {
4153 return nil
4154 }
4155 return fmt.Errorf("that == nil && this != nil")
4156 }
4157
4158 that1, ok := that.(*ShutdownFrameworkMessage)
4159 if !ok {
4160 return fmt.Errorf("that is not of type *ShutdownFrameworkMessage")
4161 }
4162 if that1 == nil {
4163 if this == nil {
4164 return nil
4165 }
4166 return fmt.Errorf("that is type *ShutdownFrameworkMessage but is nil && this != nil")
4167 } else if this == nil {
4168 return fmt.Errorf("that is type *ShutdownFrameworkMessagebut is not nil && this == nil")
4169 }
4170 if !this.FrameworkId.Equal(that1.FrameworkId) {
4171 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4172 }
4173 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4174 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4175 }
4176 return nil
4177 }
4178 func (this *ShutdownFrameworkMessage) Equal(that interface{}) bool {
4179 if that == nil {
4180 if this == nil {
4181 return true
4182 }
4183 return false
4184 }
4185
4186 that1, ok := that.(*ShutdownFrameworkMessage)
4187 if !ok {
4188 return false
4189 }
4190 if that1 == nil {
4191 if this == nil {
4192 return true
4193 }
4194 return false
4195 } else if this == nil {
4196 return false
4197 }
4198 if !this.FrameworkId.Equal(that1.FrameworkId) {
4199 return false
4200 }
4201 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4202 return false
4203 }
4204 return true
4205 }
4206 func (this *ShutdownExecutorMessage) VerboseEqual(that interface{}) error {
4207 if that == nil {
4208 if this == nil {
4209 return nil
4210 }
4211 return fmt.Errorf("that == nil && this != nil")
4212 }
4213
4214 that1, ok := that.(*ShutdownExecutorMessage)
4215 if !ok {
4216 return fmt.Errorf("that is not of type *ShutdownExecutorMessage")
4217 }
4218 if that1 == nil {
4219 if this == nil {
4220 return nil
4221 }
4222 return fmt.Errorf("that is type *ShutdownExecutorMessage but is nil && this != nil")
4223 } else if this == nil {
4224 return fmt.Errorf("that is type *ShutdownExecutorMessagebut is not nil && this == nil")
4225 }
4226 if !this.ExecutorId.Equal(that1.ExecutorId) {
4227 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
4228 }
4229 if !this.FrameworkId.Equal(that1.FrameworkId) {
4230 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4231 }
4232 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4233 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4234 }
4235 return nil
4236 }
4237 func (this *ShutdownExecutorMessage) Equal(that interface{}) bool {
4238 if that == nil {
4239 if this == nil {
4240 return true
4241 }
4242 return false
4243 }
4244
4245 that1, ok := that.(*ShutdownExecutorMessage)
4246 if !ok {
4247 return false
4248 }
4249 if that1 == nil {
4250 if this == nil {
4251 return true
4252 }
4253 return false
4254 } else if this == nil {
4255 return false
4256 }
4257 if !this.ExecutorId.Equal(that1.ExecutorId) {
4258 return false
4259 }
4260 if !this.FrameworkId.Equal(that1.FrameworkId) {
4261 return false
4262 }
4263 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4264 return false
4265 }
4266 return true
4267 }
4268 func (this *UpdateFrameworkMessage) VerboseEqual(that interface{}) error {
4269 if that == nil {
4270 if this == nil {
4271 return nil
4272 }
4273 return fmt.Errorf("that == nil && this != nil")
4274 }
4275
4276 that1, ok := that.(*UpdateFrameworkMessage)
4277 if !ok {
4278 return fmt.Errorf("that is not of type *UpdateFrameworkMessage")
4279 }
4280 if that1 == nil {
4281 if this == nil {
4282 return nil
4283 }
4284 return fmt.Errorf("that is type *UpdateFrameworkMessage but is nil && this != nil")
4285 } else if this == nil {
4286 return fmt.Errorf("that is type *UpdateFrameworkMessagebut is not nil && this == nil")
4287 }
4288 if !this.FrameworkId.Equal(that1.FrameworkId) {
4289 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4290 }
4291 if this.Pid != nil && that1.Pid != nil {
4292 if *this.Pid != *that1.Pid {
4293 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid)
4294 }
4295 } else if this.Pid != nil {
4296 return fmt.Errorf("this.Pid == nil && that.Pid != nil")
4297 } else if that1.Pid != nil {
4298 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid)
4299 }
4300 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4301 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4302 }
4303 return nil
4304 }
4305 func (this *UpdateFrameworkMessage) Equal(that interface{}) bool {
4306 if that == nil {
4307 if this == nil {
4308 return true
4309 }
4310 return false
4311 }
4312
4313 that1, ok := that.(*UpdateFrameworkMessage)
4314 if !ok {
4315 return false
4316 }
4317 if that1 == nil {
4318 if this == nil {
4319 return true
4320 }
4321 return false
4322 } else if this == nil {
4323 return false
4324 }
4325 if !this.FrameworkId.Equal(that1.FrameworkId) {
4326 return false
4327 }
4328 if this.Pid != nil && that1.Pid != nil {
4329 if *this.Pid != *that1.Pid {
4330 return false
4331 }
4332 } else if this.Pid != nil {
4333 return false
4334 } else if that1.Pid != nil {
4335 return false
4336 }
4337 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4338 return false
4339 }
4340 return true
4341 }
4342 func (this *CheckpointResourcesMessage) VerboseEqual(that interface{}) error {
4343 if that == nil {
4344 if this == nil {
4345 return nil
4346 }
4347 return fmt.Errorf("that == nil && this != nil")
4348 }
4349
4350 that1, ok := that.(*CheckpointResourcesMessage)
4351 if !ok {
4352 return fmt.Errorf("that is not of type *CheckpointResourcesMessage")
4353 }
4354 if that1 == nil {
4355 if this == nil {
4356 return nil
4357 }
4358 return fmt.Errorf("that is type *CheckpointResourcesMessage but is nil && this != nil")
4359 } else if this == nil {
4360 return fmt.Errorf("that is type *CheckpointResourcesMessagebut is not nil && this == nil")
4361 }
4362 if len(this.Resources) != len(that1.Resources) {
4363 return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources))
4364 }
4365 for i := range this.Resources {
4366 if !this.Resources[i].Equal(that1.Resources[i]) {
4367 return fmt.Errorf("Resources this[%v](%v) Not Equal that[%v](%v)", i, this.Resources[i], i, that1.Resources[i])
4368 }
4369 }
4370 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4371 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4372 }
4373 return nil
4374 }
4375 func (this *CheckpointResourcesMessage) Equal(that interface{}) bool {
4376 if that == nil {
4377 if this == nil {
4378 return true
4379 }
4380 return false
4381 }
4382
4383 that1, ok := that.(*CheckpointResourcesMessage)
4384 if !ok {
4385 return false
4386 }
4387 if that1 == nil {
4388 if this == nil {
4389 return true
4390 }
4391 return false
4392 } else if this == nil {
4393 return false
4394 }
4395 if len(this.Resources) != len(that1.Resources) {
4396 return false
4397 }
4398 for i := range this.Resources {
4399 if !this.Resources[i].Equal(that1.Resources[i]) {
4400 return false
4401 }
4402 }
4403 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4404 return false
4405 }
4406 return true
4407 }
4408 func (this *UpdateSlaveMessage) VerboseEqual(that interface{}) error {
4409 if that == nil {
4410 if this == nil {
4411 return nil
4412 }
4413 return fmt.Errorf("that == nil && this != nil")
4414 }
4415
4416 that1, ok := that.(*UpdateSlaveMessage)
4417 if !ok {
4418 return fmt.Errorf("that is not of type *UpdateSlaveMessage")
4419 }
4420 if that1 == nil {
4421 if this == nil {
4422 return nil
4423 }
4424 return fmt.Errorf("that is type *UpdateSlaveMessage but is nil && this != nil")
4425 } else if this == nil {
4426 return fmt.Errorf("that is type *UpdateSlaveMessagebut is not nil && this == nil")
4427 }
4428 if !this.SlaveId.Equal(that1.SlaveId) {
4429 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
4430 }
4431 if len(this.OversubscribedResources) != len(that1.OversubscribedResources) {
4432 return fmt.Errorf("OversubscribedResources this(%v) Not Equal that(%v)", len(this.OversubscribedResources), len(that1.OversubscribedResources))
4433 }
4434 for i := range this.OversubscribedResources {
4435 if !this.OversubscribedResources[i].Equal(that1.OversubscribedResources[i]) {
4436 return fmt.Errorf("OversubscribedResources this[%v](%v) Not Equal that[%v](%v)", i, this.OversubscribedResources[i], i, that1.OversubscribedResources[i])
4437 }
4438 }
4439 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4440 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4441 }
4442 return nil
4443 }
4444 func (this *UpdateSlaveMessage) Equal(that interface{}) bool {
4445 if that == nil {
4446 if this == nil {
4447 return true
4448 }
4449 return false
4450 }
4451
4452 that1, ok := that.(*UpdateSlaveMessage)
4453 if !ok {
4454 return false
4455 }
4456 if that1 == nil {
4457 if this == nil {
4458 return true
4459 }
4460 return false
4461 } else if this == nil {
4462 return false
4463 }
4464 if !this.SlaveId.Equal(that1.SlaveId) {
4465 return false
4466 }
4467 if len(this.OversubscribedResources) != len(that1.OversubscribedResources) {
4468 return false
4469 }
4470 for i := range this.OversubscribedResources {
4471 if !this.OversubscribedResources[i].Equal(that1.OversubscribedResources[i]) {
4472 return false
4473 }
4474 }
4475 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4476 return false
4477 }
4478 return true
4479 }
4480 func (this *RegisterExecutorMessage) VerboseEqual(that interface{}) error {
4481 if that == nil {
4482 if this == nil {
4483 return nil
4484 }
4485 return fmt.Errorf("that == nil && this != nil")
4486 }
4487
4488 that1, ok := that.(*RegisterExecutorMessage)
4489 if !ok {
4490 return fmt.Errorf("that is not of type *RegisterExecutorMessage")
4491 }
4492 if that1 == nil {
4493 if this == nil {
4494 return nil
4495 }
4496 return fmt.Errorf("that is type *RegisterExecutorMessage but is nil && this != nil")
4497 } else if this == nil {
4498 return fmt.Errorf("that is type *RegisterExecutorMessagebut is not nil && this == nil")
4499 }
4500 if !this.FrameworkId.Equal(that1.FrameworkId) {
4501 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4502 }
4503 if !this.ExecutorId.Equal(that1.ExecutorId) {
4504 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
4505 }
4506 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4507 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4508 }
4509 return nil
4510 }
4511 func (this *RegisterExecutorMessage) Equal(that interface{}) bool {
4512 if that == nil {
4513 if this == nil {
4514 return true
4515 }
4516 return false
4517 }
4518
4519 that1, ok := that.(*RegisterExecutorMessage)
4520 if !ok {
4521 return false
4522 }
4523 if that1 == nil {
4524 if this == nil {
4525 return true
4526 }
4527 return false
4528 } else if this == nil {
4529 return false
4530 }
4531 if !this.FrameworkId.Equal(that1.FrameworkId) {
4532 return false
4533 }
4534 if !this.ExecutorId.Equal(that1.ExecutorId) {
4535 return false
4536 }
4537 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4538 return false
4539 }
4540 return true
4541 }
4542 func (this *ExecutorRegisteredMessage) VerboseEqual(that interface{}) error {
4543 if that == nil {
4544 if this == nil {
4545 return nil
4546 }
4547 return fmt.Errorf("that == nil && this != nil")
4548 }
4549
4550 that1, ok := that.(*ExecutorRegisteredMessage)
4551 if !ok {
4552 return fmt.Errorf("that is not of type *ExecutorRegisteredMessage")
4553 }
4554 if that1 == nil {
4555 if this == nil {
4556 return nil
4557 }
4558 return fmt.Errorf("that is type *ExecutorRegisteredMessage but is nil && this != nil")
4559 } else if this == nil {
4560 return fmt.Errorf("that is type *ExecutorRegisteredMessagebut is not nil && this == nil")
4561 }
4562 if !this.ExecutorInfo.Equal(that1.ExecutorInfo) {
4563 return fmt.Errorf("ExecutorInfo this(%v) Not Equal that(%v)", this.ExecutorInfo, that1.ExecutorInfo)
4564 }
4565 if !this.FrameworkId.Equal(that1.FrameworkId) {
4566 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4567 }
4568 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
4569 return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
4570 }
4571 if !this.SlaveId.Equal(that1.SlaveId) {
4572 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
4573 }
4574 if !this.SlaveInfo.Equal(that1.SlaveInfo) {
4575 return fmt.Errorf("SlaveInfo this(%v) Not Equal that(%v)", this.SlaveInfo, that1.SlaveInfo)
4576 }
4577 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4578 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4579 }
4580 return nil
4581 }
4582 func (this *ExecutorRegisteredMessage) Equal(that interface{}) bool {
4583 if that == nil {
4584 if this == nil {
4585 return true
4586 }
4587 return false
4588 }
4589
4590 that1, ok := that.(*ExecutorRegisteredMessage)
4591 if !ok {
4592 return false
4593 }
4594 if that1 == nil {
4595 if this == nil {
4596 return true
4597 }
4598 return false
4599 } else if this == nil {
4600 return false
4601 }
4602 if !this.ExecutorInfo.Equal(that1.ExecutorInfo) {
4603 return false
4604 }
4605 if !this.FrameworkId.Equal(that1.FrameworkId) {
4606 return false
4607 }
4608 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
4609 return false
4610 }
4611 if !this.SlaveId.Equal(that1.SlaveId) {
4612 return false
4613 }
4614 if !this.SlaveInfo.Equal(that1.SlaveInfo) {
4615 return false
4616 }
4617 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4618 return false
4619 }
4620 return true
4621 }
4622 func (this *ExecutorReregisteredMessage) VerboseEqual(that interface{}) error {
4623 if that == nil {
4624 if this == nil {
4625 return nil
4626 }
4627 return fmt.Errorf("that == nil && this != nil")
4628 }
4629
4630 that1, ok := that.(*ExecutorReregisteredMessage)
4631 if !ok {
4632 return fmt.Errorf("that is not of type *ExecutorReregisteredMessage")
4633 }
4634 if that1 == nil {
4635 if this == nil {
4636 return nil
4637 }
4638 return fmt.Errorf("that is type *ExecutorReregisteredMessage but is nil && this != nil")
4639 } else if this == nil {
4640 return fmt.Errorf("that is type *ExecutorReregisteredMessagebut is not nil && this == nil")
4641 }
4642 if !this.SlaveId.Equal(that1.SlaveId) {
4643 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
4644 }
4645 if !this.SlaveInfo.Equal(that1.SlaveInfo) {
4646 return fmt.Errorf("SlaveInfo this(%v) Not Equal that(%v)", this.SlaveInfo, that1.SlaveInfo)
4647 }
4648 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4649 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4650 }
4651 return nil
4652 }
4653 func (this *ExecutorReregisteredMessage) Equal(that interface{}) bool {
4654 if that == nil {
4655 if this == nil {
4656 return true
4657 }
4658 return false
4659 }
4660
4661 that1, ok := that.(*ExecutorReregisteredMessage)
4662 if !ok {
4663 return false
4664 }
4665 if that1 == nil {
4666 if this == nil {
4667 return true
4668 }
4669 return false
4670 } else if this == nil {
4671 return false
4672 }
4673 if !this.SlaveId.Equal(that1.SlaveId) {
4674 return false
4675 }
4676 if !this.SlaveInfo.Equal(that1.SlaveInfo) {
4677 return false
4678 }
4679 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4680 return false
4681 }
4682 return true
4683 }
4684 func (this *ExitedExecutorMessage) VerboseEqual(that interface{}) error {
4685 if that == nil {
4686 if this == nil {
4687 return nil
4688 }
4689 return fmt.Errorf("that == nil && this != nil")
4690 }
4691
4692 that1, ok := that.(*ExitedExecutorMessage)
4693 if !ok {
4694 return fmt.Errorf("that is not of type *ExitedExecutorMessage")
4695 }
4696 if that1 == nil {
4697 if this == nil {
4698 return nil
4699 }
4700 return fmt.Errorf("that is type *ExitedExecutorMessage but is nil && this != nil")
4701 } else if this == nil {
4702 return fmt.Errorf("that is type *ExitedExecutorMessagebut is not nil && this == nil")
4703 }
4704 if !this.SlaveId.Equal(that1.SlaveId) {
4705 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
4706 }
4707 if !this.FrameworkId.Equal(that1.FrameworkId) {
4708 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4709 }
4710 if !this.ExecutorId.Equal(that1.ExecutorId) {
4711 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
4712 }
4713 if this.Status != nil && that1.Status != nil {
4714 if *this.Status != *that1.Status {
4715 return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status)
4716 }
4717 } else if this.Status != nil {
4718 return fmt.Errorf("this.Status == nil && that.Status != nil")
4719 } else if that1.Status != nil {
4720 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
4721 }
4722 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4723 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4724 }
4725 return nil
4726 }
4727 func (this *ExitedExecutorMessage) Equal(that interface{}) bool {
4728 if that == nil {
4729 if this == nil {
4730 return true
4731 }
4732 return false
4733 }
4734
4735 that1, ok := that.(*ExitedExecutorMessage)
4736 if !ok {
4737 return false
4738 }
4739 if that1 == nil {
4740 if this == nil {
4741 return true
4742 }
4743 return false
4744 } else if this == nil {
4745 return false
4746 }
4747 if !this.SlaveId.Equal(that1.SlaveId) {
4748 return false
4749 }
4750 if !this.FrameworkId.Equal(that1.FrameworkId) {
4751 return false
4752 }
4753 if !this.ExecutorId.Equal(that1.ExecutorId) {
4754 return false
4755 }
4756 if this.Status != nil && that1.Status != nil {
4757 if *this.Status != *that1.Status {
4758 return false
4759 }
4760 } else if this.Status != nil {
4761 return false
4762 } else if that1.Status != nil {
4763 return false
4764 }
4765 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4766 return false
4767 }
4768 return true
4769 }
4770 func (this *ReconnectExecutorMessage) VerboseEqual(that interface{}) error {
4771 if that == nil {
4772 if this == nil {
4773 return nil
4774 }
4775 return fmt.Errorf("that == nil && this != nil")
4776 }
4777
4778 that1, ok := that.(*ReconnectExecutorMessage)
4779 if !ok {
4780 return fmt.Errorf("that is not of type *ReconnectExecutorMessage")
4781 }
4782 if that1 == nil {
4783 if this == nil {
4784 return nil
4785 }
4786 return fmt.Errorf("that is type *ReconnectExecutorMessage but is nil && this != nil")
4787 } else if this == nil {
4788 return fmt.Errorf("that is type *ReconnectExecutorMessagebut is not nil && this == nil")
4789 }
4790 if !this.SlaveId.Equal(that1.SlaveId) {
4791 return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId)
4792 }
4793 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4794 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4795 }
4796 return nil
4797 }
4798 func (this *ReconnectExecutorMessage) Equal(that interface{}) bool {
4799 if that == nil {
4800 if this == nil {
4801 return true
4802 }
4803 return false
4804 }
4805
4806 that1, ok := that.(*ReconnectExecutorMessage)
4807 if !ok {
4808 return false
4809 }
4810 if that1 == nil {
4811 if this == nil {
4812 return true
4813 }
4814 return false
4815 } else if this == nil {
4816 return false
4817 }
4818 if !this.SlaveId.Equal(that1.SlaveId) {
4819 return false
4820 }
4821 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4822 return false
4823 }
4824 return true
4825 }
4826 func (this *ReregisterExecutorMessage) VerboseEqual(that interface{}) error {
4827 if that == nil {
4828 if this == nil {
4829 return nil
4830 }
4831 return fmt.Errorf("that == nil && this != nil")
4832 }
4833
4834 that1, ok := that.(*ReregisterExecutorMessage)
4835 if !ok {
4836 return fmt.Errorf("that is not of type *ReregisterExecutorMessage")
4837 }
4838 if that1 == nil {
4839 if this == nil {
4840 return nil
4841 }
4842 return fmt.Errorf("that is type *ReregisterExecutorMessage but is nil && this != nil")
4843 } else if this == nil {
4844 return fmt.Errorf("that is type *ReregisterExecutorMessagebut is not nil && this == nil")
4845 }
4846 if !this.ExecutorId.Equal(that1.ExecutorId) {
4847 return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId)
4848 }
4849 if !this.FrameworkId.Equal(that1.FrameworkId) {
4850 return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId)
4851 }
4852 if len(this.Tasks) != len(that1.Tasks) {
4853 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
4854 }
4855 for i := range this.Tasks {
4856 if !this.Tasks[i].Equal(that1.Tasks[i]) {
4857 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
4858 }
4859 }
4860 if len(this.Updates) != len(that1.Updates) {
4861 return fmt.Errorf("Updates this(%v) Not Equal that(%v)", len(this.Updates), len(that1.Updates))
4862 }
4863 for i := range this.Updates {
4864 if !this.Updates[i].Equal(that1.Updates[i]) {
4865 return fmt.Errorf("Updates this[%v](%v) Not Equal that[%v](%v)", i, this.Updates[i], i, that1.Updates[i])
4866 }
4867 }
4868 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4869 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4870 }
4871 return nil
4872 }
4873 func (this *ReregisterExecutorMessage) Equal(that interface{}) bool {
4874 if that == nil {
4875 if this == nil {
4876 return true
4877 }
4878 return false
4879 }
4880
4881 that1, ok := that.(*ReregisterExecutorMessage)
4882 if !ok {
4883 return false
4884 }
4885 if that1 == nil {
4886 if this == nil {
4887 return true
4888 }
4889 return false
4890 } else if this == nil {
4891 return false
4892 }
4893 if !this.ExecutorId.Equal(that1.ExecutorId) {
4894 return false
4895 }
4896 if !this.FrameworkId.Equal(that1.FrameworkId) {
4897 return false
4898 }
4899 if len(this.Tasks) != len(that1.Tasks) {
4900 return false
4901 }
4902 for i := range this.Tasks {
4903 if !this.Tasks[i].Equal(that1.Tasks[i]) {
4904 return false
4905 }
4906 }
4907 if len(this.Updates) != len(that1.Updates) {
4908 return false
4909 }
4910 for i := range this.Updates {
4911 if !this.Updates[i].Equal(that1.Updates[i]) {
4912 return false
4913 }
4914 }
4915 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4916 return false
4917 }
4918 return true
4919 }
4920 func (this *ShutdownMessage) VerboseEqual(that interface{}) error {
4921 if that == nil {
4922 if this == nil {
4923 return nil
4924 }
4925 return fmt.Errorf("that == nil && this != nil")
4926 }
4927
4928 that1, ok := that.(*ShutdownMessage)
4929 if !ok {
4930 return fmt.Errorf("that is not of type *ShutdownMessage")
4931 }
4932 if that1 == nil {
4933 if this == nil {
4934 return nil
4935 }
4936 return fmt.Errorf("that is type *ShutdownMessage but is nil && this != nil")
4937 } else if this == nil {
4938 return fmt.Errorf("that is type *ShutdownMessagebut is not nil && this == nil")
4939 }
4940 if this.Message != nil && that1.Message != nil {
4941 if *this.Message != *that1.Message {
4942 return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message)
4943 }
4944 } else if this.Message != nil {
4945 return fmt.Errorf("this.Message == nil && that.Message != nil")
4946 } else if that1.Message != nil {
4947 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
4948 }
4949 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4950 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
4951 }
4952 return nil
4953 }
4954 func (this *ShutdownMessage) Equal(that interface{}) bool {
4955 if that == nil {
4956 if this == nil {
4957 return true
4958 }
4959 return false
4960 }
4961
4962 that1, ok := that.(*ShutdownMessage)
4963 if !ok {
4964 return false
4965 }
4966 if that1 == nil {
4967 if this == nil {
4968 return true
4969 }
4970 return false
4971 } else if this == nil {
4972 return false
4973 }
4974 if this.Message != nil && that1.Message != nil {
4975 if *this.Message != *that1.Message {
4976 return false
4977 }
4978 } else if this.Message != nil {
4979 return false
4980 } else if that1.Message != nil {
4981 return false
4982 }
4983 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
4984 return false
4985 }
4986 return true
4987 }
4988 func (this *Archive) VerboseEqual(that interface{}) error {
4989 if that == nil {
4990 if this == nil {
4991 return nil
4992 }
4993 return fmt.Errorf("that == nil && this != nil")
4994 }
4995
4996 that1, ok := that.(*Archive)
4997 if !ok {
4998 return fmt.Errorf("that is not of type *Archive")
4999 }
5000 if that1 == nil {
5001 if this == nil {
5002 return nil
5003 }
5004 return fmt.Errorf("that is type *Archive but is nil && this != nil")
5005 } else if this == nil {
5006 return fmt.Errorf("that is type *Archivebut is not nil && this == nil")
5007 }
5008 if len(this.Frameworks) != len(that1.Frameworks) {
5009 return fmt.Errorf("Frameworks this(%v) Not Equal that(%v)", len(this.Frameworks), len(that1.Frameworks))
5010 }
5011 for i := range this.Frameworks {
5012 if !this.Frameworks[i].Equal(that1.Frameworks[i]) {
5013 return fmt.Errorf("Frameworks this[%v](%v) Not Equal that[%v](%v)", i, this.Frameworks[i], i, that1.Frameworks[i])
5014 }
5015 }
5016 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5017 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
5018 }
5019 return nil
5020 }
5021 func (this *Archive) Equal(that interface{}) bool {
5022 if that == nil {
5023 if this == nil {
5024 return true
5025 }
5026 return false
5027 }
5028
5029 that1, ok := that.(*Archive)
5030 if !ok {
5031 return false
5032 }
5033 if that1 == nil {
5034 if this == nil {
5035 return true
5036 }
5037 return false
5038 } else if this == nil {
5039 return false
5040 }
5041 if len(this.Frameworks) != len(that1.Frameworks) {
5042 return false
5043 }
5044 for i := range this.Frameworks {
5045 if !this.Frameworks[i].Equal(that1.Frameworks[i]) {
5046 return false
5047 }
5048 }
5049 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5050 return false
5051 }
5052 return true
5053 }
5054 func (this *Archive_Framework) VerboseEqual(that interface{}) error {
5055 if that == nil {
5056 if this == nil {
5057 return nil
5058 }
5059 return fmt.Errorf("that == nil && this != nil")
5060 }
5061
5062 that1, ok := that.(*Archive_Framework)
5063 if !ok {
5064 return fmt.Errorf("that is not of type *Archive_Framework")
5065 }
5066 if that1 == nil {
5067 if this == nil {
5068 return nil
5069 }
5070 return fmt.Errorf("that is type *Archive_Framework but is nil && this != nil")
5071 } else if this == nil {
5072 return fmt.Errorf("that is type *Archive_Frameworkbut is not nil && this == nil")
5073 }
5074 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
5075 return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
5076 }
5077 if this.Pid != nil && that1.Pid != nil {
5078 if *this.Pid != *that1.Pid {
5079 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid)
5080 }
5081 } else if this.Pid != nil {
5082 return fmt.Errorf("this.Pid == nil && that.Pid != nil")
5083 } else if that1.Pid != nil {
5084 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid)
5085 }
5086 if len(this.Tasks) != len(that1.Tasks) {
5087 return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks))
5088 }
5089 for i := range this.Tasks {
5090 if !this.Tasks[i].Equal(that1.Tasks[i]) {
5091 return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i])
5092 }
5093 }
5094 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5095 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
5096 }
5097 return nil
5098 }
5099 func (this *Archive_Framework) Equal(that interface{}) bool {
5100 if that == nil {
5101 if this == nil {
5102 return true
5103 }
5104 return false
5105 }
5106
5107 that1, ok := that.(*Archive_Framework)
5108 if !ok {
5109 return false
5110 }
5111 if that1 == nil {
5112 if this == nil {
5113 return true
5114 }
5115 return false
5116 } else if this == nil {
5117 return false
5118 }
5119 if !this.FrameworkInfo.Equal(that1.FrameworkInfo) {
5120 return false
5121 }
5122 if this.Pid != nil && that1.Pid != nil {
5123 if *this.Pid != *that1.Pid {
5124 return false
5125 }
5126 } else if this.Pid != nil {
5127 return false
5128 } else if that1.Pid != nil {
5129 return false
5130 }
5131 if len(this.Tasks) != len(that1.Tasks) {
5132 return false
5133 }
5134 for i := range this.Tasks {
5135 if !this.Tasks[i].Equal(that1.Tasks[i]) {
5136 return false
5137 }
5138 }
5139 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5140 return false
5141 }
5142 return true
5143 }
5144 func (this *TaskHealthStatus) VerboseEqual(that interface{}) error {
5145 if that == nil {
5146 if this == nil {
5147 return nil
5148 }
5149 return fmt.Errorf("that == nil && this != nil")
5150 }
5151
5152 that1, ok := that.(*TaskHealthStatus)
5153 if !ok {
5154 return fmt.Errorf("that is not of type *TaskHealthStatus")
5155 }
5156 if that1 == nil {
5157 if this == nil {
5158 return nil
5159 }
5160 return fmt.Errorf("that is type *TaskHealthStatus but is nil && this != nil")
5161 } else if this == nil {
5162 return fmt.Errorf("that is type *TaskHealthStatusbut is not nil && this == nil")
5163 }
5164 if !this.TaskId.Equal(that1.TaskId) {
5165 return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId)
5166 }
5167 if this.Healthy != nil && that1.Healthy != nil {
5168 if *this.Healthy != *that1.Healthy {
5169 return fmt.Errorf("Healthy this(%v) Not Equal that(%v)", *this.Healthy, *that1.Healthy)
5170 }
5171 } else if this.Healthy != nil {
5172 return fmt.Errorf("this.Healthy == nil && that.Healthy != nil")
5173 } else if that1.Healthy != nil {
5174 return fmt.Errorf("Healthy this(%v) Not Equal that(%v)", this.Healthy, that1.Healthy)
5175 }
5176 if this.KillTask != nil && that1.KillTask != nil {
5177 if *this.KillTask != *that1.KillTask {
5178 return fmt.Errorf("KillTask this(%v) Not Equal that(%v)", *this.KillTask, *that1.KillTask)
5179 }
5180 } else if this.KillTask != nil {
5181 return fmt.Errorf("this.KillTask == nil && that.KillTask != nil")
5182 } else if that1.KillTask != nil {
5183 return fmt.Errorf("KillTask this(%v) Not Equal that(%v)", this.KillTask, that1.KillTask)
5184 }
5185 if this.ConsecutiveFailures != nil && that1.ConsecutiveFailures != nil {
5186 if *this.ConsecutiveFailures != *that1.ConsecutiveFailures {
5187 return fmt.Errorf("ConsecutiveFailures this(%v) Not Equal that(%v)", *this.ConsecutiveFailures, *that1.ConsecutiveFailures)
5188 }
5189 } else if this.ConsecutiveFailures != nil {
5190 return fmt.Errorf("this.ConsecutiveFailures == nil && that.ConsecutiveFailures != nil")
5191 } else if that1.ConsecutiveFailures != nil {
5192 return fmt.Errorf("ConsecutiveFailures this(%v) Not Equal that(%v)", this.ConsecutiveFailures, that1.ConsecutiveFailures)
5193 }
5194 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5195 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
5196 }
5197 return nil
5198 }
5199 func (this *TaskHealthStatus) Equal(that interface{}) bool {
5200 if that == nil {
5201 if this == nil {
5202 return true
5203 }
5204 return false
5205 }
5206
5207 that1, ok := that.(*TaskHealthStatus)
5208 if !ok {
5209 return false
5210 }
5211 if that1 == nil {
5212 if this == nil {
5213 return true
5214 }
5215 return false
5216 } else if this == nil {
5217 return false
5218 }
5219 if !this.TaskId.Equal(that1.TaskId) {
5220 return false
5221 }
5222 if this.Healthy != nil && that1.Healthy != nil {
5223 if *this.Healthy != *that1.Healthy {
5224 return false
5225 }
5226 } else if this.Healthy != nil {
5227 return false
5228 } else if that1.Healthy != nil {
5229 return false
5230 }
5231 if this.KillTask != nil && that1.KillTask != nil {
5232 if *this.KillTask != *that1.KillTask {
5233 return false
5234 }
5235 } else if this.KillTask != nil {
5236 return false
5237 } else if that1.KillTask != nil {
5238 return false
5239 }
5240 if this.ConsecutiveFailures != nil && that1.ConsecutiveFailures != nil {
5241 if *this.ConsecutiveFailures != *that1.ConsecutiveFailures {
5242 return false
5243 }
5244 } else if this.ConsecutiveFailures != nil {
5245 return false
5246 } else if that1.ConsecutiveFailures != nil {
5247 return false
5248 }
5249 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5250 return false
5251 }
5252 return true
5253 }
5254 func (this *HookExecuted) VerboseEqual(that interface{}) error {
5255 if that == nil {
5256 if this == nil {
5257 return nil
5258 }
5259 return fmt.Errorf("that == nil && this != nil")
5260 }
5261
5262 that1, ok := that.(*HookExecuted)
5263 if !ok {
5264 return fmt.Errorf("that is not of type *HookExecuted")
5265 }
5266 if that1 == nil {
5267 if this == nil {
5268 return nil
5269 }
5270 return fmt.Errorf("that is type *HookExecuted but is nil && this != nil")
5271 } else if this == nil {
5272 return fmt.Errorf("that is type *HookExecutedbut is not nil && this == nil")
5273 }
5274 if this.Module != nil && that1.Module != nil {
5275 if *this.Module != *that1.Module {
5276 return fmt.Errorf("Module this(%v) Not Equal that(%v)", *this.Module, *that1.Module)
5277 }
5278 } else if this.Module != nil {
5279 return fmt.Errorf("this.Module == nil && that.Module != nil")
5280 } else if that1.Module != nil {
5281 return fmt.Errorf("Module this(%v) Not Equal that(%v)", this.Module, that1.Module)
5282 }
5283 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5284 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
5285 }
5286 return nil
5287 }
5288 func (this *HookExecuted) Equal(that interface{}) bool {
5289 if that == nil {
5290 if this == nil {
5291 return true
5292 }
5293 return false
5294 }
5295
5296 that1, ok := that.(*HookExecuted)
5297 if !ok {
5298 return false
5299 }
5300 if that1 == nil {
5301 if this == nil {
5302 return true
5303 }
5304 return false
5305 } else if this == nil {
5306 return false
5307 }
5308 if this.Module != nil && that1.Module != nil {
5309 if *this.Module != *that1.Module {
5310 return false
5311 }
5312 } else if this.Module != nil {
5313 return false
5314 } else if that1.Module != nil {
5315 return false
5316 }
5317 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
5318 return false
5319 }
5320 return true
5321 }
5322 func (this *Task) GoString() string {
5323 if this == nil {
5324 return "nil"
5325 }
5326 s := make([]string, 0, 16)
5327 s = append(s, "&mesosproto.Task{")
5328 if this.Name != nil {
5329 s = append(s, "Name: "+valueToGoStringMessages(this.Name, "string")+",\n")
5330 }
5331 if this.TaskId != nil {
5332 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
5333 }
5334 if this.FrameworkId != nil {
5335 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5336 }
5337 if this.ExecutorId != nil {
5338 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
5339 }
5340 if this.SlaveId != nil {
5341 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5342 }
5343 if this.State != nil {
5344 s = append(s, "State: "+valueToGoStringMessages(this.State, "mesosproto.TaskState")+",\n")
5345 }
5346 if this.Resources != nil {
5347 s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n")
5348 }
5349 if this.Statuses != nil {
5350 s = append(s, "Statuses: "+fmt.Sprintf("%#v", this.Statuses)+",\n")
5351 }
5352 if this.StatusUpdateState != nil {
5353 s = append(s, "StatusUpdateState: "+valueToGoStringMessages(this.StatusUpdateState, "mesosproto.TaskState")+",\n")
5354 }
5355 if this.StatusUpdateUuid != nil {
5356 s = append(s, "StatusUpdateUuid: "+valueToGoStringMessages(this.StatusUpdateUuid, "byte")+",\n")
5357 }
5358 if this.Labels != nil {
5359 s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
5360 }
5361 if this.Discovery != nil {
5362 s = append(s, "Discovery: "+fmt.Sprintf("%#v", this.Discovery)+",\n")
5363 }
5364 if this.XXX_unrecognized != nil {
5365 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5366 }
5367 s = append(s, "}")
5368 return strings.Join(s, "")
5369 }
5370 func (this *StatusUpdate) GoString() string {
5371 if this == nil {
5372 return "nil"
5373 }
5374 s := make([]string, 0, 11)
5375 s = append(s, "&mesosproto.StatusUpdate{")
5376 if this.FrameworkId != nil {
5377 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5378 }
5379 if this.ExecutorId != nil {
5380 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
5381 }
5382 if this.SlaveId != nil {
5383 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5384 }
5385 if this.Status != nil {
5386 s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
5387 }
5388 if this.Timestamp != nil {
5389 s = append(s, "Timestamp: "+valueToGoStringMessages(this.Timestamp, "float64")+",\n")
5390 }
5391 if this.Uuid != nil {
5392 s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n")
5393 }
5394 if this.LatestState != nil {
5395 s = append(s, "LatestState: "+valueToGoStringMessages(this.LatestState, "mesosproto.TaskState")+",\n")
5396 }
5397 if this.XXX_unrecognized != nil {
5398 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5399 }
5400 s = append(s, "}")
5401 return strings.Join(s, "")
5402 }
5403 func (this *StatusUpdateRecord) GoString() string {
5404 if this == nil {
5405 return "nil"
5406 }
5407 s := make([]string, 0, 7)
5408 s = append(s, "&mesosproto.StatusUpdateRecord{")
5409 if this.Type != nil {
5410 s = append(s, "Type: "+valueToGoStringMessages(this.Type, "mesosproto.StatusUpdateRecord_Type")+",\n")
5411 }
5412 if this.Update != nil {
5413 s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
5414 }
5415 if this.Uuid != nil {
5416 s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n")
5417 }
5418 if this.XXX_unrecognized != nil {
5419 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5420 }
5421 s = append(s, "}")
5422 return strings.Join(s, "")
5423 }
5424 func (this *SubmitSchedulerRequest) GoString() string {
5425 if this == nil {
5426 return "nil"
5427 }
5428 s := make([]string, 0, 5)
5429 s = append(s, "&mesosproto.SubmitSchedulerRequest{")
5430 if this.Name != nil {
5431 s = append(s, "Name: "+valueToGoStringMessages(this.Name, "string")+",\n")
5432 }
5433 if this.XXX_unrecognized != nil {
5434 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5435 }
5436 s = append(s, "}")
5437 return strings.Join(s, "")
5438 }
5439 func (this *SubmitSchedulerResponse) GoString() string {
5440 if this == nil {
5441 return "nil"
5442 }
5443 s := make([]string, 0, 5)
5444 s = append(s, "&mesosproto.SubmitSchedulerResponse{")
5445 if this.Okay != nil {
5446 s = append(s, "Okay: "+valueToGoStringMessages(this.Okay, "bool")+",\n")
5447 }
5448 if this.XXX_unrecognized != nil {
5449 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5450 }
5451 s = append(s, "}")
5452 return strings.Join(s, "")
5453 }
5454 func (this *ExecutorToFrameworkMessage) GoString() string {
5455 if this == nil {
5456 return "nil"
5457 }
5458 s := make([]string, 0, 8)
5459 s = append(s, "&mesosproto.ExecutorToFrameworkMessage{")
5460 if this.SlaveId != nil {
5461 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5462 }
5463 if this.FrameworkId != nil {
5464 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5465 }
5466 if this.ExecutorId != nil {
5467 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
5468 }
5469 if this.Data != nil {
5470 s = append(s, "Data: "+valueToGoStringMessages(this.Data, "byte")+",\n")
5471 }
5472 if this.XXX_unrecognized != nil {
5473 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5474 }
5475 s = append(s, "}")
5476 return strings.Join(s, "")
5477 }
5478 func (this *FrameworkToExecutorMessage) GoString() string {
5479 if this == nil {
5480 return "nil"
5481 }
5482 s := make([]string, 0, 8)
5483 s = append(s, "&mesosproto.FrameworkToExecutorMessage{")
5484 if this.SlaveId != nil {
5485 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5486 }
5487 if this.FrameworkId != nil {
5488 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5489 }
5490 if this.ExecutorId != nil {
5491 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
5492 }
5493 if this.Data != nil {
5494 s = append(s, "Data: "+valueToGoStringMessages(this.Data, "byte")+",\n")
5495 }
5496 if this.XXX_unrecognized != nil {
5497 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5498 }
5499 s = append(s, "}")
5500 return strings.Join(s, "")
5501 }
5502 func (this *RegisterFrameworkMessage) GoString() string {
5503 if this == nil {
5504 return "nil"
5505 }
5506 s := make([]string, 0, 5)
5507 s = append(s, "&mesosproto.RegisterFrameworkMessage{")
5508 if this.Framework != nil {
5509 s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n")
5510 }
5511 if this.XXX_unrecognized != nil {
5512 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5513 }
5514 s = append(s, "}")
5515 return strings.Join(s, "")
5516 }
5517 func (this *ReregisterFrameworkMessage) GoString() string {
5518 if this == nil {
5519 return "nil"
5520 }
5521 s := make([]string, 0, 6)
5522 s = append(s, "&mesosproto.ReregisterFrameworkMessage{")
5523 if this.Framework != nil {
5524 s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n")
5525 }
5526 if this.Failover != nil {
5527 s = append(s, "Failover: "+valueToGoStringMessages(this.Failover, "bool")+",\n")
5528 }
5529 if this.XXX_unrecognized != nil {
5530 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5531 }
5532 s = append(s, "}")
5533 return strings.Join(s, "")
5534 }
5535 func (this *FrameworkRegisteredMessage) GoString() string {
5536 if this == nil {
5537 return "nil"
5538 }
5539 s := make([]string, 0, 6)
5540 s = append(s, "&mesosproto.FrameworkRegisteredMessage{")
5541 if this.FrameworkId != nil {
5542 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5543 }
5544 if this.MasterInfo != nil {
5545 s = append(s, "MasterInfo: "+fmt.Sprintf("%#v", this.MasterInfo)+",\n")
5546 }
5547 if this.XXX_unrecognized != nil {
5548 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5549 }
5550 s = append(s, "}")
5551 return strings.Join(s, "")
5552 }
5553 func (this *FrameworkReregisteredMessage) GoString() string {
5554 if this == nil {
5555 return "nil"
5556 }
5557 s := make([]string, 0, 6)
5558 s = append(s, "&mesosproto.FrameworkReregisteredMessage{")
5559 if this.FrameworkId != nil {
5560 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5561 }
5562 if this.MasterInfo != nil {
5563 s = append(s, "MasterInfo: "+fmt.Sprintf("%#v", this.MasterInfo)+",\n")
5564 }
5565 if this.XXX_unrecognized != nil {
5566 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5567 }
5568 s = append(s, "}")
5569 return strings.Join(s, "")
5570 }
5571 func (this *UnregisterFrameworkMessage) GoString() string {
5572 if this == nil {
5573 return "nil"
5574 }
5575 s := make([]string, 0, 5)
5576 s = append(s, "&mesosproto.UnregisterFrameworkMessage{")
5577 if this.FrameworkId != nil {
5578 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5579 }
5580 if this.XXX_unrecognized != nil {
5581 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5582 }
5583 s = append(s, "}")
5584 return strings.Join(s, "")
5585 }
5586 func (this *DeactivateFrameworkMessage) GoString() string {
5587 if this == nil {
5588 return "nil"
5589 }
5590 s := make([]string, 0, 5)
5591 s = append(s, "&mesosproto.DeactivateFrameworkMessage{")
5592 if this.FrameworkId != nil {
5593 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5594 }
5595 if this.XXX_unrecognized != nil {
5596 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5597 }
5598 s = append(s, "}")
5599 return strings.Join(s, "")
5600 }
5601 func (this *ResourceRequestMessage) GoString() string {
5602 if this == nil {
5603 return "nil"
5604 }
5605 s := make([]string, 0, 6)
5606 s = append(s, "&mesosproto.ResourceRequestMessage{")
5607 if this.FrameworkId != nil {
5608 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5609 }
5610 if this.Requests != nil {
5611 s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n")
5612 }
5613 if this.XXX_unrecognized != nil {
5614 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5615 }
5616 s = append(s, "}")
5617 return strings.Join(s, "")
5618 }
5619 func (this *ResourceOffersMessage) GoString() string {
5620 if this == nil {
5621 return "nil"
5622 }
5623 s := make([]string, 0, 7)
5624 s = append(s, "&mesosproto.ResourceOffersMessage{")
5625 if this.Offers != nil {
5626 s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n")
5627 }
5628 if this.Pids != nil {
5629 s = append(s, "Pids: "+fmt.Sprintf("%#v", this.Pids)+",\n")
5630 }
5631 if this.InverseOffers != nil {
5632 s = append(s, "InverseOffers: "+fmt.Sprintf("%#v", this.InverseOffers)+",\n")
5633 }
5634 if this.XXX_unrecognized != nil {
5635 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5636 }
5637 s = append(s, "}")
5638 return strings.Join(s, "")
5639 }
5640 func (this *LaunchTasksMessage) GoString() string {
5641 if this == nil {
5642 return "nil"
5643 }
5644 s := make([]string, 0, 8)
5645 s = append(s, "&mesosproto.LaunchTasksMessage{")
5646 if this.FrameworkId != nil {
5647 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5648 }
5649 if this.Tasks != nil {
5650 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
5651 }
5652 if this.Filters != nil {
5653 s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n")
5654 }
5655 if this.OfferIds != nil {
5656 s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n")
5657 }
5658 if this.XXX_unrecognized != nil {
5659 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5660 }
5661 s = append(s, "}")
5662 return strings.Join(s, "")
5663 }
5664 func (this *RescindResourceOfferMessage) GoString() string {
5665 if this == nil {
5666 return "nil"
5667 }
5668 s := make([]string, 0, 5)
5669 s = append(s, "&mesosproto.RescindResourceOfferMessage{")
5670 if this.OfferId != nil {
5671 s = append(s, "OfferId: "+fmt.Sprintf("%#v", this.OfferId)+",\n")
5672 }
5673 if this.XXX_unrecognized != nil {
5674 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5675 }
5676 s = append(s, "}")
5677 return strings.Join(s, "")
5678 }
5679 func (this *ReviveOffersMessage) GoString() string {
5680 if this == nil {
5681 return "nil"
5682 }
5683 s := make([]string, 0, 5)
5684 s = append(s, "&mesosproto.ReviveOffersMessage{")
5685 if this.FrameworkId != nil {
5686 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5687 }
5688 if this.XXX_unrecognized != nil {
5689 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5690 }
5691 s = append(s, "}")
5692 return strings.Join(s, "")
5693 }
5694 func (this *RunTaskMessage) GoString() string {
5695 if this == nil {
5696 return "nil"
5697 }
5698 s := make([]string, 0, 8)
5699 s = append(s, "&mesosproto.RunTaskMessage{")
5700 if this.FrameworkId != nil {
5701 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5702 }
5703 if this.Framework != nil {
5704 s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n")
5705 }
5706 if this.Task != nil {
5707 s = append(s, "Task: "+fmt.Sprintf("%#v", this.Task)+",\n")
5708 }
5709 if this.Pid != nil {
5710 s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n")
5711 }
5712 if this.XXX_unrecognized != nil {
5713 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5714 }
5715 s = append(s, "}")
5716 return strings.Join(s, "")
5717 }
5718 func (this *KillTaskMessage) GoString() string {
5719 if this == nil {
5720 return "nil"
5721 }
5722 s := make([]string, 0, 6)
5723 s = append(s, "&mesosproto.KillTaskMessage{")
5724 if this.FrameworkId != nil {
5725 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5726 }
5727 if this.TaskId != nil {
5728 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
5729 }
5730 if this.XXX_unrecognized != nil {
5731 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5732 }
5733 s = append(s, "}")
5734 return strings.Join(s, "")
5735 }
5736 func (this *StatusUpdateMessage) GoString() string {
5737 if this == nil {
5738 return "nil"
5739 }
5740 s := make([]string, 0, 6)
5741 s = append(s, "&mesosproto.StatusUpdateMessage{")
5742 if this.Update != nil {
5743 s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
5744 }
5745 if this.Pid != nil {
5746 s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n")
5747 }
5748 if this.XXX_unrecognized != nil {
5749 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5750 }
5751 s = append(s, "}")
5752 return strings.Join(s, "")
5753 }
5754 func (this *StatusUpdateAcknowledgementMessage) GoString() string {
5755 if this == nil {
5756 return "nil"
5757 }
5758 s := make([]string, 0, 8)
5759 s = append(s, "&mesosproto.StatusUpdateAcknowledgementMessage{")
5760 if this.SlaveId != nil {
5761 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5762 }
5763 if this.FrameworkId != nil {
5764 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5765 }
5766 if this.TaskId != nil {
5767 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
5768 }
5769 if this.Uuid != nil {
5770 s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n")
5771 }
5772 if this.XXX_unrecognized != nil {
5773 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5774 }
5775 s = append(s, "}")
5776 return strings.Join(s, "")
5777 }
5778 func (this *LostSlaveMessage) GoString() string {
5779 if this == nil {
5780 return "nil"
5781 }
5782 s := make([]string, 0, 5)
5783 s = append(s, "&mesosproto.LostSlaveMessage{")
5784 if this.SlaveId != nil {
5785 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5786 }
5787 if this.XXX_unrecognized != nil {
5788 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5789 }
5790 s = append(s, "}")
5791 return strings.Join(s, "")
5792 }
5793 func (this *ReconcileTasksMessage) GoString() string {
5794 if this == nil {
5795 return "nil"
5796 }
5797 s := make([]string, 0, 6)
5798 s = append(s, "&mesosproto.ReconcileTasksMessage{")
5799 if this.FrameworkId != nil {
5800 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5801 }
5802 if this.Statuses != nil {
5803 s = append(s, "Statuses: "+fmt.Sprintf("%#v", this.Statuses)+",\n")
5804 }
5805 if this.XXX_unrecognized != nil {
5806 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5807 }
5808 s = append(s, "}")
5809 return strings.Join(s, "")
5810 }
5811 func (this *FrameworkErrorMessage) GoString() string {
5812 if this == nil {
5813 return "nil"
5814 }
5815 s := make([]string, 0, 5)
5816 s = append(s, "&mesosproto.FrameworkErrorMessage{")
5817 if this.Message != nil {
5818 s = append(s, "Message: "+valueToGoStringMessages(this.Message, "string")+",\n")
5819 }
5820 if this.XXX_unrecognized != nil {
5821 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5822 }
5823 s = append(s, "}")
5824 return strings.Join(s, "")
5825 }
5826 func (this *RegisterSlaveMessage) GoString() string {
5827 if this == nil {
5828 return "nil"
5829 }
5830 s := make([]string, 0, 7)
5831 s = append(s, "&mesosproto.RegisterSlaveMessage{")
5832 if this.Slave != nil {
5833 s = append(s, "Slave: "+fmt.Sprintf("%#v", this.Slave)+",\n")
5834 }
5835 if this.CheckpointedResources != nil {
5836 s = append(s, "CheckpointedResources: "+fmt.Sprintf("%#v", this.CheckpointedResources)+",\n")
5837 }
5838 if this.Version != nil {
5839 s = append(s, "Version: "+valueToGoStringMessages(this.Version, "string")+",\n")
5840 }
5841 if this.XXX_unrecognized != nil {
5842 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5843 }
5844 s = append(s, "}")
5845 return strings.Join(s, "")
5846 }
5847 func (this *ReregisterSlaveMessage) GoString() string {
5848 if this == nil {
5849 return "nil"
5850 }
5851 s := make([]string, 0, 10)
5852 s = append(s, "&mesosproto.ReregisterSlaveMessage{")
5853 if this.Slave != nil {
5854 s = append(s, "Slave: "+fmt.Sprintf("%#v", this.Slave)+",\n")
5855 }
5856 if this.CheckpointedResources != nil {
5857 s = append(s, "CheckpointedResources: "+fmt.Sprintf("%#v", this.CheckpointedResources)+",\n")
5858 }
5859 if this.ExecutorInfos != nil {
5860 s = append(s, "ExecutorInfos: "+fmt.Sprintf("%#v", this.ExecutorInfos)+",\n")
5861 }
5862 if this.Tasks != nil {
5863 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
5864 }
5865 if this.CompletedFrameworks != nil {
5866 s = append(s, "CompletedFrameworks: "+fmt.Sprintf("%#v", this.CompletedFrameworks)+",\n")
5867 }
5868 if this.Version != nil {
5869 s = append(s, "Version: "+valueToGoStringMessages(this.Version, "string")+",\n")
5870 }
5871 if this.XXX_unrecognized != nil {
5872 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5873 }
5874 s = append(s, "}")
5875 return strings.Join(s, "")
5876 }
5877 func (this *SlaveRegisteredMessage) GoString() string {
5878 if this == nil {
5879 return "nil"
5880 }
5881 s := make([]string, 0, 6)
5882 s = append(s, "&mesosproto.SlaveRegisteredMessage{")
5883 if this.SlaveId != nil {
5884 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5885 }
5886 if this.Connection != nil {
5887 s = append(s, "Connection: "+fmt.Sprintf("%#v", this.Connection)+",\n")
5888 }
5889 if this.XXX_unrecognized != nil {
5890 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5891 }
5892 s = append(s, "}")
5893 return strings.Join(s, "")
5894 }
5895 func (this *SlaveReregisteredMessage) GoString() string {
5896 if this == nil {
5897 return "nil"
5898 }
5899 s := make([]string, 0, 7)
5900 s = append(s, "&mesosproto.SlaveReregisteredMessage{")
5901 if this.SlaveId != nil {
5902 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5903 }
5904 if this.Reconciliations != nil {
5905 s = append(s, "Reconciliations: "+fmt.Sprintf("%#v", this.Reconciliations)+",\n")
5906 }
5907 if this.Connection != nil {
5908 s = append(s, "Connection: "+fmt.Sprintf("%#v", this.Connection)+",\n")
5909 }
5910 if this.XXX_unrecognized != nil {
5911 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5912 }
5913 s = append(s, "}")
5914 return strings.Join(s, "")
5915 }
5916 func (this *UnregisterSlaveMessage) GoString() string {
5917 if this == nil {
5918 return "nil"
5919 }
5920 s := make([]string, 0, 5)
5921 s = append(s, "&mesosproto.UnregisterSlaveMessage{")
5922 if this.SlaveId != nil {
5923 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
5924 }
5925 if this.XXX_unrecognized != nil {
5926 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5927 }
5928 s = append(s, "}")
5929 return strings.Join(s, "")
5930 }
5931 func (this *MasterSlaveConnection) GoString() string {
5932 if this == nil {
5933 return "nil"
5934 }
5935 s := make([]string, 0, 5)
5936 s = append(s, "&mesosproto.MasterSlaveConnection{")
5937 if this.TotalPingTimeoutSeconds != nil {
5938 s = append(s, "TotalPingTimeoutSeconds: "+valueToGoStringMessages(this.TotalPingTimeoutSeconds, "float64")+",\n")
5939 }
5940 if this.XXX_unrecognized != nil {
5941 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5942 }
5943 s = append(s, "}")
5944 return strings.Join(s, "")
5945 }
5946 func (this *PingSlaveMessage) GoString() string {
5947 if this == nil {
5948 return "nil"
5949 }
5950 s := make([]string, 0, 5)
5951 s = append(s, "&mesosproto.PingSlaveMessage{")
5952 if this.Connected != nil {
5953 s = append(s, "Connected: "+valueToGoStringMessages(this.Connected, "bool")+",\n")
5954 }
5955 if this.XXX_unrecognized != nil {
5956 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5957 }
5958 s = append(s, "}")
5959 return strings.Join(s, "")
5960 }
5961 func (this *PongSlaveMessage) GoString() string {
5962 if this == nil {
5963 return "nil"
5964 }
5965 s := make([]string, 0, 4)
5966 s = append(s, "&mesosproto.PongSlaveMessage{")
5967 if this.XXX_unrecognized != nil {
5968 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5969 }
5970 s = append(s, "}")
5971 return strings.Join(s, "")
5972 }
5973 func (this *ShutdownFrameworkMessage) GoString() string {
5974 if this == nil {
5975 return "nil"
5976 }
5977 s := make([]string, 0, 5)
5978 s = append(s, "&mesosproto.ShutdownFrameworkMessage{")
5979 if this.FrameworkId != nil {
5980 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5981 }
5982 if this.XXX_unrecognized != nil {
5983 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
5984 }
5985 s = append(s, "}")
5986 return strings.Join(s, "")
5987 }
5988 func (this *ShutdownExecutorMessage) GoString() string {
5989 if this == nil {
5990 return "nil"
5991 }
5992 s := make([]string, 0, 6)
5993 s = append(s, "&mesosproto.ShutdownExecutorMessage{")
5994 if this.ExecutorId != nil {
5995 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
5996 }
5997 if this.FrameworkId != nil {
5998 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
5999 }
6000 if this.XXX_unrecognized != nil {
6001 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6002 }
6003 s = append(s, "}")
6004 return strings.Join(s, "")
6005 }
6006 func (this *UpdateFrameworkMessage) GoString() string {
6007 if this == nil {
6008 return "nil"
6009 }
6010 s := make([]string, 0, 6)
6011 s = append(s, "&mesosproto.UpdateFrameworkMessage{")
6012 if this.FrameworkId != nil {
6013 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
6014 }
6015 if this.Pid != nil {
6016 s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n")
6017 }
6018 if this.XXX_unrecognized != nil {
6019 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6020 }
6021 s = append(s, "}")
6022 return strings.Join(s, "")
6023 }
6024 func (this *CheckpointResourcesMessage) GoString() string {
6025 if this == nil {
6026 return "nil"
6027 }
6028 s := make([]string, 0, 5)
6029 s = append(s, "&mesosproto.CheckpointResourcesMessage{")
6030 if this.Resources != nil {
6031 s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n")
6032 }
6033 if this.XXX_unrecognized != nil {
6034 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6035 }
6036 s = append(s, "}")
6037 return strings.Join(s, "")
6038 }
6039 func (this *UpdateSlaveMessage) GoString() string {
6040 if this == nil {
6041 return "nil"
6042 }
6043 s := make([]string, 0, 6)
6044 s = append(s, "&mesosproto.UpdateSlaveMessage{")
6045 if this.SlaveId != nil {
6046 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
6047 }
6048 if this.OversubscribedResources != nil {
6049 s = append(s, "OversubscribedResources: "+fmt.Sprintf("%#v", this.OversubscribedResources)+",\n")
6050 }
6051 if this.XXX_unrecognized != nil {
6052 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6053 }
6054 s = append(s, "}")
6055 return strings.Join(s, "")
6056 }
6057 func (this *RegisterExecutorMessage) GoString() string {
6058 if this == nil {
6059 return "nil"
6060 }
6061 s := make([]string, 0, 6)
6062 s = append(s, "&mesosproto.RegisterExecutorMessage{")
6063 if this.FrameworkId != nil {
6064 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
6065 }
6066 if this.ExecutorId != nil {
6067 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
6068 }
6069 if this.XXX_unrecognized != nil {
6070 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6071 }
6072 s = append(s, "}")
6073 return strings.Join(s, "")
6074 }
6075 func (this *ExecutorRegisteredMessage) GoString() string {
6076 if this == nil {
6077 return "nil"
6078 }
6079 s := make([]string, 0, 9)
6080 s = append(s, "&mesosproto.ExecutorRegisteredMessage{")
6081 if this.ExecutorInfo != nil {
6082 s = append(s, "ExecutorInfo: "+fmt.Sprintf("%#v", this.ExecutorInfo)+",\n")
6083 }
6084 if this.FrameworkId != nil {
6085 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
6086 }
6087 if this.FrameworkInfo != nil {
6088 s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n")
6089 }
6090 if this.SlaveId != nil {
6091 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
6092 }
6093 if this.SlaveInfo != nil {
6094 s = append(s, "SlaveInfo: "+fmt.Sprintf("%#v", this.SlaveInfo)+",\n")
6095 }
6096 if this.XXX_unrecognized != nil {
6097 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6098 }
6099 s = append(s, "}")
6100 return strings.Join(s, "")
6101 }
6102 func (this *ExecutorReregisteredMessage) GoString() string {
6103 if this == nil {
6104 return "nil"
6105 }
6106 s := make([]string, 0, 6)
6107 s = append(s, "&mesosproto.ExecutorReregisteredMessage{")
6108 if this.SlaveId != nil {
6109 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
6110 }
6111 if this.SlaveInfo != nil {
6112 s = append(s, "SlaveInfo: "+fmt.Sprintf("%#v", this.SlaveInfo)+",\n")
6113 }
6114 if this.XXX_unrecognized != nil {
6115 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6116 }
6117 s = append(s, "}")
6118 return strings.Join(s, "")
6119 }
6120 func (this *ExitedExecutorMessage) GoString() string {
6121 if this == nil {
6122 return "nil"
6123 }
6124 s := make([]string, 0, 8)
6125 s = append(s, "&mesosproto.ExitedExecutorMessage{")
6126 if this.SlaveId != nil {
6127 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
6128 }
6129 if this.FrameworkId != nil {
6130 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
6131 }
6132 if this.ExecutorId != nil {
6133 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
6134 }
6135 if this.Status != nil {
6136 s = append(s, "Status: "+valueToGoStringMessages(this.Status, "int32")+",\n")
6137 }
6138 if this.XXX_unrecognized != nil {
6139 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6140 }
6141 s = append(s, "}")
6142 return strings.Join(s, "")
6143 }
6144 func (this *ReconnectExecutorMessage) GoString() string {
6145 if this == nil {
6146 return "nil"
6147 }
6148 s := make([]string, 0, 5)
6149 s = append(s, "&mesosproto.ReconnectExecutorMessage{")
6150 if this.SlaveId != nil {
6151 s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n")
6152 }
6153 if this.XXX_unrecognized != nil {
6154 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6155 }
6156 s = append(s, "}")
6157 return strings.Join(s, "")
6158 }
6159 func (this *ReregisterExecutorMessage) GoString() string {
6160 if this == nil {
6161 return "nil"
6162 }
6163 s := make([]string, 0, 8)
6164 s = append(s, "&mesosproto.ReregisterExecutorMessage{")
6165 if this.ExecutorId != nil {
6166 s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n")
6167 }
6168 if this.FrameworkId != nil {
6169 s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n")
6170 }
6171 if this.Tasks != nil {
6172 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
6173 }
6174 if this.Updates != nil {
6175 s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
6176 }
6177 if this.XXX_unrecognized != nil {
6178 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6179 }
6180 s = append(s, "}")
6181 return strings.Join(s, "")
6182 }
6183 func (this *ShutdownMessage) GoString() string {
6184 if this == nil {
6185 return "nil"
6186 }
6187 s := make([]string, 0, 5)
6188 s = append(s, "&mesosproto.ShutdownMessage{")
6189 if this.Message != nil {
6190 s = append(s, "Message: "+valueToGoStringMessages(this.Message, "string")+",\n")
6191 }
6192 if this.XXX_unrecognized != nil {
6193 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6194 }
6195 s = append(s, "}")
6196 return strings.Join(s, "")
6197 }
6198 func (this *Archive) GoString() string {
6199 if this == nil {
6200 return "nil"
6201 }
6202 s := make([]string, 0, 5)
6203 s = append(s, "&mesosproto.Archive{")
6204 if this.Frameworks != nil {
6205 s = append(s, "Frameworks: "+fmt.Sprintf("%#v", this.Frameworks)+",\n")
6206 }
6207 if this.XXX_unrecognized != nil {
6208 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6209 }
6210 s = append(s, "}")
6211 return strings.Join(s, "")
6212 }
6213 func (this *Archive_Framework) GoString() string {
6214 if this == nil {
6215 return "nil"
6216 }
6217 s := make([]string, 0, 7)
6218 s = append(s, "&mesosproto.Archive_Framework{")
6219 if this.FrameworkInfo != nil {
6220 s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n")
6221 }
6222 if this.Pid != nil {
6223 s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n")
6224 }
6225 if this.Tasks != nil {
6226 s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n")
6227 }
6228 if this.XXX_unrecognized != nil {
6229 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6230 }
6231 s = append(s, "}")
6232 return strings.Join(s, "")
6233 }
6234 func (this *TaskHealthStatus) GoString() string {
6235 if this == nil {
6236 return "nil"
6237 }
6238 s := make([]string, 0, 8)
6239 s = append(s, "&mesosproto.TaskHealthStatus{")
6240 if this.TaskId != nil {
6241 s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n")
6242 }
6243 if this.Healthy != nil {
6244 s = append(s, "Healthy: "+valueToGoStringMessages(this.Healthy, "bool")+",\n")
6245 }
6246 if this.KillTask != nil {
6247 s = append(s, "KillTask: "+valueToGoStringMessages(this.KillTask, "bool")+",\n")
6248 }
6249 if this.ConsecutiveFailures != nil {
6250 s = append(s, "ConsecutiveFailures: "+valueToGoStringMessages(this.ConsecutiveFailures, "int32")+",\n")
6251 }
6252 if this.XXX_unrecognized != nil {
6253 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6254 }
6255 s = append(s, "}")
6256 return strings.Join(s, "")
6257 }
6258 func (this *HookExecuted) GoString() string {
6259 if this == nil {
6260 return "nil"
6261 }
6262 s := make([]string, 0, 5)
6263 s = append(s, "&mesosproto.HookExecuted{")
6264 if this.Module != nil {
6265 s = append(s, "Module: "+valueToGoStringMessages(this.Module, "string")+",\n")
6266 }
6267 if this.XXX_unrecognized != nil {
6268 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
6269 }
6270 s = append(s, "}")
6271 return strings.Join(s, "")
6272 }
6273 func valueToGoStringMessages(v interface{}, typ string) string {
6274 rv := reflect.ValueOf(v)
6275 if rv.IsNil() {
6276 return "nil"
6277 }
6278 pv := reflect.Indirect(rv).Interface()
6279 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
6280 }
6281 func extensionToGoStringMessages(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
6282 if e == nil {
6283 return "nil"
6284 }
6285 s := "map[int32]proto.Extension{"
6286 keys := make([]int, 0, len(e))
6287 for k := range e {
6288 keys = append(keys, int(k))
6289 }
6290 sort.Ints(keys)
6291 ss := []string{}
6292 for _, k := range keys {
6293 ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
6294 }
6295 s += strings.Join(ss, ",") + "}"
6296 return s
6297 }
6298 func (m *Task) Marshal() (data []byte, err error) {
6299 size := m.Size()
6300 data = make([]byte, size)
6301 n, err := m.MarshalTo(data)
6302 if err != nil {
6303 return nil, err
6304 }
6305 return data[:n], nil
6306 }
6307
6308 func (m *Task) MarshalTo(data []byte) (int, error) {
6309 var i int
6310 _ = i
6311 var l int
6312 _ = l
6313 if m.Name == nil {
6314 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name")
6315 } else {
6316 data[i] = 0xa
6317 i++
6318 i = encodeVarintMessages(data, i, uint64(len(*m.Name)))
6319 i += copy(data[i:], *m.Name)
6320 }
6321 if m.TaskId == nil {
6322 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
6323 } else {
6324 data[i] = 0x12
6325 i++
6326 i = encodeVarintMessages(data, i, uint64(m.TaskId.Size()))
6327 n1, err := m.TaskId.MarshalTo(data[i:])
6328 if err != nil {
6329 return 0, err
6330 }
6331 i += n1
6332 }
6333 if m.FrameworkId == nil {
6334 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6335 } else {
6336 data[i] = 0x1a
6337 i++
6338 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6339 n2, err := m.FrameworkId.MarshalTo(data[i:])
6340 if err != nil {
6341 return 0, err
6342 }
6343 i += n2
6344 }
6345 if m.ExecutorId != nil {
6346 data[i] = 0x22
6347 i++
6348 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
6349 n3, err := m.ExecutorId.MarshalTo(data[i:])
6350 if err != nil {
6351 return 0, err
6352 }
6353 i += n3
6354 }
6355 if m.SlaveId == nil {
6356 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
6357 } else {
6358 data[i] = 0x2a
6359 i++
6360 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
6361 n4, err := m.SlaveId.MarshalTo(data[i:])
6362 if err != nil {
6363 return 0, err
6364 }
6365 i += n4
6366 }
6367 if m.State == nil {
6368 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("state")
6369 } else {
6370 data[i] = 0x30
6371 i++
6372 i = encodeVarintMessages(data, i, uint64(*m.State))
6373 }
6374 if len(m.Resources) > 0 {
6375 for _, msg := range m.Resources {
6376 data[i] = 0x3a
6377 i++
6378 i = encodeVarintMessages(data, i, uint64(msg.Size()))
6379 n, err := msg.MarshalTo(data[i:])
6380 if err != nil {
6381 return 0, err
6382 }
6383 i += n
6384 }
6385 }
6386 if len(m.Statuses) > 0 {
6387 for _, msg := range m.Statuses {
6388 data[i] = 0x42
6389 i++
6390 i = encodeVarintMessages(data, i, uint64(msg.Size()))
6391 n, err := msg.MarshalTo(data[i:])
6392 if err != nil {
6393 return 0, err
6394 }
6395 i += n
6396 }
6397 }
6398 if m.StatusUpdateState != nil {
6399 data[i] = 0x48
6400 i++
6401 i = encodeVarintMessages(data, i, uint64(*m.StatusUpdateState))
6402 }
6403 if m.StatusUpdateUuid != nil {
6404 data[i] = 0x52
6405 i++
6406 i = encodeVarintMessages(data, i, uint64(len(m.StatusUpdateUuid)))
6407 i += copy(data[i:], m.StatusUpdateUuid)
6408 }
6409 if m.Labels != nil {
6410 data[i] = 0x5a
6411 i++
6412 i = encodeVarintMessages(data, i, uint64(m.Labels.Size()))
6413 n5, err := m.Labels.MarshalTo(data[i:])
6414 if err != nil {
6415 return 0, err
6416 }
6417 i += n5
6418 }
6419 if m.Discovery != nil {
6420 data[i] = 0x62
6421 i++
6422 i = encodeVarintMessages(data, i, uint64(m.Discovery.Size()))
6423 n6, err := m.Discovery.MarshalTo(data[i:])
6424 if err != nil {
6425 return 0, err
6426 }
6427 i += n6
6428 }
6429 if m.XXX_unrecognized != nil {
6430 i += copy(data[i:], m.XXX_unrecognized)
6431 }
6432 return i, nil
6433 }
6434
6435 func (m *StatusUpdate) Marshal() (data []byte, err error) {
6436 size := m.Size()
6437 data = make([]byte, size)
6438 n, err := m.MarshalTo(data)
6439 if err != nil {
6440 return nil, err
6441 }
6442 return data[:n], nil
6443 }
6444
6445 func (m *StatusUpdate) MarshalTo(data []byte) (int, error) {
6446 var i int
6447 _ = i
6448 var l int
6449 _ = l
6450 if m.FrameworkId == nil {
6451 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6452 } else {
6453 data[i] = 0xa
6454 i++
6455 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6456 n7, err := m.FrameworkId.MarshalTo(data[i:])
6457 if err != nil {
6458 return 0, err
6459 }
6460 i += n7
6461 }
6462 if m.ExecutorId != nil {
6463 data[i] = 0x12
6464 i++
6465 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
6466 n8, err := m.ExecutorId.MarshalTo(data[i:])
6467 if err != nil {
6468 return 0, err
6469 }
6470 i += n8
6471 }
6472 if m.SlaveId != nil {
6473 data[i] = 0x1a
6474 i++
6475 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
6476 n9, err := m.SlaveId.MarshalTo(data[i:])
6477 if err != nil {
6478 return 0, err
6479 }
6480 i += n9
6481 }
6482 if m.Status == nil {
6483 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
6484 } else {
6485 data[i] = 0x22
6486 i++
6487 i = encodeVarintMessages(data, i, uint64(m.Status.Size()))
6488 n10, err := m.Status.MarshalTo(data[i:])
6489 if err != nil {
6490 return 0, err
6491 }
6492 i += n10
6493 }
6494 if m.Timestamp == nil {
6495 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("timestamp")
6496 } else {
6497 data[i] = 0x29
6498 i++
6499 i = encodeFixed64Messages(data, i, uint64(math.Float64bits(*m.Timestamp)))
6500 }
6501 if m.Uuid != nil {
6502 data[i] = 0x32
6503 i++
6504 i = encodeVarintMessages(data, i, uint64(len(m.Uuid)))
6505 i += copy(data[i:], m.Uuid)
6506 }
6507 if m.LatestState != nil {
6508 data[i] = 0x38
6509 i++
6510 i = encodeVarintMessages(data, i, uint64(*m.LatestState))
6511 }
6512 if m.XXX_unrecognized != nil {
6513 i += copy(data[i:], m.XXX_unrecognized)
6514 }
6515 return i, nil
6516 }
6517
6518 func (m *StatusUpdateRecord) Marshal() (data []byte, err error) {
6519 size := m.Size()
6520 data = make([]byte, size)
6521 n, err := m.MarshalTo(data)
6522 if err != nil {
6523 return nil, err
6524 }
6525 return data[:n], nil
6526 }
6527
6528 func (m *StatusUpdateRecord) MarshalTo(data []byte) (int, error) {
6529 var i int
6530 _ = i
6531 var l int
6532 _ = l
6533 if m.Type == nil {
6534 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
6535 } else {
6536 data[i] = 0x8
6537 i++
6538 i = encodeVarintMessages(data, i, uint64(*m.Type))
6539 }
6540 if m.Update != nil {
6541 data[i] = 0x12
6542 i++
6543 i = encodeVarintMessages(data, i, uint64(m.Update.Size()))
6544 n11, err := m.Update.MarshalTo(data[i:])
6545 if err != nil {
6546 return 0, err
6547 }
6548 i += n11
6549 }
6550 if m.Uuid != nil {
6551 data[i] = 0x1a
6552 i++
6553 i = encodeVarintMessages(data, i, uint64(len(m.Uuid)))
6554 i += copy(data[i:], m.Uuid)
6555 }
6556 if m.XXX_unrecognized != nil {
6557 i += copy(data[i:], m.XXX_unrecognized)
6558 }
6559 return i, nil
6560 }
6561
6562 func (m *SubmitSchedulerRequest) Marshal() (data []byte, err error) {
6563 size := m.Size()
6564 data = make([]byte, size)
6565 n, err := m.MarshalTo(data)
6566 if err != nil {
6567 return nil, err
6568 }
6569 return data[:n], nil
6570 }
6571
6572 func (m *SubmitSchedulerRequest) MarshalTo(data []byte) (int, error) {
6573 var i int
6574 _ = i
6575 var l int
6576 _ = l
6577 if m.Name == nil {
6578 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name")
6579 } else {
6580 data[i] = 0xa
6581 i++
6582 i = encodeVarintMessages(data, i, uint64(len(*m.Name)))
6583 i += copy(data[i:], *m.Name)
6584 }
6585 if m.XXX_unrecognized != nil {
6586 i += copy(data[i:], m.XXX_unrecognized)
6587 }
6588 return i, nil
6589 }
6590
6591 func (m *SubmitSchedulerResponse) Marshal() (data []byte, err error) {
6592 size := m.Size()
6593 data = make([]byte, size)
6594 n, err := m.MarshalTo(data)
6595 if err != nil {
6596 return nil, err
6597 }
6598 return data[:n], nil
6599 }
6600
6601 func (m *SubmitSchedulerResponse) MarshalTo(data []byte) (int, error) {
6602 var i int
6603 _ = i
6604 var l int
6605 _ = l
6606 if m.Okay == nil {
6607 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("okay")
6608 } else {
6609 data[i] = 0x8
6610 i++
6611 if *m.Okay {
6612 data[i] = 1
6613 } else {
6614 data[i] = 0
6615 }
6616 i++
6617 }
6618 if m.XXX_unrecognized != nil {
6619 i += copy(data[i:], m.XXX_unrecognized)
6620 }
6621 return i, nil
6622 }
6623
6624 func (m *ExecutorToFrameworkMessage) Marshal() (data []byte, err error) {
6625 size := m.Size()
6626 data = make([]byte, size)
6627 n, err := m.MarshalTo(data)
6628 if err != nil {
6629 return nil, err
6630 }
6631 return data[:n], nil
6632 }
6633
6634 func (m *ExecutorToFrameworkMessage) MarshalTo(data []byte) (int, error) {
6635 var i int
6636 _ = i
6637 var l int
6638 _ = l
6639 if m.SlaveId == nil {
6640 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
6641 } else {
6642 data[i] = 0xa
6643 i++
6644 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
6645 n12, err := m.SlaveId.MarshalTo(data[i:])
6646 if err != nil {
6647 return 0, err
6648 }
6649 i += n12
6650 }
6651 if m.FrameworkId == nil {
6652 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6653 } else {
6654 data[i] = 0x12
6655 i++
6656 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6657 n13, err := m.FrameworkId.MarshalTo(data[i:])
6658 if err != nil {
6659 return 0, err
6660 }
6661 i += n13
6662 }
6663 if m.ExecutorId == nil {
6664 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
6665 } else {
6666 data[i] = 0x1a
6667 i++
6668 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
6669 n14, err := m.ExecutorId.MarshalTo(data[i:])
6670 if err != nil {
6671 return 0, err
6672 }
6673 i += n14
6674 }
6675 if m.Data == nil {
6676 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
6677 } else {
6678 data[i] = 0x22
6679 i++
6680 i = encodeVarintMessages(data, i, uint64(len(m.Data)))
6681 i += copy(data[i:], m.Data)
6682 }
6683 if m.XXX_unrecognized != nil {
6684 i += copy(data[i:], m.XXX_unrecognized)
6685 }
6686 return i, nil
6687 }
6688
6689 func (m *FrameworkToExecutorMessage) Marshal() (data []byte, err error) {
6690 size := m.Size()
6691 data = make([]byte, size)
6692 n, err := m.MarshalTo(data)
6693 if err != nil {
6694 return nil, err
6695 }
6696 return data[:n], nil
6697 }
6698
6699 func (m *FrameworkToExecutorMessage) MarshalTo(data []byte) (int, error) {
6700 var i int
6701 _ = i
6702 var l int
6703 _ = l
6704 if m.SlaveId == nil {
6705 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
6706 } else {
6707 data[i] = 0xa
6708 i++
6709 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
6710 n15, err := m.SlaveId.MarshalTo(data[i:])
6711 if err != nil {
6712 return 0, err
6713 }
6714 i += n15
6715 }
6716 if m.FrameworkId == nil {
6717 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6718 } else {
6719 data[i] = 0x12
6720 i++
6721 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6722 n16, err := m.FrameworkId.MarshalTo(data[i:])
6723 if err != nil {
6724 return 0, err
6725 }
6726 i += n16
6727 }
6728 if m.ExecutorId == nil {
6729 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
6730 } else {
6731 data[i] = 0x1a
6732 i++
6733 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
6734 n17, err := m.ExecutorId.MarshalTo(data[i:])
6735 if err != nil {
6736 return 0, err
6737 }
6738 i += n17
6739 }
6740 if m.Data == nil {
6741 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
6742 } else {
6743 data[i] = 0x22
6744 i++
6745 i = encodeVarintMessages(data, i, uint64(len(m.Data)))
6746 i += copy(data[i:], m.Data)
6747 }
6748 if m.XXX_unrecognized != nil {
6749 i += copy(data[i:], m.XXX_unrecognized)
6750 }
6751 return i, nil
6752 }
6753
6754 func (m *RegisterFrameworkMessage) Marshal() (data []byte, err error) {
6755 size := m.Size()
6756 data = make([]byte, size)
6757 n, err := m.MarshalTo(data)
6758 if err != nil {
6759 return nil, err
6760 }
6761 return data[:n], nil
6762 }
6763
6764 func (m *RegisterFrameworkMessage) MarshalTo(data []byte) (int, error) {
6765 var i int
6766 _ = i
6767 var l int
6768 _ = l
6769 if m.Framework == nil {
6770 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
6771 } else {
6772 data[i] = 0xa
6773 i++
6774 i = encodeVarintMessages(data, i, uint64(m.Framework.Size()))
6775 n18, err := m.Framework.MarshalTo(data[i:])
6776 if err != nil {
6777 return 0, err
6778 }
6779 i += n18
6780 }
6781 if m.XXX_unrecognized != nil {
6782 i += copy(data[i:], m.XXX_unrecognized)
6783 }
6784 return i, nil
6785 }
6786
6787 func (m *ReregisterFrameworkMessage) Marshal() (data []byte, err error) {
6788 size := m.Size()
6789 data = make([]byte, size)
6790 n, err := m.MarshalTo(data)
6791 if err != nil {
6792 return nil, err
6793 }
6794 return data[:n], nil
6795 }
6796
6797 func (m *ReregisterFrameworkMessage) MarshalTo(data []byte) (int, error) {
6798 var i int
6799 _ = i
6800 var l int
6801 _ = l
6802 if m.Framework == nil {
6803 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
6804 } else {
6805 data[i] = 0x12
6806 i++
6807 i = encodeVarintMessages(data, i, uint64(m.Framework.Size()))
6808 n19, err := m.Framework.MarshalTo(data[i:])
6809 if err != nil {
6810 return 0, err
6811 }
6812 i += n19
6813 }
6814 if m.Failover == nil {
6815 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("failover")
6816 } else {
6817 data[i] = 0x18
6818 i++
6819 if *m.Failover {
6820 data[i] = 1
6821 } else {
6822 data[i] = 0
6823 }
6824 i++
6825 }
6826 if m.XXX_unrecognized != nil {
6827 i += copy(data[i:], m.XXX_unrecognized)
6828 }
6829 return i, nil
6830 }
6831
6832 func (m *FrameworkRegisteredMessage) Marshal() (data []byte, err error) {
6833 size := m.Size()
6834 data = make([]byte, size)
6835 n, err := m.MarshalTo(data)
6836 if err != nil {
6837 return nil, err
6838 }
6839 return data[:n], nil
6840 }
6841
6842 func (m *FrameworkRegisteredMessage) MarshalTo(data []byte) (int, error) {
6843 var i int
6844 _ = i
6845 var l int
6846 _ = l
6847 if m.FrameworkId == nil {
6848 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6849 } else {
6850 data[i] = 0xa
6851 i++
6852 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6853 n20, err := m.FrameworkId.MarshalTo(data[i:])
6854 if err != nil {
6855 return 0, err
6856 }
6857 i += n20
6858 }
6859 if m.MasterInfo == nil {
6860 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info")
6861 } else {
6862 data[i] = 0x12
6863 i++
6864 i = encodeVarintMessages(data, i, uint64(m.MasterInfo.Size()))
6865 n21, err := m.MasterInfo.MarshalTo(data[i:])
6866 if err != nil {
6867 return 0, err
6868 }
6869 i += n21
6870 }
6871 if m.XXX_unrecognized != nil {
6872 i += copy(data[i:], m.XXX_unrecognized)
6873 }
6874 return i, nil
6875 }
6876
6877 func (m *FrameworkReregisteredMessage) Marshal() (data []byte, err error) {
6878 size := m.Size()
6879 data = make([]byte, size)
6880 n, err := m.MarshalTo(data)
6881 if err != nil {
6882 return nil, err
6883 }
6884 return data[:n], nil
6885 }
6886
6887 func (m *FrameworkReregisteredMessage) MarshalTo(data []byte) (int, error) {
6888 var i int
6889 _ = i
6890 var l int
6891 _ = l
6892 if m.FrameworkId == nil {
6893 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6894 } else {
6895 data[i] = 0xa
6896 i++
6897 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6898 n22, err := m.FrameworkId.MarshalTo(data[i:])
6899 if err != nil {
6900 return 0, err
6901 }
6902 i += n22
6903 }
6904 if m.MasterInfo == nil {
6905 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info")
6906 } else {
6907 data[i] = 0x12
6908 i++
6909 i = encodeVarintMessages(data, i, uint64(m.MasterInfo.Size()))
6910 n23, err := m.MasterInfo.MarshalTo(data[i:])
6911 if err != nil {
6912 return 0, err
6913 }
6914 i += n23
6915 }
6916 if m.XXX_unrecognized != nil {
6917 i += copy(data[i:], m.XXX_unrecognized)
6918 }
6919 return i, nil
6920 }
6921
6922 func (m *UnregisterFrameworkMessage) Marshal() (data []byte, err error) {
6923 size := m.Size()
6924 data = make([]byte, size)
6925 n, err := m.MarshalTo(data)
6926 if err != nil {
6927 return nil, err
6928 }
6929 return data[:n], nil
6930 }
6931
6932 func (m *UnregisterFrameworkMessage) MarshalTo(data []byte) (int, error) {
6933 var i int
6934 _ = i
6935 var l int
6936 _ = l
6937 if m.FrameworkId == nil {
6938 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6939 } else {
6940 data[i] = 0xa
6941 i++
6942 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6943 n24, err := m.FrameworkId.MarshalTo(data[i:])
6944 if err != nil {
6945 return 0, err
6946 }
6947 i += n24
6948 }
6949 if m.XXX_unrecognized != nil {
6950 i += copy(data[i:], m.XXX_unrecognized)
6951 }
6952 return i, nil
6953 }
6954
6955 func (m *DeactivateFrameworkMessage) Marshal() (data []byte, err error) {
6956 size := m.Size()
6957 data = make([]byte, size)
6958 n, err := m.MarshalTo(data)
6959 if err != nil {
6960 return nil, err
6961 }
6962 return data[:n], nil
6963 }
6964
6965 func (m *DeactivateFrameworkMessage) MarshalTo(data []byte) (int, error) {
6966 var i int
6967 _ = i
6968 var l int
6969 _ = l
6970 if m.FrameworkId == nil {
6971 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
6972 } else {
6973 data[i] = 0xa
6974 i++
6975 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
6976 n25, err := m.FrameworkId.MarshalTo(data[i:])
6977 if err != nil {
6978 return 0, err
6979 }
6980 i += n25
6981 }
6982 if m.XXX_unrecognized != nil {
6983 i += copy(data[i:], m.XXX_unrecognized)
6984 }
6985 return i, nil
6986 }
6987
6988 func (m *ResourceRequestMessage) Marshal() (data []byte, err error) {
6989 size := m.Size()
6990 data = make([]byte, size)
6991 n, err := m.MarshalTo(data)
6992 if err != nil {
6993 return nil, err
6994 }
6995 return data[:n], nil
6996 }
6997
6998 func (m *ResourceRequestMessage) MarshalTo(data []byte) (int, error) {
6999 var i int
7000 _ = i
7001 var l int
7002 _ = l
7003 if m.FrameworkId == nil {
7004 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7005 } else {
7006 data[i] = 0xa
7007 i++
7008 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7009 n26, err := m.FrameworkId.MarshalTo(data[i:])
7010 if err != nil {
7011 return 0, err
7012 }
7013 i += n26
7014 }
7015 if len(m.Requests) > 0 {
7016 for _, msg := range m.Requests {
7017 data[i] = 0x12
7018 i++
7019 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7020 n, err := msg.MarshalTo(data[i:])
7021 if err != nil {
7022 return 0, err
7023 }
7024 i += n
7025 }
7026 }
7027 if m.XXX_unrecognized != nil {
7028 i += copy(data[i:], m.XXX_unrecognized)
7029 }
7030 return i, nil
7031 }
7032
7033 func (m *ResourceOffersMessage) Marshal() (data []byte, err error) {
7034 size := m.Size()
7035 data = make([]byte, size)
7036 n, err := m.MarshalTo(data)
7037 if err != nil {
7038 return nil, err
7039 }
7040 return data[:n], nil
7041 }
7042
7043 func (m *ResourceOffersMessage) MarshalTo(data []byte) (int, error) {
7044 var i int
7045 _ = i
7046 var l int
7047 _ = l
7048 if len(m.Offers) > 0 {
7049 for _, msg := range m.Offers {
7050 data[i] = 0xa
7051 i++
7052 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7053 n, err := msg.MarshalTo(data[i:])
7054 if err != nil {
7055 return 0, err
7056 }
7057 i += n
7058 }
7059 }
7060 if len(m.Pids) > 0 {
7061 for _, s := range m.Pids {
7062 data[i] = 0x12
7063 i++
7064 l = len(s)
7065 for l >= 1<<7 {
7066 data[i] = uint8(uint64(l)&0x7f | 0x80)
7067 l >>= 7
7068 i++
7069 }
7070 data[i] = uint8(l)
7071 i++
7072 i += copy(data[i:], s)
7073 }
7074 }
7075 if len(m.InverseOffers) > 0 {
7076 for _, msg := range m.InverseOffers {
7077 data[i] = 0x1a
7078 i++
7079 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7080 n, err := msg.MarshalTo(data[i:])
7081 if err != nil {
7082 return 0, err
7083 }
7084 i += n
7085 }
7086 }
7087 if m.XXX_unrecognized != nil {
7088 i += copy(data[i:], m.XXX_unrecognized)
7089 }
7090 return i, nil
7091 }
7092
7093 func (m *LaunchTasksMessage) Marshal() (data []byte, err error) {
7094 size := m.Size()
7095 data = make([]byte, size)
7096 n, err := m.MarshalTo(data)
7097 if err != nil {
7098 return nil, err
7099 }
7100 return data[:n], nil
7101 }
7102
7103 func (m *LaunchTasksMessage) MarshalTo(data []byte) (int, error) {
7104 var i int
7105 _ = i
7106 var l int
7107 _ = l
7108 if m.FrameworkId == nil {
7109 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7110 } else {
7111 data[i] = 0xa
7112 i++
7113 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7114 n27, err := m.FrameworkId.MarshalTo(data[i:])
7115 if err != nil {
7116 return 0, err
7117 }
7118 i += n27
7119 }
7120 if len(m.Tasks) > 0 {
7121 for _, msg := range m.Tasks {
7122 data[i] = 0x1a
7123 i++
7124 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7125 n, err := msg.MarshalTo(data[i:])
7126 if err != nil {
7127 return 0, err
7128 }
7129 i += n
7130 }
7131 }
7132 if m.Filters == nil {
7133 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("filters")
7134 } else {
7135 data[i] = 0x2a
7136 i++
7137 i = encodeVarintMessages(data, i, uint64(m.Filters.Size()))
7138 n28, err := m.Filters.MarshalTo(data[i:])
7139 if err != nil {
7140 return 0, err
7141 }
7142 i += n28
7143 }
7144 if len(m.OfferIds) > 0 {
7145 for _, msg := range m.OfferIds {
7146 data[i] = 0x32
7147 i++
7148 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7149 n, err := msg.MarshalTo(data[i:])
7150 if err != nil {
7151 return 0, err
7152 }
7153 i += n
7154 }
7155 }
7156 if m.XXX_unrecognized != nil {
7157 i += copy(data[i:], m.XXX_unrecognized)
7158 }
7159 return i, nil
7160 }
7161
7162 func (m *RescindResourceOfferMessage) Marshal() (data []byte, err error) {
7163 size := m.Size()
7164 data = make([]byte, size)
7165 n, err := m.MarshalTo(data)
7166 if err != nil {
7167 return nil, err
7168 }
7169 return data[:n], nil
7170 }
7171
7172 func (m *RescindResourceOfferMessage) MarshalTo(data []byte) (int, error) {
7173 var i int
7174 _ = i
7175 var l int
7176 _ = l
7177 if m.OfferId == nil {
7178 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
7179 } else {
7180 data[i] = 0xa
7181 i++
7182 i = encodeVarintMessages(data, i, uint64(m.OfferId.Size()))
7183 n29, err := m.OfferId.MarshalTo(data[i:])
7184 if err != nil {
7185 return 0, err
7186 }
7187 i += n29
7188 }
7189 if m.XXX_unrecognized != nil {
7190 i += copy(data[i:], m.XXX_unrecognized)
7191 }
7192 return i, nil
7193 }
7194
7195 func (m *ReviveOffersMessage) Marshal() (data []byte, err error) {
7196 size := m.Size()
7197 data = make([]byte, size)
7198 n, err := m.MarshalTo(data)
7199 if err != nil {
7200 return nil, err
7201 }
7202 return data[:n], nil
7203 }
7204
7205 func (m *ReviveOffersMessage) MarshalTo(data []byte) (int, error) {
7206 var i int
7207 _ = i
7208 var l int
7209 _ = l
7210 if m.FrameworkId == nil {
7211 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7212 } else {
7213 data[i] = 0xa
7214 i++
7215 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7216 n30, err := m.FrameworkId.MarshalTo(data[i:])
7217 if err != nil {
7218 return 0, err
7219 }
7220 i += n30
7221 }
7222 if m.XXX_unrecognized != nil {
7223 i += copy(data[i:], m.XXX_unrecognized)
7224 }
7225 return i, nil
7226 }
7227
7228 func (m *RunTaskMessage) Marshal() (data []byte, err error) {
7229 size := m.Size()
7230 data = make([]byte, size)
7231 n, err := m.MarshalTo(data)
7232 if err != nil {
7233 return nil, err
7234 }
7235 return data[:n], nil
7236 }
7237
7238 func (m *RunTaskMessage) MarshalTo(data []byte) (int, error) {
7239 var i int
7240 _ = i
7241 var l int
7242 _ = l
7243 if m.FrameworkId != nil {
7244 data[i] = 0xa
7245 i++
7246 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7247 n31, err := m.FrameworkId.MarshalTo(data[i:])
7248 if err != nil {
7249 return 0, err
7250 }
7251 i += n31
7252 }
7253 if m.Framework == nil {
7254 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
7255 } else {
7256 data[i] = 0x12
7257 i++
7258 i = encodeVarintMessages(data, i, uint64(m.Framework.Size()))
7259 n32, err := m.Framework.MarshalTo(data[i:])
7260 if err != nil {
7261 return 0, err
7262 }
7263 i += n32
7264 }
7265 if m.Pid != nil {
7266 data[i] = 0x1a
7267 i++
7268 i = encodeVarintMessages(data, i, uint64(len(*m.Pid)))
7269 i += copy(data[i:], *m.Pid)
7270 }
7271 if m.Task == nil {
7272 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task")
7273 } else {
7274 data[i] = 0x22
7275 i++
7276 i = encodeVarintMessages(data, i, uint64(m.Task.Size()))
7277 n33, err := m.Task.MarshalTo(data[i:])
7278 if err != nil {
7279 return 0, err
7280 }
7281 i += n33
7282 }
7283 if m.XXX_unrecognized != nil {
7284 i += copy(data[i:], m.XXX_unrecognized)
7285 }
7286 return i, nil
7287 }
7288
7289 func (m *KillTaskMessage) Marshal() (data []byte, err error) {
7290 size := m.Size()
7291 data = make([]byte, size)
7292 n, err := m.MarshalTo(data)
7293 if err != nil {
7294 return nil, err
7295 }
7296 return data[:n], nil
7297 }
7298
7299 func (m *KillTaskMessage) MarshalTo(data []byte) (int, error) {
7300 var i int
7301 _ = i
7302 var l int
7303 _ = l
7304 if m.FrameworkId == nil {
7305 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7306 } else {
7307 data[i] = 0xa
7308 i++
7309 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7310 n34, err := m.FrameworkId.MarshalTo(data[i:])
7311 if err != nil {
7312 return 0, err
7313 }
7314 i += n34
7315 }
7316 if m.TaskId == nil {
7317 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
7318 } else {
7319 data[i] = 0x12
7320 i++
7321 i = encodeVarintMessages(data, i, uint64(m.TaskId.Size()))
7322 n35, err := m.TaskId.MarshalTo(data[i:])
7323 if err != nil {
7324 return 0, err
7325 }
7326 i += n35
7327 }
7328 if m.XXX_unrecognized != nil {
7329 i += copy(data[i:], m.XXX_unrecognized)
7330 }
7331 return i, nil
7332 }
7333
7334 func (m *StatusUpdateMessage) Marshal() (data []byte, err error) {
7335 size := m.Size()
7336 data = make([]byte, size)
7337 n, err := m.MarshalTo(data)
7338 if err != nil {
7339 return nil, err
7340 }
7341 return data[:n], nil
7342 }
7343
7344 func (m *StatusUpdateMessage) MarshalTo(data []byte) (int, error) {
7345 var i int
7346 _ = i
7347 var l int
7348 _ = l
7349 if m.Update == nil {
7350 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("update")
7351 } else {
7352 data[i] = 0xa
7353 i++
7354 i = encodeVarintMessages(data, i, uint64(m.Update.Size()))
7355 n36, err := m.Update.MarshalTo(data[i:])
7356 if err != nil {
7357 return 0, err
7358 }
7359 i += n36
7360 }
7361 if m.Pid != nil {
7362 data[i] = 0x12
7363 i++
7364 i = encodeVarintMessages(data, i, uint64(len(*m.Pid)))
7365 i += copy(data[i:], *m.Pid)
7366 }
7367 if m.XXX_unrecognized != nil {
7368 i += copy(data[i:], m.XXX_unrecognized)
7369 }
7370 return i, nil
7371 }
7372
7373 func (m *StatusUpdateAcknowledgementMessage) Marshal() (data []byte, err error) {
7374 size := m.Size()
7375 data = make([]byte, size)
7376 n, err := m.MarshalTo(data)
7377 if err != nil {
7378 return nil, err
7379 }
7380 return data[:n], nil
7381 }
7382
7383 func (m *StatusUpdateAcknowledgementMessage) MarshalTo(data []byte) (int, error) {
7384 var i int
7385 _ = i
7386 var l int
7387 _ = l
7388 if m.SlaveId == nil {
7389 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7390 } else {
7391 data[i] = 0xa
7392 i++
7393 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
7394 n37, err := m.SlaveId.MarshalTo(data[i:])
7395 if err != nil {
7396 return 0, err
7397 }
7398 i += n37
7399 }
7400 if m.FrameworkId == nil {
7401 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7402 } else {
7403 data[i] = 0x12
7404 i++
7405 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7406 n38, err := m.FrameworkId.MarshalTo(data[i:])
7407 if err != nil {
7408 return 0, err
7409 }
7410 i += n38
7411 }
7412 if m.TaskId == nil {
7413 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
7414 } else {
7415 data[i] = 0x1a
7416 i++
7417 i = encodeVarintMessages(data, i, uint64(m.TaskId.Size()))
7418 n39, err := m.TaskId.MarshalTo(data[i:])
7419 if err != nil {
7420 return 0, err
7421 }
7422 i += n39
7423 }
7424 if m.Uuid == nil {
7425 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
7426 } else {
7427 data[i] = 0x22
7428 i++
7429 i = encodeVarintMessages(data, i, uint64(len(m.Uuid)))
7430 i += copy(data[i:], m.Uuid)
7431 }
7432 if m.XXX_unrecognized != nil {
7433 i += copy(data[i:], m.XXX_unrecognized)
7434 }
7435 return i, nil
7436 }
7437
7438 func (m *LostSlaveMessage) Marshal() (data []byte, err error) {
7439 size := m.Size()
7440 data = make([]byte, size)
7441 n, err := m.MarshalTo(data)
7442 if err != nil {
7443 return nil, err
7444 }
7445 return data[:n], nil
7446 }
7447
7448 func (m *LostSlaveMessage) MarshalTo(data []byte) (int, error) {
7449 var i int
7450 _ = i
7451 var l int
7452 _ = l
7453 if m.SlaveId == nil {
7454 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7455 } else {
7456 data[i] = 0xa
7457 i++
7458 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
7459 n40, err := m.SlaveId.MarshalTo(data[i:])
7460 if err != nil {
7461 return 0, err
7462 }
7463 i += n40
7464 }
7465 if m.XXX_unrecognized != nil {
7466 i += copy(data[i:], m.XXX_unrecognized)
7467 }
7468 return i, nil
7469 }
7470
7471 func (m *ReconcileTasksMessage) Marshal() (data []byte, err error) {
7472 size := m.Size()
7473 data = make([]byte, size)
7474 n, err := m.MarshalTo(data)
7475 if err != nil {
7476 return nil, err
7477 }
7478 return data[:n], nil
7479 }
7480
7481 func (m *ReconcileTasksMessage) MarshalTo(data []byte) (int, error) {
7482 var i int
7483 _ = i
7484 var l int
7485 _ = l
7486 if m.FrameworkId == nil {
7487 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7488 } else {
7489 data[i] = 0xa
7490 i++
7491 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7492 n41, err := m.FrameworkId.MarshalTo(data[i:])
7493 if err != nil {
7494 return 0, err
7495 }
7496 i += n41
7497 }
7498 if len(m.Statuses) > 0 {
7499 for _, msg := range m.Statuses {
7500 data[i] = 0x12
7501 i++
7502 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7503 n, err := msg.MarshalTo(data[i:])
7504 if err != nil {
7505 return 0, err
7506 }
7507 i += n
7508 }
7509 }
7510 if m.XXX_unrecognized != nil {
7511 i += copy(data[i:], m.XXX_unrecognized)
7512 }
7513 return i, nil
7514 }
7515
7516 func (m *FrameworkErrorMessage) Marshal() (data []byte, err error) {
7517 size := m.Size()
7518 data = make([]byte, size)
7519 n, err := m.MarshalTo(data)
7520 if err != nil {
7521 return nil, err
7522 }
7523 return data[:n], nil
7524 }
7525
7526 func (m *FrameworkErrorMessage) MarshalTo(data []byte) (int, error) {
7527 var i int
7528 _ = i
7529 var l int
7530 _ = l
7531 if m.Message == nil {
7532 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
7533 } else {
7534 data[i] = 0x12
7535 i++
7536 i = encodeVarintMessages(data, i, uint64(len(*m.Message)))
7537 i += copy(data[i:], *m.Message)
7538 }
7539 if m.XXX_unrecognized != nil {
7540 i += copy(data[i:], m.XXX_unrecognized)
7541 }
7542 return i, nil
7543 }
7544
7545 func (m *RegisterSlaveMessage) Marshal() (data []byte, err error) {
7546 size := m.Size()
7547 data = make([]byte, size)
7548 n, err := m.MarshalTo(data)
7549 if err != nil {
7550 return nil, err
7551 }
7552 return data[:n], nil
7553 }
7554
7555 func (m *RegisterSlaveMessage) MarshalTo(data []byte) (int, error) {
7556 var i int
7557 _ = i
7558 var l int
7559 _ = l
7560 if m.Slave == nil {
7561 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave")
7562 } else {
7563 data[i] = 0xa
7564 i++
7565 i = encodeVarintMessages(data, i, uint64(m.Slave.Size()))
7566 n42, err := m.Slave.MarshalTo(data[i:])
7567 if err != nil {
7568 return 0, err
7569 }
7570 i += n42
7571 }
7572 if m.Version != nil {
7573 data[i] = 0x12
7574 i++
7575 i = encodeVarintMessages(data, i, uint64(len(*m.Version)))
7576 i += copy(data[i:], *m.Version)
7577 }
7578 if len(m.CheckpointedResources) > 0 {
7579 for _, msg := range m.CheckpointedResources {
7580 data[i] = 0x1a
7581 i++
7582 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7583 n, err := msg.MarshalTo(data[i:])
7584 if err != nil {
7585 return 0, err
7586 }
7587 i += n
7588 }
7589 }
7590 if m.XXX_unrecognized != nil {
7591 i += copy(data[i:], m.XXX_unrecognized)
7592 }
7593 return i, nil
7594 }
7595
7596 func (m *ReregisterSlaveMessage) Marshal() (data []byte, err error) {
7597 size := m.Size()
7598 data = make([]byte, size)
7599 n, err := m.MarshalTo(data)
7600 if err != nil {
7601 return nil, err
7602 }
7603 return data[:n], nil
7604 }
7605
7606 func (m *ReregisterSlaveMessage) MarshalTo(data []byte) (int, error) {
7607 var i int
7608 _ = i
7609 var l int
7610 _ = l
7611 if m.Slave == nil {
7612 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave")
7613 } else {
7614 data[i] = 0x12
7615 i++
7616 i = encodeVarintMessages(data, i, uint64(m.Slave.Size()))
7617 n43, err := m.Slave.MarshalTo(data[i:])
7618 if err != nil {
7619 return 0, err
7620 }
7621 i += n43
7622 }
7623 if len(m.Tasks) > 0 {
7624 for _, msg := range m.Tasks {
7625 data[i] = 0x1a
7626 i++
7627 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7628 n, err := msg.MarshalTo(data[i:])
7629 if err != nil {
7630 return 0, err
7631 }
7632 i += n
7633 }
7634 }
7635 if len(m.ExecutorInfos) > 0 {
7636 for _, msg := range m.ExecutorInfos {
7637 data[i] = 0x22
7638 i++
7639 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7640 n, err := msg.MarshalTo(data[i:])
7641 if err != nil {
7642 return 0, err
7643 }
7644 i += n
7645 }
7646 }
7647 if len(m.CompletedFrameworks) > 0 {
7648 for _, msg := range m.CompletedFrameworks {
7649 data[i] = 0x2a
7650 i++
7651 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7652 n, err := msg.MarshalTo(data[i:])
7653 if err != nil {
7654 return 0, err
7655 }
7656 i += n
7657 }
7658 }
7659 if m.Version != nil {
7660 data[i] = 0x32
7661 i++
7662 i = encodeVarintMessages(data, i, uint64(len(*m.Version)))
7663 i += copy(data[i:], *m.Version)
7664 }
7665 if len(m.CheckpointedResources) > 0 {
7666 for _, msg := range m.CheckpointedResources {
7667 data[i] = 0x3a
7668 i++
7669 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7670 n, err := msg.MarshalTo(data[i:])
7671 if err != nil {
7672 return 0, err
7673 }
7674 i += n
7675 }
7676 }
7677 if m.XXX_unrecognized != nil {
7678 i += copy(data[i:], m.XXX_unrecognized)
7679 }
7680 return i, nil
7681 }
7682
7683 func (m *SlaveRegisteredMessage) Marshal() (data []byte, err error) {
7684 size := m.Size()
7685 data = make([]byte, size)
7686 n, err := m.MarshalTo(data)
7687 if err != nil {
7688 return nil, err
7689 }
7690 return data[:n], nil
7691 }
7692
7693 func (m *SlaveRegisteredMessage) MarshalTo(data []byte) (int, error) {
7694 var i int
7695 _ = i
7696 var l int
7697 _ = l
7698 if m.SlaveId == nil {
7699 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7700 } else {
7701 data[i] = 0xa
7702 i++
7703 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
7704 n44, err := m.SlaveId.MarshalTo(data[i:])
7705 if err != nil {
7706 return 0, err
7707 }
7708 i += n44
7709 }
7710 if m.Connection != nil {
7711 data[i] = 0x12
7712 i++
7713 i = encodeVarintMessages(data, i, uint64(m.Connection.Size()))
7714 n45, err := m.Connection.MarshalTo(data[i:])
7715 if err != nil {
7716 return 0, err
7717 }
7718 i += n45
7719 }
7720 if m.XXX_unrecognized != nil {
7721 i += copy(data[i:], m.XXX_unrecognized)
7722 }
7723 return i, nil
7724 }
7725
7726 func (m *SlaveReregisteredMessage) Marshal() (data []byte, err error) {
7727 size := m.Size()
7728 data = make([]byte, size)
7729 n, err := m.MarshalTo(data)
7730 if err != nil {
7731 return nil, err
7732 }
7733 return data[:n], nil
7734 }
7735
7736 func (m *SlaveReregisteredMessage) MarshalTo(data []byte) (int, error) {
7737 var i int
7738 _ = i
7739 var l int
7740 _ = l
7741 if m.SlaveId == nil {
7742 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7743 } else {
7744 data[i] = 0xa
7745 i++
7746 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
7747 n46, err := m.SlaveId.MarshalTo(data[i:])
7748 if err != nil {
7749 return 0, err
7750 }
7751 i += n46
7752 }
7753 if len(m.Reconciliations) > 0 {
7754 for _, msg := range m.Reconciliations {
7755 data[i] = 0x12
7756 i++
7757 i = encodeVarintMessages(data, i, uint64(msg.Size()))
7758 n, err := msg.MarshalTo(data[i:])
7759 if err != nil {
7760 return 0, err
7761 }
7762 i += n
7763 }
7764 }
7765 if m.Connection != nil {
7766 data[i] = 0x1a
7767 i++
7768 i = encodeVarintMessages(data, i, uint64(m.Connection.Size()))
7769 n47, err := m.Connection.MarshalTo(data[i:])
7770 if err != nil {
7771 return 0, err
7772 }
7773 i += n47
7774 }
7775 if m.XXX_unrecognized != nil {
7776 i += copy(data[i:], m.XXX_unrecognized)
7777 }
7778 return i, nil
7779 }
7780
7781 func (m *UnregisterSlaveMessage) Marshal() (data []byte, err error) {
7782 size := m.Size()
7783 data = make([]byte, size)
7784 n, err := m.MarshalTo(data)
7785 if err != nil {
7786 return nil, err
7787 }
7788 return data[:n], nil
7789 }
7790
7791 func (m *UnregisterSlaveMessage) MarshalTo(data []byte) (int, error) {
7792 var i int
7793 _ = i
7794 var l int
7795 _ = l
7796 if m.SlaveId == nil {
7797 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
7798 } else {
7799 data[i] = 0xa
7800 i++
7801 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
7802 n48, err := m.SlaveId.MarshalTo(data[i:])
7803 if err != nil {
7804 return 0, err
7805 }
7806 i += n48
7807 }
7808 if m.XXX_unrecognized != nil {
7809 i += copy(data[i:], m.XXX_unrecognized)
7810 }
7811 return i, nil
7812 }
7813
7814 func (m *MasterSlaveConnection) Marshal() (data []byte, err error) {
7815 size := m.Size()
7816 data = make([]byte, size)
7817 n, err := m.MarshalTo(data)
7818 if err != nil {
7819 return nil, err
7820 }
7821 return data[:n], nil
7822 }
7823
7824 func (m *MasterSlaveConnection) MarshalTo(data []byte) (int, error) {
7825 var i int
7826 _ = i
7827 var l int
7828 _ = l
7829 if m.TotalPingTimeoutSeconds != nil {
7830 data[i] = 0x9
7831 i++
7832 i = encodeFixed64Messages(data, i, uint64(math.Float64bits(*m.TotalPingTimeoutSeconds)))
7833 }
7834 if m.XXX_unrecognized != nil {
7835 i += copy(data[i:], m.XXX_unrecognized)
7836 }
7837 return i, nil
7838 }
7839
7840 func (m *PingSlaveMessage) Marshal() (data []byte, err error) {
7841 size := m.Size()
7842 data = make([]byte, size)
7843 n, err := m.MarshalTo(data)
7844 if err != nil {
7845 return nil, err
7846 }
7847 return data[:n], nil
7848 }
7849
7850 func (m *PingSlaveMessage) MarshalTo(data []byte) (int, error) {
7851 var i int
7852 _ = i
7853 var l int
7854 _ = l
7855 if m.Connected == nil {
7856 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("connected")
7857 } else {
7858 data[i] = 0x8
7859 i++
7860 if *m.Connected {
7861 data[i] = 1
7862 } else {
7863 data[i] = 0
7864 }
7865 i++
7866 }
7867 if m.XXX_unrecognized != nil {
7868 i += copy(data[i:], m.XXX_unrecognized)
7869 }
7870 return i, nil
7871 }
7872
7873 func (m *PongSlaveMessage) Marshal() (data []byte, err error) {
7874 size := m.Size()
7875 data = make([]byte, size)
7876 n, err := m.MarshalTo(data)
7877 if err != nil {
7878 return nil, err
7879 }
7880 return data[:n], nil
7881 }
7882
7883 func (m *PongSlaveMessage) MarshalTo(data []byte) (int, error) {
7884 var i int
7885 _ = i
7886 var l int
7887 _ = l
7888 if m.XXX_unrecognized != nil {
7889 i += copy(data[i:], m.XXX_unrecognized)
7890 }
7891 return i, nil
7892 }
7893
7894 func (m *ShutdownFrameworkMessage) Marshal() (data []byte, err error) {
7895 size := m.Size()
7896 data = make([]byte, size)
7897 n, err := m.MarshalTo(data)
7898 if err != nil {
7899 return nil, err
7900 }
7901 return data[:n], nil
7902 }
7903
7904 func (m *ShutdownFrameworkMessage) MarshalTo(data []byte) (int, error) {
7905 var i int
7906 _ = i
7907 var l int
7908 _ = l
7909 if m.FrameworkId == nil {
7910 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7911 } else {
7912 data[i] = 0xa
7913 i++
7914 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7915 n49, err := m.FrameworkId.MarshalTo(data[i:])
7916 if err != nil {
7917 return 0, err
7918 }
7919 i += n49
7920 }
7921 if m.XXX_unrecognized != nil {
7922 i += copy(data[i:], m.XXX_unrecognized)
7923 }
7924 return i, nil
7925 }
7926
7927 func (m *ShutdownExecutorMessage) Marshal() (data []byte, err error) {
7928 size := m.Size()
7929 data = make([]byte, size)
7930 n, err := m.MarshalTo(data)
7931 if err != nil {
7932 return nil, err
7933 }
7934 return data[:n], nil
7935 }
7936
7937 func (m *ShutdownExecutorMessage) MarshalTo(data []byte) (int, error) {
7938 var i int
7939 _ = i
7940 var l int
7941 _ = l
7942 if m.ExecutorId != nil {
7943 data[i] = 0xa
7944 i++
7945 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
7946 n50, err := m.ExecutorId.MarshalTo(data[i:])
7947 if err != nil {
7948 return 0, err
7949 }
7950 i += n50
7951 }
7952 if m.FrameworkId != nil {
7953 data[i] = 0x12
7954 i++
7955 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7956 n51, err := m.FrameworkId.MarshalTo(data[i:])
7957 if err != nil {
7958 return 0, err
7959 }
7960 i += n51
7961 }
7962 if m.XXX_unrecognized != nil {
7963 i += copy(data[i:], m.XXX_unrecognized)
7964 }
7965 return i, nil
7966 }
7967
7968 func (m *UpdateFrameworkMessage) Marshal() (data []byte, err error) {
7969 size := m.Size()
7970 data = make([]byte, size)
7971 n, err := m.MarshalTo(data)
7972 if err != nil {
7973 return nil, err
7974 }
7975 return data[:n], nil
7976 }
7977
7978 func (m *UpdateFrameworkMessage) MarshalTo(data []byte) (int, error) {
7979 var i int
7980 _ = i
7981 var l int
7982 _ = l
7983 if m.FrameworkId == nil {
7984 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
7985 } else {
7986 data[i] = 0xa
7987 i++
7988 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
7989 n52, err := m.FrameworkId.MarshalTo(data[i:])
7990 if err != nil {
7991 return 0, err
7992 }
7993 i += n52
7994 }
7995 if m.Pid != nil {
7996 data[i] = 0x12
7997 i++
7998 i = encodeVarintMessages(data, i, uint64(len(*m.Pid)))
7999 i += copy(data[i:], *m.Pid)
8000 }
8001 if m.XXX_unrecognized != nil {
8002 i += copy(data[i:], m.XXX_unrecognized)
8003 }
8004 return i, nil
8005 }
8006
8007 func (m *CheckpointResourcesMessage) Marshal() (data []byte, err error) {
8008 size := m.Size()
8009 data = make([]byte, size)
8010 n, err := m.MarshalTo(data)
8011 if err != nil {
8012 return nil, err
8013 }
8014 return data[:n], nil
8015 }
8016
8017 func (m *CheckpointResourcesMessage) MarshalTo(data []byte) (int, error) {
8018 var i int
8019 _ = i
8020 var l int
8021 _ = l
8022 if len(m.Resources) > 0 {
8023 for _, msg := range m.Resources {
8024 data[i] = 0xa
8025 i++
8026 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8027 n, err := msg.MarshalTo(data[i:])
8028 if err != nil {
8029 return 0, err
8030 }
8031 i += n
8032 }
8033 }
8034 if m.XXX_unrecognized != nil {
8035 i += copy(data[i:], m.XXX_unrecognized)
8036 }
8037 return i, nil
8038 }
8039
8040 func (m *UpdateSlaveMessage) Marshal() (data []byte, err error) {
8041 size := m.Size()
8042 data = make([]byte, size)
8043 n, err := m.MarshalTo(data)
8044 if err != nil {
8045 return nil, err
8046 }
8047 return data[:n], nil
8048 }
8049
8050 func (m *UpdateSlaveMessage) MarshalTo(data []byte) (int, error) {
8051 var i int
8052 _ = i
8053 var l int
8054 _ = l
8055 if m.SlaveId == nil {
8056 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
8057 } else {
8058 data[i] = 0xa
8059 i++
8060 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
8061 n53, err := m.SlaveId.MarshalTo(data[i:])
8062 if err != nil {
8063 return 0, err
8064 }
8065 i += n53
8066 }
8067 if len(m.OversubscribedResources) > 0 {
8068 for _, msg := range m.OversubscribedResources {
8069 data[i] = 0x12
8070 i++
8071 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8072 n, err := msg.MarshalTo(data[i:])
8073 if err != nil {
8074 return 0, err
8075 }
8076 i += n
8077 }
8078 }
8079 if m.XXX_unrecognized != nil {
8080 i += copy(data[i:], m.XXX_unrecognized)
8081 }
8082 return i, nil
8083 }
8084
8085 func (m *RegisterExecutorMessage) Marshal() (data []byte, err error) {
8086 size := m.Size()
8087 data = make([]byte, size)
8088 n, err := m.MarshalTo(data)
8089 if err != nil {
8090 return nil, err
8091 }
8092 return data[:n], nil
8093 }
8094
8095 func (m *RegisterExecutorMessage) MarshalTo(data []byte) (int, error) {
8096 var i int
8097 _ = i
8098 var l int
8099 _ = l
8100 if m.FrameworkId == nil {
8101 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
8102 } else {
8103 data[i] = 0xa
8104 i++
8105 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
8106 n54, err := m.FrameworkId.MarshalTo(data[i:])
8107 if err != nil {
8108 return 0, err
8109 }
8110 i += n54
8111 }
8112 if m.ExecutorId == nil {
8113 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
8114 } else {
8115 data[i] = 0x12
8116 i++
8117 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
8118 n55, err := m.ExecutorId.MarshalTo(data[i:])
8119 if err != nil {
8120 return 0, err
8121 }
8122 i += n55
8123 }
8124 if m.XXX_unrecognized != nil {
8125 i += copy(data[i:], m.XXX_unrecognized)
8126 }
8127 return i, nil
8128 }
8129
8130 func (m *ExecutorRegisteredMessage) Marshal() (data []byte, err error) {
8131 size := m.Size()
8132 data = make([]byte, size)
8133 n, err := m.MarshalTo(data)
8134 if err != nil {
8135 return nil, err
8136 }
8137 return data[:n], nil
8138 }
8139
8140 func (m *ExecutorRegisteredMessage) MarshalTo(data []byte) (int, error) {
8141 var i int
8142 _ = i
8143 var l int
8144 _ = l
8145 if m.ExecutorInfo == nil {
8146 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_info")
8147 } else {
8148 data[i] = 0x12
8149 i++
8150 i = encodeVarintMessages(data, i, uint64(m.ExecutorInfo.Size()))
8151 n56, err := m.ExecutorInfo.MarshalTo(data[i:])
8152 if err != nil {
8153 return 0, err
8154 }
8155 i += n56
8156 }
8157 if m.FrameworkId == nil {
8158 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
8159 } else {
8160 data[i] = 0x1a
8161 i++
8162 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
8163 n57, err := m.FrameworkId.MarshalTo(data[i:])
8164 if err != nil {
8165 return 0, err
8166 }
8167 i += n57
8168 }
8169 if m.FrameworkInfo == nil {
8170 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
8171 } else {
8172 data[i] = 0x22
8173 i++
8174 i = encodeVarintMessages(data, i, uint64(m.FrameworkInfo.Size()))
8175 n58, err := m.FrameworkInfo.MarshalTo(data[i:])
8176 if err != nil {
8177 return 0, err
8178 }
8179 i += n58
8180 }
8181 if m.SlaveId == nil {
8182 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
8183 } else {
8184 data[i] = 0x2a
8185 i++
8186 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
8187 n59, err := m.SlaveId.MarshalTo(data[i:])
8188 if err != nil {
8189 return 0, err
8190 }
8191 i += n59
8192 }
8193 if m.SlaveInfo == nil {
8194 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info")
8195 } else {
8196 data[i] = 0x32
8197 i++
8198 i = encodeVarintMessages(data, i, uint64(m.SlaveInfo.Size()))
8199 n60, err := m.SlaveInfo.MarshalTo(data[i:])
8200 if err != nil {
8201 return 0, err
8202 }
8203 i += n60
8204 }
8205 if m.XXX_unrecognized != nil {
8206 i += copy(data[i:], m.XXX_unrecognized)
8207 }
8208 return i, nil
8209 }
8210
8211 func (m *ExecutorReregisteredMessage) Marshal() (data []byte, err error) {
8212 size := m.Size()
8213 data = make([]byte, size)
8214 n, err := m.MarshalTo(data)
8215 if err != nil {
8216 return nil, err
8217 }
8218 return data[:n], nil
8219 }
8220
8221 func (m *ExecutorReregisteredMessage) MarshalTo(data []byte) (int, error) {
8222 var i int
8223 _ = i
8224 var l int
8225 _ = l
8226 if m.SlaveId == nil {
8227 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
8228 } else {
8229 data[i] = 0xa
8230 i++
8231 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
8232 n61, err := m.SlaveId.MarshalTo(data[i:])
8233 if err != nil {
8234 return 0, err
8235 }
8236 i += n61
8237 }
8238 if m.SlaveInfo == nil {
8239 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info")
8240 } else {
8241 data[i] = 0x12
8242 i++
8243 i = encodeVarintMessages(data, i, uint64(m.SlaveInfo.Size()))
8244 n62, err := m.SlaveInfo.MarshalTo(data[i:])
8245 if err != nil {
8246 return 0, err
8247 }
8248 i += n62
8249 }
8250 if m.XXX_unrecognized != nil {
8251 i += copy(data[i:], m.XXX_unrecognized)
8252 }
8253 return i, nil
8254 }
8255
8256 func (m *ExitedExecutorMessage) Marshal() (data []byte, err error) {
8257 size := m.Size()
8258 data = make([]byte, size)
8259 n, err := m.MarshalTo(data)
8260 if err != nil {
8261 return nil, err
8262 }
8263 return data[:n], nil
8264 }
8265
8266 func (m *ExitedExecutorMessage) MarshalTo(data []byte) (int, error) {
8267 var i int
8268 _ = i
8269 var l int
8270 _ = l
8271 if m.SlaveId == nil {
8272 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
8273 } else {
8274 data[i] = 0xa
8275 i++
8276 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
8277 n63, err := m.SlaveId.MarshalTo(data[i:])
8278 if err != nil {
8279 return 0, err
8280 }
8281 i += n63
8282 }
8283 if m.FrameworkId == nil {
8284 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
8285 } else {
8286 data[i] = 0x12
8287 i++
8288 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
8289 n64, err := m.FrameworkId.MarshalTo(data[i:])
8290 if err != nil {
8291 return 0, err
8292 }
8293 i += n64
8294 }
8295 if m.ExecutorId == nil {
8296 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
8297 } else {
8298 data[i] = 0x1a
8299 i++
8300 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
8301 n65, err := m.ExecutorId.MarshalTo(data[i:])
8302 if err != nil {
8303 return 0, err
8304 }
8305 i += n65
8306 }
8307 if m.Status == nil {
8308 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
8309 } else {
8310 data[i] = 0x20
8311 i++
8312 i = encodeVarintMessages(data, i, uint64(*m.Status))
8313 }
8314 if m.XXX_unrecognized != nil {
8315 i += copy(data[i:], m.XXX_unrecognized)
8316 }
8317 return i, nil
8318 }
8319
8320 func (m *ReconnectExecutorMessage) Marshal() (data []byte, err error) {
8321 size := m.Size()
8322 data = make([]byte, size)
8323 n, err := m.MarshalTo(data)
8324 if err != nil {
8325 return nil, err
8326 }
8327 return data[:n], nil
8328 }
8329
8330 func (m *ReconnectExecutorMessage) MarshalTo(data []byte) (int, error) {
8331 var i int
8332 _ = i
8333 var l int
8334 _ = l
8335 if m.SlaveId == nil {
8336 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
8337 } else {
8338 data[i] = 0xa
8339 i++
8340 i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size()))
8341 n66, err := m.SlaveId.MarshalTo(data[i:])
8342 if err != nil {
8343 return 0, err
8344 }
8345 i += n66
8346 }
8347 if m.XXX_unrecognized != nil {
8348 i += copy(data[i:], m.XXX_unrecognized)
8349 }
8350 return i, nil
8351 }
8352
8353 func (m *ReregisterExecutorMessage) Marshal() (data []byte, err error) {
8354 size := m.Size()
8355 data = make([]byte, size)
8356 n, err := m.MarshalTo(data)
8357 if err != nil {
8358 return nil, err
8359 }
8360 return data[:n], nil
8361 }
8362
8363 func (m *ReregisterExecutorMessage) MarshalTo(data []byte) (int, error) {
8364 var i int
8365 _ = i
8366 var l int
8367 _ = l
8368 if m.ExecutorId == nil {
8369 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
8370 } else {
8371 data[i] = 0xa
8372 i++
8373 i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size()))
8374 n67, err := m.ExecutorId.MarshalTo(data[i:])
8375 if err != nil {
8376 return 0, err
8377 }
8378 i += n67
8379 }
8380 if m.FrameworkId == nil {
8381 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
8382 } else {
8383 data[i] = 0x12
8384 i++
8385 i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size()))
8386 n68, err := m.FrameworkId.MarshalTo(data[i:])
8387 if err != nil {
8388 return 0, err
8389 }
8390 i += n68
8391 }
8392 if len(m.Tasks) > 0 {
8393 for _, msg := range m.Tasks {
8394 data[i] = 0x1a
8395 i++
8396 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8397 n, err := msg.MarshalTo(data[i:])
8398 if err != nil {
8399 return 0, err
8400 }
8401 i += n
8402 }
8403 }
8404 if len(m.Updates) > 0 {
8405 for _, msg := range m.Updates {
8406 data[i] = 0x22
8407 i++
8408 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8409 n, err := msg.MarshalTo(data[i:])
8410 if err != nil {
8411 return 0, err
8412 }
8413 i += n
8414 }
8415 }
8416 if m.XXX_unrecognized != nil {
8417 i += copy(data[i:], m.XXX_unrecognized)
8418 }
8419 return i, nil
8420 }
8421
8422 func (m *ShutdownMessage) Marshal() (data []byte, err error) {
8423 size := m.Size()
8424 data = make([]byte, size)
8425 n, err := m.MarshalTo(data)
8426 if err != nil {
8427 return nil, err
8428 }
8429 return data[:n], nil
8430 }
8431
8432 func (m *ShutdownMessage) MarshalTo(data []byte) (int, error) {
8433 var i int
8434 _ = i
8435 var l int
8436 _ = l
8437 if m.Message != nil {
8438 data[i] = 0xa
8439 i++
8440 i = encodeVarintMessages(data, i, uint64(len(*m.Message)))
8441 i += copy(data[i:], *m.Message)
8442 }
8443 if m.XXX_unrecognized != nil {
8444 i += copy(data[i:], m.XXX_unrecognized)
8445 }
8446 return i, nil
8447 }
8448
8449 func (m *Archive) Marshal() (data []byte, err error) {
8450 size := m.Size()
8451 data = make([]byte, size)
8452 n, err := m.MarshalTo(data)
8453 if err != nil {
8454 return nil, err
8455 }
8456 return data[:n], nil
8457 }
8458
8459 func (m *Archive) MarshalTo(data []byte) (int, error) {
8460 var i int
8461 _ = i
8462 var l int
8463 _ = l
8464 if len(m.Frameworks) > 0 {
8465 for _, msg := range m.Frameworks {
8466 data[i] = 0xa
8467 i++
8468 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8469 n, err := msg.MarshalTo(data[i:])
8470 if err != nil {
8471 return 0, err
8472 }
8473 i += n
8474 }
8475 }
8476 if m.XXX_unrecognized != nil {
8477 i += copy(data[i:], m.XXX_unrecognized)
8478 }
8479 return i, nil
8480 }
8481
8482 func (m *Archive_Framework) Marshal() (data []byte, err error) {
8483 size := m.Size()
8484 data = make([]byte, size)
8485 n, err := m.MarshalTo(data)
8486 if err != nil {
8487 return nil, err
8488 }
8489 return data[:n], nil
8490 }
8491
8492 func (m *Archive_Framework) MarshalTo(data []byte) (int, error) {
8493 var i int
8494 _ = i
8495 var l int
8496 _ = l
8497 if m.FrameworkInfo == nil {
8498 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
8499 } else {
8500 data[i] = 0xa
8501 i++
8502 i = encodeVarintMessages(data, i, uint64(m.FrameworkInfo.Size()))
8503 n69, err := m.FrameworkInfo.MarshalTo(data[i:])
8504 if err != nil {
8505 return 0, err
8506 }
8507 i += n69
8508 }
8509 if m.Pid != nil {
8510 data[i] = 0x12
8511 i++
8512 i = encodeVarintMessages(data, i, uint64(len(*m.Pid)))
8513 i += copy(data[i:], *m.Pid)
8514 }
8515 if len(m.Tasks) > 0 {
8516 for _, msg := range m.Tasks {
8517 data[i] = 0x1a
8518 i++
8519 i = encodeVarintMessages(data, i, uint64(msg.Size()))
8520 n, err := msg.MarshalTo(data[i:])
8521 if err != nil {
8522 return 0, err
8523 }
8524 i += n
8525 }
8526 }
8527 if m.XXX_unrecognized != nil {
8528 i += copy(data[i:], m.XXX_unrecognized)
8529 }
8530 return i, nil
8531 }
8532
8533 func (m *TaskHealthStatus) Marshal() (data []byte, err error) {
8534 size := m.Size()
8535 data = make([]byte, size)
8536 n, err := m.MarshalTo(data)
8537 if err != nil {
8538 return nil, err
8539 }
8540 return data[:n], nil
8541 }
8542
8543 func (m *TaskHealthStatus) MarshalTo(data []byte) (int, error) {
8544 var i int
8545 _ = i
8546 var l int
8547 _ = l
8548 if m.TaskId == nil {
8549 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
8550 } else {
8551 data[i] = 0xa
8552 i++
8553 i = encodeVarintMessages(data, i, uint64(m.TaskId.Size()))
8554 n70, err := m.TaskId.MarshalTo(data[i:])
8555 if err != nil {
8556 return 0, err
8557 }
8558 i += n70
8559 }
8560 if m.Healthy == nil {
8561 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("healthy")
8562 } else {
8563 data[i] = 0x10
8564 i++
8565 if *m.Healthy {
8566 data[i] = 1
8567 } else {
8568 data[i] = 0
8569 }
8570 i++
8571 }
8572 if m.KillTask != nil {
8573 data[i] = 0x18
8574 i++
8575 if *m.KillTask {
8576 data[i] = 1
8577 } else {
8578 data[i] = 0
8579 }
8580 i++
8581 }
8582 if m.ConsecutiveFailures != nil {
8583 data[i] = 0x20
8584 i++
8585 i = encodeVarintMessages(data, i, uint64(*m.ConsecutiveFailures))
8586 }
8587 if m.XXX_unrecognized != nil {
8588 i += copy(data[i:], m.XXX_unrecognized)
8589 }
8590 return i, nil
8591 }
8592
8593 func (m *HookExecuted) Marshal() (data []byte, err error) {
8594 size := m.Size()
8595 data = make([]byte, size)
8596 n, err := m.MarshalTo(data)
8597 if err != nil {
8598 return nil, err
8599 }
8600 return data[:n], nil
8601 }
8602
8603 func (m *HookExecuted) MarshalTo(data []byte) (int, error) {
8604 var i int
8605 _ = i
8606 var l int
8607 _ = l
8608 if m.Module != nil {
8609 data[i] = 0xa
8610 i++
8611 i = encodeVarintMessages(data, i, uint64(len(*m.Module)))
8612 i += copy(data[i:], *m.Module)
8613 }
8614 if m.XXX_unrecognized != nil {
8615 i += copy(data[i:], m.XXX_unrecognized)
8616 }
8617 return i, nil
8618 }
8619
8620 func encodeFixed64Messages(data []byte, offset int, v uint64) int {
8621 data[offset] = uint8(v)
8622 data[offset+1] = uint8(v >> 8)
8623 data[offset+2] = uint8(v >> 16)
8624 data[offset+3] = uint8(v >> 24)
8625 data[offset+4] = uint8(v >> 32)
8626 data[offset+5] = uint8(v >> 40)
8627 data[offset+6] = uint8(v >> 48)
8628 data[offset+7] = uint8(v >> 56)
8629 return offset + 8
8630 }
8631 func encodeFixed32Messages(data []byte, offset int, v uint32) int {
8632 data[offset] = uint8(v)
8633 data[offset+1] = uint8(v >> 8)
8634 data[offset+2] = uint8(v >> 16)
8635 data[offset+3] = uint8(v >> 24)
8636 return offset + 4
8637 }
8638 func encodeVarintMessages(data []byte, offset int, v uint64) int {
8639 for v >= 1<<7 {
8640 data[offset] = uint8(v&0x7f | 0x80)
8641 v >>= 7
8642 offset++
8643 }
8644 data[offset] = uint8(v)
8645 return offset + 1
8646 }
8647 func NewPopulatedTask(r randyMessages, easy bool) *Task {
8648 this := &Task{}
8649 v1 := randStringMessages(r)
8650 this.Name = &v1
8651 this.TaskId = NewPopulatedTaskID(r, easy)
8652 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8653 if r.Intn(10) != 0 {
8654 this.ExecutorId = NewPopulatedExecutorID(r, easy)
8655 }
8656 this.SlaveId = NewPopulatedSlaveID(r, easy)
8657 v2 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)])
8658 this.State = &v2
8659 if r.Intn(10) != 0 {
8660 v3 := r.Intn(10)
8661 this.Resources = make([]*Resource, v3)
8662 for i := 0; i < v3; i++ {
8663 this.Resources[i] = NewPopulatedResource(r, easy)
8664 }
8665 }
8666 if r.Intn(10) != 0 {
8667 v4 := r.Intn(10)
8668 this.Statuses = make([]*TaskStatus, v4)
8669 for i := 0; i < v4; i++ {
8670 this.Statuses[i] = NewPopulatedTaskStatus(r, easy)
8671 }
8672 }
8673 if r.Intn(10) != 0 {
8674 v5 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)])
8675 this.StatusUpdateState = &v5
8676 }
8677 if r.Intn(10) != 0 {
8678 v6 := r.Intn(100)
8679 this.StatusUpdateUuid = make([]byte, v6)
8680 for i := 0; i < v6; i++ {
8681 this.StatusUpdateUuid[i] = byte(r.Intn(256))
8682 }
8683 }
8684 if r.Intn(10) != 0 {
8685 this.Labels = NewPopulatedLabels(r, easy)
8686 }
8687 if r.Intn(10) != 0 {
8688 this.Discovery = NewPopulatedDiscoveryInfo(r, easy)
8689 }
8690 if !easy && r.Intn(10) != 0 {
8691 this.XXX_unrecognized = randUnrecognizedMessages(r, 13)
8692 }
8693 return this
8694 }
8695
8696 func NewPopulatedStatusUpdate(r randyMessages, easy bool) *StatusUpdate {
8697 this := &StatusUpdate{}
8698 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8699 if r.Intn(10) != 0 {
8700 this.ExecutorId = NewPopulatedExecutorID(r, easy)
8701 }
8702 if r.Intn(10) != 0 {
8703 this.SlaveId = NewPopulatedSlaveID(r, easy)
8704 }
8705 this.Status = NewPopulatedTaskStatus(r, easy)
8706 v7 := float64(r.Float64())
8707 if r.Intn(2) == 0 {
8708 v7 *= -1
8709 }
8710 this.Timestamp = &v7
8711 if r.Intn(10) != 0 {
8712 v8 := r.Intn(100)
8713 this.Uuid = make([]byte, v8)
8714 for i := 0; i < v8; i++ {
8715 this.Uuid[i] = byte(r.Intn(256))
8716 }
8717 }
8718 if r.Intn(10) != 0 {
8719 v9 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)])
8720 this.LatestState = &v9
8721 }
8722 if !easy && r.Intn(10) != 0 {
8723 this.XXX_unrecognized = randUnrecognizedMessages(r, 8)
8724 }
8725 return this
8726 }
8727
8728 func NewPopulatedStatusUpdateRecord(r randyMessages, easy bool) *StatusUpdateRecord {
8729 this := &StatusUpdateRecord{}
8730 v10 := StatusUpdateRecord_Type([]int32{0, 1}[r.Intn(2)])
8731 this.Type = &v10
8732 if r.Intn(10) != 0 {
8733 this.Update = NewPopulatedStatusUpdate(r, easy)
8734 }
8735 if r.Intn(10) != 0 {
8736 v11 := r.Intn(100)
8737 this.Uuid = make([]byte, v11)
8738 for i := 0; i < v11; i++ {
8739 this.Uuid[i] = byte(r.Intn(256))
8740 }
8741 }
8742 if !easy && r.Intn(10) != 0 {
8743 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
8744 }
8745 return this
8746 }
8747
8748 func NewPopulatedSubmitSchedulerRequest(r randyMessages, easy bool) *SubmitSchedulerRequest {
8749 this := &SubmitSchedulerRequest{}
8750 v12 := randStringMessages(r)
8751 this.Name = &v12
8752 if !easy && r.Intn(10) != 0 {
8753 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8754 }
8755 return this
8756 }
8757
8758 func NewPopulatedSubmitSchedulerResponse(r randyMessages, easy bool) *SubmitSchedulerResponse {
8759 this := &SubmitSchedulerResponse{}
8760 v13 := bool(bool(r.Intn(2) == 0))
8761 this.Okay = &v13
8762 if !easy && r.Intn(10) != 0 {
8763 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8764 }
8765 return this
8766 }
8767
8768 func NewPopulatedExecutorToFrameworkMessage(r randyMessages, easy bool) *ExecutorToFrameworkMessage {
8769 this := &ExecutorToFrameworkMessage{}
8770 this.SlaveId = NewPopulatedSlaveID(r, easy)
8771 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8772 this.ExecutorId = NewPopulatedExecutorID(r, easy)
8773 v14 := r.Intn(100)
8774 this.Data = make([]byte, v14)
8775 for i := 0; i < v14; i++ {
8776 this.Data[i] = byte(r.Intn(256))
8777 }
8778 if !easy && r.Intn(10) != 0 {
8779 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
8780 }
8781 return this
8782 }
8783
8784 func NewPopulatedFrameworkToExecutorMessage(r randyMessages, easy bool) *FrameworkToExecutorMessage {
8785 this := &FrameworkToExecutorMessage{}
8786 this.SlaveId = NewPopulatedSlaveID(r, easy)
8787 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8788 this.ExecutorId = NewPopulatedExecutorID(r, easy)
8789 v15 := r.Intn(100)
8790 this.Data = make([]byte, v15)
8791 for i := 0; i < v15; i++ {
8792 this.Data[i] = byte(r.Intn(256))
8793 }
8794 if !easy && r.Intn(10) != 0 {
8795 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
8796 }
8797 return this
8798 }
8799
8800 func NewPopulatedRegisterFrameworkMessage(r randyMessages, easy bool) *RegisterFrameworkMessage {
8801 this := &RegisterFrameworkMessage{}
8802 this.Framework = NewPopulatedFrameworkInfo(r, easy)
8803 if !easy && r.Intn(10) != 0 {
8804 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8805 }
8806 return this
8807 }
8808
8809 func NewPopulatedReregisterFrameworkMessage(r randyMessages, easy bool) *ReregisterFrameworkMessage {
8810 this := &ReregisterFrameworkMessage{}
8811 this.Framework = NewPopulatedFrameworkInfo(r, easy)
8812 v16 := bool(bool(r.Intn(2) == 0))
8813 this.Failover = &v16
8814 if !easy && r.Intn(10) != 0 {
8815 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
8816 }
8817 return this
8818 }
8819
8820 func NewPopulatedFrameworkRegisteredMessage(r randyMessages, easy bool) *FrameworkRegisteredMessage {
8821 this := &FrameworkRegisteredMessage{}
8822 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8823 this.MasterInfo = NewPopulatedMasterInfo(r, easy)
8824 if !easy && r.Intn(10) != 0 {
8825 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
8826 }
8827 return this
8828 }
8829
8830 func NewPopulatedFrameworkReregisteredMessage(r randyMessages, easy bool) *FrameworkReregisteredMessage {
8831 this := &FrameworkReregisteredMessage{}
8832 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8833 this.MasterInfo = NewPopulatedMasterInfo(r, easy)
8834 if !easy && r.Intn(10) != 0 {
8835 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
8836 }
8837 return this
8838 }
8839
8840 func NewPopulatedUnregisterFrameworkMessage(r randyMessages, easy bool) *UnregisterFrameworkMessage {
8841 this := &UnregisterFrameworkMessage{}
8842 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8843 if !easy && r.Intn(10) != 0 {
8844 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8845 }
8846 return this
8847 }
8848
8849 func NewPopulatedDeactivateFrameworkMessage(r randyMessages, easy bool) *DeactivateFrameworkMessage {
8850 this := &DeactivateFrameworkMessage{}
8851 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8852 if !easy && r.Intn(10) != 0 {
8853 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8854 }
8855 return this
8856 }
8857
8858 func NewPopulatedResourceRequestMessage(r randyMessages, easy bool) *ResourceRequestMessage {
8859 this := &ResourceRequestMessage{}
8860 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8861 if r.Intn(10) != 0 {
8862 v17 := r.Intn(10)
8863 this.Requests = make([]*Request, v17)
8864 for i := 0; i < v17; i++ {
8865 this.Requests[i] = NewPopulatedRequest(r, easy)
8866 }
8867 }
8868 if !easy && r.Intn(10) != 0 {
8869 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
8870 }
8871 return this
8872 }
8873
8874 func NewPopulatedResourceOffersMessage(r randyMessages, easy bool) *ResourceOffersMessage {
8875 this := &ResourceOffersMessage{}
8876 if r.Intn(10) != 0 {
8877 v18 := r.Intn(10)
8878 this.Offers = make([]*Offer, v18)
8879 for i := 0; i < v18; i++ {
8880 this.Offers[i] = NewPopulatedOffer(r, easy)
8881 }
8882 }
8883 if r.Intn(10) != 0 {
8884 v19 := r.Intn(10)
8885 this.Pids = make([]string, v19)
8886 for i := 0; i < v19; i++ {
8887 this.Pids[i] = randStringMessages(r)
8888 }
8889 }
8890 if r.Intn(10) != 0 {
8891 v20 := r.Intn(10)
8892 this.InverseOffers = make([]*InverseOffer, v20)
8893 for i := 0; i < v20; i++ {
8894 this.InverseOffers[i] = NewPopulatedInverseOffer(r, easy)
8895 }
8896 }
8897 if !easy && r.Intn(10) != 0 {
8898 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
8899 }
8900 return this
8901 }
8902
8903 func NewPopulatedLaunchTasksMessage(r randyMessages, easy bool) *LaunchTasksMessage {
8904 this := &LaunchTasksMessage{}
8905 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8906 if r.Intn(10) != 0 {
8907 v21 := r.Intn(10)
8908 this.Tasks = make([]*TaskInfo, v21)
8909 for i := 0; i < v21; i++ {
8910 this.Tasks[i] = NewPopulatedTaskInfo(r, easy)
8911 }
8912 }
8913 this.Filters = NewPopulatedFilters(r, easy)
8914 if r.Intn(10) != 0 {
8915 v22 := r.Intn(10)
8916 this.OfferIds = make([]*OfferID, v22)
8917 for i := 0; i < v22; i++ {
8918 this.OfferIds[i] = NewPopulatedOfferID(r, easy)
8919 }
8920 }
8921 if !easy && r.Intn(10) != 0 {
8922 this.XXX_unrecognized = randUnrecognizedMessages(r, 7)
8923 }
8924 return this
8925 }
8926
8927 func NewPopulatedRescindResourceOfferMessage(r randyMessages, easy bool) *RescindResourceOfferMessage {
8928 this := &RescindResourceOfferMessage{}
8929 this.OfferId = NewPopulatedOfferID(r, easy)
8930 if !easy && r.Intn(10) != 0 {
8931 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8932 }
8933 return this
8934 }
8935
8936 func NewPopulatedReviveOffersMessage(r randyMessages, easy bool) *ReviveOffersMessage {
8937 this := &ReviveOffersMessage{}
8938 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8939 if !easy && r.Intn(10) != 0 {
8940 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
8941 }
8942 return this
8943 }
8944
8945 func NewPopulatedRunTaskMessage(r randyMessages, easy bool) *RunTaskMessage {
8946 this := &RunTaskMessage{}
8947 if r.Intn(10) != 0 {
8948 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8949 }
8950 this.Framework = NewPopulatedFrameworkInfo(r, easy)
8951 if r.Intn(10) != 0 {
8952 v23 := randStringMessages(r)
8953 this.Pid = &v23
8954 }
8955 this.Task = NewPopulatedTaskInfo(r, easy)
8956 if !easy && r.Intn(10) != 0 {
8957 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
8958 }
8959 return this
8960 }
8961
8962 func NewPopulatedKillTaskMessage(r randyMessages, easy bool) *KillTaskMessage {
8963 this := &KillTaskMessage{}
8964 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8965 this.TaskId = NewPopulatedTaskID(r, easy)
8966 if !easy && r.Intn(10) != 0 {
8967 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
8968 }
8969 return this
8970 }
8971
8972 func NewPopulatedStatusUpdateMessage(r randyMessages, easy bool) *StatusUpdateMessage {
8973 this := &StatusUpdateMessage{}
8974 this.Update = NewPopulatedStatusUpdate(r, easy)
8975 if r.Intn(10) != 0 {
8976 v24 := randStringMessages(r)
8977 this.Pid = &v24
8978 }
8979 if !easy && r.Intn(10) != 0 {
8980 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
8981 }
8982 return this
8983 }
8984
8985 func NewPopulatedStatusUpdateAcknowledgementMessage(r randyMessages, easy bool) *StatusUpdateAcknowledgementMessage {
8986 this := &StatusUpdateAcknowledgementMessage{}
8987 this.SlaveId = NewPopulatedSlaveID(r, easy)
8988 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
8989 this.TaskId = NewPopulatedTaskID(r, easy)
8990 v25 := r.Intn(100)
8991 this.Uuid = make([]byte, v25)
8992 for i := 0; i < v25; i++ {
8993 this.Uuid[i] = byte(r.Intn(256))
8994 }
8995 if !easy && r.Intn(10) != 0 {
8996 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
8997 }
8998 return this
8999 }
9000
9001 func NewPopulatedLostSlaveMessage(r randyMessages, easy bool) *LostSlaveMessage {
9002 this := &LostSlaveMessage{}
9003 this.SlaveId = NewPopulatedSlaveID(r, easy)
9004 if !easy && r.Intn(10) != 0 {
9005 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9006 }
9007 return this
9008 }
9009
9010 func NewPopulatedReconcileTasksMessage(r randyMessages, easy bool) *ReconcileTasksMessage {
9011 this := &ReconcileTasksMessage{}
9012 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9013 if r.Intn(10) != 0 {
9014 v26 := r.Intn(10)
9015 this.Statuses = make([]*TaskStatus, v26)
9016 for i := 0; i < v26; i++ {
9017 this.Statuses[i] = NewPopulatedTaskStatus(r, easy)
9018 }
9019 }
9020 if !easy && r.Intn(10) != 0 {
9021 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9022 }
9023 return this
9024 }
9025
9026 func NewPopulatedFrameworkErrorMessage(r randyMessages, easy bool) *FrameworkErrorMessage {
9027 this := &FrameworkErrorMessage{}
9028 v27 := randStringMessages(r)
9029 this.Message = &v27
9030 if !easy && r.Intn(10) != 0 {
9031 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9032 }
9033 return this
9034 }
9035
9036 func NewPopulatedRegisterSlaveMessage(r randyMessages, easy bool) *RegisterSlaveMessage {
9037 this := &RegisterSlaveMessage{}
9038 this.Slave = NewPopulatedSlaveInfo(r, easy)
9039 if r.Intn(10) != 0 {
9040 v28 := randStringMessages(r)
9041 this.Version = &v28
9042 }
9043 if r.Intn(10) != 0 {
9044 v29 := r.Intn(10)
9045 this.CheckpointedResources = make([]*Resource, v29)
9046 for i := 0; i < v29; i++ {
9047 this.CheckpointedResources[i] = NewPopulatedResource(r, easy)
9048 }
9049 }
9050 if !easy && r.Intn(10) != 0 {
9051 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
9052 }
9053 return this
9054 }
9055
9056 func NewPopulatedReregisterSlaveMessage(r randyMessages, easy bool) *ReregisterSlaveMessage {
9057 this := &ReregisterSlaveMessage{}
9058 this.Slave = NewPopulatedSlaveInfo(r, easy)
9059 if r.Intn(10) != 0 {
9060 v30 := r.Intn(10)
9061 this.Tasks = make([]*Task, v30)
9062 for i := 0; i < v30; i++ {
9063 this.Tasks[i] = NewPopulatedTask(r, easy)
9064 }
9065 }
9066 if r.Intn(10) != 0 {
9067 v31 := r.Intn(10)
9068 this.ExecutorInfos = make([]*ExecutorInfo, v31)
9069 for i := 0; i < v31; i++ {
9070 this.ExecutorInfos[i] = NewPopulatedExecutorInfo(r, easy)
9071 }
9072 }
9073 if r.Intn(10) != 0 {
9074 v32 := r.Intn(10)
9075 this.CompletedFrameworks = make([]*Archive_Framework, v32)
9076 for i := 0; i < v32; i++ {
9077 this.CompletedFrameworks[i] = NewPopulatedArchive_Framework(r, easy)
9078 }
9079 }
9080 if r.Intn(10) != 0 {
9081 v33 := randStringMessages(r)
9082 this.Version = &v33
9083 }
9084 if r.Intn(10) != 0 {
9085 v34 := r.Intn(10)
9086 this.CheckpointedResources = make([]*Resource, v34)
9087 for i := 0; i < v34; i++ {
9088 this.CheckpointedResources[i] = NewPopulatedResource(r, easy)
9089 }
9090 }
9091 if !easy && r.Intn(10) != 0 {
9092 this.XXX_unrecognized = randUnrecognizedMessages(r, 8)
9093 }
9094 return this
9095 }
9096
9097 func NewPopulatedSlaveRegisteredMessage(r randyMessages, easy bool) *SlaveRegisteredMessage {
9098 this := &SlaveRegisteredMessage{}
9099 this.SlaveId = NewPopulatedSlaveID(r, easy)
9100 if r.Intn(10) != 0 {
9101 this.Connection = NewPopulatedMasterSlaveConnection(r, easy)
9102 }
9103 if !easy && r.Intn(10) != 0 {
9104 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9105 }
9106 return this
9107 }
9108
9109 func NewPopulatedSlaveReregisteredMessage(r randyMessages, easy bool) *SlaveReregisteredMessage {
9110 this := &SlaveReregisteredMessage{}
9111 this.SlaveId = NewPopulatedSlaveID(r, easy)
9112 if r.Intn(10) != 0 {
9113 v35 := r.Intn(10)
9114 this.Reconciliations = make([]*ReconcileTasksMessage, v35)
9115 for i := 0; i < v35; i++ {
9116 this.Reconciliations[i] = NewPopulatedReconcileTasksMessage(r, easy)
9117 }
9118 }
9119 if r.Intn(10) != 0 {
9120 this.Connection = NewPopulatedMasterSlaveConnection(r, easy)
9121 }
9122 if !easy && r.Intn(10) != 0 {
9123 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
9124 }
9125 return this
9126 }
9127
9128 func NewPopulatedUnregisterSlaveMessage(r randyMessages, easy bool) *UnregisterSlaveMessage {
9129 this := &UnregisterSlaveMessage{}
9130 this.SlaveId = NewPopulatedSlaveID(r, easy)
9131 if !easy && r.Intn(10) != 0 {
9132 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9133 }
9134 return this
9135 }
9136
9137 func NewPopulatedMasterSlaveConnection(r randyMessages, easy bool) *MasterSlaveConnection {
9138 this := &MasterSlaveConnection{}
9139 if r.Intn(10) != 0 {
9140 v36 := float64(r.Float64())
9141 if r.Intn(2) == 0 {
9142 v36 *= -1
9143 }
9144 this.TotalPingTimeoutSeconds = &v36
9145 }
9146 if !easy && r.Intn(10) != 0 {
9147 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9148 }
9149 return this
9150 }
9151
9152 func NewPopulatedPingSlaveMessage(r randyMessages, easy bool) *PingSlaveMessage {
9153 this := &PingSlaveMessage{}
9154 v37 := bool(bool(r.Intn(2) == 0))
9155 this.Connected = &v37
9156 if !easy && r.Intn(10) != 0 {
9157 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9158 }
9159 return this
9160 }
9161
9162 func NewPopulatedPongSlaveMessage(r randyMessages, easy bool) *PongSlaveMessage {
9163 this := &PongSlaveMessage{}
9164 if !easy && r.Intn(10) != 0 {
9165 this.XXX_unrecognized = randUnrecognizedMessages(r, 1)
9166 }
9167 return this
9168 }
9169
9170 func NewPopulatedShutdownFrameworkMessage(r randyMessages, easy bool) *ShutdownFrameworkMessage {
9171 this := &ShutdownFrameworkMessage{}
9172 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9173 if !easy && r.Intn(10) != 0 {
9174 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9175 }
9176 return this
9177 }
9178
9179 func NewPopulatedShutdownExecutorMessage(r randyMessages, easy bool) *ShutdownExecutorMessage {
9180 this := &ShutdownExecutorMessage{}
9181 if r.Intn(10) != 0 {
9182 this.ExecutorId = NewPopulatedExecutorID(r, easy)
9183 }
9184 if r.Intn(10) != 0 {
9185 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9186 }
9187 if !easy && r.Intn(10) != 0 {
9188 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9189 }
9190 return this
9191 }
9192
9193 func NewPopulatedUpdateFrameworkMessage(r randyMessages, easy bool) *UpdateFrameworkMessage {
9194 this := &UpdateFrameworkMessage{}
9195 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9196 if r.Intn(10) != 0 {
9197 v38 := randStringMessages(r)
9198 this.Pid = &v38
9199 }
9200 if !easy && r.Intn(10) != 0 {
9201 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9202 }
9203 return this
9204 }
9205
9206 func NewPopulatedCheckpointResourcesMessage(r randyMessages, easy bool) *CheckpointResourcesMessage {
9207 this := &CheckpointResourcesMessage{}
9208 if r.Intn(10) != 0 {
9209 v39 := r.Intn(10)
9210 this.Resources = make([]*Resource, v39)
9211 for i := 0; i < v39; i++ {
9212 this.Resources[i] = NewPopulatedResource(r, easy)
9213 }
9214 }
9215 if !easy && r.Intn(10) != 0 {
9216 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9217 }
9218 return this
9219 }
9220
9221 func NewPopulatedUpdateSlaveMessage(r randyMessages, easy bool) *UpdateSlaveMessage {
9222 this := &UpdateSlaveMessage{}
9223 this.SlaveId = NewPopulatedSlaveID(r, easy)
9224 if r.Intn(10) != 0 {
9225 v40 := r.Intn(10)
9226 this.OversubscribedResources = make([]*Resource, v40)
9227 for i := 0; i < v40; i++ {
9228 this.OversubscribedResources[i] = NewPopulatedResource(r, easy)
9229 }
9230 }
9231 if !easy && r.Intn(10) != 0 {
9232 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9233 }
9234 return this
9235 }
9236
9237 func NewPopulatedRegisterExecutorMessage(r randyMessages, easy bool) *RegisterExecutorMessage {
9238 this := &RegisterExecutorMessage{}
9239 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9240 this.ExecutorId = NewPopulatedExecutorID(r, easy)
9241 if !easy && r.Intn(10) != 0 {
9242 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9243 }
9244 return this
9245 }
9246
9247 func NewPopulatedExecutorRegisteredMessage(r randyMessages, easy bool) *ExecutorRegisteredMessage {
9248 this := &ExecutorRegisteredMessage{}
9249 this.ExecutorInfo = NewPopulatedExecutorInfo(r, easy)
9250 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9251 this.FrameworkInfo = NewPopulatedFrameworkInfo(r, easy)
9252 this.SlaveId = NewPopulatedSlaveID(r, easy)
9253 this.SlaveInfo = NewPopulatedSlaveInfo(r, easy)
9254 if !easy && r.Intn(10) != 0 {
9255 this.XXX_unrecognized = randUnrecognizedMessages(r, 7)
9256 }
9257 return this
9258 }
9259
9260 func NewPopulatedExecutorReregisteredMessage(r randyMessages, easy bool) *ExecutorReregisteredMessage {
9261 this := &ExecutorReregisteredMessage{}
9262 this.SlaveId = NewPopulatedSlaveID(r, easy)
9263 this.SlaveInfo = NewPopulatedSlaveInfo(r, easy)
9264 if !easy && r.Intn(10) != 0 {
9265 this.XXX_unrecognized = randUnrecognizedMessages(r, 3)
9266 }
9267 return this
9268 }
9269
9270 func NewPopulatedExitedExecutorMessage(r randyMessages, easy bool) *ExitedExecutorMessage {
9271 this := &ExitedExecutorMessage{}
9272 this.SlaveId = NewPopulatedSlaveID(r, easy)
9273 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9274 this.ExecutorId = NewPopulatedExecutorID(r, easy)
9275 v41 := int32(r.Int31())
9276 if r.Intn(2) == 0 {
9277 v41 *= -1
9278 }
9279 this.Status = &v41
9280 if !easy && r.Intn(10) != 0 {
9281 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
9282 }
9283 return this
9284 }
9285
9286 func NewPopulatedReconnectExecutorMessage(r randyMessages, easy bool) *ReconnectExecutorMessage {
9287 this := &ReconnectExecutorMessage{}
9288 this.SlaveId = NewPopulatedSlaveID(r, easy)
9289 if !easy && r.Intn(10) != 0 {
9290 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9291 }
9292 return this
9293 }
9294
9295 func NewPopulatedReregisterExecutorMessage(r randyMessages, easy bool) *ReregisterExecutorMessage {
9296 this := &ReregisterExecutorMessage{}
9297 this.ExecutorId = NewPopulatedExecutorID(r, easy)
9298 this.FrameworkId = NewPopulatedFrameworkID(r, easy)
9299 if r.Intn(10) != 0 {
9300 v42 := r.Intn(10)
9301 this.Tasks = make([]*TaskInfo, v42)
9302 for i := 0; i < v42; i++ {
9303 this.Tasks[i] = NewPopulatedTaskInfo(r, easy)
9304 }
9305 }
9306 if r.Intn(10) != 0 {
9307 v43 := r.Intn(10)
9308 this.Updates = make([]*StatusUpdate, v43)
9309 for i := 0; i < v43; i++ {
9310 this.Updates[i] = NewPopulatedStatusUpdate(r, easy)
9311 }
9312 }
9313 if !easy && r.Intn(10) != 0 {
9314 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
9315 }
9316 return this
9317 }
9318
9319 func NewPopulatedShutdownMessage(r randyMessages, easy bool) *ShutdownMessage {
9320 this := &ShutdownMessage{}
9321 if r.Intn(10) != 0 {
9322 v44 := randStringMessages(r)
9323 this.Message = &v44
9324 }
9325 if !easy && r.Intn(10) != 0 {
9326 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9327 }
9328 return this
9329 }
9330
9331 func NewPopulatedArchive(r randyMessages, easy bool) *Archive {
9332 this := &Archive{}
9333 if r.Intn(10) != 0 {
9334 v45 := r.Intn(10)
9335 this.Frameworks = make([]*Archive_Framework, v45)
9336 for i := 0; i < v45; i++ {
9337 this.Frameworks[i] = NewPopulatedArchive_Framework(r, easy)
9338 }
9339 }
9340 if !easy && r.Intn(10) != 0 {
9341 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9342 }
9343 return this
9344 }
9345
9346 func NewPopulatedArchive_Framework(r randyMessages, easy bool) *Archive_Framework {
9347 this := &Archive_Framework{}
9348 this.FrameworkInfo = NewPopulatedFrameworkInfo(r, easy)
9349 if r.Intn(10) != 0 {
9350 v46 := randStringMessages(r)
9351 this.Pid = &v46
9352 }
9353 if r.Intn(10) != 0 {
9354 v47 := r.Intn(10)
9355 this.Tasks = make([]*Task, v47)
9356 for i := 0; i < v47; i++ {
9357 this.Tasks[i] = NewPopulatedTask(r, easy)
9358 }
9359 }
9360 if !easy && r.Intn(10) != 0 {
9361 this.XXX_unrecognized = randUnrecognizedMessages(r, 4)
9362 }
9363 return this
9364 }
9365
9366 func NewPopulatedTaskHealthStatus(r randyMessages, easy bool) *TaskHealthStatus {
9367 this := &TaskHealthStatus{}
9368 this.TaskId = NewPopulatedTaskID(r, easy)
9369 v48 := bool(bool(r.Intn(2) == 0))
9370 this.Healthy = &v48
9371 if r.Intn(10) != 0 {
9372 v49 := bool(bool(r.Intn(2) == 0))
9373 this.KillTask = &v49
9374 }
9375 if r.Intn(10) != 0 {
9376 v50 := int32(r.Int31())
9377 if r.Intn(2) == 0 {
9378 v50 *= -1
9379 }
9380 this.ConsecutiveFailures = &v50
9381 }
9382 if !easy && r.Intn(10) != 0 {
9383 this.XXX_unrecognized = randUnrecognizedMessages(r, 5)
9384 }
9385 return this
9386 }
9387
9388 func NewPopulatedHookExecuted(r randyMessages, easy bool) *HookExecuted {
9389 this := &HookExecuted{}
9390 if r.Intn(10) != 0 {
9391 v51 := randStringMessages(r)
9392 this.Module = &v51
9393 }
9394 if !easy && r.Intn(10) != 0 {
9395 this.XXX_unrecognized = randUnrecognizedMessages(r, 2)
9396 }
9397 return this
9398 }
9399
9400 type randyMessages interface {
9401 Float32() float32
9402 Float64() float64
9403 Int63() int64
9404 Int31() int32
9405 Uint32() uint32
9406 Intn(n int) int
9407 }
9408
9409 func randUTF8RuneMessages(r randyMessages) rune {
9410 ru := r.Intn(62)
9411 if ru < 10 {
9412 return rune(ru + 48)
9413 } else if ru < 36 {
9414 return rune(ru + 55)
9415 }
9416 return rune(ru + 61)
9417 }
9418 func randStringMessages(r randyMessages) string {
9419 v52 := r.Intn(100)
9420 tmps := make([]rune, v52)
9421 for i := 0; i < v52; i++ {
9422 tmps[i] = randUTF8RuneMessages(r)
9423 }
9424 return string(tmps)
9425 }
9426 func randUnrecognizedMessages(r randyMessages, maxFieldNumber int) (data []byte) {
9427 l := r.Intn(5)
9428 for i := 0; i < l; i++ {
9429 wire := r.Intn(4)
9430 if wire == 3 {
9431 wire = 5
9432 }
9433 fieldNumber := maxFieldNumber + r.Intn(100)
9434 data = randFieldMessages(data, r, fieldNumber, wire)
9435 }
9436 return data
9437 }
9438 func randFieldMessages(data []byte, r randyMessages, fieldNumber int, wire int) []byte {
9439 key := uint32(fieldNumber)<<3 | uint32(wire)
9440 switch wire {
9441 case 0:
9442 data = encodeVarintPopulateMessages(data, uint64(key))
9443 v53 := r.Int63()
9444 if r.Intn(2) == 0 {
9445 v53 *= -1
9446 }
9447 data = encodeVarintPopulateMessages(data, uint64(v53))
9448 case 1:
9449 data = encodeVarintPopulateMessages(data, uint64(key))
9450 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)))
9451 case 2:
9452 data = encodeVarintPopulateMessages(data, uint64(key))
9453 ll := r.Intn(100)
9454 data = encodeVarintPopulateMessages(data, uint64(ll))
9455 for j := 0; j < ll; j++ {
9456 data = append(data, byte(r.Intn(256)))
9457 }
9458 default:
9459 data = encodeVarintPopulateMessages(data, uint64(key))
9460 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
9461 }
9462 return data
9463 }
9464 func encodeVarintPopulateMessages(data []byte, v uint64) []byte {
9465 for v >= 1<<7 {
9466 data = append(data, uint8(uint64(v)&0x7f|0x80))
9467 v >>= 7
9468 }
9469 data = append(data, uint8(v))
9470 return data
9471 }
9472 func (m *Task) Size() (n int) {
9473 var l int
9474 _ = l
9475 if m.Name != nil {
9476 l = len(*m.Name)
9477 n += 1 + l + sovMessages(uint64(l))
9478 }
9479 if m.TaskId != nil {
9480 l = m.TaskId.Size()
9481 n += 1 + l + sovMessages(uint64(l))
9482 }
9483 if m.FrameworkId != nil {
9484 l = m.FrameworkId.Size()
9485 n += 1 + l + sovMessages(uint64(l))
9486 }
9487 if m.ExecutorId != nil {
9488 l = m.ExecutorId.Size()
9489 n += 1 + l + sovMessages(uint64(l))
9490 }
9491 if m.SlaveId != nil {
9492 l = m.SlaveId.Size()
9493 n += 1 + l + sovMessages(uint64(l))
9494 }
9495 if m.State != nil {
9496 n += 1 + sovMessages(uint64(*m.State))
9497 }
9498 if len(m.Resources) > 0 {
9499 for _, e := range m.Resources {
9500 l = e.Size()
9501 n += 1 + l + sovMessages(uint64(l))
9502 }
9503 }
9504 if len(m.Statuses) > 0 {
9505 for _, e := range m.Statuses {
9506 l = e.Size()
9507 n += 1 + l + sovMessages(uint64(l))
9508 }
9509 }
9510 if m.StatusUpdateState != nil {
9511 n += 1 + sovMessages(uint64(*m.StatusUpdateState))
9512 }
9513 if m.StatusUpdateUuid != nil {
9514 l = len(m.StatusUpdateUuid)
9515 n += 1 + l + sovMessages(uint64(l))
9516 }
9517 if m.Labels != nil {
9518 l = m.Labels.Size()
9519 n += 1 + l + sovMessages(uint64(l))
9520 }
9521 if m.Discovery != nil {
9522 l = m.Discovery.Size()
9523 n += 1 + l + sovMessages(uint64(l))
9524 }
9525 if m.XXX_unrecognized != nil {
9526 n += len(m.XXX_unrecognized)
9527 }
9528 return n
9529 }
9530
9531 func (m *StatusUpdate) Size() (n int) {
9532 var l int
9533 _ = l
9534 if m.FrameworkId != nil {
9535 l = m.FrameworkId.Size()
9536 n += 1 + l + sovMessages(uint64(l))
9537 }
9538 if m.ExecutorId != nil {
9539 l = m.ExecutorId.Size()
9540 n += 1 + l + sovMessages(uint64(l))
9541 }
9542 if m.SlaveId != nil {
9543 l = m.SlaveId.Size()
9544 n += 1 + l + sovMessages(uint64(l))
9545 }
9546 if m.Status != nil {
9547 l = m.Status.Size()
9548 n += 1 + l + sovMessages(uint64(l))
9549 }
9550 if m.Timestamp != nil {
9551 n += 9
9552 }
9553 if m.Uuid != nil {
9554 l = len(m.Uuid)
9555 n += 1 + l + sovMessages(uint64(l))
9556 }
9557 if m.LatestState != nil {
9558 n += 1 + sovMessages(uint64(*m.LatestState))
9559 }
9560 if m.XXX_unrecognized != nil {
9561 n += len(m.XXX_unrecognized)
9562 }
9563 return n
9564 }
9565
9566 func (m *StatusUpdateRecord) Size() (n int) {
9567 var l int
9568 _ = l
9569 if m.Type != nil {
9570 n += 1 + sovMessages(uint64(*m.Type))
9571 }
9572 if m.Update != nil {
9573 l = m.Update.Size()
9574 n += 1 + l + sovMessages(uint64(l))
9575 }
9576 if m.Uuid != nil {
9577 l = len(m.Uuid)
9578 n += 1 + l + sovMessages(uint64(l))
9579 }
9580 if m.XXX_unrecognized != nil {
9581 n += len(m.XXX_unrecognized)
9582 }
9583 return n
9584 }
9585
9586 func (m *SubmitSchedulerRequest) Size() (n int) {
9587 var l int
9588 _ = l
9589 if m.Name != nil {
9590 l = len(*m.Name)
9591 n += 1 + l + sovMessages(uint64(l))
9592 }
9593 if m.XXX_unrecognized != nil {
9594 n += len(m.XXX_unrecognized)
9595 }
9596 return n
9597 }
9598
9599 func (m *SubmitSchedulerResponse) Size() (n int) {
9600 var l int
9601 _ = l
9602 if m.Okay != nil {
9603 n += 2
9604 }
9605 if m.XXX_unrecognized != nil {
9606 n += len(m.XXX_unrecognized)
9607 }
9608 return n
9609 }
9610
9611 func (m *ExecutorToFrameworkMessage) Size() (n int) {
9612 var l int
9613 _ = l
9614 if m.SlaveId != nil {
9615 l = m.SlaveId.Size()
9616 n += 1 + l + sovMessages(uint64(l))
9617 }
9618 if m.FrameworkId != nil {
9619 l = m.FrameworkId.Size()
9620 n += 1 + l + sovMessages(uint64(l))
9621 }
9622 if m.ExecutorId != nil {
9623 l = m.ExecutorId.Size()
9624 n += 1 + l + sovMessages(uint64(l))
9625 }
9626 if m.Data != nil {
9627 l = len(m.Data)
9628 n += 1 + l + sovMessages(uint64(l))
9629 }
9630 if m.XXX_unrecognized != nil {
9631 n += len(m.XXX_unrecognized)
9632 }
9633 return n
9634 }
9635
9636 func (m *FrameworkToExecutorMessage) Size() (n int) {
9637 var l int
9638 _ = l
9639 if m.SlaveId != nil {
9640 l = m.SlaveId.Size()
9641 n += 1 + l + sovMessages(uint64(l))
9642 }
9643 if m.FrameworkId != nil {
9644 l = m.FrameworkId.Size()
9645 n += 1 + l + sovMessages(uint64(l))
9646 }
9647 if m.ExecutorId != nil {
9648 l = m.ExecutorId.Size()
9649 n += 1 + l + sovMessages(uint64(l))
9650 }
9651 if m.Data != nil {
9652 l = len(m.Data)
9653 n += 1 + l + sovMessages(uint64(l))
9654 }
9655 if m.XXX_unrecognized != nil {
9656 n += len(m.XXX_unrecognized)
9657 }
9658 return n
9659 }
9660
9661 func (m *RegisterFrameworkMessage) Size() (n int) {
9662 var l int
9663 _ = l
9664 if m.Framework != nil {
9665 l = m.Framework.Size()
9666 n += 1 + l + sovMessages(uint64(l))
9667 }
9668 if m.XXX_unrecognized != nil {
9669 n += len(m.XXX_unrecognized)
9670 }
9671 return n
9672 }
9673
9674 func (m *ReregisterFrameworkMessage) Size() (n int) {
9675 var l int
9676 _ = l
9677 if m.Framework != nil {
9678 l = m.Framework.Size()
9679 n += 1 + l + sovMessages(uint64(l))
9680 }
9681 if m.Failover != nil {
9682 n += 2
9683 }
9684 if m.XXX_unrecognized != nil {
9685 n += len(m.XXX_unrecognized)
9686 }
9687 return n
9688 }
9689
9690 func (m *FrameworkRegisteredMessage) Size() (n int) {
9691 var l int
9692 _ = l
9693 if m.FrameworkId != nil {
9694 l = m.FrameworkId.Size()
9695 n += 1 + l + sovMessages(uint64(l))
9696 }
9697 if m.MasterInfo != nil {
9698 l = m.MasterInfo.Size()
9699 n += 1 + l + sovMessages(uint64(l))
9700 }
9701 if m.XXX_unrecognized != nil {
9702 n += len(m.XXX_unrecognized)
9703 }
9704 return n
9705 }
9706
9707 func (m *FrameworkReregisteredMessage) Size() (n int) {
9708 var l int
9709 _ = l
9710 if m.FrameworkId != nil {
9711 l = m.FrameworkId.Size()
9712 n += 1 + l + sovMessages(uint64(l))
9713 }
9714 if m.MasterInfo != nil {
9715 l = m.MasterInfo.Size()
9716 n += 1 + l + sovMessages(uint64(l))
9717 }
9718 if m.XXX_unrecognized != nil {
9719 n += len(m.XXX_unrecognized)
9720 }
9721 return n
9722 }
9723
9724 func (m *UnregisterFrameworkMessage) Size() (n int) {
9725 var l int
9726 _ = l
9727 if m.FrameworkId != nil {
9728 l = m.FrameworkId.Size()
9729 n += 1 + l + sovMessages(uint64(l))
9730 }
9731 if m.XXX_unrecognized != nil {
9732 n += len(m.XXX_unrecognized)
9733 }
9734 return n
9735 }
9736
9737 func (m *DeactivateFrameworkMessage) Size() (n int) {
9738 var l int
9739 _ = l
9740 if m.FrameworkId != nil {
9741 l = m.FrameworkId.Size()
9742 n += 1 + l + sovMessages(uint64(l))
9743 }
9744 if m.XXX_unrecognized != nil {
9745 n += len(m.XXX_unrecognized)
9746 }
9747 return n
9748 }
9749
9750 func (m *ResourceRequestMessage) Size() (n int) {
9751 var l int
9752 _ = l
9753 if m.FrameworkId != nil {
9754 l = m.FrameworkId.Size()
9755 n += 1 + l + sovMessages(uint64(l))
9756 }
9757 if len(m.Requests) > 0 {
9758 for _, e := range m.Requests {
9759 l = e.Size()
9760 n += 1 + l + sovMessages(uint64(l))
9761 }
9762 }
9763 if m.XXX_unrecognized != nil {
9764 n += len(m.XXX_unrecognized)
9765 }
9766 return n
9767 }
9768
9769 func (m *ResourceOffersMessage) Size() (n int) {
9770 var l int
9771 _ = l
9772 if len(m.Offers) > 0 {
9773 for _, e := range m.Offers {
9774 l = e.Size()
9775 n += 1 + l + sovMessages(uint64(l))
9776 }
9777 }
9778 if len(m.Pids) > 0 {
9779 for _, s := range m.Pids {
9780 l = len(s)
9781 n += 1 + l + sovMessages(uint64(l))
9782 }
9783 }
9784 if len(m.InverseOffers) > 0 {
9785 for _, e := range m.InverseOffers {
9786 l = e.Size()
9787 n += 1 + l + sovMessages(uint64(l))
9788 }
9789 }
9790 if m.XXX_unrecognized != nil {
9791 n += len(m.XXX_unrecognized)
9792 }
9793 return n
9794 }
9795
9796 func (m *LaunchTasksMessage) Size() (n int) {
9797 var l int
9798 _ = l
9799 if m.FrameworkId != nil {
9800 l = m.FrameworkId.Size()
9801 n += 1 + l + sovMessages(uint64(l))
9802 }
9803 if len(m.Tasks) > 0 {
9804 for _, e := range m.Tasks {
9805 l = e.Size()
9806 n += 1 + l + sovMessages(uint64(l))
9807 }
9808 }
9809 if m.Filters != nil {
9810 l = m.Filters.Size()
9811 n += 1 + l + sovMessages(uint64(l))
9812 }
9813 if len(m.OfferIds) > 0 {
9814 for _, e := range m.OfferIds {
9815 l = e.Size()
9816 n += 1 + l + sovMessages(uint64(l))
9817 }
9818 }
9819 if m.XXX_unrecognized != nil {
9820 n += len(m.XXX_unrecognized)
9821 }
9822 return n
9823 }
9824
9825 func (m *RescindResourceOfferMessage) Size() (n int) {
9826 var l int
9827 _ = l
9828 if m.OfferId != nil {
9829 l = m.OfferId.Size()
9830 n += 1 + l + sovMessages(uint64(l))
9831 }
9832 if m.XXX_unrecognized != nil {
9833 n += len(m.XXX_unrecognized)
9834 }
9835 return n
9836 }
9837
9838 func (m *ReviveOffersMessage) Size() (n int) {
9839 var l int
9840 _ = l
9841 if m.FrameworkId != nil {
9842 l = m.FrameworkId.Size()
9843 n += 1 + l + sovMessages(uint64(l))
9844 }
9845 if m.XXX_unrecognized != nil {
9846 n += len(m.XXX_unrecognized)
9847 }
9848 return n
9849 }
9850
9851 func (m *RunTaskMessage) Size() (n int) {
9852 var l int
9853 _ = l
9854 if m.FrameworkId != nil {
9855 l = m.FrameworkId.Size()
9856 n += 1 + l + sovMessages(uint64(l))
9857 }
9858 if m.Framework != nil {
9859 l = m.Framework.Size()
9860 n += 1 + l + sovMessages(uint64(l))
9861 }
9862 if m.Pid != nil {
9863 l = len(*m.Pid)
9864 n += 1 + l + sovMessages(uint64(l))
9865 }
9866 if m.Task != nil {
9867 l = m.Task.Size()
9868 n += 1 + l + sovMessages(uint64(l))
9869 }
9870 if m.XXX_unrecognized != nil {
9871 n += len(m.XXX_unrecognized)
9872 }
9873 return n
9874 }
9875
9876 func (m *KillTaskMessage) Size() (n int) {
9877 var l int
9878 _ = l
9879 if m.FrameworkId != nil {
9880 l = m.FrameworkId.Size()
9881 n += 1 + l + sovMessages(uint64(l))
9882 }
9883 if m.TaskId != nil {
9884 l = m.TaskId.Size()
9885 n += 1 + l + sovMessages(uint64(l))
9886 }
9887 if m.XXX_unrecognized != nil {
9888 n += len(m.XXX_unrecognized)
9889 }
9890 return n
9891 }
9892
9893 func (m *StatusUpdateMessage) Size() (n int) {
9894 var l int
9895 _ = l
9896 if m.Update != nil {
9897 l = m.Update.Size()
9898 n += 1 + l + sovMessages(uint64(l))
9899 }
9900 if m.Pid != nil {
9901 l = len(*m.Pid)
9902 n += 1 + l + sovMessages(uint64(l))
9903 }
9904 if m.XXX_unrecognized != nil {
9905 n += len(m.XXX_unrecognized)
9906 }
9907 return n
9908 }
9909
9910 func (m *StatusUpdateAcknowledgementMessage) Size() (n int) {
9911 var l int
9912 _ = l
9913 if m.SlaveId != nil {
9914 l = m.SlaveId.Size()
9915 n += 1 + l + sovMessages(uint64(l))
9916 }
9917 if m.FrameworkId != nil {
9918 l = m.FrameworkId.Size()
9919 n += 1 + l + sovMessages(uint64(l))
9920 }
9921 if m.TaskId != nil {
9922 l = m.TaskId.Size()
9923 n += 1 + l + sovMessages(uint64(l))
9924 }
9925 if m.Uuid != nil {
9926 l = len(m.Uuid)
9927 n += 1 + l + sovMessages(uint64(l))
9928 }
9929 if m.XXX_unrecognized != nil {
9930 n += len(m.XXX_unrecognized)
9931 }
9932 return n
9933 }
9934
9935 func (m *LostSlaveMessage) Size() (n int) {
9936 var l int
9937 _ = l
9938 if m.SlaveId != nil {
9939 l = m.SlaveId.Size()
9940 n += 1 + l + sovMessages(uint64(l))
9941 }
9942 if m.XXX_unrecognized != nil {
9943 n += len(m.XXX_unrecognized)
9944 }
9945 return n
9946 }
9947
9948 func (m *ReconcileTasksMessage) Size() (n int) {
9949 var l int
9950 _ = l
9951 if m.FrameworkId != nil {
9952 l = m.FrameworkId.Size()
9953 n += 1 + l + sovMessages(uint64(l))
9954 }
9955 if len(m.Statuses) > 0 {
9956 for _, e := range m.Statuses {
9957 l = e.Size()
9958 n += 1 + l + sovMessages(uint64(l))
9959 }
9960 }
9961 if m.XXX_unrecognized != nil {
9962 n += len(m.XXX_unrecognized)
9963 }
9964 return n
9965 }
9966
9967 func (m *FrameworkErrorMessage) Size() (n int) {
9968 var l int
9969 _ = l
9970 if m.Message != nil {
9971 l = len(*m.Message)
9972 n += 1 + l + sovMessages(uint64(l))
9973 }
9974 if m.XXX_unrecognized != nil {
9975 n += len(m.XXX_unrecognized)
9976 }
9977 return n
9978 }
9979
9980 func (m *RegisterSlaveMessage) Size() (n int) {
9981 var l int
9982 _ = l
9983 if m.Slave != nil {
9984 l = m.Slave.Size()
9985 n += 1 + l + sovMessages(uint64(l))
9986 }
9987 if m.Version != nil {
9988 l = len(*m.Version)
9989 n += 1 + l + sovMessages(uint64(l))
9990 }
9991 if len(m.CheckpointedResources) > 0 {
9992 for _, e := range m.CheckpointedResources {
9993 l = e.Size()
9994 n += 1 + l + sovMessages(uint64(l))
9995 }
9996 }
9997 if m.XXX_unrecognized != nil {
9998 n += len(m.XXX_unrecognized)
9999 }
10000 return n
10001 }
10002
10003 func (m *ReregisterSlaveMessage) Size() (n int) {
10004 var l int
10005 _ = l
10006 if m.Slave != nil {
10007 l = m.Slave.Size()
10008 n += 1 + l + sovMessages(uint64(l))
10009 }
10010 if len(m.Tasks) > 0 {
10011 for _, e := range m.Tasks {
10012 l = e.Size()
10013 n += 1 + l + sovMessages(uint64(l))
10014 }
10015 }
10016 if len(m.ExecutorInfos) > 0 {
10017 for _, e := range m.ExecutorInfos {
10018 l = e.Size()
10019 n += 1 + l + sovMessages(uint64(l))
10020 }
10021 }
10022 if len(m.CompletedFrameworks) > 0 {
10023 for _, e := range m.CompletedFrameworks {
10024 l = e.Size()
10025 n += 1 + l + sovMessages(uint64(l))
10026 }
10027 }
10028 if m.Version != nil {
10029 l = len(*m.Version)
10030 n += 1 + l + sovMessages(uint64(l))
10031 }
10032 if len(m.CheckpointedResources) > 0 {
10033 for _, e := range m.CheckpointedResources {
10034 l = e.Size()
10035 n += 1 + l + sovMessages(uint64(l))
10036 }
10037 }
10038 if m.XXX_unrecognized != nil {
10039 n += len(m.XXX_unrecognized)
10040 }
10041 return n
10042 }
10043
10044 func (m *SlaveRegisteredMessage) Size() (n int) {
10045 var l int
10046 _ = l
10047 if m.SlaveId != nil {
10048 l = m.SlaveId.Size()
10049 n += 1 + l + sovMessages(uint64(l))
10050 }
10051 if m.Connection != nil {
10052 l = m.Connection.Size()
10053 n += 1 + l + sovMessages(uint64(l))
10054 }
10055 if m.XXX_unrecognized != nil {
10056 n += len(m.XXX_unrecognized)
10057 }
10058 return n
10059 }
10060
10061 func (m *SlaveReregisteredMessage) Size() (n int) {
10062 var l int
10063 _ = l
10064 if m.SlaveId != nil {
10065 l = m.SlaveId.Size()
10066 n += 1 + l + sovMessages(uint64(l))
10067 }
10068 if len(m.Reconciliations) > 0 {
10069 for _, e := range m.Reconciliations {
10070 l = e.Size()
10071 n += 1 + l + sovMessages(uint64(l))
10072 }
10073 }
10074 if m.Connection != nil {
10075 l = m.Connection.Size()
10076 n += 1 + l + sovMessages(uint64(l))
10077 }
10078 if m.XXX_unrecognized != nil {
10079 n += len(m.XXX_unrecognized)
10080 }
10081 return n
10082 }
10083
10084 func (m *UnregisterSlaveMessage) Size() (n int) {
10085 var l int
10086 _ = l
10087 if m.SlaveId != nil {
10088 l = m.SlaveId.Size()
10089 n += 1 + l + sovMessages(uint64(l))
10090 }
10091 if m.XXX_unrecognized != nil {
10092 n += len(m.XXX_unrecognized)
10093 }
10094 return n
10095 }
10096
10097 func (m *MasterSlaveConnection) Size() (n int) {
10098 var l int
10099 _ = l
10100 if m.TotalPingTimeoutSeconds != nil {
10101 n += 9
10102 }
10103 if m.XXX_unrecognized != nil {
10104 n += len(m.XXX_unrecognized)
10105 }
10106 return n
10107 }
10108
10109 func (m *PingSlaveMessage) Size() (n int) {
10110 var l int
10111 _ = l
10112 if m.Connected != nil {
10113 n += 2
10114 }
10115 if m.XXX_unrecognized != nil {
10116 n += len(m.XXX_unrecognized)
10117 }
10118 return n
10119 }
10120
10121 func (m *PongSlaveMessage) Size() (n int) {
10122 var l int
10123 _ = l
10124 if m.XXX_unrecognized != nil {
10125 n += len(m.XXX_unrecognized)
10126 }
10127 return n
10128 }
10129
10130 func (m *ShutdownFrameworkMessage) Size() (n int) {
10131 var l int
10132 _ = l
10133 if m.FrameworkId != nil {
10134 l = m.FrameworkId.Size()
10135 n += 1 + l + sovMessages(uint64(l))
10136 }
10137 if m.XXX_unrecognized != nil {
10138 n += len(m.XXX_unrecognized)
10139 }
10140 return n
10141 }
10142
10143 func (m *ShutdownExecutorMessage) Size() (n int) {
10144 var l int
10145 _ = l
10146 if m.ExecutorId != nil {
10147 l = m.ExecutorId.Size()
10148 n += 1 + l + sovMessages(uint64(l))
10149 }
10150 if m.FrameworkId != nil {
10151 l = m.FrameworkId.Size()
10152 n += 1 + l + sovMessages(uint64(l))
10153 }
10154 if m.XXX_unrecognized != nil {
10155 n += len(m.XXX_unrecognized)
10156 }
10157 return n
10158 }
10159
10160 func (m *UpdateFrameworkMessage) Size() (n int) {
10161 var l int
10162 _ = l
10163 if m.FrameworkId != nil {
10164 l = m.FrameworkId.Size()
10165 n += 1 + l + sovMessages(uint64(l))
10166 }
10167 if m.Pid != nil {
10168 l = len(*m.Pid)
10169 n += 1 + l + sovMessages(uint64(l))
10170 }
10171 if m.XXX_unrecognized != nil {
10172 n += len(m.XXX_unrecognized)
10173 }
10174 return n
10175 }
10176
10177 func (m *CheckpointResourcesMessage) Size() (n int) {
10178 var l int
10179 _ = l
10180 if len(m.Resources) > 0 {
10181 for _, e := range m.Resources {
10182 l = e.Size()
10183 n += 1 + l + sovMessages(uint64(l))
10184 }
10185 }
10186 if m.XXX_unrecognized != nil {
10187 n += len(m.XXX_unrecognized)
10188 }
10189 return n
10190 }
10191
10192 func (m *UpdateSlaveMessage) Size() (n int) {
10193 var l int
10194 _ = l
10195 if m.SlaveId != nil {
10196 l = m.SlaveId.Size()
10197 n += 1 + l + sovMessages(uint64(l))
10198 }
10199 if len(m.OversubscribedResources) > 0 {
10200 for _, e := range m.OversubscribedResources {
10201 l = e.Size()
10202 n += 1 + l + sovMessages(uint64(l))
10203 }
10204 }
10205 if m.XXX_unrecognized != nil {
10206 n += len(m.XXX_unrecognized)
10207 }
10208 return n
10209 }
10210
10211 func (m *RegisterExecutorMessage) Size() (n int) {
10212 var l int
10213 _ = l
10214 if m.FrameworkId != nil {
10215 l = m.FrameworkId.Size()
10216 n += 1 + l + sovMessages(uint64(l))
10217 }
10218 if m.ExecutorId != nil {
10219 l = m.ExecutorId.Size()
10220 n += 1 + l + sovMessages(uint64(l))
10221 }
10222 if m.XXX_unrecognized != nil {
10223 n += len(m.XXX_unrecognized)
10224 }
10225 return n
10226 }
10227
10228 func (m *ExecutorRegisteredMessage) Size() (n int) {
10229 var l int
10230 _ = l
10231 if m.ExecutorInfo != nil {
10232 l = m.ExecutorInfo.Size()
10233 n += 1 + l + sovMessages(uint64(l))
10234 }
10235 if m.FrameworkId != nil {
10236 l = m.FrameworkId.Size()
10237 n += 1 + l + sovMessages(uint64(l))
10238 }
10239 if m.FrameworkInfo != nil {
10240 l = m.FrameworkInfo.Size()
10241 n += 1 + l + sovMessages(uint64(l))
10242 }
10243 if m.SlaveId != nil {
10244 l = m.SlaveId.Size()
10245 n += 1 + l + sovMessages(uint64(l))
10246 }
10247 if m.SlaveInfo != nil {
10248 l = m.SlaveInfo.Size()
10249 n += 1 + l + sovMessages(uint64(l))
10250 }
10251 if m.XXX_unrecognized != nil {
10252 n += len(m.XXX_unrecognized)
10253 }
10254 return n
10255 }
10256
10257 func (m *ExecutorReregisteredMessage) Size() (n int) {
10258 var l int
10259 _ = l
10260 if m.SlaveId != nil {
10261 l = m.SlaveId.Size()
10262 n += 1 + l + sovMessages(uint64(l))
10263 }
10264 if m.SlaveInfo != nil {
10265 l = m.SlaveInfo.Size()
10266 n += 1 + l + sovMessages(uint64(l))
10267 }
10268 if m.XXX_unrecognized != nil {
10269 n += len(m.XXX_unrecognized)
10270 }
10271 return n
10272 }
10273
10274 func (m *ExitedExecutorMessage) Size() (n int) {
10275 var l int
10276 _ = l
10277 if m.SlaveId != nil {
10278 l = m.SlaveId.Size()
10279 n += 1 + l + sovMessages(uint64(l))
10280 }
10281 if m.FrameworkId != nil {
10282 l = m.FrameworkId.Size()
10283 n += 1 + l + sovMessages(uint64(l))
10284 }
10285 if m.ExecutorId != nil {
10286 l = m.ExecutorId.Size()
10287 n += 1 + l + sovMessages(uint64(l))
10288 }
10289 if m.Status != nil {
10290 n += 1 + sovMessages(uint64(*m.Status))
10291 }
10292 if m.XXX_unrecognized != nil {
10293 n += len(m.XXX_unrecognized)
10294 }
10295 return n
10296 }
10297
10298 func (m *ReconnectExecutorMessage) Size() (n int) {
10299 var l int
10300 _ = l
10301 if m.SlaveId != nil {
10302 l = m.SlaveId.Size()
10303 n += 1 + l + sovMessages(uint64(l))
10304 }
10305 if m.XXX_unrecognized != nil {
10306 n += len(m.XXX_unrecognized)
10307 }
10308 return n
10309 }
10310
10311 func (m *ReregisterExecutorMessage) Size() (n int) {
10312 var l int
10313 _ = l
10314 if m.ExecutorId != nil {
10315 l = m.ExecutorId.Size()
10316 n += 1 + l + sovMessages(uint64(l))
10317 }
10318 if m.FrameworkId != nil {
10319 l = m.FrameworkId.Size()
10320 n += 1 + l + sovMessages(uint64(l))
10321 }
10322 if len(m.Tasks) > 0 {
10323 for _, e := range m.Tasks {
10324 l = e.Size()
10325 n += 1 + l + sovMessages(uint64(l))
10326 }
10327 }
10328 if len(m.Updates) > 0 {
10329 for _, e := range m.Updates {
10330 l = e.Size()
10331 n += 1 + l + sovMessages(uint64(l))
10332 }
10333 }
10334 if m.XXX_unrecognized != nil {
10335 n += len(m.XXX_unrecognized)
10336 }
10337 return n
10338 }
10339
10340 func (m *ShutdownMessage) Size() (n int) {
10341 var l int
10342 _ = l
10343 if m.Message != nil {
10344 l = len(*m.Message)
10345 n += 1 + l + sovMessages(uint64(l))
10346 }
10347 if m.XXX_unrecognized != nil {
10348 n += len(m.XXX_unrecognized)
10349 }
10350 return n
10351 }
10352
10353 func (m *Archive) Size() (n int) {
10354 var l int
10355 _ = l
10356 if len(m.Frameworks) > 0 {
10357 for _, e := range m.Frameworks {
10358 l = e.Size()
10359 n += 1 + l + sovMessages(uint64(l))
10360 }
10361 }
10362 if m.XXX_unrecognized != nil {
10363 n += len(m.XXX_unrecognized)
10364 }
10365 return n
10366 }
10367
10368 func (m *Archive_Framework) Size() (n int) {
10369 var l int
10370 _ = l
10371 if m.FrameworkInfo != nil {
10372 l = m.FrameworkInfo.Size()
10373 n += 1 + l + sovMessages(uint64(l))
10374 }
10375 if m.Pid != nil {
10376 l = len(*m.Pid)
10377 n += 1 + l + sovMessages(uint64(l))
10378 }
10379 if len(m.Tasks) > 0 {
10380 for _, e := range m.Tasks {
10381 l = e.Size()
10382 n += 1 + l + sovMessages(uint64(l))
10383 }
10384 }
10385 if m.XXX_unrecognized != nil {
10386 n += len(m.XXX_unrecognized)
10387 }
10388 return n
10389 }
10390
10391 func (m *TaskHealthStatus) Size() (n int) {
10392 var l int
10393 _ = l
10394 if m.TaskId != nil {
10395 l = m.TaskId.Size()
10396 n += 1 + l + sovMessages(uint64(l))
10397 }
10398 if m.Healthy != nil {
10399 n += 2
10400 }
10401 if m.KillTask != nil {
10402 n += 2
10403 }
10404 if m.ConsecutiveFailures != nil {
10405 n += 1 + sovMessages(uint64(*m.ConsecutiveFailures))
10406 }
10407 if m.XXX_unrecognized != nil {
10408 n += len(m.XXX_unrecognized)
10409 }
10410 return n
10411 }
10412
10413 func (m *HookExecuted) Size() (n int) {
10414 var l int
10415 _ = l
10416 if m.Module != nil {
10417 l = len(*m.Module)
10418 n += 1 + l + sovMessages(uint64(l))
10419 }
10420 if m.XXX_unrecognized != nil {
10421 n += len(m.XXX_unrecognized)
10422 }
10423 return n
10424 }
10425
10426 func sovMessages(x uint64) (n int) {
10427 for {
10428 n++
10429 x >>= 7
10430 if x == 0 {
10431 break
10432 }
10433 }
10434 return n
10435 }
10436 func sozMessages(x uint64) (n int) {
10437 return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63))))
10438 }
10439 func (this *Task) String() string {
10440 if this == nil {
10441 return "nil"
10442 }
10443 s := strings.Join([]string{`&Task{`,
10444 `Name:` + valueToStringMessages(this.Name) + `,`,
10445 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`,
10446 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10447 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10448 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10449 `State:` + valueToStringMessages(this.State) + `,`,
10450 `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`,
10451 `Statuses:` + strings.Replace(fmt.Sprintf("%v", this.Statuses), "TaskStatus", "TaskStatus", 1) + `,`,
10452 `StatusUpdateState:` + valueToStringMessages(this.StatusUpdateState) + `,`,
10453 `StatusUpdateUuid:` + valueToStringMessages(this.StatusUpdateUuid) + `,`,
10454 `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`,
10455 `Discovery:` + strings.Replace(fmt.Sprintf("%v", this.Discovery), "DiscoveryInfo", "DiscoveryInfo", 1) + `,`,
10456 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10457 `}`,
10458 }, "")
10459 return s
10460 }
10461 func (this *StatusUpdate) String() string {
10462 if this == nil {
10463 return "nil"
10464 }
10465 s := strings.Join([]string{`&StatusUpdate{`,
10466 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10467 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10468 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10469 `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "TaskStatus", "TaskStatus", 1) + `,`,
10470 `Timestamp:` + valueToStringMessages(this.Timestamp) + `,`,
10471 `Uuid:` + valueToStringMessages(this.Uuid) + `,`,
10472 `LatestState:` + valueToStringMessages(this.LatestState) + `,`,
10473 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10474 `}`,
10475 }, "")
10476 return s
10477 }
10478 func (this *StatusUpdateRecord) String() string {
10479 if this == nil {
10480 return "nil"
10481 }
10482 s := strings.Join([]string{`&StatusUpdateRecord{`,
10483 `Type:` + valueToStringMessages(this.Type) + `,`,
10484 `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "StatusUpdate", "StatusUpdate", 1) + `,`,
10485 `Uuid:` + valueToStringMessages(this.Uuid) + `,`,
10486 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10487 `}`,
10488 }, "")
10489 return s
10490 }
10491 func (this *SubmitSchedulerRequest) String() string {
10492 if this == nil {
10493 return "nil"
10494 }
10495 s := strings.Join([]string{`&SubmitSchedulerRequest{`,
10496 `Name:` + valueToStringMessages(this.Name) + `,`,
10497 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10498 `}`,
10499 }, "")
10500 return s
10501 }
10502 func (this *SubmitSchedulerResponse) String() string {
10503 if this == nil {
10504 return "nil"
10505 }
10506 s := strings.Join([]string{`&SubmitSchedulerResponse{`,
10507 `Okay:` + valueToStringMessages(this.Okay) + `,`,
10508 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10509 `}`,
10510 }, "")
10511 return s
10512 }
10513 func (this *ExecutorToFrameworkMessage) String() string {
10514 if this == nil {
10515 return "nil"
10516 }
10517 s := strings.Join([]string{`&ExecutorToFrameworkMessage{`,
10518 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10519 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10520 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10521 `Data:` + valueToStringMessages(this.Data) + `,`,
10522 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10523 `}`,
10524 }, "")
10525 return s
10526 }
10527 func (this *FrameworkToExecutorMessage) String() string {
10528 if this == nil {
10529 return "nil"
10530 }
10531 s := strings.Join([]string{`&FrameworkToExecutorMessage{`,
10532 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10533 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10534 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10535 `Data:` + valueToStringMessages(this.Data) + `,`,
10536 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10537 `}`,
10538 }, "")
10539 return s
10540 }
10541 func (this *RegisterFrameworkMessage) String() string {
10542 if this == nil {
10543 return "nil"
10544 }
10545 s := strings.Join([]string{`&RegisterFrameworkMessage{`,
10546 `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`,
10547 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10548 `}`,
10549 }, "")
10550 return s
10551 }
10552 func (this *ReregisterFrameworkMessage) String() string {
10553 if this == nil {
10554 return "nil"
10555 }
10556 s := strings.Join([]string{`&ReregisterFrameworkMessage{`,
10557 `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`,
10558 `Failover:` + valueToStringMessages(this.Failover) + `,`,
10559 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10560 `}`,
10561 }, "")
10562 return s
10563 }
10564 func (this *FrameworkRegisteredMessage) String() string {
10565 if this == nil {
10566 return "nil"
10567 }
10568 s := strings.Join([]string{`&FrameworkRegisteredMessage{`,
10569 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10570 `MasterInfo:` + strings.Replace(fmt.Sprintf("%v", this.MasterInfo), "MasterInfo", "MasterInfo", 1) + `,`,
10571 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10572 `}`,
10573 }, "")
10574 return s
10575 }
10576 func (this *FrameworkReregisteredMessage) String() string {
10577 if this == nil {
10578 return "nil"
10579 }
10580 s := strings.Join([]string{`&FrameworkReregisteredMessage{`,
10581 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10582 `MasterInfo:` + strings.Replace(fmt.Sprintf("%v", this.MasterInfo), "MasterInfo", "MasterInfo", 1) + `,`,
10583 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10584 `}`,
10585 }, "")
10586 return s
10587 }
10588 func (this *UnregisterFrameworkMessage) String() string {
10589 if this == nil {
10590 return "nil"
10591 }
10592 s := strings.Join([]string{`&UnregisterFrameworkMessage{`,
10593 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10594 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10595 `}`,
10596 }, "")
10597 return s
10598 }
10599 func (this *DeactivateFrameworkMessage) String() string {
10600 if this == nil {
10601 return "nil"
10602 }
10603 s := strings.Join([]string{`&DeactivateFrameworkMessage{`,
10604 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10605 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10606 `}`,
10607 }, "")
10608 return s
10609 }
10610 func (this *ResourceRequestMessage) String() string {
10611 if this == nil {
10612 return "nil"
10613 }
10614 s := strings.Join([]string{`&ResourceRequestMessage{`,
10615 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10616 `Requests:` + strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "Request", 1) + `,`,
10617 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10618 `}`,
10619 }, "")
10620 return s
10621 }
10622 func (this *ResourceOffersMessage) String() string {
10623 if this == nil {
10624 return "nil"
10625 }
10626 s := strings.Join([]string{`&ResourceOffersMessage{`,
10627 `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "Offer", 1) + `,`,
10628 `Pids:` + fmt.Sprintf("%v", this.Pids) + `,`,
10629 `InverseOffers:` + strings.Replace(fmt.Sprintf("%v", this.InverseOffers), "InverseOffer", "InverseOffer", 1) + `,`,
10630 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10631 `}`,
10632 }, "")
10633 return s
10634 }
10635 func (this *LaunchTasksMessage) String() string {
10636 if this == nil {
10637 return "nil"
10638 }
10639 s := strings.Join([]string{`&LaunchTasksMessage{`,
10640 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10641 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "TaskInfo", "TaskInfo", 1) + `,`,
10642 `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "Filters", 1) + `,`,
10643 `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "OfferID", 1) + `,`,
10644 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10645 `}`,
10646 }, "")
10647 return s
10648 }
10649 func (this *RescindResourceOfferMessage) String() string {
10650 if this == nil {
10651 return "nil"
10652 }
10653 s := strings.Join([]string{`&RescindResourceOfferMessage{`,
10654 `OfferId:` + strings.Replace(fmt.Sprintf("%v", this.OfferId), "OfferID", "OfferID", 1) + `,`,
10655 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10656 `}`,
10657 }, "")
10658 return s
10659 }
10660 func (this *ReviveOffersMessage) String() string {
10661 if this == nil {
10662 return "nil"
10663 }
10664 s := strings.Join([]string{`&ReviveOffersMessage{`,
10665 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10666 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10667 `}`,
10668 }, "")
10669 return s
10670 }
10671 func (this *RunTaskMessage) String() string {
10672 if this == nil {
10673 return "nil"
10674 }
10675 s := strings.Join([]string{`&RunTaskMessage{`,
10676 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10677 `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`,
10678 `Pid:` + valueToStringMessages(this.Pid) + `,`,
10679 `Task:` + strings.Replace(fmt.Sprintf("%v", this.Task), "TaskInfo", "TaskInfo", 1) + `,`,
10680 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10681 `}`,
10682 }, "")
10683 return s
10684 }
10685 func (this *KillTaskMessage) String() string {
10686 if this == nil {
10687 return "nil"
10688 }
10689 s := strings.Join([]string{`&KillTaskMessage{`,
10690 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10691 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`,
10692 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10693 `}`,
10694 }, "")
10695 return s
10696 }
10697 func (this *StatusUpdateMessage) String() string {
10698 if this == nil {
10699 return "nil"
10700 }
10701 s := strings.Join([]string{`&StatusUpdateMessage{`,
10702 `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "StatusUpdate", "StatusUpdate", 1) + `,`,
10703 `Pid:` + valueToStringMessages(this.Pid) + `,`,
10704 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10705 `}`,
10706 }, "")
10707 return s
10708 }
10709 func (this *StatusUpdateAcknowledgementMessage) String() string {
10710 if this == nil {
10711 return "nil"
10712 }
10713 s := strings.Join([]string{`&StatusUpdateAcknowledgementMessage{`,
10714 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10715 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10716 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`,
10717 `Uuid:` + valueToStringMessages(this.Uuid) + `,`,
10718 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10719 `}`,
10720 }, "")
10721 return s
10722 }
10723 func (this *LostSlaveMessage) String() string {
10724 if this == nil {
10725 return "nil"
10726 }
10727 s := strings.Join([]string{`&LostSlaveMessage{`,
10728 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10729 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10730 `}`,
10731 }, "")
10732 return s
10733 }
10734 func (this *ReconcileTasksMessage) String() string {
10735 if this == nil {
10736 return "nil"
10737 }
10738 s := strings.Join([]string{`&ReconcileTasksMessage{`,
10739 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10740 `Statuses:` + strings.Replace(fmt.Sprintf("%v", this.Statuses), "TaskStatus", "TaskStatus", 1) + `,`,
10741 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10742 `}`,
10743 }, "")
10744 return s
10745 }
10746 func (this *FrameworkErrorMessage) String() string {
10747 if this == nil {
10748 return "nil"
10749 }
10750 s := strings.Join([]string{`&FrameworkErrorMessage{`,
10751 `Message:` + valueToStringMessages(this.Message) + `,`,
10752 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10753 `}`,
10754 }, "")
10755 return s
10756 }
10757 func (this *RegisterSlaveMessage) String() string {
10758 if this == nil {
10759 return "nil"
10760 }
10761 s := strings.Join([]string{`&RegisterSlaveMessage{`,
10762 `Slave:` + strings.Replace(fmt.Sprintf("%v", this.Slave), "SlaveInfo", "SlaveInfo", 1) + `,`,
10763 `Version:` + valueToStringMessages(this.Version) + `,`,
10764 `CheckpointedResources:` + strings.Replace(fmt.Sprintf("%v", this.CheckpointedResources), "Resource", "Resource", 1) + `,`,
10765 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10766 `}`,
10767 }, "")
10768 return s
10769 }
10770 func (this *ReregisterSlaveMessage) String() string {
10771 if this == nil {
10772 return "nil"
10773 }
10774 s := strings.Join([]string{`&ReregisterSlaveMessage{`,
10775 `Slave:` + strings.Replace(fmt.Sprintf("%v", this.Slave), "SlaveInfo", "SlaveInfo", 1) + `,`,
10776 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Task", "Task", 1) + `,`,
10777 `ExecutorInfos:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorInfos), "ExecutorInfo", "ExecutorInfo", 1) + `,`,
10778 `CompletedFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.CompletedFrameworks), "Archive_Framework", "Archive_Framework", 1) + `,`,
10779 `Version:` + valueToStringMessages(this.Version) + `,`,
10780 `CheckpointedResources:` + strings.Replace(fmt.Sprintf("%v", this.CheckpointedResources), "Resource", "Resource", 1) + `,`,
10781 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10782 `}`,
10783 }, "")
10784 return s
10785 }
10786 func (this *SlaveRegisteredMessage) String() string {
10787 if this == nil {
10788 return "nil"
10789 }
10790 s := strings.Join([]string{`&SlaveRegisteredMessage{`,
10791 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10792 `Connection:` + strings.Replace(fmt.Sprintf("%v", this.Connection), "MasterSlaveConnection", "MasterSlaveConnection", 1) + `,`,
10793 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10794 `}`,
10795 }, "")
10796 return s
10797 }
10798 func (this *SlaveReregisteredMessage) String() string {
10799 if this == nil {
10800 return "nil"
10801 }
10802 s := strings.Join([]string{`&SlaveReregisteredMessage{`,
10803 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10804 `Reconciliations:` + strings.Replace(fmt.Sprintf("%v", this.Reconciliations), "ReconcileTasksMessage", "ReconcileTasksMessage", 1) + `,`,
10805 `Connection:` + strings.Replace(fmt.Sprintf("%v", this.Connection), "MasterSlaveConnection", "MasterSlaveConnection", 1) + `,`,
10806 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10807 `}`,
10808 }, "")
10809 return s
10810 }
10811 func (this *UnregisterSlaveMessage) String() string {
10812 if this == nil {
10813 return "nil"
10814 }
10815 s := strings.Join([]string{`&UnregisterSlaveMessage{`,
10816 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10817 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10818 `}`,
10819 }, "")
10820 return s
10821 }
10822 func (this *MasterSlaveConnection) String() string {
10823 if this == nil {
10824 return "nil"
10825 }
10826 s := strings.Join([]string{`&MasterSlaveConnection{`,
10827 `TotalPingTimeoutSeconds:` + valueToStringMessages(this.TotalPingTimeoutSeconds) + `,`,
10828 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10829 `}`,
10830 }, "")
10831 return s
10832 }
10833 func (this *PingSlaveMessage) String() string {
10834 if this == nil {
10835 return "nil"
10836 }
10837 s := strings.Join([]string{`&PingSlaveMessage{`,
10838 `Connected:` + valueToStringMessages(this.Connected) + `,`,
10839 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10840 `}`,
10841 }, "")
10842 return s
10843 }
10844 func (this *PongSlaveMessage) String() string {
10845 if this == nil {
10846 return "nil"
10847 }
10848 s := strings.Join([]string{`&PongSlaveMessage{`,
10849 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10850 `}`,
10851 }, "")
10852 return s
10853 }
10854 func (this *ShutdownFrameworkMessage) String() string {
10855 if this == nil {
10856 return "nil"
10857 }
10858 s := strings.Join([]string{`&ShutdownFrameworkMessage{`,
10859 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10860 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10861 `}`,
10862 }, "")
10863 return s
10864 }
10865 func (this *ShutdownExecutorMessage) String() string {
10866 if this == nil {
10867 return "nil"
10868 }
10869 s := strings.Join([]string{`&ShutdownExecutorMessage{`,
10870 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10871 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10872 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10873 `}`,
10874 }, "")
10875 return s
10876 }
10877 func (this *UpdateFrameworkMessage) String() string {
10878 if this == nil {
10879 return "nil"
10880 }
10881 s := strings.Join([]string{`&UpdateFrameworkMessage{`,
10882 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10883 `Pid:` + valueToStringMessages(this.Pid) + `,`,
10884 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10885 `}`,
10886 }, "")
10887 return s
10888 }
10889 func (this *CheckpointResourcesMessage) String() string {
10890 if this == nil {
10891 return "nil"
10892 }
10893 s := strings.Join([]string{`&CheckpointResourcesMessage{`,
10894 `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`,
10895 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10896 `}`,
10897 }, "")
10898 return s
10899 }
10900 func (this *UpdateSlaveMessage) String() string {
10901 if this == nil {
10902 return "nil"
10903 }
10904 s := strings.Join([]string{`&UpdateSlaveMessage{`,
10905 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10906 `OversubscribedResources:` + strings.Replace(fmt.Sprintf("%v", this.OversubscribedResources), "Resource", "Resource", 1) + `,`,
10907 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10908 `}`,
10909 }, "")
10910 return s
10911 }
10912 func (this *RegisterExecutorMessage) String() string {
10913 if this == nil {
10914 return "nil"
10915 }
10916 s := strings.Join([]string{`&RegisterExecutorMessage{`,
10917 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10918 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10919 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10920 `}`,
10921 }, "")
10922 return s
10923 }
10924 func (this *ExecutorRegisteredMessage) String() string {
10925 if this == nil {
10926 return "nil"
10927 }
10928 s := strings.Join([]string{`&ExecutorRegisteredMessage{`,
10929 `ExecutorInfo:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorInfo), "ExecutorInfo", "ExecutorInfo", 1) + `,`,
10930 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10931 `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "FrameworkInfo", 1) + `,`,
10932 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10933 `SlaveInfo:` + strings.Replace(fmt.Sprintf("%v", this.SlaveInfo), "SlaveInfo", "SlaveInfo", 1) + `,`,
10934 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10935 `}`,
10936 }, "")
10937 return s
10938 }
10939 func (this *ExecutorReregisteredMessage) String() string {
10940 if this == nil {
10941 return "nil"
10942 }
10943 s := strings.Join([]string{`&ExecutorReregisteredMessage{`,
10944 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10945 `SlaveInfo:` + strings.Replace(fmt.Sprintf("%v", this.SlaveInfo), "SlaveInfo", "SlaveInfo", 1) + `,`,
10946 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10947 `}`,
10948 }, "")
10949 return s
10950 }
10951 func (this *ExitedExecutorMessage) String() string {
10952 if this == nil {
10953 return "nil"
10954 }
10955 s := strings.Join([]string{`&ExitedExecutorMessage{`,
10956 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10957 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10958 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10959 `Status:` + valueToStringMessages(this.Status) + `,`,
10960 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10961 `}`,
10962 }, "")
10963 return s
10964 }
10965 func (this *ReconnectExecutorMessage) String() string {
10966 if this == nil {
10967 return "nil"
10968 }
10969 s := strings.Join([]string{`&ReconnectExecutorMessage{`,
10970 `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`,
10971 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10972 `}`,
10973 }, "")
10974 return s
10975 }
10976 func (this *ReregisterExecutorMessage) String() string {
10977 if this == nil {
10978 return "nil"
10979 }
10980 s := strings.Join([]string{`&ReregisterExecutorMessage{`,
10981 `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`,
10982 `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`,
10983 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "TaskInfo", "TaskInfo", 1) + `,`,
10984 `Updates:` + strings.Replace(fmt.Sprintf("%v", this.Updates), "StatusUpdate", "StatusUpdate", 1) + `,`,
10985 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10986 `}`,
10987 }, "")
10988 return s
10989 }
10990 func (this *ShutdownMessage) String() string {
10991 if this == nil {
10992 return "nil"
10993 }
10994 s := strings.Join([]string{`&ShutdownMessage{`,
10995 `Message:` + valueToStringMessages(this.Message) + `,`,
10996 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
10997 `}`,
10998 }, "")
10999 return s
11000 }
11001 func (this *Archive) String() string {
11002 if this == nil {
11003 return "nil"
11004 }
11005 s := strings.Join([]string{`&Archive{`,
11006 `Frameworks:` + strings.Replace(fmt.Sprintf("%v", this.Frameworks), "Archive_Framework", "Archive_Framework", 1) + `,`,
11007 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
11008 `}`,
11009 }, "")
11010 return s
11011 }
11012 func (this *Archive_Framework) String() string {
11013 if this == nil {
11014 return "nil"
11015 }
11016 s := strings.Join([]string{`&Archive_Framework{`,
11017 `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "FrameworkInfo", 1) + `,`,
11018 `Pid:` + valueToStringMessages(this.Pid) + `,`,
11019 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Task", "Task", 1) + `,`,
11020 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
11021 `}`,
11022 }, "")
11023 return s
11024 }
11025 func (this *TaskHealthStatus) String() string {
11026 if this == nil {
11027 return "nil"
11028 }
11029 s := strings.Join([]string{`&TaskHealthStatus{`,
11030 `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`,
11031 `Healthy:` + valueToStringMessages(this.Healthy) + `,`,
11032 `KillTask:` + valueToStringMessages(this.KillTask) + `,`,
11033 `ConsecutiveFailures:` + valueToStringMessages(this.ConsecutiveFailures) + `,`,
11034 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
11035 `}`,
11036 }, "")
11037 return s
11038 }
11039 func (this *HookExecuted) String() string {
11040 if this == nil {
11041 return "nil"
11042 }
11043 s := strings.Join([]string{`&HookExecuted{`,
11044 `Module:` + valueToStringMessages(this.Module) + `,`,
11045 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
11046 `}`,
11047 }, "")
11048 return s
11049 }
11050 func valueToStringMessages(v interface{}) string {
11051 rv := reflect.ValueOf(v)
11052 if rv.IsNil() {
11053 return "nil"
11054 }
11055 pv := reflect.Indirect(rv).Interface()
11056 return fmt.Sprintf("*%v", pv)
11057 }
11058 func (m *Task) Unmarshal(data []byte) error {
11059 var hasFields [1]uint64
11060 l := len(data)
11061 iNdEx := 0
11062 for iNdEx < l {
11063 preIndex := iNdEx
11064 var wire uint64
11065 for shift := uint(0); ; shift += 7 {
11066 if shift >= 64 {
11067 return ErrIntOverflowMessages
11068 }
11069 if iNdEx >= l {
11070 return io.ErrUnexpectedEOF
11071 }
11072 b := data[iNdEx]
11073 iNdEx++
11074 wire |= (uint64(b) & 0x7F) << shift
11075 if b < 0x80 {
11076 break
11077 }
11078 }
11079 fieldNum := int32(wire >> 3)
11080 wireType := int(wire & 0x7)
11081 if wireType == 4 {
11082 return fmt.Errorf("proto: Task: wiretype end group for non-group")
11083 }
11084 if fieldNum <= 0 {
11085 return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire)
11086 }
11087 switch fieldNum {
11088 case 1:
11089 if wireType != 2 {
11090 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
11091 }
11092 var stringLen uint64
11093 for shift := uint(0); ; shift += 7 {
11094 if shift >= 64 {
11095 return ErrIntOverflowMessages
11096 }
11097 if iNdEx >= l {
11098 return io.ErrUnexpectedEOF
11099 }
11100 b := data[iNdEx]
11101 iNdEx++
11102 stringLen |= (uint64(b) & 0x7F) << shift
11103 if b < 0x80 {
11104 break
11105 }
11106 }
11107 intStringLen := int(stringLen)
11108 if intStringLen < 0 {
11109 return ErrInvalidLengthMessages
11110 }
11111 postIndex := iNdEx + intStringLen
11112 if postIndex > l {
11113 return io.ErrUnexpectedEOF
11114 }
11115 s := string(data[iNdEx:postIndex])
11116 m.Name = &s
11117 iNdEx = postIndex
11118 hasFields[0] |= uint64(0x00000001)
11119 case 2:
11120 if wireType != 2 {
11121 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
11122 }
11123 var msglen int
11124 for shift := uint(0); ; shift += 7 {
11125 if shift >= 64 {
11126 return ErrIntOverflowMessages
11127 }
11128 if iNdEx >= l {
11129 return io.ErrUnexpectedEOF
11130 }
11131 b := data[iNdEx]
11132 iNdEx++
11133 msglen |= (int(b) & 0x7F) << shift
11134 if b < 0x80 {
11135 break
11136 }
11137 }
11138 if msglen < 0 {
11139 return ErrInvalidLengthMessages
11140 }
11141 postIndex := iNdEx + msglen
11142 if postIndex > l {
11143 return io.ErrUnexpectedEOF
11144 }
11145 if m.TaskId == nil {
11146 m.TaskId = &TaskID{}
11147 }
11148 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11149 return err
11150 }
11151 iNdEx = postIndex
11152 hasFields[0] |= uint64(0x00000002)
11153 case 3:
11154 if wireType != 2 {
11155 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
11156 }
11157 var msglen int
11158 for shift := uint(0); ; shift += 7 {
11159 if shift >= 64 {
11160 return ErrIntOverflowMessages
11161 }
11162 if iNdEx >= l {
11163 return io.ErrUnexpectedEOF
11164 }
11165 b := data[iNdEx]
11166 iNdEx++
11167 msglen |= (int(b) & 0x7F) << shift
11168 if b < 0x80 {
11169 break
11170 }
11171 }
11172 if msglen < 0 {
11173 return ErrInvalidLengthMessages
11174 }
11175 postIndex := iNdEx + msglen
11176 if postIndex > l {
11177 return io.ErrUnexpectedEOF
11178 }
11179 if m.FrameworkId == nil {
11180 m.FrameworkId = &FrameworkID{}
11181 }
11182 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11183 return err
11184 }
11185 iNdEx = postIndex
11186 hasFields[0] |= uint64(0x00000004)
11187 case 4:
11188 if wireType != 2 {
11189 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
11190 }
11191 var msglen int
11192 for shift := uint(0); ; shift += 7 {
11193 if shift >= 64 {
11194 return ErrIntOverflowMessages
11195 }
11196 if iNdEx >= l {
11197 return io.ErrUnexpectedEOF
11198 }
11199 b := data[iNdEx]
11200 iNdEx++
11201 msglen |= (int(b) & 0x7F) << shift
11202 if b < 0x80 {
11203 break
11204 }
11205 }
11206 if msglen < 0 {
11207 return ErrInvalidLengthMessages
11208 }
11209 postIndex := iNdEx + msglen
11210 if postIndex > l {
11211 return io.ErrUnexpectedEOF
11212 }
11213 if m.ExecutorId == nil {
11214 m.ExecutorId = &ExecutorID{}
11215 }
11216 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11217 return err
11218 }
11219 iNdEx = postIndex
11220 case 5:
11221 if wireType != 2 {
11222 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
11223 }
11224 var msglen int
11225 for shift := uint(0); ; shift += 7 {
11226 if shift >= 64 {
11227 return ErrIntOverflowMessages
11228 }
11229 if iNdEx >= l {
11230 return io.ErrUnexpectedEOF
11231 }
11232 b := data[iNdEx]
11233 iNdEx++
11234 msglen |= (int(b) & 0x7F) << shift
11235 if b < 0x80 {
11236 break
11237 }
11238 }
11239 if msglen < 0 {
11240 return ErrInvalidLengthMessages
11241 }
11242 postIndex := iNdEx + msglen
11243 if postIndex > l {
11244 return io.ErrUnexpectedEOF
11245 }
11246 if m.SlaveId == nil {
11247 m.SlaveId = &SlaveID{}
11248 }
11249 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11250 return err
11251 }
11252 iNdEx = postIndex
11253 hasFields[0] |= uint64(0x00000008)
11254 case 6:
11255 if wireType != 0 {
11256 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
11257 }
11258 var v TaskState
11259 for shift := uint(0); ; shift += 7 {
11260 if shift >= 64 {
11261 return ErrIntOverflowMessages
11262 }
11263 if iNdEx >= l {
11264 return io.ErrUnexpectedEOF
11265 }
11266 b := data[iNdEx]
11267 iNdEx++
11268 v |= (TaskState(b) & 0x7F) << shift
11269 if b < 0x80 {
11270 break
11271 }
11272 }
11273 m.State = &v
11274 hasFields[0] |= uint64(0x00000010)
11275 case 7:
11276 if wireType != 2 {
11277 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
11278 }
11279 var msglen int
11280 for shift := uint(0); ; shift += 7 {
11281 if shift >= 64 {
11282 return ErrIntOverflowMessages
11283 }
11284 if iNdEx >= l {
11285 return io.ErrUnexpectedEOF
11286 }
11287 b := data[iNdEx]
11288 iNdEx++
11289 msglen |= (int(b) & 0x7F) << shift
11290 if b < 0x80 {
11291 break
11292 }
11293 }
11294 if msglen < 0 {
11295 return ErrInvalidLengthMessages
11296 }
11297 postIndex := iNdEx + msglen
11298 if postIndex > l {
11299 return io.ErrUnexpectedEOF
11300 }
11301 m.Resources = append(m.Resources, &Resource{})
11302 if err := m.Resources[len(m.Resources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
11303 return err
11304 }
11305 iNdEx = postIndex
11306 case 8:
11307 if wireType != 2 {
11308 return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType)
11309 }
11310 var msglen int
11311 for shift := uint(0); ; shift += 7 {
11312 if shift >= 64 {
11313 return ErrIntOverflowMessages
11314 }
11315 if iNdEx >= l {
11316 return io.ErrUnexpectedEOF
11317 }
11318 b := data[iNdEx]
11319 iNdEx++
11320 msglen |= (int(b) & 0x7F) << shift
11321 if b < 0x80 {
11322 break
11323 }
11324 }
11325 if msglen < 0 {
11326 return ErrInvalidLengthMessages
11327 }
11328 postIndex := iNdEx + msglen
11329 if postIndex > l {
11330 return io.ErrUnexpectedEOF
11331 }
11332 m.Statuses = append(m.Statuses, &TaskStatus{})
11333 if err := m.Statuses[len(m.Statuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
11334 return err
11335 }
11336 iNdEx = postIndex
11337 case 9:
11338 if wireType != 0 {
11339 return fmt.Errorf("proto: wrong wireType = %d for field StatusUpdateState", wireType)
11340 }
11341 var v TaskState
11342 for shift := uint(0); ; shift += 7 {
11343 if shift >= 64 {
11344 return ErrIntOverflowMessages
11345 }
11346 if iNdEx >= l {
11347 return io.ErrUnexpectedEOF
11348 }
11349 b := data[iNdEx]
11350 iNdEx++
11351 v |= (TaskState(b) & 0x7F) << shift
11352 if b < 0x80 {
11353 break
11354 }
11355 }
11356 m.StatusUpdateState = &v
11357 case 10:
11358 if wireType != 2 {
11359 return fmt.Errorf("proto: wrong wireType = %d for field StatusUpdateUuid", wireType)
11360 }
11361 var byteLen int
11362 for shift := uint(0); ; shift += 7 {
11363 if shift >= 64 {
11364 return ErrIntOverflowMessages
11365 }
11366 if iNdEx >= l {
11367 return io.ErrUnexpectedEOF
11368 }
11369 b := data[iNdEx]
11370 iNdEx++
11371 byteLen |= (int(b) & 0x7F) << shift
11372 if b < 0x80 {
11373 break
11374 }
11375 }
11376 if byteLen < 0 {
11377 return ErrInvalidLengthMessages
11378 }
11379 postIndex := iNdEx + byteLen
11380 if postIndex > l {
11381 return io.ErrUnexpectedEOF
11382 }
11383 m.StatusUpdateUuid = append([]byte{}, data[iNdEx:postIndex]...)
11384 iNdEx = postIndex
11385 case 11:
11386 if wireType != 2 {
11387 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
11388 }
11389 var msglen int
11390 for shift := uint(0); ; shift += 7 {
11391 if shift >= 64 {
11392 return ErrIntOverflowMessages
11393 }
11394 if iNdEx >= l {
11395 return io.ErrUnexpectedEOF
11396 }
11397 b := data[iNdEx]
11398 iNdEx++
11399 msglen |= (int(b) & 0x7F) << shift
11400 if b < 0x80 {
11401 break
11402 }
11403 }
11404 if msglen < 0 {
11405 return ErrInvalidLengthMessages
11406 }
11407 postIndex := iNdEx + msglen
11408 if postIndex > l {
11409 return io.ErrUnexpectedEOF
11410 }
11411 if m.Labels == nil {
11412 m.Labels = &Labels{}
11413 }
11414 if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil {
11415 return err
11416 }
11417 iNdEx = postIndex
11418 case 12:
11419 if wireType != 2 {
11420 return fmt.Errorf("proto: wrong wireType = %d for field Discovery", wireType)
11421 }
11422 var msglen int
11423 for shift := uint(0); ; shift += 7 {
11424 if shift >= 64 {
11425 return ErrIntOverflowMessages
11426 }
11427 if iNdEx >= l {
11428 return io.ErrUnexpectedEOF
11429 }
11430 b := data[iNdEx]
11431 iNdEx++
11432 msglen |= (int(b) & 0x7F) << shift
11433 if b < 0x80 {
11434 break
11435 }
11436 }
11437 if msglen < 0 {
11438 return ErrInvalidLengthMessages
11439 }
11440 postIndex := iNdEx + msglen
11441 if postIndex > l {
11442 return io.ErrUnexpectedEOF
11443 }
11444 if m.Discovery == nil {
11445 m.Discovery = &DiscoveryInfo{}
11446 }
11447 if err := m.Discovery.Unmarshal(data[iNdEx:postIndex]); err != nil {
11448 return err
11449 }
11450 iNdEx = postIndex
11451 default:
11452 iNdEx = preIndex
11453 skippy, err := skipMessages(data[iNdEx:])
11454 if err != nil {
11455 return err
11456 }
11457 if skippy < 0 {
11458 return ErrInvalidLengthMessages
11459 }
11460 if (iNdEx + skippy) > l {
11461 return io.ErrUnexpectedEOF
11462 }
11463 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
11464 iNdEx += skippy
11465 }
11466 }
11467 if hasFields[0]&uint64(0x00000001) == 0 {
11468 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name")
11469 }
11470 if hasFields[0]&uint64(0x00000002) == 0 {
11471 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
11472 }
11473 if hasFields[0]&uint64(0x00000004) == 0 {
11474 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
11475 }
11476 if hasFields[0]&uint64(0x00000008) == 0 {
11477 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
11478 }
11479 if hasFields[0]&uint64(0x00000010) == 0 {
11480 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("state")
11481 }
11482
11483 if iNdEx > l {
11484 return io.ErrUnexpectedEOF
11485 }
11486 return nil
11487 }
11488 func (m *StatusUpdate) Unmarshal(data []byte) error {
11489 var hasFields [1]uint64
11490 l := len(data)
11491 iNdEx := 0
11492 for iNdEx < l {
11493 preIndex := iNdEx
11494 var wire uint64
11495 for shift := uint(0); ; shift += 7 {
11496 if shift >= 64 {
11497 return ErrIntOverflowMessages
11498 }
11499 if iNdEx >= l {
11500 return io.ErrUnexpectedEOF
11501 }
11502 b := data[iNdEx]
11503 iNdEx++
11504 wire |= (uint64(b) & 0x7F) << shift
11505 if b < 0x80 {
11506 break
11507 }
11508 }
11509 fieldNum := int32(wire >> 3)
11510 wireType := int(wire & 0x7)
11511 if wireType == 4 {
11512 return fmt.Errorf("proto: StatusUpdate: wiretype end group for non-group")
11513 }
11514 if fieldNum <= 0 {
11515 return fmt.Errorf("proto: StatusUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
11516 }
11517 switch fieldNum {
11518 case 1:
11519 if wireType != 2 {
11520 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
11521 }
11522 var msglen int
11523 for shift := uint(0); ; shift += 7 {
11524 if shift >= 64 {
11525 return ErrIntOverflowMessages
11526 }
11527 if iNdEx >= l {
11528 return io.ErrUnexpectedEOF
11529 }
11530 b := data[iNdEx]
11531 iNdEx++
11532 msglen |= (int(b) & 0x7F) << shift
11533 if b < 0x80 {
11534 break
11535 }
11536 }
11537 if msglen < 0 {
11538 return ErrInvalidLengthMessages
11539 }
11540 postIndex := iNdEx + msglen
11541 if postIndex > l {
11542 return io.ErrUnexpectedEOF
11543 }
11544 if m.FrameworkId == nil {
11545 m.FrameworkId = &FrameworkID{}
11546 }
11547 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11548 return err
11549 }
11550 iNdEx = postIndex
11551 hasFields[0] |= uint64(0x00000001)
11552 case 2:
11553 if wireType != 2 {
11554 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
11555 }
11556 var msglen int
11557 for shift := uint(0); ; shift += 7 {
11558 if shift >= 64 {
11559 return ErrIntOverflowMessages
11560 }
11561 if iNdEx >= l {
11562 return io.ErrUnexpectedEOF
11563 }
11564 b := data[iNdEx]
11565 iNdEx++
11566 msglen |= (int(b) & 0x7F) << shift
11567 if b < 0x80 {
11568 break
11569 }
11570 }
11571 if msglen < 0 {
11572 return ErrInvalidLengthMessages
11573 }
11574 postIndex := iNdEx + msglen
11575 if postIndex > l {
11576 return io.ErrUnexpectedEOF
11577 }
11578 if m.ExecutorId == nil {
11579 m.ExecutorId = &ExecutorID{}
11580 }
11581 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11582 return err
11583 }
11584 iNdEx = postIndex
11585 case 3:
11586 if wireType != 2 {
11587 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
11588 }
11589 var msglen int
11590 for shift := uint(0); ; shift += 7 {
11591 if shift >= 64 {
11592 return ErrIntOverflowMessages
11593 }
11594 if iNdEx >= l {
11595 return io.ErrUnexpectedEOF
11596 }
11597 b := data[iNdEx]
11598 iNdEx++
11599 msglen |= (int(b) & 0x7F) << shift
11600 if b < 0x80 {
11601 break
11602 }
11603 }
11604 if msglen < 0 {
11605 return ErrInvalidLengthMessages
11606 }
11607 postIndex := iNdEx + msglen
11608 if postIndex > l {
11609 return io.ErrUnexpectedEOF
11610 }
11611 if m.SlaveId == nil {
11612 m.SlaveId = &SlaveID{}
11613 }
11614 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
11615 return err
11616 }
11617 iNdEx = postIndex
11618 case 4:
11619 if wireType != 2 {
11620 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
11621 }
11622 var msglen int
11623 for shift := uint(0); ; shift += 7 {
11624 if shift >= 64 {
11625 return ErrIntOverflowMessages
11626 }
11627 if iNdEx >= l {
11628 return io.ErrUnexpectedEOF
11629 }
11630 b := data[iNdEx]
11631 iNdEx++
11632 msglen |= (int(b) & 0x7F) << shift
11633 if b < 0x80 {
11634 break
11635 }
11636 }
11637 if msglen < 0 {
11638 return ErrInvalidLengthMessages
11639 }
11640 postIndex := iNdEx + msglen
11641 if postIndex > l {
11642 return io.ErrUnexpectedEOF
11643 }
11644 if m.Status == nil {
11645 m.Status = &TaskStatus{}
11646 }
11647 if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
11648 return err
11649 }
11650 iNdEx = postIndex
11651 hasFields[0] |= uint64(0x00000002)
11652 case 5:
11653 if wireType != 1 {
11654 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
11655 }
11656 var v uint64
11657 if (iNdEx + 8) > l {
11658 return io.ErrUnexpectedEOF
11659 }
11660 iNdEx += 8
11661 v = uint64(data[iNdEx-8])
11662 v |= uint64(data[iNdEx-7]) << 8
11663 v |= uint64(data[iNdEx-6]) << 16
11664 v |= uint64(data[iNdEx-5]) << 24
11665 v |= uint64(data[iNdEx-4]) << 32
11666 v |= uint64(data[iNdEx-3]) << 40
11667 v |= uint64(data[iNdEx-2]) << 48
11668 v |= uint64(data[iNdEx-1]) << 56
11669 v2 := float64(math.Float64frombits(v))
11670 m.Timestamp = &v2
11671 hasFields[0] |= uint64(0x00000004)
11672 case 6:
11673 if wireType != 2 {
11674 return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType)
11675 }
11676 var byteLen int
11677 for shift := uint(0); ; shift += 7 {
11678 if shift >= 64 {
11679 return ErrIntOverflowMessages
11680 }
11681 if iNdEx >= l {
11682 return io.ErrUnexpectedEOF
11683 }
11684 b := data[iNdEx]
11685 iNdEx++
11686 byteLen |= (int(b) & 0x7F) << shift
11687 if b < 0x80 {
11688 break
11689 }
11690 }
11691 if byteLen < 0 {
11692 return ErrInvalidLengthMessages
11693 }
11694 postIndex := iNdEx + byteLen
11695 if postIndex > l {
11696 return io.ErrUnexpectedEOF
11697 }
11698 m.Uuid = append([]byte{}, data[iNdEx:postIndex]...)
11699 iNdEx = postIndex
11700 case 7:
11701 if wireType != 0 {
11702 return fmt.Errorf("proto: wrong wireType = %d for field LatestState", wireType)
11703 }
11704 var v TaskState
11705 for shift := uint(0); ; shift += 7 {
11706 if shift >= 64 {
11707 return ErrIntOverflowMessages
11708 }
11709 if iNdEx >= l {
11710 return io.ErrUnexpectedEOF
11711 }
11712 b := data[iNdEx]
11713 iNdEx++
11714 v |= (TaskState(b) & 0x7F) << shift
11715 if b < 0x80 {
11716 break
11717 }
11718 }
11719 m.LatestState = &v
11720 default:
11721 iNdEx = preIndex
11722 skippy, err := skipMessages(data[iNdEx:])
11723 if err != nil {
11724 return err
11725 }
11726 if skippy < 0 {
11727 return ErrInvalidLengthMessages
11728 }
11729 if (iNdEx + skippy) > l {
11730 return io.ErrUnexpectedEOF
11731 }
11732 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
11733 iNdEx += skippy
11734 }
11735 }
11736 if hasFields[0]&uint64(0x00000001) == 0 {
11737 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
11738 }
11739 if hasFields[0]&uint64(0x00000002) == 0 {
11740 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
11741 }
11742 if hasFields[0]&uint64(0x00000004) == 0 {
11743 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("timestamp")
11744 }
11745
11746 if iNdEx > l {
11747 return io.ErrUnexpectedEOF
11748 }
11749 return nil
11750 }
11751 func (m *StatusUpdateRecord) Unmarshal(data []byte) error {
11752 var hasFields [1]uint64
11753 l := len(data)
11754 iNdEx := 0
11755 for iNdEx < l {
11756 preIndex := iNdEx
11757 var wire uint64
11758 for shift := uint(0); ; shift += 7 {
11759 if shift >= 64 {
11760 return ErrIntOverflowMessages
11761 }
11762 if iNdEx >= l {
11763 return io.ErrUnexpectedEOF
11764 }
11765 b := data[iNdEx]
11766 iNdEx++
11767 wire |= (uint64(b) & 0x7F) << shift
11768 if b < 0x80 {
11769 break
11770 }
11771 }
11772 fieldNum := int32(wire >> 3)
11773 wireType := int(wire & 0x7)
11774 if wireType == 4 {
11775 return fmt.Errorf("proto: StatusUpdateRecord: wiretype end group for non-group")
11776 }
11777 if fieldNum <= 0 {
11778 return fmt.Errorf("proto: StatusUpdateRecord: illegal tag %d (wire type %d)", fieldNum, wire)
11779 }
11780 switch fieldNum {
11781 case 1:
11782 if wireType != 0 {
11783 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
11784 }
11785 var v StatusUpdateRecord_Type
11786 for shift := uint(0); ; shift += 7 {
11787 if shift >= 64 {
11788 return ErrIntOverflowMessages
11789 }
11790 if iNdEx >= l {
11791 return io.ErrUnexpectedEOF
11792 }
11793 b := data[iNdEx]
11794 iNdEx++
11795 v |= (StatusUpdateRecord_Type(b) & 0x7F) << shift
11796 if b < 0x80 {
11797 break
11798 }
11799 }
11800 m.Type = &v
11801 hasFields[0] |= uint64(0x00000001)
11802 case 2:
11803 if wireType != 2 {
11804 return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
11805 }
11806 var msglen int
11807 for shift := uint(0); ; shift += 7 {
11808 if shift >= 64 {
11809 return ErrIntOverflowMessages
11810 }
11811 if iNdEx >= l {
11812 return io.ErrUnexpectedEOF
11813 }
11814 b := data[iNdEx]
11815 iNdEx++
11816 msglen |= (int(b) & 0x7F) << shift
11817 if b < 0x80 {
11818 break
11819 }
11820 }
11821 if msglen < 0 {
11822 return ErrInvalidLengthMessages
11823 }
11824 postIndex := iNdEx + msglen
11825 if postIndex > l {
11826 return io.ErrUnexpectedEOF
11827 }
11828 if m.Update == nil {
11829 m.Update = &StatusUpdate{}
11830 }
11831 if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil {
11832 return err
11833 }
11834 iNdEx = postIndex
11835 case 3:
11836 if wireType != 2 {
11837 return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType)
11838 }
11839 var byteLen int
11840 for shift := uint(0); ; shift += 7 {
11841 if shift >= 64 {
11842 return ErrIntOverflowMessages
11843 }
11844 if iNdEx >= l {
11845 return io.ErrUnexpectedEOF
11846 }
11847 b := data[iNdEx]
11848 iNdEx++
11849 byteLen |= (int(b) & 0x7F) << shift
11850 if b < 0x80 {
11851 break
11852 }
11853 }
11854 if byteLen < 0 {
11855 return ErrInvalidLengthMessages
11856 }
11857 postIndex := iNdEx + byteLen
11858 if postIndex > l {
11859 return io.ErrUnexpectedEOF
11860 }
11861 m.Uuid = append([]byte{}, data[iNdEx:postIndex]...)
11862 iNdEx = postIndex
11863 default:
11864 iNdEx = preIndex
11865 skippy, err := skipMessages(data[iNdEx:])
11866 if err != nil {
11867 return err
11868 }
11869 if skippy < 0 {
11870 return ErrInvalidLengthMessages
11871 }
11872 if (iNdEx + skippy) > l {
11873 return io.ErrUnexpectedEOF
11874 }
11875 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
11876 iNdEx += skippy
11877 }
11878 }
11879 if hasFields[0]&uint64(0x00000001) == 0 {
11880 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type")
11881 }
11882
11883 if iNdEx > l {
11884 return io.ErrUnexpectedEOF
11885 }
11886 return nil
11887 }
11888 func (m *SubmitSchedulerRequest) Unmarshal(data []byte) error {
11889 var hasFields [1]uint64
11890 l := len(data)
11891 iNdEx := 0
11892 for iNdEx < l {
11893 preIndex := iNdEx
11894 var wire uint64
11895 for shift := uint(0); ; shift += 7 {
11896 if shift >= 64 {
11897 return ErrIntOverflowMessages
11898 }
11899 if iNdEx >= l {
11900 return io.ErrUnexpectedEOF
11901 }
11902 b := data[iNdEx]
11903 iNdEx++
11904 wire |= (uint64(b) & 0x7F) << shift
11905 if b < 0x80 {
11906 break
11907 }
11908 }
11909 fieldNum := int32(wire >> 3)
11910 wireType := int(wire & 0x7)
11911 if wireType == 4 {
11912 return fmt.Errorf("proto: SubmitSchedulerRequest: wiretype end group for non-group")
11913 }
11914 if fieldNum <= 0 {
11915 return fmt.Errorf("proto: SubmitSchedulerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
11916 }
11917 switch fieldNum {
11918 case 1:
11919 if wireType != 2 {
11920 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
11921 }
11922 var stringLen uint64
11923 for shift := uint(0); ; shift += 7 {
11924 if shift >= 64 {
11925 return ErrIntOverflowMessages
11926 }
11927 if iNdEx >= l {
11928 return io.ErrUnexpectedEOF
11929 }
11930 b := data[iNdEx]
11931 iNdEx++
11932 stringLen |= (uint64(b) & 0x7F) << shift
11933 if b < 0x80 {
11934 break
11935 }
11936 }
11937 intStringLen := int(stringLen)
11938 if intStringLen < 0 {
11939 return ErrInvalidLengthMessages
11940 }
11941 postIndex := iNdEx + intStringLen
11942 if postIndex > l {
11943 return io.ErrUnexpectedEOF
11944 }
11945 s := string(data[iNdEx:postIndex])
11946 m.Name = &s
11947 iNdEx = postIndex
11948 hasFields[0] |= uint64(0x00000001)
11949 default:
11950 iNdEx = preIndex
11951 skippy, err := skipMessages(data[iNdEx:])
11952 if err != nil {
11953 return err
11954 }
11955 if skippy < 0 {
11956 return ErrInvalidLengthMessages
11957 }
11958 if (iNdEx + skippy) > l {
11959 return io.ErrUnexpectedEOF
11960 }
11961 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
11962 iNdEx += skippy
11963 }
11964 }
11965 if hasFields[0]&uint64(0x00000001) == 0 {
11966 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name")
11967 }
11968
11969 if iNdEx > l {
11970 return io.ErrUnexpectedEOF
11971 }
11972 return nil
11973 }
11974 func (m *SubmitSchedulerResponse) Unmarshal(data []byte) error {
11975 var hasFields [1]uint64
11976 l := len(data)
11977 iNdEx := 0
11978 for iNdEx < l {
11979 preIndex := iNdEx
11980 var wire uint64
11981 for shift := uint(0); ; shift += 7 {
11982 if shift >= 64 {
11983 return ErrIntOverflowMessages
11984 }
11985 if iNdEx >= l {
11986 return io.ErrUnexpectedEOF
11987 }
11988 b := data[iNdEx]
11989 iNdEx++
11990 wire |= (uint64(b) & 0x7F) << shift
11991 if b < 0x80 {
11992 break
11993 }
11994 }
11995 fieldNum := int32(wire >> 3)
11996 wireType := int(wire & 0x7)
11997 if wireType == 4 {
11998 return fmt.Errorf("proto: SubmitSchedulerResponse: wiretype end group for non-group")
11999 }
12000 if fieldNum <= 0 {
12001 return fmt.Errorf("proto: SubmitSchedulerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
12002 }
12003 switch fieldNum {
12004 case 1:
12005 if wireType != 0 {
12006 return fmt.Errorf("proto: wrong wireType = %d for field Okay", wireType)
12007 }
12008 var v int
12009 for shift := uint(0); ; shift += 7 {
12010 if shift >= 64 {
12011 return ErrIntOverflowMessages
12012 }
12013 if iNdEx >= l {
12014 return io.ErrUnexpectedEOF
12015 }
12016 b := data[iNdEx]
12017 iNdEx++
12018 v |= (int(b) & 0x7F) << shift
12019 if b < 0x80 {
12020 break
12021 }
12022 }
12023 b := bool(v != 0)
12024 m.Okay = &b
12025 hasFields[0] |= uint64(0x00000001)
12026 default:
12027 iNdEx = preIndex
12028 skippy, err := skipMessages(data[iNdEx:])
12029 if err != nil {
12030 return err
12031 }
12032 if skippy < 0 {
12033 return ErrInvalidLengthMessages
12034 }
12035 if (iNdEx + skippy) > l {
12036 return io.ErrUnexpectedEOF
12037 }
12038 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12039 iNdEx += skippy
12040 }
12041 }
12042 if hasFields[0]&uint64(0x00000001) == 0 {
12043 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("okay")
12044 }
12045
12046 if iNdEx > l {
12047 return io.ErrUnexpectedEOF
12048 }
12049 return nil
12050 }
12051 func (m *ExecutorToFrameworkMessage) Unmarshal(data []byte) error {
12052 var hasFields [1]uint64
12053 l := len(data)
12054 iNdEx := 0
12055 for iNdEx < l {
12056 preIndex := iNdEx
12057 var wire uint64
12058 for shift := uint(0); ; shift += 7 {
12059 if shift >= 64 {
12060 return ErrIntOverflowMessages
12061 }
12062 if iNdEx >= l {
12063 return io.ErrUnexpectedEOF
12064 }
12065 b := data[iNdEx]
12066 iNdEx++
12067 wire |= (uint64(b) & 0x7F) << shift
12068 if b < 0x80 {
12069 break
12070 }
12071 }
12072 fieldNum := int32(wire >> 3)
12073 wireType := int(wire & 0x7)
12074 if wireType == 4 {
12075 return fmt.Errorf("proto: ExecutorToFrameworkMessage: wiretype end group for non-group")
12076 }
12077 if fieldNum <= 0 {
12078 return fmt.Errorf("proto: ExecutorToFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12079 }
12080 switch fieldNum {
12081 case 1:
12082 if wireType != 2 {
12083 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
12084 }
12085 var msglen int
12086 for shift := uint(0); ; shift += 7 {
12087 if shift >= 64 {
12088 return ErrIntOverflowMessages
12089 }
12090 if iNdEx >= l {
12091 return io.ErrUnexpectedEOF
12092 }
12093 b := data[iNdEx]
12094 iNdEx++
12095 msglen |= (int(b) & 0x7F) << shift
12096 if b < 0x80 {
12097 break
12098 }
12099 }
12100 if msglen < 0 {
12101 return ErrInvalidLengthMessages
12102 }
12103 postIndex := iNdEx + msglen
12104 if postIndex > l {
12105 return io.ErrUnexpectedEOF
12106 }
12107 if m.SlaveId == nil {
12108 m.SlaveId = &SlaveID{}
12109 }
12110 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12111 return err
12112 }
12113 iNdEx = postIndex
12114 hasFields[0] |= uint64(0x00000001)
12115 case 2:
12116 if wireType != 2 {
12117 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
12118 }
12119 var msglen int
12120 for shift := uint(0); ; shift += 7 {
12121 if shift >= 64 {
12122 return ErrIntOverflowMessages
12123 }
12124 if iNdEx >= l {
12125 return io.ErrUnexpectedEOF
12126 }
12127 b := data[iNdEx]
12128 iNdEx++
12129 msglen |= (int(b) & 0x7F) << shift
12130 if b < 0x80 {
12131 break
12132 }
12133 }
12134 if msglen < 0 {
12135 return ErrInvalidLengthMessages
12136 }
12137 postIndex := iNdEx + msglen
12138 if postIndex > l {
12139 return io.ErrUnexpectedEOF
12140 }
12141 if m.FrameworkId == nil {
12142 m.FrameworkId = &FrameworkID{}
12143 }
12144 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12145 return err
12146 }
12147 iNdEx = postIndex
12148 hasFields[0] |= uint64(0x00000002)
12149 case 3:
12150 if wireType != 2 {
12151 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
12152 }
12153 var msglen int
12154 for shift := uint(0); ; shift += 7 {
12155 if shift >= 64 {
12156 return ErrIntOverflowMessages
12157 }
12158 if iNdEx >= l {
12159 return io.ErrUnexpectedEOF
12160 }
12161 b := data[iNdEx]
12162 iNdEx++
12163 msglen |= (int(b) & 0x7F) << shift
12164 if b < 0x80 {
12165 break
12166 }
12167 }
12168 if msglen < 0 {
12169 return ErrInvalidLengthMessages
12170 }
12171 postIndex := iNdEx + msglen
12172 if postIndex > l {
12173 return io.ErrUnexpectedEOF
12174 }
12175 if m.ExecutorId == nil {
12176 m.ExecutorId = &ExecutorID{}
12177 }
12178 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12179 return err
12180 }
12181 iNdEx = postIndex
12182 hasFields[0] |= uint64(0x00000004)
12183 case 4:
12184 if wireType != 2 {
12185 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
12186 }
12187 var byteLen int
12188 for shift := uint(0); ; shift += 7 {
12189 if shift >= 64 {
12190 return ErrIntOverflowMessages
12191 }
12192 if iNdEx >= l {
12193 return io.ErrUnexpectedEOF
12194 }
12195 b := data[iNdEx]
12196 iNdEx++
12197 byteLen |= (int(b) & 0x7F) << shift
12198 if b < 0x80 {
12199 break
12200 }
12201 }
12202 if byteLen < 0 {
12203 return ErrInvalidLengthMessages
12204 }
12205 postIndex := iNdEx + byteLen
12206 if postIndex > l {
12207 return io.ErrUnexpectedEOF
12208 }
12209 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
12210 iNdEx = postIndex
12211 hasFields[0] |= uint64(0x00000008)
12212 default:
12213 iNdEx = preIndex
12214 skippy, err := skipMessages(data[iNdEx:])
12215 if err != nil {
12216 return err
12217 }
12218 if skippy < 0 {
12219 return ErrInvalidLengthMessages
12220 }
12221 if (iNdEx + skippy) > l {
12222 return io.ErrUnexpectedEOF
12223 }
12224 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12225 iNdEx += skippy
12226 }
12227 }
12228 if hasFields[0]&uint64(0x00000001) == 0 {
12229 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
12230 }
12231 if hasFields[0]&uint64(0x00000002) == 0 {
12232 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
12233 }
12234 if hasFields[0]&uint64(0x00000004) == 0 {
12235 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
12236 }
12237 if hasFields[0]&uint64(0x00000008) == 0 {
12238 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
12239 }
12240
12241 if iNdEx > l {
12242 return io.ErrUnexpectedEOF
12243 }
12244 return nil
12245 }
12246 func (m *FrameworkToExecutorMessage) Unmarshal(data []byte) error {
12247 var hasFields [1]uint64
12248 l := len(data)
12249 iNdEx := 0
12250 for iNdEx < l {
12251 preIndex := iNdEx
12252 var wire uint64
12253 for shift := uint(0); ; shift += 7 {
12254 if shift >= 64 {
12255 return ErrIntOverflowMessages
12256 }
12257 if iNdEx >= l {
12258 return io.ErrUnexpectedEOF
12259 }
12260 b := data[iNdEx]
12261 iNdEx++
12262 wire |= (uint64(b) & 0x7F) << shift
12263 if b < 0x80 {
12264 break
12265 }
12266 }
12267 fieldNum := int32(wire >> 3)
12268 wireType := int(wire & 0x7)
12269 if wireType == 4 {
12270 return fmt.Errorf("proto: FrameworkToExecutorMessage: wiretype end group for non-group")
12271 }
12272 if fieldNum <= 0 {
12273 return fmt.Errorf("proto: FrameworkToExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12274 }
12275 switch fieldNum {
12276 case 1:
12277 if wireType != 2 {
12278 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
12279 }
12280 var msglen int
12281 for shift := uint(0); ; shift += 7 {
12282 if shift >= 64 {
12283 return ErrIntOverflowMessages
12284 }
12285 if iNdEx >= l {
12286 return io.ErrUnexpectedEOF
12287 }
12288 b := data[iNdEx]
12289 iNdEx++
12290 msglen |= (int(b) & 0x7F) << shift
12291 if b < 0x80 {
12292 break
12293 }
12294 }
12295 if msglen < 0 {
12296 return ErrInvalidLengthMessages
12297 }
12298 postIndex := iNdEx + msglen
12299 if postIndex > l {
12300 return io.ErrUnexpectedEOF
12301 }
12302 if m.SlaveId == nil {
12303 m.SlaveId = &SlaveID{}
12304 }
12305 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12306 return err
12307 }
12308 iNdEx = postIndex
12309 hasFields[0] |= uint64(0x00000001)
12310 case 2:
12311 if wireType != 2 {
12312 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
12313 }
12314 var msglen int
12315 for shift := uint(0); ; shift += 7 {
12316 if shift >= 64 {
12317 return ErrIntOverflowMessages
12318 }
12319 if iNdEx >= l {
12320 return io.ErrUnexpectedEOF
12321 }
12322 b := data[iNdEx]
12323 iNdEx++
12324 msglen |= (int(b) & 0x7F) << shift
12325 if b < 0x80 {
12326 break
12327 }
12328 }
12329 if msglen < 0 {
12330 return ErrInvalidLengthMessages
12331 }
12332 postIndex := iNdEx + msglen
12333 if postIndex > l {
12334 return io.ErrUnexpectedEOF
12335 }
12336 if m.FrameworkId == nil {
12337 m.FrameworkId = &FrameworkID{}
12338 }
12339 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12340 return err
12341 }
12342 iNdEx = postIndex
12343 hasFields[0] |= uint64(0x00000002)
12344 case 3:
12345 if wireType != 2 {
12346 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
12347 }
12348 var msglen int
12349 for shift := uint(0); ; shift += 7 {
12350 if shift >= 64 {
12351 return ErrIntOverflowMessages
12352 }
12353 if iNdEx >= l {
12354 return io.ErrUnexpectedEOF
12355 }
12356 b := data[iNdEx]
12357 iNdEx++
12358 msglen |= (int(b) & 0x7F) << shift
12359 if b < 0x80 {
12360 break
12361 }
12362 }
12363 if msglen < 0 {
12364 return ErrInvalidLengthMessages
12365 }
12366 postIndex := iNdEx + msglen
12367 if postIndex > l {
12368 return io.ErrUnexpectedEOF
12369 }
12370 if m.ExecutorId == nil {
12371 m.ExecutorId = &ExecutorID{}
12372 }
12373 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12374 return err
12375 }
12376 iNdEx = postIndex
12377 hasFields[0] |= uint64(0x00000004)
12378 case 4:
12379 if wireType != 2 {
12380 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
12381 }
12382 var byteLen int
12383 for shift := uint(0); ; shift += 7 {
12384 if shift >= 64 {
12385 return ErrIntOverflowMessages
12386 }
12387 if iNdEx >= l {
12388 return io.ErrUnexpectedEOF
12389 }
12390 b := data[iNdEx]
12391 iNdEx++
12392 byteLen |= (int(b) & 0x7F) << shift
12393 if b < 0x80 {
12394 break
12395 }
12396 }
12397 if byteLen < 0 {
12398 return ErrInvalidLengthMessages
12399 }
12400 postIndex := iNdEx + byteLen
12401 if postIndex > l {
12402 return io.ErrUnexpectedEOF
12403 }
12404 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
12405 iNdEx = postIndex
12406 hasFields[0] |= uint64(0x00000008)
12407 default:
12408 iNdEx = preIndex
12409 skippy, err := skipMessages(data[iNdEx:])
12410 if err != nil {
12411 return err
12412 }
12413 if skippy < 0 {
12414 return ErrInvalidLengthMessages
12415 }
12416 if (iNdEx + skippy) > l {
12417 return io.ErrUnexpectedEOF
12418 }
12419 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12420 iNdEx += skippy
12421 }
12422 }
12423 if hasFields[0]&uint64(0x00000001) == 0 {
12424 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
12425 }
12426 if hasFields[0]&uint64(0x00000002) == 0 {
12427 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
12428 }
12429 if hasFields[0]&uint64(0x00000004) == 0 {
12430 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
12431 }
12432 if hasFields[0]&uint64(0x00000008) == 0 {
12433 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
12434 }
12435
12436 if iNdEx > l {
12437 return io.ErrUnexpectedEOF
12438 }
12439 return nil
12440 }
12441 func (m *RegisterFrameworkMessage) Unmarshal(data []byte) error {
12442 var hasFields [1]uint64
12443 l := len(data)
12444 iNdEx := 0
12445 for iNdEx < l {
12446 preIndex := iNdEx
12447 var wire uint64
12448 for shift := uint(0); ; shift += 7 {
12449 if shift >= 64 {
12450 return ErrIntOverflowMessages
12451 }
12452 if iNdEx >= l {
12453 return io.ErrUnexpectedEOF
12454 }
12455 b := data[iNdEx]
12456 iNdEx++
12457 wire |= (uint64(b) & 0x7F) << shift
12458 if b < 0x80 {
12459 break
12460 }
12461 }
12462 fieldNum := int32(wire >> 3)
12463 wireType := int(wire & 0x7)
12464 if wireType == 4 {
12465 return fmt.Errorf("proto: RegisterFrameworkMessage: wiretype end group for non-group")
12466 }
12467 if fieldNum <= 0 {
12468 return fmt.Errorf("proto: RegisterFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12469 }
12470 switch fieldNum {
12471 case 1:
12472 if wireType != 2 {
12473 return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType)
12474 }
12475 var msglen int
12476 for shift := uint(0); ; shift += 7 {
12477 if shift >= 64 {
12478 return ErrIntOverflowMessages
12479 }
12480 if iNdEx >= l {
12481 return io.ErrUnexpectedEOF
12482 }
12483 b := data[iNdEx]
12484 iNdEx++
12485 msglen |= (int(b) & 0x7F) << shift
12486 if b < 0x80 {
12487 break
12488 }
12489 }
12490 if msglen < 0 {
12491 return ErrInvalidLengthMessages
12492 }
12493 postIndex := iNdEx + msglen
12494 if postIndex > l {
12495 return io.ErrUnexpectedEOF
12496 }
12497 if m.Framework == nil {
12498 m.Framework = &FrameworkInfo{}
12499 }
12500 if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil {
12501 return err
12502 }
12503 iNdEx = postIndex
12504 hasFields[0] |= uint64(0x00000001)
12505 default:
12506 iNdEx = preIndex
12507 skippy, err := skipMessages(data[iNdEx:])
12508 if err != nil {
12509 return err
12510 }
12511 if skippy < 0 {
12512 return ErrInvalidLengthMessages
12513 }
12514 if (iNdEx + skippy) > l {
12515 return io.ErrUnexpectedEOF
12516 }
12517 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12518 iNdEx += skippy
12519 }
12520 }
12521 if hasFields[0]&uint64(0x00000001) == 0 {
12522 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
12523 }
12524
12525 if iNdEx > l {
12526 return io.ErrUnexpectedEOF
12527 }
12528 return nil
12529 }
12530 func (m *ReregisterFrameworkMessage) Unmarshal(data []byte) error {
12531 var hasFields [1]uint64
12532 l := len(data)
12533 iNdEx := 0
12534 for iNdEx < l {
12535 preIndex := iNdEx
12536 var wire uint64
12537 for shift := uint(0); ; shift += 7 {
12538 if shift >= 64 {
12539 return ErrIntOverflowMessages
12540 }
12541 if iNdEx >= l {
12542 return io.ErrUnexpectedEOF
12543 }
12544 b := data[iNdEx]
12545 iNdEx++
12546 wire |= (uint64(b) & 0x7F) << shift
12547 if b < 0x80 {
12548 break
12549 }
12550 }
12551 fieldNum := int32(wire >> 3)
12552 wireType := int(wire & 0x7)
12553 if wireType == 4 {
12554 return fmt.Errorf("proto: ReregisterFrameworkMessage: wiretype end group for non-group")
12555 }
12556 if fieldNum <= 0 {
12557 return fmt.Errorf("proto: ReregisterFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12558 }
12559 switch fieldNum {
12560 case 2:
12561 if wireType != 2 {
12562 return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType)
12563 }
12564 var msglen int
12565 for shift := uint(0); ; shift += 7 {
12566 if shift >= 64 {
12567 return ErrIntOverflowMessages
12568 }
12569 if iNdEx >= l {
12570 return io.ErrUnexpectedEOF
12571 }
12572 b := data[iNdEx]
12573 iNdEx++
12574 msglen |= (int(b) & 0x7F) << shift
12575 if b < 0x80 {
12576 break
12577 }
12578 }
12579 if msglen < 0 {
12580 return ErrInvalidLengthMessages
12581 }
12582 postIndex := iNdEx + msglen
12583 if postIndex > l {
12584 return io.ErrUnexpectedEOF
12585 }
12586 if m.Framework == nil {
12587 m.Framework = &FrameworkInfo{}
12588 }
12589 if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil {
12590 return err
12591 }
12592 iNdEx = postIndex
12593 hasFields[0] |= uint64(0x00000001)
12594 case 3:
12595 if wireType != 0 {
12596 return fmt.Errorf("proto: wrong wireType = %d for field Failover", wireType)
12597 }
12598 var v int
12599 for shift := uint(0); ; shift += 7 {
12600 if shift >= 64 {
12601 return ErrIntOverflowMessages
12602 }
12603 if iNdEx >= l {
12604 return io.ErrUnexpectedEOF
12605 }
12606 b := data[iNdEx]
12607 iNdEx++
12608 v |= (int(b) & 0x7F) << shift
12609 if b < 0x80 {
12610 break
12611 }
12612 }
12613 b := bool(v != 0)
12614 m.Failover = &b
12615 hasFields[0] |= uint64(0x00000002)
12616 default:
12617 iNdEx = preIndex
12618 skippy, err := skipMessages(data[iNdEx:])
12619 if err != nil {
12620 return err
12621 }
12622 if skippy < 0 {
12623 return ErrInvalidLengthMessages
12624 }
12625 if (iNdEx + skippy) > l {
12626 return io.ErrUnexpectedEOF
12627 }
12628 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12629 iNdEx += skippy
12630 }
12631 }
12632 if hasFields[0]&uint64(0x00000001) == 0 {
12633 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
12634 }
12635 if hasFields[0]&uint64(0x00000002) == 0 {
12636 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("failover")
12637 }
12638
12639 if iNdEx > l {
12640 return io.ErrUnexpectedEOF
12641 }
12642 return nil
12643 }
12644 func (m *FrameworkRegisteredMessage) Unmarshal(data []byte) error {
12645 var hasFields [1]uint64
12646 l := len(data)
12647 iNdEx := 0
12648 for iNdEx < l {
12649 preIndex := iNdEx
12650 var wire uint64
12651 for shift := uint(0); ; shift += 7 {
12652 if shift >= 64 {
12653 return ErrIntOverflowMessages
12654 }
12655 if iNdEx >= l {
12656 return io.ErrUnexpectedEOF
12657 }
12658 b := data[iNdEx]
12659 iNdEx++
12660 wire |= (uint64(b) & 0x7F) << shift
12661 if b < 0x80 {
12662 break
12663 }
12664 }
12665 fieldNum := int32(wire >> 3)
12666 wireType := int(wire & 0x7)
12667 if wireType == 4 {
12668 return fmt.Errorf("proto: FrameworkRegisteredMessage: wiretype end group for non-group")
12669 }
12670 if fieldNum <= 0 {
12671 return fmt.Errorf("proto: FrameworkRegisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12672 }
12673 switch fieldNum {
12674 case 1:
12675 if wireType != 2 {
12676 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
12677 }
12678 var msglen int
12679 for shift := uint(0); ; shift += 7 {
12680 if shift >= 64 {
12681 return ErrIntOverflowMessages
12682 }
12683 if iNdEx >= l {
12684 return io.ErrUnexpectedEOF
12685 }
12686 b := data[iNdEx]
12687 iNdEx++
12688 msglen |= (int(b) & 0x7F) << shift
12689 if b < 0x80 {
12690 break
12691 }
12692 }
12693 if msglen < 0 {
12694 return ErrInvalidLengthMessages
12695 }
12696 postIndex := iNdEx + msglen
12697 if postIndex > l {
12698 return io.ErrUnexpectedEOF
12699 }
12700 if m.FrameworkId == nil {
12701 m.FrameworkId = &FrameworkID{}
12702 }
12703 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12704 return err
12705 }
12706 iNdEx = postIndex
12707 hasFields[0] |= uint64(0x00000001)
12708 case 2:
12709 if wireType != 2 {
12710 return fmt.Errorf("proto: wrong wireType = %d for field MasterInfo", wireType)
12711 }
12712 var msglen int
12713 for shift := uint(0); ; shift += 7 {
12714 if shift >= 64 {
12715 return ErrIntOverflowMessages
12716 }
12717 if iNdEx >= l {
12718 return io.ErrUnexpectedEOF
12719 }
12720 b := data[iNdEx]
12721 iNdEx++
12722 msglen |= (int(b) & 0x7F) << shift
12723 if b < 0x80 {
12724 break
12725 }
12726 }
12727 if msglen < 0 {
12728 return ErrInvalidLengthMessages
12729 }
12730 postIndex := iNdEx + msglen
12731 if postIndex > l {
12732 return io.ErrUnexpectedEOF
12733 }
12734 if m.MasterInfo == nil {
12735 m.MasterInfo = &MasterInfo{}
12736 }
12737 if err := m.MasterInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
12738 return err
12739 }
12740 iNdEx = postIndex
12741 hasFields[0] |= uint64(0x00000002)
12742 default:
12743 iNdEx = preIndex
12744 skippy, err := skipMessages(data[iNdEx:])
12745 if err != nil {
12746 return err
12747 }
12748 if skippy < 0 {
12749 return ErrInvalidLengthMessages
12750 }
12751 if (iNdEx + skippy) > l {
12752 return io.ErrUnexpectedEOF
12753 }
12754 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12755 iNdEx += skippy
12756 }
12757 }
12758 if hasFields[0]&uint64(0x00000001) == 0 {
12759 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
12760 }
12761 if hasFields[0]&uint64(0x00000002) == 0 {
12762 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info")
12763 }
12764
12765 if iNdEx > l {
12766 return io.ErrUnexpectedEOF
12767 }
12768 return nil
12769 }
12770 func (m *FrameworkReregisteredMessage) Unmarshal(data []byte) error {
12771 var hasFields [1]uint64
12772 l := len(data)
12773 iNdEx := 0
12774 for iNdEx < l {
12775 preIndex := iNdEx
12776 var wire uint64
12777 for shift := uint(0); ; shift += 7 {
12778 if shift >= 64 {
12779 return ErrIntOverflowMessages
12780 }
12781 if iNdEx >= l {
12782 return io.ErrUnexpectedEOF
12783 }
12784 b := data[iNdEx]
12785 iNdEx++
12786 wire |= (uint64(b) & 0x7F) << shift
12787 if b < 0x80 {
12788 break
12789 }
12790 }
12791 fieldNum := int32(wire >> 3)
12792 wireType := int(wire & 0x7)
12793 if wireType == 4 {
12794 return fmt.Errorf("proto: FrameworkReregisteredMessage: wiretype end group for non-group")
12795 }
12796 if fieldNum <= 0 {
12797 return fmt.Errorf("proto: FrameworkReregisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12798 }
12799 switch fieldNum {
12800 case 1:
12801 if wireType != 2 {
12802 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
12803 }
12804 var msglen int
12805 for shift := uint(0); ; shift += 7 {
12806 if shift >= 64 {
12807 return ErrIntOverflowMessages
12808 }
12809 if iNdEx >= l {
12810 return io.ErrUnexpectedEOF
12811 }
12812 b := data[iNdEx]
12813 iNdEx++
12814 msglen |= (int(b) & 0x7F) << shift
12815 if b < 0x80 {
12816 break
12817 }
12818 }
12819 if msglen < 0 {
12820 return ErrInvalidLengthMessages
12821 }
12822 postIndex := iNdEx + msglen
12823 if postIndex > l {
12824 return io.ErrUnexpectedEOF
12825 }
12826 if m.FrameworkId == nil {
12827 m.FrameworkId = &FrameworkID{}
12828 }
12829 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12830 return err
12831 }
12832 iNdEx = postIndex
12833 hasFields[0] |= uint64(0x00000001)
12834 case 2:
12835 if wireType != 2 {
12836 return fmt.Errorf("proto: wrong wireType = %d for field MasterInfo", wireType)
12837 }
12838 var msglen int
12839 for shift := uint(0); ; shift += 7 {
12840 if shift >= 64 {
12841 return ErrIntOverflowMessages
12842 }
12843 if iNdEx >= l {
12844 return io.ErrUnexpectedEOF
12845 }
12846 b := data[iNdEx]
12847 iNdEx++
12848 msglen |= (int(b) & 0x7F) << shift
12849 if b < 0x80 {
12850 break
12851 }
12852 }
12853 if msglen < 0 {
12854 return ErrInvalidLengthMessages
12855 }
12856 postIndex := iNdEx + msglen
12857 if postIndex > l {
12858 return io.ErrUnexpectedEOF
12859 }
12860 if m.MasterInfo == nil {
12861 m.MasterInfo = &MasterInfo{}
12862 }
12863 if err := m.MasterInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
12864 return err
12865 }
12866 iNdEx = postIndex
12867 hasFields[0] |= uint64(0x00000002)
12868 default:
12869 iNdEx = preIndex
12870 skippy, err := skipMessages(data[iNdEx:])
12871 if err != nil {
12872 return err
12873 }
12874 if skippy < 0 {
12875 return ErrInvalidLengthMessages
12876 }
12877 if (iNdEx + skippy) > l {
12878 return io.ErrUnexpectedEOF
12879 }
12880 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12881 iNdEx += skippy
12882 }
12883 }
12884 if hasFields[0]&uint64(0x00000001) == 0 {
12885 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
12886 }
12887 if hasFields[0]&uint64(0x00000002) == 0 {
12888 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info")
12889 }
12890
12891 if iNdEx > l {
12892 return io.ErrUnexpectedEOF
12893 }
12894 return nil
12895 }
12896 func (m *UnregisterFrameworkMessage) Unmarshal(data []byte) error {
12897 var hasFields [1]uint64
12898 l := len(data)
12899 iNdEx := 0
12900 for iNdEx < l {
12901 preIndex := iNdEx
12902 var wire uint64
12903 for shift := uint(0); ; shift += 7 {
12904 if shift >= 64 {
12905 return ErrIntOverflowMessages
12906 }
12907 if iNdEx >= l {
12908 return io.ErrUnexpectedEOF
12909 }
12910 b := data[iNdEx]
12911 iNdEx++
12912 wire |= (uint64(b) & 0x7F) << shift
12913 if b < 0x80 {
12914 break
12915 }
12916 }
12917 fieldNum := int32(wire >> 3)
12918 wireType := int(wire & 0x7)
12919 if wireType == 4 {
12920 return fmt.Errorf("proto: UnregisterFrameworkMessage: wiretype end group for non-group")
12921 }
12922 if fieldNum <= 0 {
12923 return fmt.Errorf("proto: UnregisterFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
12924 }
12925 switch fieldNum {
12926 case 1:
12927 if wireType != 2 {
12928 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
12929 }
12930 var msglen int
12931 for shift := uint(0); ; shift += 7 {
12932 if shift >= 64 {
12933 return ErrIntOverflowMessages
12934 }
12935 if iNdEx >= l {
12936 return io.ErrUnexpectedEOF
12937 }
12938 b := data[iNdEx]
12939 iNdEx++
12940 msglen |= (int(b) & 0x7F) << shift
12941 if b < 0x80 {
12942 break
12943 }
12944 }
12945 if msglen < 0 {
12946 return ErrInvalidLengthMessages
12947 }
12948 postIndex := iNdEx + msglen
12949 if postIndex > l {
12950 return io.ErrUnexpectedEOF
12951 }
12952 if m.FrameworkId == nil {
12953 m.FrameworkId = &FrameworkID{}
12954 }
12955 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
12956 return err
12957 }
12958 iNdEx = postIndex
12959 hasFields[0] |= uint64(0x00000001)
12960 default:
12961 iNdEx = preIndex
12962 skippy, err := skipMessages(data[iNdEx:])
12963 if err != nil {
12964 return err
12965 }
12966 if skippy < 0 {
12967 return ErrInvalidLengthMessages
12968 }
12969 if (iNdEx + skippy) > l {
12970 return io.ErrUnexpectedEOF
12971 }
12972 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
12973 iNdEx += skippy
12974 }
12975 }
12976 if hasFields[0]&uint64(0x00000001) == 0 {
12977 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
12978 }
12979
12980 if iNdEx > l {
12981 return io.ErrUnexpectedEOF
12982 }
12983 return nil
12984 }
12985 func (m *DeactivateFrameworkMessage) Unmarshal(data []byte) error {
12986 var hasFields [1]uint64
12987 l := len(data)
12988 iNdEx := 0
12989 for iNdEx < l {
12990 preIndex := iNdEx
12991 var wire uint64
12992 for shift := uint(0); ; shift += 7 {
12993 if shift >= 64 {
12994 return ErrIntOverflowMessages
12995 }
12996 if iNdEx >= l {
12997 return io.ErrUnexpectedEOF
12998 }
12999 b := data[iNdEx]
13000 iNdEx++
13001 wire |= (uint64(b) & 0x7F) << shift
13002 if b < 0x80 {
13003 break
13004 }
13005 }
13006 fieldNum := int32(wire >> 3)
13007 wireType := int(wire & 0x7)
13008 if wireType == 4 {
13009 return fmt.Errorf("proto: DeactivateFrameworkMessage: wiretype end group for non-group")
13010 }
13011 if fieldNum <= 0 {
13012 return fmt.Errorf("proto: DeactivateFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13013 }
13014 switch fieldNum {
13015 case 1:
13016 if wireType != 2 {
13017 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13018 }
13019 var msglen int
13020 for shift := uint(0); ; shift += 7 {
13021 if shift >= 64 {
13022 return ErrIntOverflowMessages
13023 }
13024 if iNdEx >= l {
13025 return io.ErrUnexpectedEOF
13026 }
13027 b := data[iNdEx]
13028 iNdEx++
13029 msglen |= (int(b) & 0x7F) << shift
13030 if b < 0x80 {
13031 break
13032 }
13033 }
13034 if msglen < 0 {
13035 return ErrInvalidLengthMessages
13036 }
13037 postIndex := iNdEx + msglen
13038 if postIndex > l {
13039 return io.ErrUnexpectedEOF
13040 }
13041 if m.FrameworkId == nil {
13042 m.FrameworkId = &FrameworkID{}
13043 }
13044 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13045 return err
13046 }
13047 iNdEx = postIndex
13048 hasFields[0] |= uint64(0x00000001)
13049 default:
13050 iNdEx = preIndex
13051 skippy, err := skipMessages(data[iNdEx:])
13052 if err != nil {
13053 return err
13054 }
13055 if skippy < 0 {
13056 return ErrInvalidLengthMessages
13057 }
13058 if (iNdEx + skippy) > l {
13059 return io.ErrUnexpectedEOF
13060 }
13061 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13062 iNdEx += skippy
13063 }
13064 }
13065 if hasFields[0]&uint64(0x00000001) == 0 {
13066 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
13067 }
13068
13069 if iNdEx > l {
13070 return io.ErrUnexpectedEOF
13071 }
13072 return nil
13073 }
13074 func (m *ResourceRequestMessage) Unmarshal(data []byte) error {
13075 var hasFields [1]uint64
13076 l := len(data)
13077 iNdEx := 0
13078 for iNdEx < l {
13079 preIndex := iNdEx
13080 var wire uint64
13081 for shift := uint(0); ; shift += 7 {
13082 if shift >= 64 {
13083 return ErrIntOverflowMessages
13084 }
13085 if iNdEx >= l {
13086 return io.ErrUnexpectedEOF
13087 }
13088 b := data[iNdEx]
13089 iNdEx++
13090 wire |= (uint64(b) & 0x7F) << shift
13091 if b < 0x80 {
13092 break
13093 }
13094 }
13095 fieldNum := int32(wire >> 3)
13096 wireType := int(wire & 0x7)
13097 if wireType == 4 {
13098 return fmt.Errorf("proto: ResourceRequestMessage: wiretype end group for non-group")
13099 }
13100 if fieldNum <= 0 {
13101 return fmt.Errorf("proto: ResourceRequestMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13102 }
13103 switch fieldNum {
13104 case 1:
13105 if wireType != 2 {
13106 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13107 }
13108 var msglen int
13109 for shift := uint(0); ; shift += 7 {
13110 if shift >= 64 {
13111 return ErrIntOverflowMessages
13112 }
13113 if iNdEx >= l {
13114 return io.ErrUnexpectedEOF
13115 }
13116 b := data[iNdEx]
13117 iNdEx++
13118 msglen |= (int(b) & 0x7F) << shift
13119 if b < 0x80 {
13120 break
13121 }
13122 }
13123 if msglen < 0 {
13124 return ErrInvalidLengthMessages
13125 }
13126 postIndex := iNdEx + msglen
13127 if postIndex > l {
13128 return io.ErrUnexpectedEOF
13129 }
13130 if m.FrameworkId == nil {
13131 m.FrameworkId = &FrameworkID{}
13132 }
13133 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13134 return err
13135 }
13136 iNdEx = postIndex
13137 hasFields[0] |= uint64(0x00000001)
13138 case 2:
13139 if wireType != 2 {
13140 return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
13141 }
13142 var msglen int
13143 for shift := uint(0); ; shift += 7 {
13144 if shift >= 64 {
13145 return ErrIntOverflowMessages
13146 }
13147 if iNdEx >= l {
13148 return io.ErrUnexpectedEOF
13149 }
13150 b := data[iNdEx]
13151 iNdEx++
13152 msglen |= (int(b) & 0x7F) << shift
13153 if b < 0x80 {
13154 break
13155 }
13156 }
13157 if msglen < 0 {
13158 return ErrInvalidLengthMessages
13159 }
13160 postIndex := iNdEx + msglen
13161 if postIndex > l {
13162 return io.ErrUnexpectedEOF
13163 }
13164 m.Requests = append(m.Requests, &Request{})
13165 if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
13166 return err
13167 }
13168 iNdEx = postIndex
13169 default:
13170 iNdEx = preIndex
13171 skippy, err := skipMessages(data[iNdEx:])
13172 if err != nil {
13173 return err
13174 }
13175 if skippy < 0 {
13176 return ErrInvalidLengthMessages
13177 }
13178 if (iNdEx + skippy) > l {
13179 return io.ErrUnexpectedEOF
13180 }
13181 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13182 iNdEx += skippy
13183 }
13184 }
13185 if hasFields[0]&uint64(0x00000001) == 0 {
13186 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
13187 }
13188
13189 if iNdEx > l {
13190 return io.ErrUnexpectedEOF
13191 }
13192 return nil
13193 }
13194 func (m *ResourceOffersMessage) Unmarshal(data []byte) error {
13195 l := len(data)
13196 iNdEx := 0
13197 for iNdEx < l {
13198 preIndex := iNdEx
13199 var wire uint64
13200 for shift := uint(0); ; shift += 7 {
13201 if shift >= 64 {
13202 return ErrIntOverflowMessages
13203 }
13204 if iNdEx >= l {
13205 return io.ErrUnexpectedEOF
13206 }
13207 b := data[iNdEx]
13208 iNdEx++
13209 wire |= (uint64(b) & 0x7F) << shift
13210 if b < 0x80 {
13211 break
13212 }
13213 }
13214 fieldNum := int32(wire >> 3)
13215 wireType := int(wire & 0x7)
13216 if wireType == 4 {
13217 return fmt.Errorf("proto: ResourceOffersMessage: wiretype end group for non-group")
13218 }
13219 if fieldNum <= 0 {
13220 return fmt.Errorf("proto: ResourceOffersMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13221 }
13222 switch fieldNum {
13223 case 1:
13224 if wireType != 2 {
13225 return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType)
13226 }
13227 var msglen int
13228 for shift := uint(0); ; shift += 7 {
13229 if shift >= 64 {
13230 return ErrIntOverflowMessages
13231 }
13232 if iNdEx >= l {
13233 return io.ErrUnexpectedEOF
13234 }
13235 b := data[iNdEx]
13236 iNdEx++
13237 msglen |= (int(b) & 0x7F) << shift
13238 if b < 0x80 {
13239 break
13240 }
13241 }
13242 if msglen < 0 {
13243 return ErrInvalidLengthMessages
13244 }
13245 postIndex := iNdEx + msglen
13246 if postIndex > l {
13247 return io.ErrUnexpectedEOF
13248 }
13249 m.Offers = append(m.Offers, &Offer{})
13250 if err := m.Offers[len(m.Offers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
13251 return err
13252 }
13253 iNdEx = postIndex
13254 case 2:
13255 if wireType != 2 {
13256 return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
13257 }
13258 var stringLen uint64
13259 for shift := uint(0); ; shift += 7 {
13260 if shift >= 64 {
13261 return ErrIntOverflowMessages
13262 }
13263 if iNdEx >= l {
13264 return io.ErrUnexpectedEOF
13265 }
13266 b := data[iNdEx]
13267 iNdEx++
13268 stringLen |= (uint64(b) & 0x7F) << shift
13269 if b < 0x80 {
13270 break
13271 }
13272 }
13273 intStringLen := int(stringLen)
13274 if intStringLen < 0 {
13275 return ErrInvalidLengthMessages
13276 }
13277 postIndex := iNdEx + intStringLen
13278 if postIndex > l {
13279 return io.ErrUnexpectedEOF
13280 }
13281 m.Pids = append(m.Pids, string(data[iNdEx:postIndex]))
13282 iNdEx = postIndex
13283 case 3:
13284 if wireType != 2 {
13285 return fmt.Errorf("proto: wrong wireType = %d for field InverseOffers", wireType)
13286 }
13287 var msglen int
13288 for shift := uint(0); ; shift += 7 {
13289 if shift >= 64 {
13290 return ErrIntOverflowMessages
13291 }
13292 if iNdEx >= l {
13293 return io.ErrUnexpectedEOF
13294 }
13295 b := data[iNdEx]
13296 iNdEx++
13297 msglen |= (int(b) & 0x7F) << shift
13298 if b < 0x80 {
13299 break
13300 }
13301 }
13302 if msglen < 0 {
13303 return ErrInvalidLengthMessages
13304 }
13305 postIndex := iNdEx + msglen
13306 if postIndex > l {
13307 return io.ErrUnexpectedEOF
13308 }
13309 m.InverseOffers = append(m.InverseOffers, &InverseOffer{})
13310 if err := m.InverseOffers[len(m.InverseOffers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
13311 return err
13312 }
13313 iNdEx = postIndex
13314 default:
13315 iNdEx = preIndex
13316 skippy, err := skipMessages(data[iNdEx:])
13317 if err != nil {
13318 return err
13319 }
13320 if skippy < 0 {
13321 return ErrInvalidLengthMessages
13322 }
13323 if (iNdEx + skippy) > l {
13324 return io.ErrUnexpectedEOF
13325 }
13326 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13327 iNdEx += skippy
13328 }
13329 }
13330
13331 if iNdEx > l {
13332 return io.ErrUnexpectedEOF
13333 }
13334 return nil
13335 }
13336 func (m *LaunchTasksMessage) Unmarshal(data []byte) error {
13337 var hasFields [1]uint64
13338 l := len(data)
13339 iNdEx := 0
13340 for iNdEx < l {
13341 preIndex := iNdEx
13342 var wire uint64
13343 for shift := uint(0); ; shift += 7 {
13344 if shift >= 64 {
13345 return ErrIntOverflowMessages
13346 }
13347 if iNdEx >= l {
13348 return io.ErrUnexpectedEOF
13349 }
13350 b := data[iNdEx]
13351 iNdEx++
13352 wire |= (uint64(b) & 0x7F) << shift
13353 if b < 0x80 {
13354 break
13355 }
13356 }
13357 fieldNum := int32(wire >> 3)
13358 wireType := int(wire & 0x7)
13359 if wireType == 4 {
13360 return fmt.Errorf("proto: LaunchTasksMessage: wiretype end group for non-group")
13361 }
13362 if fieldNum <= 0 {
13363 return fmt.Errorf("proto: LaunchTasksMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13364 }
13365 switch fieldNum {
13366 case 1:
13367 if wireType != 2 {
13368 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13369 }
13370 var msglen int
13371 for shift := uint(0); ; shift += 7 {
13372 if shift >= 64 {
13373 return ErrIntOverflowMessages
13374 }
13375 if iNdEx >= l {
13376 return io.ErrUnexpectedEOF
13377 }
13378 b := data[iNdEx]
13379 iNdEx++
13380 msglen |= (int(b) & 0x7F) << shift
13381 if b < 0x80 {
13382 break
13383 }
13384 }
13385 if msglen < 0 {
13386 return ErrInvalidLengthMessages
13387 }
13388 postIndex := iNdEx + msglen
13389 if postIndex > l {
13390 return io.ErrUnexpectedEOF
13391 }
13392 if m.FrameworkId == nil {
13393 m.FrameworkId = &FrameworkID{}
13394 }
13395 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13396 return err
13397 }
13398 iNdEx = postIndex
13399 hasFields[0] |= uint64(0x00000001)
13400 case 3:
13401 if wireType != 2 {
13402 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
13403 }
13404 var msglen int
13405 for shift := uint(0); ; shift += 7 {
13406 if shift >= 64 {
13407 return ErrIntOverflowMessages
13408 }
13409 if iNdEx >= l {
13410 return io.ErrUnexpectedEOF
13411 }
13412 b := data[iNdEx]
13413 iNdEx++
13414 msglen |= (int(b) & 0x7F) << shift
13415 if b < 0x80 {
13416 break
13417 }
13418 }
13419 if msglen < 0 {
13420 return ErrInvalidLengthMessages
13421 }
13422 postIndex := iNdEx + msglen
13423 if postIndex > l {
13424 return io.ErrUnexpectedEOF
13425 }
13426 m.Tasks = append(m.Tasks, &TaskInfo{})
13427 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
13428 return err
13429 }
13430 iNdEx = postIndex
13431 case 5:
13432 if wireType != 2 {
13433 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
13434 }
13435 var msglen int
13436 for shift := uint(0); ; shift += 7 {
13437 if shift >= 64 {
13438 return ErrIntOverflowMessages
13439 }
13440 if iNdEx >= l {
13441 return io.ErrUnexpectedEOF
13442 }
13443 b := data[iNdEx]
13444 iNdEx++
13445 msglen |= (int(b) & 0x7F) << shift
13446 if b < 0x80 {
13447 break
13448 }
13449 }
13450 if msglen < 0 {
13451 return ErrInvalidLengthMessages
13452 }
13453 postIndex := iNdEx + msglen
13454 if postIndex > l {
13455 return io.ErrUnexpectedEOF
13456 }
13457 if m.Filters == nil {
13458 m.Filters = &Filters{}
13459 }
13460 if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil {
13461 return err
13462 }
13463 iNdEx = postIndex
13464 hasFields[0] |= uint64(0x00000002)
13465 case 6:
13466 if wireType != 2 {
13467 return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType)
13468 }
13469 var msglen int
13470 for shift := uint(0); ; shift += 7 {
13471 if shift >= 64 {
13472 return ErrIntOverflowMessages
13473 }
13474 if iNdEx >= l {
13475 return io.ErrUnexpectedEOF
13476 }
13477 b := data[iNdEx]
13478 iNdEx++
13479 msglen |= (int(b) & 0x7F) << shift
13480 if b < 0x80 {
13481 break
13482 }
13483 }
13484 if msglen < 0 {
13485 return ErrInvalidLengthMessages
13486 }
13487 postIndex := iNdEx + msglen
13488 if postIndex > l {
13489 return io.ErrUnexpectedEOF
13490 }
13491 m.OfferIds = append(m.OfferIds, &OfferID{})
13492 if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
13493 return err
13494 }
13495 iNdEx = postIndex
13496 default:
13497 iNdEx = preIndex
13498 skippy, err := skipMessages(data[iNdEx:])
13499 if err != nil {
13500 return err
13501 }
13502 if skippy < 0 {
13503 return ErrInvalidLengthMessages
13504 }
13505 if (iNdEx + skippy) > l {
13506 return io.ErrUnexpectedEOF
13507 }
13508 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13509 iNdEx += skippy
13510 }
13511 }
13512 if hasFields[0]&uint64(0x00000001) == 0 {
13513 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
13514 }
13515 if hasFields[0]&uint64(0x00000002) == 0 {
13516 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("filters")
13517 }
13518
13519 if iNdEx > l {
13520 return io.ErrUnexpectedEOF
13521 }
13522 return nil
13523 }
13524 func (m *RescindResourceOfferMessage) Unmarshal(data []byte) error {
13525 var hasFields [1]uint64
13526 l := len(data)
13527 iNdEx := 0
13528 for iNdEx < l {
13529 preIndex := iNdEx
13530 var wire uint64
13531 for shift := uint(0); ; shift += 7 {
13532 if shift >= 64 {
13533 return ErrIntOverflowMessages
13534 }
13535 if iNdEx >= l {
13536 return io.ErrUnexpectedEOF
13537 }
13538 b := data[iNdEx]
13539 iNdEx++
13540 wire |= (uint64(b) & 0x7F) << shift
13541 if b < 0x80 {
13542 break
13543 }
13544 }
13545 fieldNum := int32(wire >> 3)
13546 wireType := int(wire & 0x7)
13547 if wireType == 4 {
13548 return fmt.Errorf("proto: RescindResourceOfferMessage: wiretype end group for non-group")
13549 }
13550 if fieldNum <= 0 {
13551 return fmt.Errorf("proto: RescindResourceOfferMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13552 }
13553 switch fieldNum {
13554 case 1:
13555 if wireType != 2 {
13556 return fmt.Errorf("proto: wrong wireType = %d for field OfferId", wireType)
13557 }
13558 var msglen int
13559 for shift := uint(0); ; shift += 7 {
13560 if shift >= 64 {
13561 return ErrIntOverflowMessages
13562 }
13563 if iNdEx >= l {
13564 return io.ErrUnexpectedEOF
13565 }
13566 b := data[iNdEx]
13567 iNdEx++
13568 msglen |= (int(b) & 0x7F) << shift
13569 if b < 0x80 {
13570 break
13571 }
13572 }
13573 if msglen < 0 {
13574 return ErrInvalidLengthMessages
13575 }
13576 postIndex := iNdEx + msglen
13577 if postIndex > l {
13578 return io.ErrUnexpectedEOF
13579 }
13580 if m.OfferId == nil {
13581 m.OfferId = &OfferID{}
13582 }
13583 if err := m.OfferId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13584 return err
13585 }
13586 iNdEx = postIndex
13587 hasFields[0] |= uint64(0x00000001)
13588 default:
13589 iNdEx = preIndex
13590 skippy, err := skipMessages(data[iNdEx:])
13591 if err != nil {
13592 return err
13593 }
13594 if skippy < 0 {
13595 return ErrInvalidLengthMessages
13596 }
13597 if (iNdEx + skippy) > l {
13598 return io.ErrUnexpectedEOF
13599 }
13600 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13601 iNdEx += skippy
13602 }
13603 }
13604 if hasFields[0]&uint64(0x00000001) == 0 {
13605 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id")
13606 }
13607
13608 if iNdEx > l {
13609 return io.ErrUnexpectedEOF
13610 }
13611 return nil
13612 }
13613 func (m *ReviveOffersMessage) Unmarshal(data []byte) error {
13614 var hasFields [1]uint64
13615 l := len(data)
13616 iNdEx := 0
13617 for iNdEx < l {
13618 preIndex := iNdEx
13619 var wire uint64
13620 for shift := uint(0); ; shift += 7 {
13621 if shift >= 64 {
13622 return ErrIntOverflowMessages
13623 }
13624 if iNdEx >= l {
13625 return io.ErrUnexpectedEOF
13626 }
13627 b := data[iNdEx]
13628 iNdEx++
13629 wire |= (uint64(b) & 0x7F) << shift
13630 if b < 0x80 {
13631 break
13632 }
13633 }
13634 fieldNum := int32(wire >> 3)
13635 wireType := int(wire & 0x7)
13636 if wireType == 4 {
13637 return fmt.Errorf("proto: ReviveOffersMessage: wiretype end group for non-group")
13638 }
13639 if fieldNum <= 0 {
13640 return fmt.Errorf("proto: ReviveOffersMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13641 }
13642 switch fieldNum {
13643 case 1:
13644 if wireType != 2 {
13645 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13646 }
13647 var msglen int
13648 for shift := uint(0); ; shift += 7 {
13649 if shift >= 64 {
13650 return ErrIntOverflowMessages
13651 }
13652 if iNdEx >= l {
13653 return io.ErrUnexpectedEOF
13654 }
13655 b := data[iNdEx]
13656 iNdEx++
13657 msglen |= (int(b) & 0x7F) << shift
13658 if b < 0x80 {
13659 break
13660 }
13661 }
13662 if msglen < 0 {
13663 return ErrInvalidLengthMessages
13664 }
13665 postIndex := iNdEx + msglen
13666 if postIndex > l {
13667 return io.ErrUnexpectedEOF
13668 }
13669 if m.FrameworkId == nil {
13670 m.FrameworkId = &FrameworkID{}
13671 }
13672 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13673 return err
13674 }
13675 iNdEx = postIndex
13676 hasFields[0] |= uint64(0x00000001)
13677 default:
13678 iNdEx = preIndex
13679 skippy, err := skipMessages(data[iNdEx:])
13680 if err != nil {
13681 return err
13682 }
13683 if skippy < 0 {
13684 return ErrInvalidLengthMessages
13685 }
13686 if (iNdEx + skippy) > l {
13687 return io.ErrUnexpectedEOF
13688 }
13689 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13690 iNdEx += skippy
13691 }
13692 }
13693 if hasFields[0]&uint64(0x00000001) == 0 {
13694 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
13695 }
13696
13697 if iNdEx > l {
13698 return io.ErrUnexpectedEOF
13699 }
13700 return nil
13701 }
13702 func (m *RunTaskMessage) Unmarshal(data []byte) error {
13703 var hasFields [1]uint64
13704 l := len(data)
13705 iNdEx := 0
13706 for iNdEx < l {
13707 preIndex := iNdEx
13708 var wire uint64
13709 for shift := uint(0); ; shift += 7 {
13710 if shift >= 64 {
13711 return ErrIntOverflowMessages
13712 }
13713 if iNdEx >= l {
13714 return io.ErrUnexpectedEOF
13715 }
13716 b := data[iNdEx]
13717 iNdEx++
13718 wire |= (uint64(b) & 0x7F) << shift
13719 if b < 0x80 {
13720 break
13721 }
13722 }
13723 fieldNum := int32(wire >> 3)
13724 wireType := int(wire & 0x7)
13725 if wireType == 4 {
13726 return fmt.Errorf("proto: RunTaskMessage: wiretype end group for non-group")
13727 }
13728 if fieldNum <= 0 {
13729 return fmt.Errorf("proto: RunTaskMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13730 }
13731 switch fieldNum {
13732 case 1:
13733 if wireType != 2 {
13734 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13735 }
13736 var msglen int
13737 for shift := uint(0); ; shift += 7 {
13738 if shift >= 64 {
13739 return ErrIntOverflowMessages
13740 }
13741 if iNdEx >= l {
13742 return io.ErrUnexpectedEOF
13743 }
13744 b := data[iNdEx]
13745 iNdEx++
13746 msglen |= (int(b) & 0x7F) << shift
13747 if b < 0x80 {
13748 break
13749 }
13750 }
13751 if msglen < 0 {
13752 return ErrInvalidLengthMessages
13753 }
13754 postIndex := iNdEx + msglen
13755 if postIndex > l {
13756 return io.ErrUnexpectedEOF
13757 }
13758 if m.FrameworkId == nil {
13759 m.FrameworkId = &FrameworkID{}
13760 }
13761 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13762 return err
13763 }
13764 iNdEx = postIndex
13765 case 2:
13766 if wireType != 2 {
13767 return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType)
13768 }
13769 var msglen int
13770 for shift := uint(0); ; shift += 7 {
13771 if shift >= 64 {
13772 return ErrIntOverflowMessages
13773 }
13774 if iNdEx >= l {
13775 return io.ErrUnexpectedEOF
13776 }
13777 b := data[iNdEx]
13778 iNdEx++
13779 msglen |= (int(b) & 0x7F) << shift
13780 if b < 0x80 {
13781 break
13782 }
13783 }
13784 if msglen < 0 {
13785 return ErrInvalidLengthMessages
13786 }
13787 postIndex := iNdEx + msglen
13788 if postIndex > l {
13789 return io.ErrUnexpectedEOF
13790 }
13791 if m.Framework == nil {
13792 m.Framework = &FrameworkInfo{}
13793 }
13794 if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil {
13795 return err
13796 }
13797 iNdEx = postIndex
13798 hasFields[0] |= uint64(0x00000001)
13799 case 3:
13800 if wireType != 2 {
13801 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
13802 }
13803 var stringLen uint64
13804 for shift := uint(0); ; shift += 7 {
13805 if shift >= 64 {
13806 return ErrIntOverflowMessages
13807 }
13808 if iNdEx >= l {
13809 return io.ErrUnexpectedEOF
13810 }
13811 b := data[iNdEx]
13812 iNdEx++
13813 stringLen |= (uint64(b) & 0x7F) << shift
13814 if b < 0x80 {
13815 break
13816 }
13817 }
13818 intStringLen := int(stringLen)
13819 if intStringLen < 0 {
13820 return ErrInvalidLengthMessages
13821 }
13822 postIndex := iNdEx + intStringLen
13823 if postIndex > l {
13824 return io.ErrUnexpectedEOF
13825 }
13826 s := string(data[iNdEx:postIndex])
13827 m.Pid = &s
13828 iNdEx = postIndex
13829 case 4:
13830 if wireType != 2 {
13831 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
13832 }
13833 var msglen int
13834 for shift := uint(0); ; shift += 7 {
13835 if shift >= 64 {
13836 return ErrIntOverflowMessages
13837 }
13838 if iNdEx >= l {
13839 return io.ErrUnexpectedEOF
13840 }
13841 b := data[iNdEx]
13842 iNdEx++
13843 msglen |= (int(b) & 0x7F) << shift
13844 if b < 0x80 {
13845 break
13846 }
13847 }
13848 if msglen < 0 {
13849 return ErrInvalidLengthMessages
13850 }
13851 postIndex := iNdEx + msglen
13852 if postIndex > l {
13853 return io.ErrUnexpectedEOF
13854 }
13855 if m.Task == nil {
13856 m.Task = &TaskInfo{}
13857 }
13858 if err := m.Task.Unmarshal(data[iNdEx:postIndex]); err != nil {
13859 return err
13860 }
13861 iNdEx = postIndex
13862 hasFields[0] |= uint64(0x00000002)
13863 default:
13864 iNdEx = preIndex
13865 skippy, err := skipMessages(data[iNdEx:])
13866 if err != nil {
13867 return err
13868 }
13869 if skippy < 0 {
13870 return ErrInvalidLengthMessages
13871 }
13872 if (iNdEx + skippy) > l {
13873 return io.ErrUnexpectedEOF
13874 }
13875 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
13876 iNdEx += skippy
13877 }
13878 }
13879 if hasFields[0]&uint64(0x00000001) == 0 {
13880 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework")
13881 }
13882 if hasFields[0]&uint64(0x00000002) == 0 {
13883 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task")
13884 }
13885
13886 if iNdEx > l {
13887 return io.ErrUnexpectedEOF
13888 }
13889 return nil
13890 }
13891 func (m *KillTaskMessage) Unmarshal(data []byte) error {
13892 var hasFields [1]uint64
13893 l := len(data)
13894 iNdEx := 0
13895 for iNdEx < l {
13896 preIndex := iNdEx
13897 var wire uint64
13898 for shift := uint(0); ; shift += 7 {
13899 if shift >= 64 {
13900 return ErrIntOverflowMessages
13901 }
13902 if iNdEx >= l {
13903 return io.ErrUnexpectedEOF
13904 }
13905 b := data[iNdEx]
13906 iNdEx++
13907 wire |= (uint64(b) & 0x7F) << shift
13908 if b < 0x80 {
13909 break
13910 }
13911 }
13912 fieldNum := int32(wire >> 3)
13913 wireType := int(wire & 0x7)
13914 if wireType == 4 {
13915 return fmt.Errorf("proto: KillTaskMessage: wiretype end group for non-group")
13916 }
13917 if fieldNum <= 0 {
13918 return fmt.Errorf("proto: KillTaskMessage: illegal tag %d (wire type %d)", fieldNum, wire)
13919 }
13920 switch fieldNum {
13921 case 1:
13922 if wireType != 2 {
13923 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
13924 }
13925 var msglen int
13926 for shift := uint(0); ; shift += 7 {
13927 if shift >= 64 {
13928 return ErrIntOverflowMessages
13929 }
13930 if iNdEx >= l {
13931 return io.ErrUnexpectedEOF
13932 }
13933 b := data[iNdEx]
13934 iNdEx++
13935 msglen |= (int(b) & 0x7F) << shift
13936 if b < 0x80 {
13937 break
13938 }
13939 }
13940 if msglen < 0 {
13941 return ErrInvalidLengthMessages
13942 }
13943 postIndex := iNdEx + msglen
13944 if postIndex > l {
13945 return io.ErrUnexpectedEOF
13946 }
13947 if m.FrameworkId == nil {
13948 m.FrameworkId = &FrameworkID{}
13949 }
13950 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13951 return err
13952 }
13953 iNdEx = postIndex
13954 hasFields[0] |= uint64(0x00000001)
13955 case 2:
13956 if wireType != 2 {
13957 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
13958 }
13959 var msglen int
13960 for shift := uint(0); ; shift += 7 {
13961 if shift >= 64 {
13962 return ErrIntOverflowMessages
13963 }
13964 if iNdEx >= l {
13965 return io.ErrUnexpectedEOF
13966 }
13967 b := data[iNdEx]
13968 iNdEx++
13969 msglen |= (int(b) & 0x7F) << shift
13970 if b < 0x80 {
13971 break
13972 }
13973 }
13974 if msglen < 0 {
13975 return ErrInvalidLengthMessages
13976 }
13977 postIndex := iNdEx + msglen
13978 if postIndex > l {
13979 return io.ErrUnexpectedEOF
13980 }
13981 if m.TaskId == nil {
13982 m.TaskId = &TaskID{}
13983 }
13984 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
13985 return err
13986 }
13987 iNdEx = postIndex
13988 hasFields[0] |= uint64(0x00000002)
13989 default:
13990 iNdEx = preIndex
13991 skippy, err := skipMessages(data[iNdEx:])
13992 if err != nil {
13993 return err
13994 }
13995 if skippy < 0 {
13996 return ErrInvalidLengthMessages
13997 }
13998 if (iNdEx + skippy) > l {
13999 return io.ErrUnexpectedEOF
14000 }
14001 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14002 iNdEx += skippy
14003 }
14004 }
14005 if hasFields[0]&uint64(0x00000001) == 0 {
14006 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
14007 }
14008 if hasFields[0]&uint64(0x00000002) == 0 {
14009 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
14010 }
14011
14012 if iNdEx > l {
14013 return io.ErrUnexpectedEOF
14014 }
14015 return nil
14016 }
14017 func (m *StatusUpdateMessage) Unmarshal(data []byte) error {
14018 var hasFields [1]uint64
14019 l := len(data)
14020 iNdEx := 0
14021 for iNdEx < l {
14022 preIndex := iNdEx
14023 var wire uint64
14024 for shift := uint(0); ; shift += 7 {
14025 if shift >= 64 {
14026 return ErrIntOverflowMessages
14027 }
14028 if iNdEx >= l {
14029 return io.ErrUnexpectedEOF
14030 }
14031 b := data[iNdEx]
14032 iNdEx++
14033 wire |= (uint64(b) & 0x7F) << shift
14034 if b < 0x80 {
14035 break
14036 }
14037 }
14038 fieldNum := int32(wire >> 3)
14039 wireType := int(wire & 0x7)
14040 if wireType == 4 {
14041 return fmt.Errorf("proto: StatusUpdateMessage: wiretype end group for non-group")
14042 }
14043 if fieldNum <= 0 {
14044 return fmt.Errorf("proto: StatusUpdateMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14045 }
14046 switch fieldNum {
14047 case 1:
14048 if wireType != 2 {
14049 return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
14050 }
14051 var msglen int
14052 for shift := uint(0); ; shift += 7 {
14053 if shift >= 64 {
14054 return ErrIntOverflowMessages
14055 }
14056 if iNdEx >= l {
14057 return io.ErrUnexpectedEOF
14058 }
14059 b := data[iNdEx]
14060 iNdEx++
14061 msglen |= (int(b) & 0x7F) << shift
14062 if b < 0x80 {
14063 break
14064 }
14065 }
14066 if msglen < 0 {
14067 return ErrInvalidLengthMessages
14068 }
14069 postIndex := iNdEx + msglen
14070 if postIndex > l {
14071 return io.ErrUnexpectedEOF
14072 }
14073 if m.Update == nil {
14074 m.Update = &StatusUpdate{}
14075 }
14076 if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil {
14077 return err
14078 }
14079 iNdEx = postIndex
14080 hasFields[0] |= uint64(0x00000001)
14081 case 2:
14082 if wireType != 2 {
14083 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
14084 }
14085 var stringLen uint64
14086 for shift := uint(0); ; shift += 7 {
14087 if shift >= 64 {
14088 return ErrIntOverflowMessages
14089 }
14090 if iNdEx >= l {
14091 return io.ErrUnexpectedEOF
14092 }
14093 b := data[iNdEx]
14094 iNdEx++
14095 stringLen |= (uint64(b) & 0x7F) << shift
14096 if b < 0x80 {
14097 break
14098 }
14099 }
14100 intStringLen := int(stringLen)
14101 if intStringLen < 0 {
14102 return ErrInvalidLengthMessages
14103 }
14104 postIndex := iNdEx + intStringLen
14105 if postIndex > l {
14106 return io.ErrUnexpectedEOF
14107 }
14108 s := string(data[iNdEx:postIndex])
14109 m.Pid = &s
14110 iNdEx = postIndex
14111 default:
14112 iNdEx = preIndex
14113 skippy, err := skipMessages(data[iNdEx:])
14114 if err != nil {
14115 return err
14116 }
14117 if skippy < 0 {
14118 return ErrInvalidLengthMessages
14119 }
14120 if (iNdEx + skippy) > l {
14121 return io.ErrUnexpectedEOF
14122 }
14123 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14124 iNdEx += skippy
14125 }
14126 }
14127 if hasFields[0]&uint64(0x00000001) == 0 {
14128 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("update")
14129 }
14130
14131 if iNdEx > l {
14132 return io.ErrUnexpectedEOF
14133 }
14134 return nil
14135 }
14136 func (m *StatusUpdateAcknowledgementMessage) Unmarshal(data []byte) error {
14137 var hasFields [1]uint64
14138 l := len(data)
14139 iNdEx := 0
14140 for iNdEx < l {
14141 preIndex := iNdEx
14142 var wire uint64
14143 for shift := uint(0); ; shift += 7 {
14144 if shift >= 64 {
14145 return ErrIntOverflowMessages
14146 }
14147 if iNdEx >= l {
14148 return io.ErrUnexpectedEOF
14149 }
14150 b := data[iNdEx]
14151 iNdEx++
14152 wire |= (uint64(b) & 0x7F) << shift
14153 if b < 0x80 {
14154 break
14155 }
14156 }
14157 fieldNum := int32(wire >> 3)
14158 wireType := int(wire & 0x7)
14159 if wireType == 4 {
14160 return fmt.Errorf("proto: StatusUpdateAcknowledgementMessage: wiretype end group for non-group")
14161 }
14162 if fieldNum <= 0 {
14163 return fmt.Errorf("proto: StatusUpdateAcknowledgementMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14164 }
14165 switch fieldNum {
14166 case 1:
14167 if wireType != 2 {
14168 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
14169 }
14170 var msglen int
14171 for shift := uint(0); ; shift += 7 {
14172 if shift >= 64 {
14173 return ErrIntOverflowMessages
14174 }
14175 if iNdEx >= l {
14176 return io.ErrUnexpectedEOF
14177 }
14178 b := data[iNdEx]
14179 iNdEx++
14180 msglen |= (int(b) & 0x7F) << shift
14181 if b < 0x80 {
14182 break
14183 }
14184 }
14185 if msglen < 0 {
14186 return ErrInvalidLengthMessages
14187 }
14188 postIndex := iNdEx + msglen
14189 if postIndex > l {
14190 return io.ErrUnexpectedEOF
14191 }
14192 if m.SlaveId == nil {
14193 m.SlaveId = &SlaveID{}
14194 }
14195 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
14196 return err
14197 }
14198 iNdEx = postIndex
14199 hasFields[0] |= uint64(0x00000001)
14200 case 2:
14201 if wireType != 2 {
14202 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
14203 }
14204 var msglen int
14205 for shift := uint(0); ; shift += 7 {
14206 if shift >= 64 {
14207 return ErrIntOverflowMessages
14208 }
14209 if iNdEx >= l {
14210 return io.ErrUnexpectedEOF
14211 }
14212 b := data[iNdEx]
14213 iNdEx++
14214 msglen |= (int(b) & 0x7F) << shift
14215 if b < 0x80 {
14216 break
14217 }
14218 }
14219 if msglen < 0 {
14220 return ErrInvalidLengthMessages
14221 }
14222 postIndex := iNdEx + msglen
14223 if postIndex > l {
14224 return io.ErrUnexpectedEOF
14225 }
14226 if m.FrameworkId == nil {
14227 m.FrameworkId = &FrameworkID{}
14228 }
14229 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
14230 return err
14231 }
14232 iNdEx = postIndex
14233 hasFields[0] |= uint64(0x00000002)
14234 case 3:
14235 if wireType != 2 {
14236 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
14237 }
14238 var msglen int
14239 for shift := uint(0); ; shift += 7 {
14240 if shift >= 64 {
14241 return ErrIntOverflowMessages
14242 }
14243 if iNdEx >= l {
14244 return io.ErrUnexpectedEOF
14245 }
14246 b := data[iNdEx]
14247 iNdEx++
14248 msglen |= (int(b) & 0x7F) << shift
14249 if b < 0x80 {
14250 break
14251 }
14252 }
14253 if msglen < 0 {
14254 return ErrInvalidLengthMessages
14255 }
14256 postIndex := iNdEx + msglen
14257 if postIndex > l {
14258 return io.ErrUnexpectedEOF
14259 }
14260 if m.TaskId == nil {
14261 m.TaskId = &TaskID{}
14262 }
14263 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
14264 return err
14265 }
14266 iNdEx = postIndex
14267 hasFields[0] |= uint64(0x00000004)
14268 case 4:
14269 if wireType != 2 {
14270 return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType)
14271 }
14272 var byteLen int
14273 for shift := uint(0); ; shift += 7 {
14274 if shift >= 64 {
14275 return ErrIntOverflowMessages
14276 }
14277 if iNdEx >= l {
14278 return io.ErrUnexpectedEOF
14279 }
14280 b := data[iNdEx]
14281 iNdEx++
14282 byteLen |= (int(b) & 0x7F) << shift
14283 if b < 0x80 {
14284 break
14285 }
14286 }
14287 if byteLen < 0 {
14288 return ErrInvalidLengthMessages
14289 }
14290 postIndex := iNdEx + byteLen
14291 if postIndex > l {
14292 return io.ErrUnexpectedEOF
14293 }
14294 m.Uuid = append([]byte{}, data[iNdEx:postIndex]...)
14295 iNdEx = postIndex
14296 hasFields[0] |= uint64(0x00000008)
14297 default:
14298 iNdEx = preIndex
14299 skippy, err := skipMessages(data[iNdEx:])
14300 if err != nil {
14301 return err
14302 }
14303 if skippy < 0 {
14304 return ErrInvalidLengthMessages
14305 }
14306 if (iNdEx + skippy) > l {
14307 return io.ErrUnexpectedEOF
14308 }
14309 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14310 iNdEx += skippy
14311 }
14312 }
14313 if hasFields[0]&uint64(0x00000001) == 0 {
14314 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
14315 }
14316 if hasFields[0]&uint64(0x00000002) == 0 {
14317 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
14318 }
14319 if hasFields[0]&uint64(0x00000004) == 0 {
14320 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
14321 }
14322 if hasFields[0]&uint64(0x00000008) == 0 {
14323 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
14324 }
14325
14326 if iNdEx > l {
14327 return io.ErrUnexpectedEOF
14328 }
14329 return nil
14330 }
14331 func (m *LostSlaveMessage) Unmarshal(data []byte) error {
14332 var hasFields [1]uint64
14333 l := len(data)
14334 iNdEx := 0
14335 for iNdEx < l {
14336 preIndex := iNdEx
14337 var wire uint64
14338 for shift := uint(0); ; shift += 7 {
14339 if shift >= 64 {
14340 return ErrIntOverflowMessages
14341 }
14342 if iNdEx >= l {
14343 return io.ErrUnexpectedEOF
14344 }
14345 b := data[iNdEx]
14346 iNdEx++
14347 wire |= (uint64(b) & 0x7F) << shift
14348 if b < 0x80 {
14349 break
14350 }
14351 }
14352 fieldNum := int32(wire >> 3)
14353 wireType := int(wire & 0x7)
14354 if wireType == 4 {
14355 return fmt.Errorf("proto: LostSlaveMessage: wiretype end group for non-group")
14356 }
14357 if fieldNum <= 0 {
14358 return fmt.Errorf("proto: LostSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14359 }
14360 switch fieldNum {
14361 case 1:
14362 if wireType != 2 {
14363 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
14364 }
14365 var msglen int
14366 for shift := uint(0); ; shift += 7 {
14367 if shift >= 64 {
14368 return ErrIntOverflowMessages
14369 }
14370 if iNdEx >= l {
14371 return io.ErrUnexpectedEOF
14372 }
14373 b := data[iNdEx]
14374 iNdEx++
14375 msglen |= (int(b) & 0x7F) << shift
14376 if b < 0x80 {
14377 break
14378 }
14379 }
14380 if msglen < 0 {
14381 return ErrInvalidLengthMessages
14382 }
14383 postIndex := iNdEx + msglen
14384 if postIndex > l {
14385 return io.ErrUnexpectedEOF
14386 }
14387 if m.SlaveId == nil {
14388 m.SlaveId = &SlaveID{}
14389 }
14390 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
14391 return err
14392 }
14393 iNdEx = postIndex
14394 hasFields[0] |= uint64(0x00000001)
14395 default:
14396 iNdEx = preIndex
14397 skippy, err := skipMessages(data[iNdEx:])
14398 if err != nil {
14399 return err
14400 }
14401 if skippy < 0 {
14402 return ErrInvalidLengthMessages
14403 }
14404 if (iNdEx + skippy) > l {
14405 return io.ErrUnexpectedEOF
14406 }
14407 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14408 iNdEx += skippy
14409 }
14410 }
14411 if hasFields[0]&uint64(0x00000001) == 0 {
14412 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
14413 }
14414
14415 if iNdEx > l {
14416 return io.ErrUnexpectedEOF
14417 }
14418 return nil
14419 }
14420 func (m *ReconcileTasksMessage) Unmarshal(data []byte) error {
14421 var hasFields [1]uint64
14422 l := len(data)
14423 iNdEx := 0
14424 for iNdEx < l {
14425 preIndex := iNdEx
14426 var wire uint64
14427 for shift := uint(0); ; shift += 7 {
14428 if shift >= 64 {
14429 return ErrIntOverflowMessages
14430 }
14431 if iNdEx >= l {
14432 return io.ErrUnexpectedEOF
14433 }
14434 b := data[iNdEx]
14435 iNdEx++
14436 wire |= (uint64(b) & 0x7F) << shift
14437 if b < 0x80 {
14438 break
14439 }
14440 }
14441 fieldNum := int32(wire >> 3)
14442 wireType := int(wire & 0x7)
14443 if wireType == 4 {
14444 return fmt.Errorf("proto: ReconcileTasksMessage: wiretype end group for non-group")
14445 }
14446 if fieldNum <= 0 {
14447 return fmt.Errorf("proto: ReconcileTasksMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14448 }
14449 switch fieldNum {
14450 case 1:
14451 if wireType != 2 {
14452 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
14453 }
14454 var msglen int
14455 for shift := uint(0); ; shift += 7 {
14456 if shift >= 64 {
14457 return ErrIntOverflowMessages
14458 }
14459 if iNdEx >= l {
14460 return io.ErrUnexpectedEOF
14461 }
14462 b := data[iNdEx]
14463 iNdEx++
14464 msglen |= (int(b) & 0x7F) << shift
14465 if b < 0x80 {
14466 break
14467 }
14468 }
14469 if msglen < 0 {
14470 return ErrInvalidLengthMessages
14471 }
14472 postIndex := iNdEx + msglen
14473 if postIndex > l {
14474 return io.ErrUnexpectedEOF
14475 }
14476 if m.FrameworkId == nil {
14477 m.FrameworkId = &FrameworkID{}
14478 }
14479 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
14480 return err
14481 }
14482 iNdEx = postIndex
14483 hasFields[0] |= uint64(0x00000001)
14484 case 2:
14485 if wireType != 2 {
14486 return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType)
14487 }
14488 var msglen int
14489 for shift := uint(0); ; shift += 7 {
14490 if shift >= 64 {
14491 return ErrIntOverflowMessages
14492 }
14493 if iNdEx >= l {
14494 return io.ErrUnexpectedEOF
14495 }
14496 b := data[iNdEx]
14497 iNdEx++
14498 msglen |= (int(b) & 0x7F) << shift
14499 if b < 0x80 {
14500 break
14501 }
14502 }
14503 if msglen < 0 {
14504 return ErrInvalidLengthMessages
14505 }
14506 postIndex := iNdEx + msglen
14507 if postIndex > l {
14508 return io.ErrUnexpectedEOF
14509 }
14510 m.Statuses = append(m.Statuses, &TaskStatus{})
14511 if err := m.Statuses[len(m.Statuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14512 return err
14513 }
14514 iNdEx = postIndex
14515 default:
14516 iNdEx = preIndex
14517 skippy, err := skipMessages(data[iNdEx:])
14518 if err != nil {
14519 return err
14520 }
14521 if skippy < 0 {
14522 return ErrInvalidLengthMessages
14523 }
14524 if (iNdEx + skippy) > l {
14525 return io.ErrUnexpectedEOF
14526 }
14527 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14528 iNdEx += skippy
14529 }
14530 }
14531 if hasFields[0]&uint64(0x00000001) == 0 {
14532 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
14533 }
14534
14535 if iNdEx > l {
14536 return io.ErrUnexpectedEOF
14537 }
14538 return nil
14539 }
14540 func (m *FrameworkErrorMessage) Unmarshal(data []byte) error {
14541 var hasFields [1]uint64
14542 l := len(data)
14543 iNdEx := 0
14544 for iNdEx < l {
14545 preIndex := iNdEx
14546 var wire uint64
14547 for shift := uint(0); ; shift += 7 {
14548 if shift >= 64 {
14549 return ErrIntOverflowMessages
14550 }
14551 if iNdEx >= l {
14552 return io.ErrUnexpectedEOF
14553 }
14554 b := data[iNdEx]
14555 iNdEx++
14556 wire |= (uint64(b) & 0x7F) << shift
14557 if b < 0x80 {
14558 break
14559 }
14560 }
14561 fieldNum := int32(wire >> 3)
14562 wireType := int(wire & 0x7)
14563 if wireType == 4 {
14564 return fmt.Errorf("proto: FrameworkErrorMessage: wiretype end group for non-group")
14565 }
14566 if fieldNum <= 0 {
14567 return fmt.Errorf("proto: FrameworkErrorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14568 }
14569 switch fieldNum {
14570 case 2:
14571 if wireType != 2 {
14572 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
14573 }
14574 var stringLen uint64
14575 for shift := uint(0); ; shift += 7 {
14576 if shift >= 64 {
14577 return ErrIntOverflowMessages
14578 }
14579 if iNdEx >= l {
14580 return io.ErrUnexpectedEOF
14581 }
14582 b := data[iNdEx]
14583 iNdEx++
14584 stringLen |= (uint64(b) & 0x7F) << shift
14585 if b < 0x80 {
14586 break
14587 }
14588 }
14589 intStringLen := int(stringLen)
14590 if intStringLen < 0 {
14591 return ErrInvalidLengthMessages
14592 }
14593 postIndex := iNdEx + intStringLen
14594 if postIndex > l {
14595 return io.ErrUnexpectedEOF
14596 }
14597 s := string(data[iNdEx:postIndex])
14598 m.Message = &s
14599 iNdEx = postIndex
14600 hasFields[0] |= uint64(0x00000001)
14601 default:
14602 iNdEx = preIndex
14603 skippy, err := skipMessages(data[iNdEx:])
14604 if err != nil {
14605 return err
14606 }
14607 if skippy < 0 {
14608 return ErrInvalidLengthMessages
14609 }
14610 if (iNdEx + skippy) > l {
14611 return io.ErrUnexpectedEOF
14612 }
14613 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14614 iNdEx += skippy
14615 }
14616 }
14617 if hasFields[0]&uint64(0x00000001) == 0 {
14618 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
14619 }
14620
14621 if iNdEx > l {
14622 return io.ErrUnexpectedEOF
14623 }
14624 return nil
14625 }
14626 func (m *RegisterSlaveMessage) Unmarshal(data []byte) error {
14627 var hasFields [1]uint64
14628 l := len(data)
14629 iNdEx := 0
14630 for iNdEx < l {
14631 preIndex := iNdEx
14632 var wire uint64
14633 for shift := uint(0); ; shift += 7 {
14634 if shift >= 64 {
14635 return ErrIntOverflowMessages
14636 }
14637 if iNdEx >= l {
14638 return io.ErrUnexpectedEOF
14639 }
14640 b := data[iNdEx]
14641 iNdEx++
14642 wire |= (uint64(b) & 0x7F) << shift
14643 if b < 0x80 {
14644 break
14645 }
14646 }
14647 fieldNum := int32(wire >> 3)
14648 wireType := int(wire & 0x7)
14649 if wireType == 4 {
14650 return fmt.Errorf("proto: RegisterSlaveMessage: wiretype end group for non-group")
14651 }
14652 if fieldNum <= 0 {
14653 return fmt.Errorf("proto: RegisterSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14654 }
14655 switch fieldNum {
14656 case 1:
14657 if wireType != 2 {
14658 return fmt.Errorf("proto: wrong wireType = %d for field Slave", wireType)
14659 }
14660 var msglen int
14661 for shift := uint(0); ; shift += 7 {
14662 if shift >= 64 {
14663 return ErrIntOverflowMessages
14664 }
14665 if iNdEx >= l {
14666 return io.ErrUnexpectedEOF
14667 }
14668 b := data[iNdEx]
14669 iNdEx++
14670 msglen |= (int(b) & 0x7F) << shift
14671 if b < 0x80 {
14672 break
14673 }
14674 }
14675 if msglen < 0 {
14676 return ErrInvalidLengthMessages
14677 }
14678 postIndex := iNdEx + msglen
14679 if postIndex > l {
14680 return io.ErrUnexpectedEOF
14681 }
14682 if m.Slave == nil {
14683 m.Slave = &SlaveInfo{}
14684 }
14685 if err := m.Slave.Unmarshal(data[iNdEx:postIndex]); err != nil {
14686 return err
14687 }
14688 iNdEx = postIndex
14689 hasFields[0] |= uint64(0x00000001)
14690 case 2:
14691 if wireType != 2 {
14692 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
14693 }
14694 var stringLen uint64
14695 for shift := uint(0); ; shift += 7 {
14696 if shift >= 64 {
14697 return ErrIntOverflowMessages
14698 }
14699 if iNdEx >= l {
14700 return io.ErrUnexpectedEOF
14701 }
14702 b := data[iNdEx]
14703 iNdEx++
14704 stringLen |= (uint64(b) & 0x7F) << shift
14705 if b < 0x80 {
14706 break
14707 }
14708 }
14709 intStringLen := int(stringLen)
14710 if intStringLen < 0 {
14711 return ErrInvalidLengthMessages
14712 }
14713 postIndex := iNdEx + intStringLen
14714 if postIndex > l {
14715 return io.ErrUnexpectedEOF
14716 }
14717 s := string(data[iNdEx:postIndex])
14718 m.Version = &s
14719 iNdEx = postIndex
14720 case 3:
14721 if wireType != 2 {
14722 return fmt.Errorf("proto: wrong wireType = %d for field CheckpointedResources", wireType)
14723 }
14724 var msglen int
14725 for shift := uint(0); ; shift += 7 {
14726 if shift >= 64 {
14727 return ErrIntOverflowMessages
14728 }
14729 if iNdEx >= l {
14730 return io.ErrUnexpectedEOF
14731 }
14732 b := data[iNdEx]
14733 iNdEx++
14734 msglen |= (int(b) & 0x7F) << shift
14735 if b < 0x80 {
14736 break
14737 }
14738 }
14739 if msglen < 0 {
14740 return ErrInvalidLengthMessages
14741 }
14742 postIndex := iNdEx + msglen
14743 if postIndex > l {
14744 return io.ErrUnexpectedEOF
14745 }
14746 m.CheckpointedResources = append(m.CheckpointedResources, &Resource{})
14747 if err := m.CheckpointedResources[len(m.CheckpointedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14748 return err
14749 }
14750 iNdEx = postIndex
14751 default:
14752 iNdEx = preIndex
14753 skippy, err := skipMessages(data[iNdEx:])
14754 if err != nil {
14755 return err
14756 }
14757 if skippy < 0 {
14758 return ErrInvalidLengthMessages
14759 }
14760 if (iNdEx + skippy) > l {
14761 return io.ErrUnexpectedEOF
14762 }
14763 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
14764 iNdEx += skippy
14765 }
14766 }
14767 if hasFields[0]&uint64(0x00000001) == 0 {
14768 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave")
14769 }
14770
14771 if iNdEx > l {
14772 return io.ErrUnexpectedEOF
14773 }
14774 return nil
14775 }
14776 func (m *ReregisterSlaveMessage) Unmarshal(data []byte) error {
14777 var hasFields [1]uint64
14778 l := len(data)
14779 iNdEx := 0
14780 for iNdEx < l {
14781 preIndex := iNdEx
14782 var wire uint64
14783 for shift := uint(0); ; shift += 7 {
14784 if shift >= 64 {
14785 return ErrIntOverflowMessages
14786 }
14787 if iNdEx >= l {
14788 return io.ErrUnexpectedEOF
14789 }
14790 b := data[iNdEx]
14791 iNdEx++
14792 wire |= (uint64(b) & 0x7F) << shift
14793 if b < 0x80 {
14794 break
14795 }
14796 }
14797 fieldNum := int32(wire >> 3)
14798 wireType := int(wire & 0x7)
14799 if wireType == 4 {
14800 return fmt.Errorf("proto: ReregisterSlaveMessage: wiretype end group for non-group")
14801 }
14802 if fieldNum <= 0 {
14803 return fmt.Errorf("proto: ReregisterSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
14804 }
14805 switch fieldNum {
14806 case 2:
14807 if wireType != 2 {
14808 return fmt.Errorf("proto: wrong wireType = %d for field Slave", wireType)
14809 }
14810 var msglen int
14811 for shift := uint(0); ; shift += 7 {
14812 if shift >= 64 {
14813 return ErrIntOverflowMessages
14814 }
14815 if iNdEx >= l {
14816 return io.ErrUnexpectedEOF
14817 }
14818 b := data[iNdEx]
14819 iNdEx++
14820 msglen |= (int(b) & 0x7F) << shift
14821 if b < 0x80 {
14822 break
14823 }
14824 }
14825 if msglen < 0 {
14826 return ErrInvalidLengthMessages
14827 }
14828 postIndex := iNdEx + msglen
14829 if postIndex > l {
14830 return io.ErrUnexpectedEOF
14831 }
14832 if m.Slave == nil {
14833 m.Slave = &SlaveInfo{}
14834 }
14835 if err := m.Slave.Unmarshal(data[iNdEx:postIndex]); err != nil {
14836 return err
14837 }
14838 iNdEx = postIndex
14839 hasFields[0] |= uint64(0x00000001)
14840 case 3:
14841 if wireType != 2 {
14842 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
14843 }
14844 var msglen int
14845 for shift := uint(0); ; shift += 7 {
14846 if shift >= 64 {
14847 return ErrIntOverflowMessages
14848 }
14849 if iNdEx >= l {
14850 return io.ErrUnexpectedEOF
14851 }
14852 b := data[iNdEx]
14853 iNdEx++
14854 msglen |= (int(b) & 0x7F) << shift
14855 if b < 0x80 {
14856 break
14857 }
14858 }
14859 if msglen < 0 {
14860 return ErrInvalidLengthMessages
14861 }
14862 postIndex := iNdEx + msglen
14863 if postIndex > l {
14864 return io.ErrUnexpectedEOF
14865 }
14866 m.Tasks = append(m.Tasks, &Task{})
14867 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14868 return err
14869 }
14870 iNdEx = postIndex
14871 case 4:
14872 if wireType != 2 {
14873 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfos", wireType)
14874 }
14875 var msglen int
14876 for shift := uint(0); ; shift += 7 {
14877 if shift >= 64 {
14878 return ErrIntOverflowMessages
14879 }
14880 if iNdEx >= l {
14881 return io.ErrUnexpectedEOF
14882 }
14883 b := data[iNdEx]
14884 iNdEx++
14885 msglen |= (int(b) & 0x7F) << shift
14886 if b < 0x80 {
14887 break
14888 }
14889 }
14890 if msglen < 0 {
14891 return ErrInvalidLengthMessages
14892 }
14893 postIndex := iNdEx + msglen
14894 if postIndex > l {
14895 return io.ErrUnexpectedEOF
14896 }
14897 m.ExecutorInfos = append(m.ExecutorInfos, &ExecutorInfo{})
14898 if err := m.ExecutorInfos[len(m.ExecutorInfos)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14899 return err
14900 }
14901 iNdEx = postIndex
14902 case 5:
14903 if wireType != 2 {
14904 return fmt.Errorf("proto: wrong wireType = %d for field CompletedFrameworks", wireType)
14905 }
14906 var msglen int
14907 for shift := uint(0); ; shift += 7 {
14908 if shift >= 64 {
14909 return ErrIntOverflowMessages
14910 }
14911 if iNdEx >= l {
14912 return io.ErrUnexpectedEOF
14913 }
14914 b := data[iNdEx]
14915 iNdEx++
14916 msglen |= (int(b) & 0x7F) << shift
14917 if b < 0x80 {
14918 break
14919 }
14920 }
14921 if msglen < 0 {
14922 return ErrInvalidLengthMessages
14923 }
14924 postIndex := iNdEx + msglen
14925 if postIndex > l {
14926 return io.ErrUnexpectedEOF
14927 }
14928 m.CompletedFrameworks = append(m.CompletedFrameworks, &Archive_Framework{})
14929 if err := m.CompletedFrameworks[len(m.CompletedFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14930 return err
14931 }
14932 iNdEx = postIndex
14933 case 6:
14934 if wireType != 2 {
14935 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
14936 }
14937 var stringLen uint64
14938 for shift := uint(0); ; shift += 7 {
14939 if shift >= 64 {
14940 return ErrIntOverflowMessages
14941 }
14942 if iNdEx >= l {
14943 return io.ErrUnexpectedEOF
14944 }
14945 b := data[iNdEx]
14946 iNdEx++
14947 stringLen |= (uint64(b) & 0x7F) << shift
14948 if b < 0x80 {
14949 break
14950 }
14951 }
14952 intStringLen := int(stringLen)
14953 if intStringLen < 0 {
14954 return ErrInvalidLengthMessages
14955 }
14956 postIndex := iNdEx + intStringLen
14957 if postIndex > l {
14958 return io.ErrUnexpectedEOF
14959 }
14960 s := string(data[iNdEx:postIndex])
14961 m.Version = &s
14962 iNdEx = postIndex
14963 case 7:
14964 if wireType != 2 {
14965 return fmt.Errorf("proto: wrong wireType = %d for field CheckpointedResources", wireType)
14966 }
14967 var msglen int
14968 for shift := uint(0); ; shift += 7 {
14969 if shift >= 64 {
14970 return ErrIntOverflowMessages
14971 }
14972 if iNdEx >= l {
14973 return io.ErrUnexpectedEOF
14974 }
14975 b := data[iNdEx]
14976 iNdEx++
14977 msglen |= (int(b) & 0x7F) << shift
14978 if b < 0x80 {
14979 break
14980 }
14981 }
14982 if msglen < 0 {
14983 return ErrInvalidLengthMessages
14984 }
14985 postIndex := iNdEx + msglen
14986 if postIndex > l {
14987 return io.ErrUnexpectedEOF
14988 }
14989 m.CheckpointedResources = append(m.CheckpointedResources, &Resource{})
14990 if err := m.CheckpointedResources[len(m.CheckpointedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
14991 return err
14992 }
14993 iNdEx = postIndex
14994 default:
14995 iNdEx = preIndex
14996 skippy, err := skipMessages(data[iNdEx:])
14997 if err != nil {
14998 return err
14999 }
15000 if skippy < 0 {
15001 return ErrInvalidLengthMessages
15002 }
15003 if (iNdEx + skippy) > l {
15004 return io.ErrUnexpectedEOF
15005 }
15006 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15007 iNdEx += skippy
15008 }
15009 }
15010 if hasFields[0]&uint64(0x00000001) == 0 {
15011 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave")
15012 }
15013
15014 if iNdEx > l {
15015 return io.ErrUnexpectedEOF
15016 }
15017 return nil
15018 }
15019 func (m *SlaveRegisteredMessage) Unmarshal(data []byte) error {
15020 var hasFields [1]uint64
15021 l := len(data)
15022 iNdEx := 0
15023 for iNdEx < l {
15024 preIndex := iNdEx
15025 var wire uint64
15026 for shift := uint(0); ; shift += 7 {
15027 if shift >= 64 {
15028 return ErrIntOverflowMessages
15029 }
15030 if iNdEx >= l {
15031 return io.ErrUnexpectedEOF
15032 }
15033 b := data[iNdEx]
15034 iNdEx++
15035 wire |= (uint64(b) & 0x7F) << shift
15036 if b < 0x80 {
15037 break
15038 }
15039 }
15040 fieldNum := int32(wire >> 3)
15041 wireType := int(wire & 0x7)
15042 if wireType == 4 {
15043 return fmt.Errorf("proto: SlaveRegisteredMessage: wiretype end group for non-group")
15044 }
15045 if fieldNum <= 0 {
15046 return fmt.Errorf("proto: SlaveRegisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15047 }
15048 switch fieldNum {
15049 case 1:
15050 if wireType != 2 {
15051 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
15052 }
15053 var msglen int
15054 for shift := uint(0); ; shift += 7 {
15055 if shift >= 64 {
15056 return ErrIntOverflowMessages
15057 }
15058 if iNdEx >= l {
15059 return io.ErrUnexpectedEOF
15060 }
15061 b := data[iNdEx]
15062 iNdEx++
15063 msglen |= (int(b) & 0x7F) << shift
15064 if b < 0x80 {
15065 break
15066 }
15067 }
15068 if msglen < 0 {
15069 return ErrInvalidLengthMessages
15070 }
15071 postIndex := iNdEx + msglen
15072 if postIndex > l {
15073 return io.ErrUnexpectedEOF
15074 }
15075 if m.SlaveId == nil {
15076 m.SlaveId = &SlaveID{}
15077 }
15078 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15079 return err
15080 }
15081 iNdEx = postIndex
15082 hasFields[0] |= uint64(0x00000001)
15083 case 2:
15084 if wireType != 2 {
15085 return fmt.Errorf("proto: wrong wireType = %d for field Connection", wireType)
15086 }
15087 var msglen int
15088 for shift := uint(0); ; shift += 7 {
15089 if shift >= 64 {
15090 return ErrIntOverflowMessages
15091 }
15092 if iNdEx >= l {
15093 return io.ErrUnexpectedEOF
15094 }
15095 b := data[iNdEx]
15096 iNdEx++
15097 msglen |= (int(b) & 0x7F) << shift
15098 if b < 0x80 {
15099 break
15100 }
15101 }
15102 if msglen < 0 {
15103 return ErrInvalidLengthMessages
15104 }
15105 postIndex := iNdEx + msglen
15106 if postIndex > l {
15107 return io.ErrUnexpectedEOF
15108 }
15109 if m.Connection == nil {
15110 m.Connection = &MasterSlaveConnection{}
15111 }
15112 if err := m.Connection.Unmarshal(data[iNdEx:postIndex]); err != nil {
15113 return err
15114 }
15115 iNdEx = postIndex
15116 default:
15117 iNdEx = preIndex
15118 skippy, err := skipMessages(data[iNdEx:])
15119 if err != nil {
15120 return err
15121 }
15122 if skippy < 0 {
15123 return ErrInvalidLengthMessages
15124 }
15125 if (iNdEx + skippy) > l {
15126 return io.ErrUnexpectedEOF
15127 }
15128 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15129 iNdEx += skippy
15130 }
15131 }
15132 if hasFields[0]&uint64(0x00000001) == 0 {
15133 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
15134 }
15135
15136 if iNdEx > l {
15137 return io.ErrUnexpectedEOF
15138 }
15139 return nil
15140 }
15141 func (m *SlaveReregisteredMessage) Unmarshal(data []byte) error {
15142 var hasFields [1]uint64
15143 l := len(data)
15144 iNdEx := 0
15145 for iNdEx < l {
15146 preIndex := iNdEx
15147 var wire uint64
15148 for shift := uint(0); ; shift += 7 {
15149 if shift >= 64 {
15150 return ErrIntOverflowMessages
15151 }
15152 if iNdEx >= l {
15153 return io.ErrUnexpectedEOF
15154 }
15155 b := data[iNdEx]
15156 iNdEx++
15157 wire |= (uint64(b) & 0x7F) << shift
15158 if b < 0x80 {
15159 break
15160 }
15161 }
15162 fieldNum := int32(wire >> 3)
15163 wireType := int(wire & 0x7)
15164 if wireType == 4 {
15165 return fmt.Errorf("proto: SlaveReregisteredMessage: wiretype end group for non-group")
15166 }
15167 if fieldNum <= 0 {
15168 return fmt.Errorf("proto: SlaveReregisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15169 }
15170 switch fieldNum {
15171 case 1:
15172 if wireType != 2 {
15173 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
15174 }
15175 var msglen int
15176 for shift := uint(0); ; shift += 7 {
15177 if shift >= 64 {
15178 return ErrIntOverflowMessages
15179 }
15180 if iNdEx >= l {
15181 return io.ErrUnexpectedEOF
15182 }
15183 b := data[iNdEx]
15184 iNdEx++
15185 msglen |= (int(b) & 0x7F) << shift
15186 if b < 0x80 {
15187 break
15188 }
15189 }
15190 if msglen < 0 {
15191 return ErrInvalidLengthMessages
15192 }
15193 postIndex := iNdEx + msglen
15194 if postIndex > l {
15195 return io.ErrUnexpectedEOF
15196 }
15197 if m.SlaveId == nil {
15198 m.SlaveId = &SlaveID{}
15199 }
15200 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15201 return err
15202 }
15203 iNdEx = postIndex
15204 hasFields[0] |= uint64(0x00000001)
15205 case 2:
15206 if wireType != 2 {
15207 return fmt.Errorf("proto: wrong wireType = %d for field Reconciliations", wireType)
15208 }
15209 var msglen int
15210 for shift := uint(0); ; shift += 7 {
15211 if shift >= 64 {
15212 return ErrIntOverflowMessages
15213 }
15214 if iNdEx >= l {
15215 return io.ErrUnexpectedEOF
15216 }
15217 b := data[iNdEx]
15218 iNdEx++
15219 msglen |= (int(b) & 0x7F) << shift
15220 if b < 0x80 {
15221 break
15222 }
15223 }
15224 if msglen < 0 {
15225 return ErrInvalidLengthMessages
15226 }
15227 postIndex := iNdEx + msglen
15228 if postIndex > l {
15229 return io.ErrUnexpectedEOF
15230 }
15231 m.Reconciliations = append(m.Reconciliations, &ReconcileTasksMessage{})
15232 if err := m.Reconciliations[len(m.Reconciliations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
15233 return err
15234 }
15235 iNdEx = postIndex
15236 case 3:
15237 if wireType != 2 {
15238 return fmt.Errorf("proto: wrong wireType = %d for field Connection", wireType)
15239 }
15240 var msglen int
15241 for shift := uint(0); ; shift += 7 {
15242 if shift >= 64 {
15243 return ErrIntOverflowMessages
15244 }
15245 if iNdEx >= l {
15246 return io.ErrUnexpectedEOF
15247 }
15248 b := data[iNdEx]
15249 iNdEx++
15250 msglen |= (int(b) & 0x7F) << shift
15251 if b < 0x80 {
15252 break
15253 }
15254 }
15255 if msglen < 0 {
15256 return ErrInvalidLengthMessages
15257 }
15258 postIndex := iNdEx + msglen
15259 if postIndex > l {
15260 return io.ErrUnexpectedEOF
15261 }
15262 if m.Connection == nil {
15263 m.Connection = &MasterSlaveConnection{}
15264 }
15265 if err := m.Connection.Unmarshal(data[iNdEx:postIndex]); err != nil {
15266 return err
15267 }
15268 iNdEx = postIndex
15269 default:
15270 iNdEx = preIndex
15271 skippy, err := skipMessages(data[iNdEx:])
15272 if err != nil {
15273 return err
15274 }
15275 if skippy < 0 {
15276 return ErrInvalidLengthMessages
15277 }
15278 if (iNdEx + skippy) > l {
15279 return io.ErrUnexpectedEOF
15280 }
15281 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15282 iNdEx += skippy
15283 }
15284 }
15285 if hasFields[0]&uint64(0x00000001) == 0 {
15286 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
15287 }
15288
15289 if iNdEx > l {
15290 return io.ErrUnexpectedEOF
15291 }
15292 return nil
15293 }
15294 func (m *UnregisterSlaveMessage) Unmarshal(data []byte) error {
15295 var hasFields [1]uint64
15296 l := len(data)
15297 iNdEx := 0
15298 for iNdEx < l {
15299 preIndex := iNdEx
15300 var wire uint64
15301 for shift := uint(0); ; shift += 7 {
15302 if shift >= 64 {
15303 return ErrIntOverflowMessages
15304 }
15305 if iNdEx >= l {
15306 return io.ErrUnexpectedEOF
15307 }
15308 b := data[iNdEx]
15309 iNdEx++
15310 wire |= (uint64(b) & 0x7F) << shift
15311 if b < 0x80 {
15312 break
15313 }
15314 }
15315 fieldNum := int32(wire >> 3)
15316 wireType := int(wire & 0x7)
15317 if wireType == 4 {
15318 return fmt.Errorf("proto: UnregisterSlaveMessage: wiretype end group for non-group")
15319 }
15320 if fieldNum <= 0 {
15321 return fmt.Errorf("proto: UnregisterSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15322 }
15323 switch fieldNum {
15324 case 1:
15325 if wireType != 2 {
15326 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
15327 }
15328 var msglen int
15329 for shift := uint(0); ; shift += 7 {
15330 if shift >= 64 {
15331 return ErrIntOverflowMessages
15332 }
15333 if iNdEx >= l {
15334 return io.ErrUnexpectedEOF
15335 }
15336 b := data[iNdEx]
15337 iNdEx++
15338 msglen |= (int(b) & 0x7F) << shift
15339 if b < 0x80 {
15340 break
15341 }
15342 }
15343 if msglen < 0 {
15344 return ErrInvalidLengthMessages
15345 }
15346 postIndex := iNdEx + msglen
15347 if postIndex > l {
15348 return io.ErrUnexpectedEOF
15349 }
15350 if m.SlaveId == nil {
15351 m.SlaveId = &SlaveID{}
15352 }
15353 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15354 return err
15355 }
15356 iNdEx = postIndex
15357 hasFields[0] |= uint64(0x00000001)
15358 default:
15359 iNdEx = preIndex
15360 skippy, err := skipMessages(data[iNdEx:])
15361 if err != nil {
15362 return err
15363 }
15364 if skippy < 0 {
15365 return ErrInvalidLengthMessages
15366 }
15367 if (iNdEx + skippy) > l {
15368 return io.ErrUnexpectedEOF
15369 }
15370 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15371 iNdEx += skippy
15372 }
15373 }
15374 if hasFields[0]&uint64(0x00000001) == 0 {
15375 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
15376 }
15377
15378 if iNdEx > l {
15379 return io.ErrUnexpectedEOF
15380 }
15381 return nil
15382 }
15383 func (m *MasterSlaveConnection) Unmarshal(data []byte) error {
15384 l := len(data)
15385 iNdEx := 0
15386 for iNdEx < l {
15387 preIndex := iNdEx
15388 var wire uint64
15389 for shift := uint(0); ; shift += 7 {
15390 if shift >= 64 {
15391 return ErrIntOverflowMessages
15392 }
15393 if iNdEx >= l {
15394 return io.ErrUnexpectedEOF
15395 }
15396 b := data[iNdEx]
15397 iNdEx++
15398 wire |= (uint64(b) & 0x7F) << shift
15399 if b < 0x80 {
15400 break
15401 }
15402 }
15403 fieldNum := int32(wire >> 3)
15404 wireType := int(wire & 0x7)
15405 if wireType == 4 {
15406 return fmt.Errorf("proto: MasterSlaveConnection: wiretype end group for non-group")
15407 }
15408 if fieldNum <= 0 {
15409 return fmt.Errorf("proto: MasterSlaveConnection: illegal tag %d (wire type %d)", fieldNum, wire)
15410 }
15411 switch fieldNum {
15412 case 1:
15413 if wireType != 1 {
15414 return fmt.Errorf("proto: wrong wireType = %d for field TotalPingTimeoutSeconds", wireType)
15415 }
15416 var v uint64
15417 if (iNdEx + 8) > l {
15418 return io.ErrUnexpectedEOF
15419 }
15420 iNdEx += 8
15421 v = uint64(data[iNdEx-8])
15422 v |= uint64(data[iNdEx-7]) << 8
15423 v |= uint64(data[iNdEx-6]) << 16
15424 v |= uint64(data[iNdEx-5]) << 24
15425 v |= uint64(data[iNdEx-4]) << 32
15426 v |= uint64(data[iNdEx-3]) << 40
15427 v |= uint64(data[iNdEx-2]) << 48
15428 v |= uint64(data[iNdEx-1]) << 56
15429 v2 := float64(math.Float64frombits(v))
15430 m.TotalPingTimeoutSeconds = &v2
15431 default:
15432 iNdEx = preIndex
15433 skippy, err := skipMessages(data[iNdEx:])
15434 if err != nil {
15435 return err
15436 }
15437 if skippy < 0 {
15438 return ErrInvalidLengthMessages
15439 }
15440 if (iNdEx + skippy) > l {
15441 return io.ErrUnexpectedEOF
15442 }
15443 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15444 iNdEx += skippy
15445 }
15446 }
15447
15448 if iNdEx > l {
15449 return io.ErrUnexpectedEOF
15450 }
15451 return nil
15452 }
15453 func (m *PingSlaveMessage) Unmarshal(data []byte) error {
15454 var hasFields [1]uint64
15455 l := len(data)
15456 iNdEx := 0
15457 for iNdEx < l {
15458 preIndex := iNdEx
15459 var wire uint64
15460 for shift := uint(0); ; shift += 7 {
15461 if shift >= 64 {
15462 return ErrIntOverflowMessages
15463 }
15464 if iNdEx >= l {
15465 return io.ErrUnexpectedEOF
15466 }
15467 b := data[iNdEx]
15468 iNdEx++
15469 wire |= (uint64(b) & 0x7F) << shift
15470 if b < 0x80 {
15471 break
15472 }
15473 }
15474 fieldNum := int32(wire >> 3)
15475 wireType := int(wire & 0x7)
15476 if wireType == 4 {
15477 return fmt.Errorf("proto: PingSlaveMessage: wiretype end group for non-group")
15478 }
15479 if fieldNum <= 0 {
15480 return fmt.Errorf("proto: PingSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15481 }
15482 switch fieldNum {
15483 case 1:
15484 if wireType != 0 {
15485 return fmt.Errorf("proto: wrong wireType = %d for field Connected", wireType)
15486 }
15487 var v int
15488 for shift := uint(0); ; shift += 7 {
15489 if shift >= 64 {
15490 return ErrIntOverflowMessages
15491 }
15492 if iNdEx >= l {
15493 return io.ErrUnexpectedEOF
15494 }
15495 b := data[iNdEx]
15496 iNdEx++
15497 v |= (int(b) & 0x7F) << shift
15498 if b < 0x80 {
15499 break
15500 }
15501 }
15502 b := bool(v != 0)
15503 m.Connected = &b
15504 hasFields[0] |= uint64(0x00000001)
15505 default:
15506 iNdEx = preIndex
15507 skippy, err := skipMessages(data[iNdEx:])
15508 if err != nil {
15509 return err
15510 }
15511 if skippy < 0 {
15512 return ErrInvalidLengthMessages
15513 }
15514 if (iNdEx + skippy) > l {
15515 return io.ErrUnexpectedEOF
15516 }
15517 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15518 iNdEx += skippy
15519 }
15520 }
15521 if hasFields[0]&uint64(0x00000001) == 0 {
15522 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("connected")
15523 }
15524
15525 if iNdEx > l {
15526 return io.ErrUnexpectedEOF
15527 }
15528 return nil
15529 }
15530 func (m *PongSlaveMessage) Unmarshal(data []byte) error {
15531 l := len(data)
15532 iNdEx := 0
15533 for iNdEx < l {
15534 preIndex := iNdEx
15535 var wire uint64
15536 for shift := uint(0); ; shift += 7 {
15537 if shift >= 64 {
15538 return ErrIntOverflowMessages
15539 }
15540 if iNdEx >= l {
15541 return io.ErrUnexpectedEOF
15542 }
15543 b := data[iNdEx]
15544 iNdEx++
15545 wire |= (uint64(b) & 0x7F) << shift
15546 if b < 0x80 {
15547 break
15548 }
15549 }
15550 fieldNum := int32(wire >> 3)
15551 wireType := int(wire & 0x7)
15552 if wireType == 4 {
15553 return fmt.Errorf("proto: PongSlaveMessage: wiretype end group for non-group")
15554 }
15555 if fieldNum <= 0 {
15556 return fmt.Errorf("proto: PongSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15557 }
15558 switch fieldNum {
15559 default:
15560 iNdEx = preIndex
15561 skippy, err := skipMessages(data[iNdEx:])
15562 if err != nil {
15563 return err
15564 }
15565 if skippy < 0 {
15566 return ErrInvalidLengthMessages
15567 }
15568 if (iNdEx + skippy) > l {
15569 return io.ErrUnexpectedEOF
15570 }
15571 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15572 iNdEx += skippy
15573 }
15574 }
15575
15576 if iNdEx > l {
15577 return io.ErrUnexpectedEOF
15578 }
15579 return nil
15580 }
15581 func (m *ShutdownFrameworkMessage) Unmarshal(data []byte) error {
15582 var hasFields [1]uint64
15583 l := len(data)
15584 iNdEx := 0
15585 for iNdEx < l {
15586 preIndex := iNdEx
15587 var wire uint64
15588 for shift := uint(0); ; shift += 7 {
15589 if shift >= 64 {
15590 return ErrIntOverflowMessages
15591 }
15592 if iNdEx >= l {
15593 return io.ErrUnexpectedEOF
15594 }
15595 b := data[iNdEx]
15596 iNdEx++
15597 wire |= (uint64(b) & 0x7F) << shift
15598 if b < 0x80 {
15599 break
15600 }
15601 }
15602 fieldNum := int32(wire >> 3)
15603 wireType := int(wire & 0x7)
15604 if wireType == 4 {
15605 return fmt.Errorf("proto: ShutdownFrameworkMessage: wiretype end group for non-group")
15606 }
15607 if fieldNum <= 0 {
15608 return fmt.Errorf("proto: ShutdownFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15609 }
15610 switch fieldNum {
15611 case 1:
15612 if wireType != 2 {
15613 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
15614 }
15615 var msglen int
15616 for shift := uint(0); ; shift += 7 {
15617 if shift >= 64 {
15618 return ErrIntOverflowMessages
15619 }
15620 if iNdEx >= l {
15621 return io.ErrUnexpectedEOF
15622 }
15623 b := data[iNdEx]
15624 iNdEx++
15625 msglen |= (int(b) & 0x7F) << shift
15626 if b < 0x80 {
15627 break
15628 }
15629 }
15630 if msglen < 0 {
15631 return ErrInvalidLengthMessages
15632 }
15633 postIndex := iNdEx + msglen
15634 if postIndex > l {
15635 return io.ErrUnexpectedEOF
15636 }
15637 if m.FrameworkId == nil {
15638 m.FrameworkId = &FrameworkID{}
15639 }
15640 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15641 return err
15642 }
15643 iNdEx = postIndex
15644 hasFields[0] |= uint64(0x00000001)
15645 default:
15646 iNdEx = preIndex
15647 skippy, err := skipMessages(data[iNdEx:])
15648 if err != nil {
15649 return err
15650 }
15651 if skippy < 0 {
15652 return ErrInvalidLengthMessages
15653 }
15654 if (iNdEx + skippy) > l {
15655 return io.ErrUnexpectedEOF
15656 }
15657 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15658 iNdEx += skippy
15659 }
15660 }
15661 if hasFields[0]&uint64(0x00000001) == 0 {
15662 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
15663 }
15664
15665 if iNdEx > l {
15666 return io.ErrUnexpectedEOF
15667 }
15668 return nil
15669 }
15670 func (m *ShutdownExecutorMessage) Unmarshal(data []byte) error {
15671 l := len(data)
15672 iNdEx := 0
15673 for iNdEx < l {
15674 preIndex := iNdEx
15675 var wire uint64
15676 for shift := uint(0); ; shift += 7 {
15677 if shift >= 64 {
15678 return ErrIntOverflowMessages
15679 }
15680 if iNdEx >= l {
15681 return io.ErrUnexpectedEOF
15682 }
15683 b := data[iNdEx]
15684 iNdEx++
15685 wire |= (uint64(b) & 0x7F) << shift
15686 if b < 0x80 {
15687 break
15688 }
15689 }
15690 fieldNum := int32(wire >> 3)
15691 wireType := int(wire & 0x7)
15692 if wireType == 4 {
15693 return fmt.Errorf("proto: ShutdownExecutorMessage: wiretype end group for non-group")
15694 }
15695 if fieldNum <= 0 {
15696 return fmt.Errorf("proto: ShutdownExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15697 }
15698 switch fieldNum {
15699 case 1:
15700 if wireType != 2 {
15701 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
15702 }
15703 var msglen int
15704 for shift := uint(0); ; shift += 7 {
15705 if shift >= 64 {
15706 return ErrIntOverflowMessages
15707 }
15708 if iNdEx >= l {
15709 return io.ErrUnexpectedEOF
15710 }
15711 b := data[iNdEx]
15712 iNdEx++
15713 msglen |= (int(b) & 0x7F) << shift
15714 if b < 0x80 {
15715 break
15716 }
15717 }
15718 if msglen < 0 {
15719 return ErrInvalidLengthMessages
15720 }
15721 postIndex := iNdEx + msglen
15722 if postIndex > l {
15723 return io.ErrUnexpectedEOF
15724 }
15725 if m.ExecutorId == nil {
15726 m.ExecutorId = &ExecutorID{}
15727 }
15728 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15729 return err
15730 }
15731 iNdEx = postIndex
15732 case 2:
15733 if wireType != 2 {
15734 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
15735 }
15736 var msglen int
15737 for shift := uint(0); ; shift += 7 {
15738 if shift >= 64 {
15739 return ErrIntOverflowMessages
15740 }
15741 if iNdEx >= l {
15742 return io.ErrUnexpectedEOF
15743 }
15744 b := data[iNdEx]
15745 iNdEx++
15746 msglen |= (int(b) & 0x7F) << shift
15747 if b < 0x80 {
15748 break
15749 }
15750 }
15751 if msglen < 0 {
15752 return ErrInvalidLengthMessages
15753 }
15754 postIndex := iNdEx + msglen
15755 if postIndex > l {
15756 return io.ErrUnexpectedEOF
15757 }
15758 if m.FrameworkId == nil {
15759 m.FrameworkId = &FrameworkID{}
15760 }
15761 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15762 return err
15763 }
15764 iNdEx = postIndex
15765 default:
15766 iNdEx = preIndex
15767 skippy, err := skipMessages(data[iNdEx:])
15768 if err != nil {
15769 return err
15770 }
15771 if skippy < 0 {
15772 return ErrInvalidLengthMessages
15773 }
15774 if (iNdEx + skippy) > l {
15775 return io.ErrUnexpectedEOF
15776 }
15777 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15778 iNdEx += skippy
15779 }
15780 }
15781
15782 if iNdEx > l {
15783 return io.ErrUnexpectedEOF
15784 }
15785 return nil
15786 }
15787 func (m *UpdateFrameworkMessage) Unmarshal(data []byte) error {
15788 var hasFields [1]uint64
15789 l := len(data)
15790 iNdEx := 0
15791 for iNdEx < l {
15792 preIndex := iNdEx
15793 var wire uint64
15794 for shift := uint(0); ; shift += 7 {
15795 if shift >= 64 {
15796 return ErrIntOverflowMessages
15797 }
15798 if iNdEx >= l {
15799 return io.ErrUnexpectedEOF
15800 }
15801 b := data[iNdEx]
15802 iNdEx++
15803 wire |= (uint64(b) & 0x7F) << shift
15804 if b < 0x80 {
15805 break
15806 }
15807 }
15808 fieldNum := int32(wire >> 3)
15809 wireType := int(wire & 0x7)
15810 if wireType == 4 {
15811 return fmt.Errorf("proto: UpdateFrameworkMessage: wiretype end group for non-group")
15812 }
15813 if fieldNum <= 0 {
15814 return fmt.Errorf("proto: UpdateFrameworkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15815 }
15816 switch fieldNum {
15817 case 1:
15818 if wireType != 2 {
15819 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
15820 }
15821 var msglen int
15822 for shift := uint(0); ; shift += 7 {
15823 if shift >= 64 {
15824 return ErrIntOverflowMessages
15825 }
15826 if iNdEx >= l {
15827 return io.ErrUnexpectedEOF
15828 }
15829 b := data[iNdEx]
15830 iNdEx++
15831 msglen |= (int(b) & 0x7F) << shift
15832 if b < 0x80 {
15833 break
15834 }
15835 }
15836 if msglen < 0 {
15837 return ErrInvalidLengthMessages
15838 }
15839 postIndex := iNdEx + msglen
15840 if postIndex > l {
15841 return io.ErrUnexpectedEOF
15842 }
15843 if m.FrameworkId == nil {
15844 m.FrameworkId = &FrameworkID{}
15845 }
15846 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
15847 return err
15848 }
15849 iNdEx = postIndex
15850 hasFields[0] |= uint64(0x00000001)
15851 case 2:
15852 if wireType != 2 {
15853 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
15854 }
15855 var stringLen uint64
15856 for shift := uint(0); ; shift += 7 {
15857 if shift >= 64 {
15858 return ErrIntOverflowMessages
15859 }
15860 if iNdEx >= l {
15861 return io.ErrUnexpectedEOF
15862 }
15863 b := data[iNdEx]
15864 iNdEx++
15865 stringLen |= (uint64(b) & 0x7F) << shift
15866 if b < 0x80 {
15867 break
15868 }
15869 }
15870 intStringLen := int(stringLen)
15871 if intStringLen < 0 {
15872 return ErrInvalidLengthMessages
15873 }
15874 postIndex := iNdEx + intStringLen
15875 if postIndex > l {
15876 return io.ErrUnexpectedEOF
15877 }
15878 s := string(data[iNdEx:postIndex])
15879 m.Pid = &s
15880 iNdEx = postIndex
15881 default:
15882 iNdEx = preIndex
15883 skippy, err := skipMessages(data[iNdEx:])
15884 if err != nil {
15885 return err
15886 }
15887 if skippy < 0 {
15888 return ErrInvalidLengthMessages
15889 }
15890 if (iNdEx + skippy) > l {
15891 return io.ErrUnexpectedEOF
15892 }
15893 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15894 iNdEx += skippy
15895 }
15896 }
15897 if hasFields[0]&uint64(0x00000001) == 0 {
15898 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
15899 }
15900
15901 if iNdEx > l {
15902 return io.ErrUnexpectedEOF
15903 }
15904 return nil
15905 }
15906 func (m *CheckpointResourcesMessage) Unmarshal(data []byte) error {
15907 l := len(data)
15908 iNdEx := 0
15909 for iNdEx < l {
15910 preIndex := iNdEx
15911 var wire uint64
15912 for shift := uint(0); ; shift += 7 {
15913 if shift >= 64 {
15914 return ErrIntOverflowMessages
15915 }
15916 if iNdEx >= l {
15917 return io.ErrUnexpectedEOF
15918 }
15919 b := data[iNdEx]
15920 iNdEx++
15921 wire |= (uint64(b) & 0x7F) << shift
15922 if b < 0x80 {
15923 break
15924 }
15925 }
15926 fieldNum := int32(wire >> 3)
15927 wireType := int(wire & 0x7)
15928 if wireType == 4 {
15929 return fmt.Errorf("proto: CheckpointResourcesMessage: wiretype end group for non-group")
15930 }
15931 if fieldNum <= 0 {
15932 return fmt.Errorf("proto: CheckpointResourcesMessage: illegal tag %d (wire type %d)", fieldNum, wire)
15933 }
15934 switch fieldNum {
15935 case 1:
15936 if wireType != 2 {
15937 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
15938 }
15939 var msglen int
15940 for shift := uint(0); ; shift += 7 {
15941 if shift >= 64 {
15942 return ErrIntOverflowMessages
15943 }
15944 if iNdEx >= l {
15945 return io.ErrUnexpectedEOF
15946 }
15947 b := data[iNdEx]
15948 iNdEx++
15949 msglen |= (int(b) & 0x7F) << shift
15950 if b < 0x80 {
15951 break
15952 }
15953 }
15954 if msglen < 0 {
15955 return ErrInvalidLengthMessages
15956 }
15957 postIndex := iNdEx + msglen
15958 if postIndex > l {
15959 return io.ErrUnexpectedEOF
15960 }
15961 m.Resources = append(m.Resources, &Resource{})
15962 if err := m.Resources[len(m.Resources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
15963 return err
15964 }
15965 iNdEx = postIndex
15966 default:
15967 iNdEx = preIndex
15968 skippy, err := skipMessages(data[iNdEx:])
15969 if err != nil {
15970 return err
15971 }
15972 if skippy < 0 {
15973 return ErrInvalidLengthMessages
15974 }
15975 if (iNdEx + skippy) > l {
15976 return io.ErrUnexpectedEOF
15977 }
15978 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
15979 iNdEx += skippy
15980 }
15981 }
15982
15983 if iNdEx > l {
15984 return io.ErrUnexpectedEOF
15985 }
15986 return nil
15987 }
15988 func (m *UpdateSlaveMessage) Unmarshal(data []byte) error {
15989 var hasFields [1]uint64
15990 l := len(data)
15991 iNdEx := 0
15992 for iNdEx < l {
15993 preIndex := iNdEx
15994 var wire uint64
15995 for shift := uint(0); ; shift += 7 {
15996 if shift >= 64 {
15997 return ErrIntOverflowMessages
15998 }
15999 if iNdEx >= l {
16000 return io.ErrUnexpectedEOF
16001 }
16002 b := data[iNdEx]
16003 iNdEx++
16004 wire |= (uint64(b) & 0x7F) << shift
16005 if b < 0x80 {
16006 break
16007 }
16008 }
16009 fieldNum := int32(wire >> 3)
16010 wireType := int(wire & 0x7)
16011 if wireType == 4 {
16012 return fmt.Errorf("proto: UpdateSlaveMessage: wiretype end group for non-group")
16013 }
16014 if fieldNum <= 0 {
16015 return fmt.Errorf("proto: UpdateSlaveMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16016 }
16017 switch fieldNum {
16018 case 1:
16019 if wireType != 2 {
16020 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
16021 }
16022 var msglen int
16023 for shift := uint(0); ; shift += 7 {
16024 if shift >= 64 {
16025 return ErrIntOverflowMessages
16026 }
16027 if iNdEx >= l {
16028 return io.ErrUnexpectedEOF
16029 }
16030 b := data[iNdEx]
16031 iNdEx++
16032 msglen |= (int(b) & 0x7F) << shift
16033 if b < 0x80 {
16034 break
16035 }
16036 }
16037 if msglen < 0 {
16038 return ErrInvalidLengthMessages
16039 }
16040 postIndex := iNdEx + msglen
16041 if postIndex > l {
16042 return io.ErrUnexpectedEOF
16043 }
16044 if m.SlaveId == nil {
16045 m.SlaveId = &SlaveID{}
16046 }
16047 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16048 return err
16049 }
16050 iNdEx = postIndex
16051 hasFields[0] |= uint64(0x00000001)
16052 case 2:
16053 if wireType != 2 {
16054 return fmt.Errorf("proto: wrong wireType = %d for field OversubscribedResources", wireType)
16055 }
16056 var msglen int
16057 for shift := uint(0); ; shift += 7 {
16058 if shift >= 64 {
16059 return ErrIntOverflowMessages
16060 }
16061 if iNdEx >= l {
16062 return io.ErrUnexpectedEOF
16063 }
16064 b := data[iNdEx]
16065 iNdEx++
16066 msglen |= (int(b) & 0x7F) << shift
16067 if b < 0x80 {
16068 break
16069 }
16070 }
16071 if msglen < 0 {
16072 return ErrInvalidLengthMessages
16073 }
16074 postIndex := iNdEx + msglen
16075 if postIndex > l {
16076 return io.ErrUnexpectedEOF
16077 }
16078 m.OversubscribedResources = append(m.OversubscribedResources, &Resource{})
16079 if err := m.OversubscribedResources[len(m.OversubscribedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
16080 return err
16081 }
16082 iNdEx = postIndex
16083 default:
16084 iNdEx = preIndex
16085 skippy, err := skipMessages(data[iNdEx:])
16086 if err != nil {
16087 return err
16088 }
16089 if skippy < 0 {
16090 return ErrInvalidLengthMessages
16091 }
16092 if (iNdEx + skippy) > l {
16093 return io.ErrUnexpectedEOF
16094 }
16095 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16096 iNdEx += skippy
16097 }
16098 }
16099 if hasFields[0]&uint64(0x00000001) == 0 {
16100 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
16101 }
16102
16103 if iNdEx > l {
16104 return io.ErrUnexpectedEOF
16105 }
16106 return nil
16107 }
16108 func (m *RegisterExecutorMessage) Unmarshal(data []byte) error {
16109 var hasFields [1]uint64
16110 l := len(data)
16111 iNdEx := 0
16112 for iNdEx < l {
16113 preIndex := iNdEx
16114 var wire uint64
16115 for shift := uint(0); ; shift += 7 {
16116 if shift >= 64 {
16117 return ErrIntOverflowMessages
16118 }
16119 if iNdEx >= l {
16120 return io.ErrUnexpectedEOF
16121 }
16122 b := data[iNdEx]
16123 iNdEx++
16124 wire |= (uint64(b) & 0x7F) << shift
16125 if b < 0x80 {
16126 break
16127 }
16128 }
16129 fieldNum := int32(wire >> 3)
16130 wireType := int(wire & 0x7)
16131 if wireType == 4 {
16132 return fmt.Errorf("proto: RegisterExecutorMessage: wiretype end group for non-group")
16133 }
16134 if fieldNum <= 0 {
16135 return fmt.Errorf("proto: RegisterExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16136 }
16137 switch fieldNum {
16138 case 1:
16139 if wireType != 2 {
16140 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
16141 }
16142 var msglen int
16143 for shift := uint(0); ; shift += 7 {
16144 if shift >= 64 {
16145 return ErrIntOverflowMessages
16146 }
16147 if iNdEx >= l {
16148 return io.ErrUnexpectedEOF
16149 }
16150 b := data[iNdEx]
16151 iNdEx++
16152 msglen |= (int(b) & 0x7F) << shift
16153 if b < 0x80 {
16154 break
16155 }
16156 }
16157 if msglen < 0 {
16158 return ErrInvalidLengthMessages
16159 }
16160 postIndex := iNdEx + msglen
16161 if postIndex > l {
16162 return io.ErrUnexpectedEOF
16163 }
16164 if m.FrameworkId == nil {
16165 m.FrameworkId = &FrameworkID{}
16166 }
16167 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16168 return err
16169 }
16170 iNdEx = postIndex
16171 hasFields[0] |= uint64(0x00000001)
16172 case 2:
16173 if wireType != 2 {
16174 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
16175 }
16176 var msglen int
16177 for shift := uint(0); ; shift += 7 {
16178 if shift >= 64 {
16179 return ErrIntOverflowMessages
16180 }
16181 if iNdEx >= l {
16182 return io.ErrUnexpectedEOF
16183 }
16184 b := data[iNdEx]
16185 iNdEx++
16186 msglen |= (int(b) & 0x7F) << shift
16187 if b < 0x80 {
16188 break
16189 }
16190 }
16191 if msglen < 0 {
16192 return ErrInvalidLengthMessages
16193 }
16194 postIndex := iNdEx + msglen
16195 if postIndex > l {
16196 return io.ErrUnexpectedEOF
16197 }
16198 if m.ExecutorId == nil {
16199 m.ExecutorId = &ExecutorID{}
16200 }
16201 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16202 return err
16203 }
16204 iNdEx = postIndex
16205 hasFields[0] |= uint64(0x00000002)
16206 default:
16207 iNdEx = preIndex
16208 skippy, err := skipMessages(data[iNdEx:])
16209 if err != nil {
16210 return err
16211 }
16212 if skippy < 0 {
16213 return ErrInvalidLengthMessages
16214 }
16215 if (iNdEx + skippy) > l {
16216 return io.ErrUnexpectedEOF
16217 }
16218 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16219 iNdEx += skippy
16220 }
16221 }
16222 if hasFields[0]&uint64(0x00000001) == 0 {
16223 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
16224 }
16225 if hasFields[0]&uint64(0x00000002) == 0 {
16226 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
16227 }
16228
16229 if iNdEx > l {
16230 return io.ErrUnexpectedEOF
16231 }
16232 return nil
16233 }
16234 func (m *ExecutorRegisteredMessage) Unmarshal(data []byte) error {
16235 var hasFields [1]uint64
16236 l := len(data)
16237 iNdEx := 0
16238 for iNdEx < l {
16239 preIndex := iNdEx
16240 var wire uint64
16241 for shift := uint(0); ; shift += 7 {
16242 if shift >= 64 {
16243 return ErrIntOverflowMessages
16244 }
16245 if iNdEx >= l {
16246 return io.ErrUnexpectedEOF
16247 }
16248 b := data[iNdEx]
16249 iNdEx++
16250 wire |= (uint64(b) & 0x7F) << shift
16251 if b < 0x80 {
16252 break
16253 }
16254 }
16255 fieldNum := int32(wire >> 3)
16256 wireType := int(wire & 0x7)
16257 if wireType == 4 {
16258 return fmt.Errorf("proto: ExecutorRegisteredMessage: wiretype end group for non-group")
16259 }
16260 if fieldNum <= 0 {
16261 return fmt.Errorf("proto: ExecutorRegisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16262 }
16263 switch fieldNum {
16264 case 2:
16265 if wireType != 2 {
16266 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfo", wireType)
16267 }
16268 var msglen int
16269 for shift := uint(0); ; shift += 7 {
16270 if shift >= 64 {
16271 return ErrIntOverflowMessages
16272 }
16273 if iNdEx >= l {
16274 return io.ErrUnexpectedEOF
16275 }
16276 b := data[iNdEx]
16277 iNdEx++
16278 msglen |= (int(b) & 0x7F) << shift
16279 if b < 0x80 {
16280 break
16281 }
16282 }
16283 if msglen < 0 {
16284 return ErrInvalidLengthMessages
16285 }
16286 postIndex := iNdEx + msglen
16287 if postIndex > l {
16288 return io.ErrUnexpectedEOF
16289 }
16290 if m.ExecutorInfo == nil {
16291 m.ExecutorInfo = &ExecutorInfo{}
16292 }
16293 if err := m.ExecutorInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
16294 return err
16295 }
16296 iNdEx = postIndex
16297 hasFields[0] |= uint64(0x00000001)
16298 case 3:
16299 if wireType != 2 {
16300 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
16301 }
16302 var msglen int
16303 for shift := uint(0); ; shift += 7 {
16304 if shift >= 64 {
16305 return ErrIntOverflowMessages
16306 }
16307 if iNdEx >= l {
16308 return io.ErrUnexpectedEOF
16309 }
16310 b := data[iNdEx]
16311 iNdEx++
16312 msglen |= (int(b) & 0x7F) << shift
16313 if b < 0x80 {
16314 break
16315 }
16316 }
16317 if msglen < 0 {
16318 return ErrInvalidLengthMessages
16319 }
16320 postIndex := iNdEx + msglen
16321 if postIndex > l {
16322 return io.ErrUnexpectedEOF
16323 }
16324 if m.FrameworkId == nil {
16325 m.FrameworkId = &FrameworkID{}
16326 }
16327 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16328 return err
16329 }
16330 iNdEx = postIndex
16331 hasFields[0] |= uint64(0x00000002)
16332 case 4:
16333 if wireType != 2 {
16334 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
16335 }
16336 var msglen int
16337 for shift := uint(0); ; shift += 7 {
16338 if shift >= 64 {
16339 return ErrIntOverflowMessages
16340 }
16341 if iNdEx >= l {
16342 return io.ErrUnexpectedEOF
16343 }
16344 b := data[iNdEx]
16345 iNdEx++
16346 msglen |= (int(b) & 0x7F) << shift
16347 if b < 0x80 {
16348 break
16349 }
16350 }
16351 if msglen < 0 {
16352 return ErrInvalidLengthMessages
16353 }
16354 postIndex := iNdEx + msglen
16355 if postIndex > l {
16356 return io.ErrUnexpectedEOF
16357 }
16358 if m.FrameworkInfo == nil {
16359 m.FrameworkInfo = &FrameworkInfo{}
16360 }
16361 if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
16362 return err
16363 }
16364 iNdEx = postIndex
16365 hasFields[0] |= uint64(0x00000004)
16366 case 5:
16367 if wireType != 2 {
16368 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
16369 }
16370 var msglen int
16371 for shift := uint(0); ; shift += 7 {
16372 if shift >= 64 {
16373 return ErrIntOverflowMessages
16374 }
16375 if iNdEx >= l {
16376 return io.ErrUnexpectedEOF
16377 }
16378 b := data[iNdEx]
16379 iNdEx++
16380 msglen |= (int(b) & 0x7F) << shift
16381 if b < 0x80 {
16382 break
16383 }
16384 }
16385 if msglen < 0 {
16386 return ErrInvalidLengthMessages
16387 }
16388 postIndex := iNdEx + msglen
16389 if postIndex > l {
16390 return io.ErrUnexpectedEOF
16391 }
16392 if m.SlaveId == nil {
16393 m.SlaveId = &SlaveID{}
16394 }
16395 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16396 return err
16397 }
16398 iNdEx = postIndex
16399 hasFields[0] |= uint64(0x00000008)
16400 case 6:
16401 if wireType != 2 {
16402 return fmt.Errorf("proto: wrong wireType = %d for field SlaveInfo", wireType)
16403 }
16404 var msglen int
16405 for shift := uint(0); ; shift += 7 {
16406 if shift >= 64 {
16407 return ErrIntOverflowMessages
16408 }
16409 if iNdEx >= l {
16410 return io.ErrUnexpectedEOF
16411 }
16412 b := data[iNdEx]
16413 iNdEx++
16414 msglen |= (int(b) & 0x7F) << shift
16415 if b < 0x80 {
16416 break
16417 }
16418 }
16419 if msglen < 0 {
16420 return ErrInvalidLengthMessages
16421 }
16422 postIndex := iNdEx + msglen
16423 if postIndex > l {
16424 return io.ErrUnexpectedEOF
16425 }
16426 if m.SlaveInfo == nil {
16427 m.SlaveInfo = &SlaveInfo{}
16428 }
16429 if err := m.SlaveInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
16430 return err
16431 }
16432 iNdEx = postIndex
16433 hasFields[0] |= uint64(0x00000010)
16434 default:
16435 iNdEx = preIndex
16436 skippy, err := skipMessages(data[iNdEx:])
16437 if err != nil {
16438 return err
16439 }
16440 if skippy < 0 {
16441 return ErrInvalidLengthMessages
16442 }
16443 if (iNdEx + skippy) > l {
16444 return io.ErrUnexpectedEOF
16445 }
16446 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16447 iNdEx += skippy
16448 }
16449 }
16450 if hasFields[0]&uint64(0x00000001) == 0 {
16451 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_info")
16452 }
16453 if hasFields[0]&uint64(0x00000002) == 0 {
16454 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
16455 }
16456 if hasFields[0]&uint64(0x00000004) == 0 {
16457 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
16458 }
16459 if hasFields[0]&uint64(0x00000008) == 0 {
16460 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
16461 }
16462 if hasFields[0]&uint64(0x00000010) == 0 {
16463 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info")
16464 }
16465
16466 if iNdEx > l {
16467 return io.ErrUnexpectedEOF
16468 }
16469 return nil
16470 }
16471 func (m *ExecutorReregisteredMessage) Unmarshal(data []byte) error {
16472 var hasFields [1]uint64
16473 l := len(data)
16474 iNdEx := 0
16475 for iNdEx < l {
16476 preIndex := iNdEx
16477 var wire uint64
16478 for shift := uint(0); ; shift += 7 {
16479 if shift >= 64 {
16480 return ErrIntOverflowMessages
16481 }
16482 if iNdEx >= l {
16483 return io.ErrUnexpectedEOF
16484 }
16485 b := data[iNdEx]
16486 iNdEx++
16487 wire |= (uint64(b) & 0x7F) << shift
16488 if b < 0x80 {
16489 break
16490 }
16491 }
16492 fieldNum := int32(wire >> 3)
16493 wireType := int(wire & 0x7)
16494 if wireType == 4 {
16495 return fmt.Errorf("proto: ExecutorReregisteredMessage: wiretype end group for non-group")
16496 }
16497 if fieldNum <= 0 {
16498 return fmt.Errorf("proto: ExecutorReregisteredMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16499 }
16500 switch fieldNum {
16501 case 1:
16502 if wireType != 2 {
16503 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
16504 }
16505 var msglen int
16506 for shift := uint(0); ; shift += 7 {
16507 if shift >= 64 {
16508 return ErrIntOverflowMessages
16509 }
16510 if iNdEx >= l {
16511 return io.ErrUnexpectedEOF
16512 }
16513 b := data[iNdEx]
16514 iNdEx++
16515 msglen |= (int(b) & 0x7F) << shift
16516 if b < 0x80 {
16517 break
16518 }
16519 }
16520 if msglen < 0 {
16521 return ErrInvalidLengthMessages
16522 }
16523 postIndex := iNdEx + msglen
16524 if postIndex > l {
16525 return io.ErrUnexpectedEOF
16526 }
16527 if m.SlaveId == nil {
16528 m.SlaveId = &SlaveID{}
16529 }
16530 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16531 return err
16532 }
16533 iNdEx = postIndex
16534 hasFields[0] |= uint64(0x00000001)
16535 case 2:
16536 if wireType != 2 {
16537 return fmt.Errorf("proto: wrong wireType = %d for field SlaveInfo", wireType)
16538 }
16539 var msglen int
16540 for shift := uint(0); ; shift += 7 {
16541 if shift >= 64 {
16542 return ErrIntOverflowMessages
16543 }
16544 if iNdEx >= l {
16545 return io.ErrUnexpectedEOF
16546 }
16547 b := data[iNdEx]
16548 iNdEx++
16549 msglen |= (int(b) & 0x7F) << shift
16550 if b < 0x80 {
16551 break
16552 }
16553 }
16554 if msglen < 0 {
16555 return ErrInvalidLengthMessages
16556 }
16557 postIndex := iNdEx + msglen
16558 if postIndex > l {
16559 return io.ErrUnexpectedEOF
16560 }
16561 if m.SlaveInfo == nil {
16562 m.SlaveInfo = &SlaveInfo{}
16563 }
16564 if err := m.SlaveInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
16565 return err
16566 }
16567 iNdEx = postIndex
16568 hasFields[0] |= uint64(0x00000002)
16569 default:
16570 iNdEx = preIndex
16571 skippy, err := skipMessages(data[iNdEx:])
16572 if err != nil {
16573 return err
16574 }
16575 if skippy < 0 {
16576 return ErrInvalidLengthMessages
16577 }
16578 if (iNdEx + skippy) > l {
16579 return io.ErrUnexpectedEOF
16580 }
16581 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16582 iNdEx += skippy
16583 }
16584 }
16585 if hasFields[0]&uint64(0x00000001) == 0 {
16586 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
16587 }
16588 if hasFields[0]&uint64(0x00000002) == 0 {
16589 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info")
16590 }
16591
16592 if iNdEx > l {
16593 return io.ErrUnexpectedEOF
16594 }
16595 return nil
16596 }
16597 func (m *ExitedExecutorMessage) Unmarshal(data []byte) error {
16598 var hasFields [1]uint64
16599 l := len(data)
16600 iNdEx := 0
16601 for iNdEx < l {
16602 preIndex := iNdEx
16603 var wire uint64
16604 for shift := uint(0); ; shift += 7 {
16605 if shift >= 64 {
16606 return ErrIntOverflowMessages
16607 }
16608 if iNdEx >= l {
16609 return io.ErrUnexpectedEOF
16610 }
16611 b := data[iNdEx]
16612 iNdEx++
16613 wire |= (uint64(b) & 0x7F) << shift
16614 if b < 0x80 {
16615 break
16616 }
16617 }
16618 fieldNum := int32(wire >> 3)
16619 wireType := int(wire & 0x7)
16620 if wireType == 4 {
16621 return fmt.Errorf("proto: ExitedExecutorMessage: wiretype end group for non-group")
16622 }
16623 if fieldNum <= 0 {
16624 return fmt.Errorf("proto: ExitedExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16625 }
16626 switch fieldNum {
16627 case 1:
16628 if wireType != 2 {
16629 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
16630 }
16631 var msglen int
16632 for shift := uint(0); ; shift += 7 {
16633 if shift >= 64 {
16634 return ErrIntOverflowMessages
16635 }
16636 if iNdEx >= l {
16637 return io.ErrUnexpectedEOF
16638 }
16639 b := data[iNdEx]
16640 iNdEx++
16641 msglen |= (int(b) & 0x7F) << shift
16642 if b < 0x80 {
16643 break
16644 }
16645 }
16646 if msglen < 0 {
16647 return ErrInvalidLengthMessages
16648 }
16649 postIndex := iNdEx + msglen
16650 if postIndex > l {
16651 return io.ErrUnexpectedEOF
16652 }
16653 if m.SlaveId == nil {
16654 m.SlaveId = &SlaveID{}
16655 }
16656 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16657 return err
16658 }
16659 iNdEx = postIndex
16660 hasFields[0] |= uint64(0x00000001)
16661 case 2:
16662 if wireType != 2 {
16663 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
16664 }
16665 var msglen int
16666 for shift := uint(0); ; shift += 7 {
16667 if shift >= 64 {
16668 return ErrIntOverflowMessages
16669 }
16670 if iNdEx >= l {
16671 return io.ErrUnexpectedEOF
16672 }
16673 b := data[iNdEx]
16674 iNdEx++
16675 msglen |= (int(b) & 0x7F) << shift
16676 if b < 0x80 {
16677 break
16678 }
16679 }
16680 if msglen < 0 {
16681 return ErrInvalidLengthMessages
16682 }
16683 postIndex := iNdEx + msglen
16684 if postIndex > l {
16685 return io.ErrUnexpectedEOF
16686 }
16687 if m.FrameworkId == nil {
16688 m.FrameworkId = &FrameworkID{}
16689 }
16690 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16691 return err
16692 }
16693 iNdEx = postIndex
16694 hasFields[0] |= uint64(0x00000002)
16695 case 3:
16696 if wireType != 2 {
16697 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
16698 }
16699 var msglen int
16700 for shift := uint(0); ; shift += 7 {
16701 if shift >= 64 {
16702 return ErrIntOverflowMessages
16703 }
16704 if iNdEx >= l {
16705 return io.ErrUnexpectedEOF
16706 }
16707 b := data[iNdEx]
16708 iNdEx++
16709 msglen |= (int(b) & 0x7F) << shift
16710 if b < 0x80 {
16711 break
16712 }
16713 }
16714 if msglen < 0 {
16715 return ErrInvalidLengthMessages
16716 }
16717 postIndex := iNdEx + msglen
16718 if postIndex > l {
16719 return io.ErrUnexpectedEOF
16720 }
16721 if m.ExecutorId == nil {
16722 m.ExecutorId = &ExecutorID{}
16723 }
16724 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16725 return err
16726 }
16727 iNdEx = postIndex
16728 hasFields[0] |= uint64(0x00000004)
16729 case 4:
16730 if wireType != 0 {
16731 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
16732 }
16733 var v int32
16734 for shift := uint(0); ; shift += 7 {
16735 if shift >= 64 {
16736 return ErrIntOverflowMessages
16737 }
16738 if iNdEx >= l {
16739 return io.ErrUnexpectedEOF
16740 }
16741 b := data[iNdEx]
16742 iNdEx++
16743 v |= (int32(b) & 0x7F) << shift
16744 if b < 0x80 {
16745 break
16746 }
16747 }
16748 m.Status = &v
16749 hasFields[0] |= uint64(0x00000008)
16750 default:
16751 iNdEx = preIndex
16752 skippy, err := skipMessages(data[iNdEx:])
16753 if err != nil {
16754 return err
16755 }
16756 if skippy < 0 {
16757 return ErrInvalidLengthMessages
16758 }
16759 if (iNdEx + skippy) > l {
16760 return io.ErrUnexpectedEOF
16761 }
16762 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16763 iNdEx += skippy
16764 }
16765 }
16766 if hasFields[0]&uint64(0x00000001) == 0 {
16767 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
16768 }
16769 if hasFields[0]&uint64(0x00000002) == 0 {
16770 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
16771 }
16772 if hasFields[0]&uint64(0x00000004) == 0 {
16773 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
16774 }
16775 if hasFields[0]&uint64(0x00000008) == 0 {
16776 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
16777 }
16778
16779 if iNdEx > l {
16780 return io.ErrUnexpectedEOF
16781 }
16782 return nil
16783 }
16784 func (m *ReconnectExecutorMessage) Unmarshal(data []byte) error {
16785 var hasFields [1]uint64
16786 l := len(data)
16787 iNdEx := 0
16788 for iNdEx < l {
16789 preIndex := iNdEx
16790 var wire uint64
16791 for shift := uint(0); ; shift += 7 {
16792 if shift >= 64 {
16793 return ErrIntOverflowMessages
16794 }
16795 if iNdEx >= l {
16796 return io.ErrUnexpectedEOF
16797 }
16798 b := data[iNdEx]
16799 iNdEx++
16800 wire |= (uint64(b) & 0x7F) << shift
16801 if b < 0x80 {
16802 break
16803 }
16804 }
16805 fieldNum := int32(wire >> 3)
16806 wireType := int(wire & 0x7)
16807 if wireType == 4 {
16808 return fmt.Errorf("proto: ReconnectExecutorMessage: wiretype end group for non-group")
16809 }
16810 if fieldNum <= 0 {
16811 return fmt.Errorf("proto: ReconnectExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16812 }
16813 switch fieldNum {
16814 case 1:
16815 if wireType != 2 {
16816 return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType)
16817 }
16818 var msglen int
16819 for shift := uint(0); ; shift += 7 {
16820 if shift >= 64 {
16821 return ErrIntOverflowMessages
16822 }
16823 if iNdEx >= l {
16824 return io.ErrUnexpectedEOF
16825 }
16826 b := data[iNdEx]
16827 iNdEx++
16828 msglen |= (int(b) & 0x7F) << shift
16829 if b < 0x80 {
16830 break
16831 }
16832 }
16833 if msglen < 0 {
16834 return ErrInvalidLengthMessages
16835 }
16836 postIndex := iNdEx + msglen
16837 if postIndex > l {
16838 return io.ErrUnexpectedEOF
16839 }
16840 if m.SlaveId == nil {
16841 m.SlaveId = &SlaveID{}
16842 }
16843 if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16844 return err
16845 }
16846 iNdEx = postIndex
16847 hasFields[0] |= uint64(0x00000001)
16848 default:
16849 iNdEx = preIndex
16850 skippy, err := skipMessages(data[iNdEx:])
16851 if err != nil {
16852 return err
16853 }
16854 if skippy < 0 {
16855 return ErrInvalidLengthMessages
16856 }
16857 if (iNdEx + skippy) > l {
16858 return io.ErrUnexpectedEOF
16859 }
16860 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
16861 iNdEx += skippy
16862 }
16863 }
16864 if hasFields[0]&uint64(0x00000001) == 0 {
16865 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id")
16866 }
16867
16868 if iNdEx > l {
16869 return io.ErrUnexpectedEOF
16870 }
16871 return nil
16872 }
16873 func (m *ReregisterExecutorMessage) Unmarshal(data []byte) error {
16874 var hasFields [1]uint64
16875 l := len(data)
16876 iNdEx := 0
16877 for iNdEx < l {
16878 preIndex := iNdEx
16879 var wire uint64
16880 for shift := uint(0); ; shift += 7 {
16881 if shift >= 64 {
16882 return ErrIntOverflowMessages
16883 }
16884 if iNdEx >= l {
16885 return io.ErrUnexpectedEOF
16886 }
16887 b := data[iNdEx]
16888 iNdEx++
16889 wire |= (uint64(b) & 0x7F) << shift
16890 if b < 0x80 {
16891 break
16892 }
16893 }
16894 fieldNum := int32(wire >> 3)
16895 wireType := int(wire & 0x7)
16896 if wireType == 4 {
16897 return fmt.Errorf("proto: ReregisterExecutorMessage: wiretype end group for non-group")
16898 }
16899 if fieldNum <= 0 {
16900 return fmt.Errorf("proto: ReregisterExecutorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
16901 }
16902 switch fieldNum {
16903 case 1:
16904 if wireType != 2 {
16905 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType)
16906 }
16907 var msglen int
16908 for shift := uint(0); ; shift += 7 {
16909 if shift >= 64 {
16910 return ErrIntOverflowMessages
16911 }
16912 if iNdEx >= l {
16913 return io.ErrUnexpectedEOF
16914 }
16915 b := data[iNdEx]
16916 iNdEx++
16917 msglen |= (int(b) & 0x7F) << shift
16918 if b < 0x80 {
16919 break
16920 }
16921 }
16922 if msglen < 0 {
16923 return ErrInvalidLengthMessages
16924 }
16925 postIndex := iNdEx + msglen
16926 if postIndex > l {
16927 return io.ErrUnexpectedEOF
16928 }
16929 if m.ExecutorId == nil {
16930 m.ExecutorId = &ExecutorID{}
16931 }
16932 if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16933 return err
16934 }
16935 iNdEx = postIndex
16936 hasFields[0] |= uint64(0x00000001)
16937 case 2:
16938 if wireType != 2 {
16939 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType)
16940 }
16941 var msglen int
16942 for shift := uint(0); ; shift += 7 {
16943 if shift >= 64 {
16944 return ErrIntOverflowMessages
16945 }
16946 if iNdEx >= l {
16947 return io.ErrUnexpectedEOF
16948 }
16949 b := data[iNdEx]
16950 iNdEx++
16951 msglen |= (int(b) & 0x7F) << shift
16952 if b < 0x80 {
16953 break
16954 }
16955 }
16956 if msglen < 0 {
16957 return ErrInvalidLengthMessages
16958 }
16959 postIndex := iNdEx + msglen
16960 if postIndex > l {
16961 return io.ErrUnexpectedEOF
16962 }
16963 if m.FrameworkId == nil {
16964 m.FrameworkId = &FrameworkID{}
16965 }
16966 if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil {
16967 return err
16968 }
16969 iNdEx = postIndex
16970 hasFields[0] |= uint64(0x00000002)
16971 case 3:
16972 if wireType != 2 {
16973 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
16974 }
16975 var msglen int
16976 for shift := uint(0); ; shift += 7 {
16977 if shift >= 64 {
16978 return ErrIntOverflowMessages
16979 }
16980 if iNdEx >= l {
16981 return io.ErrUnexpectedEOF
16982 }
16983 b := data[iNdEx]
16984 iNdEx++
16985 msglen |= (int(b) & 0x7F) << shift
16986 if b < 0x80 {
16987 break
16988 }
16989 }
16990 if msglen < 0 {
16991 return ErrInvalidLengthMessages
16992 }
16993 postIndex := iNdEx + msglen
16994 if postIndex > l {
16995 return io.ErrUnexpectedEOF
16996 }
16997 m.Tasks = append(m.Tasks, &TaskInfo{})
16998 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
16999 return err
17000 }
17001 iNdEx = postIndex
17002 case 4:
17003 if wireType != 2 {
17004 return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType)
17005 }
17006 var msglen int
17007 for shift := uint(0); ; shift += 7 {
17008 if shift >= 64 {
17009 return ErrIntOverflowMessages
17010 }
17011 if iNdEx >= l {
17012 return io.ErrUnexpectedEOF
17013 }
17014 b := data[iNdEx]
17015 iNdEx++
17016 msglen |= (int(b) & 0x7F) << shift
17017 if b < 0x80 {
17018 break
17019 }
17020 }
17021 if msglen < 0 {
17022 return ErrInvalidLengthMessages
17023 }
17024 postIndex := iNdEx + msglen
17025 if postIndex > l {
17026 return io.ErrUnexpectedEOF
17027 }
17028 m.Updates = append(m.Updates, &StatusUpdate{})
17029 if err := m.Updates[len(m.Updates)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
17030 return err
17031 }
17032 iNdEx = postIndex
17033 default:
17034 iNdEx = preIndex
17035 skippy, err := skipMessages(data[iNdEx:])
17036 if err != nil {
17037 return err
17038 }
17039 if skippy < 0 {
17040 return ErrInvalidLengthMessages
17041 }
17042 if (iNdEx + skippy) > l {
17043 return io.ErrUnexpectedEOF
17044 }
17045 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17046 iNdEx += skippy
17047 }
17048 }
17049 if hasFields[0]&uint64(0x00000001) == 0 {
17050 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
17051 }
17052 if hasFields[0]&uint64(0x00000002) == 0 {
17053 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
17054 }
17055
17056 if iNdEx > l {
17057 return io.ErrUnexpectedEOF
17058 }
17059 return nil
17060 }
17061 func (m *ShutdownMessage) Unmarshal(data []byte) error {
17062 l := len(data)
17063 iNdEx := 0
17064 for iNdEx < l {
17065 preIndex := iNdEx
17066 var wire uint64
17067 for shift := uint(0); ; shift += 7 {
17068 if shift >= 64 {
17069 return ErrIntOverflowMessages
17070 }
17071 if iNdEx >= l {
17072 return io.ErrUnexpectedEOF
17073 }
17074 b := data[iNdEx]
17075 iNdEx++
17076 wire |= (uint64(b) & 0x7F) << shift
17077 if b < 0x80 {
17078 break
17079 }
17080 }
17081 fieldNum := int32(wire >> 3)
17082 wireType := int(wire & 0x7)
17083 if wireType == 4 {
17084 return fmt.Errorf("proto: ShutdownMessage: wiretype end group for non-group")
17085 }
17086 if fieldNum <= 0 {
17087 return fmt.Errorf("proto: ShutdownMessage: illegal tag %d (wire type %d)", fieldNum, wire)
17088 }
17089 switch fieldNum {
17090 case 1:
17091 if wireType != 2 {
17092 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
17093 }
17094 var stringLen uint64
17095 for shift := uint(0); ; shift += 7 {
17096 if shift >= 64 {
17097 return ErrIntOverflowMessages
17098 }
17099 if iNdEx >= l {
17100 return io.ErrUnexpectedEOF
17101 }
17102 b := data[iNdEx]
17103 iNdEx++
17104 stringLen |= (uint64(b) & 0x7F) << shift
17105 if b < 0x80 {
17106 break
17107 }
17108 }
17109 intStringLen := int(stringLen)
17110 if intStringLen < 0 {
17111 return ErrInvalidLengthMessages
17112 }
17113 postIndex := iNdEx + intStringLen
17114 if postIndex > l {
17115 return io.ErrUnexpectedEOF
17116 }
17117 s := string(data[iNdEx:postIndex])
17118 m.Message = &s
17119 iNdEx = postIndex
17120 default:
17121 iNdEx = preIndex
17122 skippy, err := skipMessages(data[iNdEx:])
17123 if err != nil {
17124 return err
17125 }
17126 if skippy < 0 {
17127 return ErrInvalidLengthMessages
17128 }
17129 if (iNdEx + skippy) > l {
17130 return io.ErrUnexpectedEOF
17131 }
17132 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17133 iNdEx += skippy
17134 }
17135 }
17136
17137 if iNdEx > l {
17138 return io.ErrUnexpectedEOF
17139 }
17140 return nil
17141 }
17142 func (m *Archive) Unmarshal(data []byte) error {
17143 l := len(data)
17144 iNdEx := 0
17145 for iNdEx < l {
17146 preIndex := iNdEx
17147 var wire uint64
17148 for shift := uint(0); ; shift += 7 {
17149 if shift >= 64 {
17150 return ErrIntOverflowMessages
17151 }
17152 if iNdEx >= l {
17153 return io.ErrUnexpectedEOF
17154 }
17155 b := data[iNdEx]
17156 iNdEx++
17157 wire |= (uint64(b) & 0x7F) << shift
17158 if b < 0x80 {
17159 break
17160 }
17161 }
17162 fieldNum := int32(wire >> 3)
17163 wireType := int(wire & 0x7)
17164 if wireType == 4 {
17165 return fmt.Errorf("proto: Archive: wiretype end group for non-group")
17166 }
17167 if fieldNum <= 0 {
17168 return fmt.Errorf("proto: Archive: illegal tag %d (wire type %d)", fieldNum, wire)
17169 }
17170 switch fieldNum {
17171 case 1:
17172 if wireType != 2 {
17173 return fmt.Errorf("proto: wrong wireType = %d for field Frameworks", wireType)
17174 }
17175 var msglen int
17176 for shift := uint(0); ; shift += 7 {
17177 if shift >= 64 {
17178 return ErrIntOverflowMessages
17179 }
17180 if iNdEx >= l {
17181 return io.ErrUnexpectedEOF
17182 }
17183 b := data[iNdEx]
17184 iNdEx++
17185 msglen |= (int(b) & 0x7F) << shift
17186 if b < 0x80 {
17187 break
17188 }
17189 }
17190 if msglen < 0 {
17191 return ErrInvalidLengthMessages
17192 }
17193 postIndex := iNdEx + msglen
17194 if postIndex > l {
17195 return io.ErrUnexpectedEOF
17196 }
17197 m.Frameworks = append(m.Frameworks, &Archive_Framework{})
17198 if err := m.Frameworks[len(m.Frameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
17199 return err
17200 }
17201 iNdEx = postIndex
17202 default:
17203 iNdEx = preIndex
17204 skippy, err := skipMessages(data[iNdEx:])
17205 if err != nil {
17206 return err
17207 }
17208 if skippy < 0 {
17209 return ErrInvalidLengthMessages
17210 }
17211 if (iNdEx + skippy) > l {
17212 return io.ErrUnexpectedEOF
17213 }
17214 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17215 iNdEx += skippy
17216 }
17217 }
17218
17219 if iNdEx > l {
17220 return io.ErrUnexpectedEOF
17221 }
17222 return nil
17223 }
17224 func (m *Archive_Framework) Unmarshal(data []byte) error {
17225 var hasFields [1]uint64
17226 l := len(data)
17227 iNdEx := 0
17228 for iNdEx < l {
17229 preIndex := iNdEx
17230 var wire uint64
17231 for shift := uint(0); ; shift += 7 {
17232 if shift >= 64 {
17233 return ErrIntOverflowMessages
17234 }
17235 if iNdEx >= l {
17236 return io.ErrUnexpectedEOF
17237 }
17238 b := data[iNdEx]
17239 iNdEx++
17240 wire |= (uint64(b) & 0x7F) << shift
17241 if b < 0x80 {
17242 break
17243 }
17244 }
17245 fieldNum := int32(wire >> 3)
17246 wireType := int(wire & 0x7)
17247 if wireType == 4 {
17248 return fmt.Errorf("proto: Framework: wiretype end group for non-group")
17249 }
17250 if fieldNum <= 0 {
17251 return fmt.Errorf("proto: Framework: illegal tag %d (wire type %d)", fieldNum, wire)
17252 }
17253 switch fieldNum {
17254 case 1:
17255 if wireType != 2 {
17256 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
17257 }
17258 var msglen int
17259 for shift := uint(0); ; shift += 7 {
17260 if shift >= 64 {
17261 return ErrIntOverflowMessages
17262 }
17263 if iNdEx >= l {
17264 return io.ErrUnexpectedEOF
17265 }
17266 b := data[iNdEx]
17267 iNdEx++
17268 msglen |= (int(b) & 0x7F) << shift
17269 if b < 0x80 {
17270 break
17271 }
17272 }
17273 if msglen < 0 {
17274 return ErrInvalidLengthMessages
17275 }
17276 postIndex := iNdEx + msglen
17277 if postIndex > l {
17278 return io.ErrUnexpectedEOF
17279 }
17280 if m.FrameworkInfo == nil {
17281 m.FrameworkInfo = &FrameworkInfo{}
17282 }
17283 if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil {
17284 return err
17285 }
17286 iNdEx = postIndex
17287 hasFields[0] |= uint64(0x00000001)
17288 case 2:
17289 if wireType != 2 {
17290 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
17291 }
17292 var stringLen uint64
17293 for shift := uint(0); ; shift += 7 {
17294 if shift >= 64 {
17295 return ErrIntOverflowMessages
17296 }
17297 if iNdEx >= l {
17298 return io.ErrUnexpectedEOF
17299 }
17300 b := data[iNdEx]
17301 iNdEx++
17302 stringLen |= (uint64(b) & 0x7F) << shift
17303 if b < 0x80 {
17304 break
17305 }
17306 }
17307 intStringLen := int(stringLen)
17308 if intStringLen < 0 {
17309 return ErrInvalidLengthMessages
17310 }
17311 postIndex := iNdEx + intStringLen
17312 if postIndex > l {
17313 return io.ErrUnexpectedEOF
17314 }
17315 s := string(data[iNdEx:postIndex])
17316 m.Pid = &s
17317 iNdEx = postIndex
17318 case 3:
17319 if wireType != 2 {
17320 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType)
17321 }
17322 var msglen int
17323 for shift := uint(0); ; shift += 7 {
17324 if shift >= 64 {
17325 return ErrIntOverflowMessages
17326 }
17327 if iNdEx >= l {
17328 return io.ErrUnexpectedEOF
17329 }
17330 b := data[iNdEx]
17331 iNdEx++
17332 msglen |= (int(b) & 0x7F) << shift
17333 if b < 0x80 {
17334 break
17335 }
17336 }
17337 if msglen < 0 {
17338 return ErrInvalidLengthMessages
17339 }
17340 postIndex := iNdEx + msglen
17341 if postIndex > l {
17342 return io.ErrUnexpectedEOF
17343 }
17344 m.Tasks = append(m.Tasks, &Task{})
17345 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
17346 return err
17347 }
17348 iNdEx = postIndex
17349 default:
17350 iNdEx = preIndex
17351 skippy, err := skipMessages(data[iNdEx:])
17352 if err != nil {
17353 return err
17354 }
17355 if skippy < 0 {
17356 return ErrInvalidLengthMessages
17357 }
17358 if (iNdEx + skippy) > l {
17359 return io.ErrUnexpectedEOF
17360 }
17361 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17362 iNdEx += skippy
17363 }
17364 }
17365 if hasFields[0]&uint64(0x00000001) == 0 {
17366 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
17367 }
17368
17369 if iNdEx > l {
17370 return io.ErrUnexpectedEOF
17371 }
17372 return nil
17373 }
17374 func (m *TaskHealthStatus) Unmarshal(data []byte) error {
17375 var hasFields [1]uint64
17376 l := len(data)
17377 iNdEx := 0
17378 for iNdEx < l {
17379 preIndex := iNdEx
17380 var wire uint64
17381 for shift := uint(0); ; shift += 7 {
17382 if shift >= 64 {
17383 return ErrIntOverflowMessages
17384 }
17385 if iNdEx >= l {
17386 return io.ErrUnexpectedEOF
17387 }
17388 b := data[iNdEx]
17389 iNdEx++
17390 wire |= (uint64(b) & 0x7F) << shift
17391 if b < 0x80 {
17392 break
17393 }
17394 }
17395 fieldNum := int32(wire >> 3)
17396 wireType := int(wire & 0x7)
17397 if wireType == 4 {
17398 return fmt.Errorf("proto: TaskHealthStatus: wiretype end group for non-group")
17399 }
17400 if fieldNum <= 0 {
17401 return fmt.Errorf("proto: TaskHealthStatus: illegal tag %d (wire type %d)", fieldNum, wire)
17402 }
17403 switch fieldNum {
17404 case 1:
17405 if wireType != 2 {
17406 return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType)
17407 }
17408 var msglen int
17409 for shift := uint(0); ; shift += 7 {
17410 if shift >= 64 {
17411 return ErrIntOverflowMessages
17412 }
17413 if iNdEx >= l {
17414 return io.ErrUnexpectedEOF
17415 }
17416 b := data[iNdEx]
17417 iNdEx++
17418 msglen |= (int(b) & 0x7F) << shift
17419 if b < 0x80 {
17420 break
17421 }
17422 }
17423 if msglen < 0 {
17424 return ErrInvalidLengthMessages
17425 }
17426 postIndex := iNdEx + msglen
17427 if postIndex > l {
17428 return io.ErrUnexpectedEOF
17429 }
17430 if m.TaskId == nil {
17431 m.TaskId = &TaskID{}
17432 }
17433 if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil {
17434 return err
17435 }
17436 iNdEx = postIndex
17437 hasFields[0] |= uint64(0x00000001)
17438 case 2:
17439 if wireType != 0 {
17440 return fmt.Errorf("proto: wrong wireType = %d for field Healthy", wireType)
17441 }
17442 var v int
17443 for shift := uint(0); ; shift += 7 {
17444 if shift >= 64 {
17445 return ErrIntOverflowMessages
17446 }
17447 if iNdEx >= l {
17448 return io.ErrUnexpectedEOF
17449 }
17450 b := data[iNdEx]
17451 iNdEx++
17452 v |= (int(b) & 0x7F) << shift
17453 if b < 0x80 {
17454 break
17455 }
17456 }
17457 b := bool(v != 0)
17458 m.Healthy = &b
17459 hasFields[0] |= uint64(0x00000002)
17460 case 3:
17461 if wireType != 0 {
17462 return fmt.Errorf("proto: wrong wireType = %d for field KillTask", wireType)
17463 }
17464 var v int
17465 for shift := uint(0); ; shift += 7 {
17466 if shift >= 64 {
17467 return ErrIntOverflowMessages
17468 }
17469 if iNdEx >= l {
17470 return io.ErrUnexpectedEOF
17471 }
17472 b := data[iNdEx]
17473 iNdEx++
17474 v |= (int(b) & 0x7F) << shift
17475 if b < 0x80 {
17476 break
17477 }
17478 }
17479 b := bool(v != 0)
17480 m.KillTask = &b
17481 case 4:
17482 if wireType != 0 {
17483 return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveFailures", wireType)
17484 }
17485 var v int32
17486 for shift := uint(0); ; shift += 7 {
17487 if shift >= 64 {
17488 return ErrIntOverflowMessages
17489 }
17490 if iNdEx >= l {
17491 return io.ErrUnexpectedEOF
17492 }
17493 b := data[iNdEx]
17494 iNdEx++
17495 v |= (int32(b) & 0x7F) << shift
17496 if b < 0x80 {
17497 break
17498 }
17499 }
17500 m.ConsecutiveFailures = &v
17501 default:
17502 iNdEx = preIndex
17503 skippy, err := skipMessages(data[iNdEx:])
17504 if err != nil {
17505 return err
17506 }
17507 if skippy < 0 {
17508 return ErrInvalidLengthMessages
17509 }
17510 if (iNdEx + skippy) > l {
17511 return io.ErrUnexpectedEOF
17512 }
17513 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17514 iNdEx += skippy
17515 }
17516 }
17517 if hasFields[0]&uint64(0x00000001) == 0 {
17518 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
17519 }
17520 if hasFields[0]&uint64(0x00000002) == 0 {
17521 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("healthy")
17522 }
17523
17524 if iNdEx > l {
17525 return io.ErrUnexpectedEOF
17526 }
17527 return nil
17528 }
17529 func (m *HookExecuted) Unmarshal(data []byte) error {
17530 l := len(data)
17531 iNdEx := 0
17532 for iNdEx < l {
17533 preIndex := iNdEx
17534 var wire uint64
17535 for shift := uint(0); ; shift += 7 {
17536 if shift >= 64 {
17537 return ErrIntOverflowMessages
17538 }
17539 if iNdEx >= l {
17540 return io.ErrUnexpectedEOF
17541 }
17542 b := data[iNdEx]
17543 iNdEx++
17544 wire |= (uint64(b) & 0x7F) << shift
17545 if b < 0x80 {
17546 break
17547 }
17548 }
17549 fieldNum := int32(wire >> 3)
17550 wireType := int(wire & 0x7)
17551 if wireType == 4 {
17552 return fmt.Errorf("proto: HookExecuted: wiretype end group for non-group")
17553 }
17554 if fieldNum <= 0 {
17555 return fmt.Errorf("proto: HookExecuted: illegal tag %d (wire type %d)", fieldNum, wire)
17556 }
17557 switch fieldNum {
17558 case 1:
17559 if wireType != 2 {
17560 return fmt.Errorf("proto: wrong wireType = %d for field Module", wireType)
17561 }
17562 var stringLen uint64
17563 for shift := uint(0); ; shift += 7 {
17564 if shift >= 64 {
17565 return ErrIntOverflowMessages
17566 }
17567 if iNdEx >= l {
17568 return io.ErrUnexpectedEOF
17569 }
17570 b := data[iNdEx]
17571 iNdEx++
17572 stringLen |= (uint64(b) & 0x7F) << shift
17573 if b < 0x80 {
17574 break
17575 }
17576 }
17577 intStringLen := int(stringLen)
17578 if intStringLen < 0 {
17579 return ErrInvalidLengthMessages
17580 }
17581 postIndex := iNdEx + intStringLen
17582 if postIndex > l {
17583 return io.ErrUnexpectedEOF
17584 }
17585 s := string(data[iNdEx:postIndex])
17586 m.Module = &s
17587 iNdEx = postIndex
17588 default:
17589 iNdEx = preIndex
17590 skippy, err := skipMessages(data[iNdEx:])
17591 if err != nil {
17592 return err
17593 }
17594 if skippy < 0 {
17595 return ErrInvalidLengthMessages
17596 }
17597 if (iNdEx + skippy) > l {
17598 return io.ErrUnexpectedEOF
17599 }
17600 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
17601 iNdEx += skippy
17602 }
17603 }
17604
17605 if iNdEx > l {
17606 return io.ErrUnexpectedEOF
17607 }
17608 return nil
17609 }
17610 func skipMessages(data []byte) (n int, err error) {
17611 l := len(data)
17612 iNdEx := 0
17613 for iNdEx < l {
17614 var wire uint64
17615 for shift := uint(0); ; shift += 7 {
17616 if shift >= 64 {
17617 return 0, ErrIntOverflowMessages
17618 }
17619 if iNdEx >= l {
17620 return 0, io.ErrUnexpectedEOF
17621 }
17622 b := data[iNdEx]
17623 iNdEx++
17624 wire |= (uint64(b) & 0x7F) << shift
17625 if b < 0x80 {
17626 break
17627 }
17628 }
17629 wireType := int(wire & 0x7)
17630 switch wireType {
17631 case 0:
17632 for shift := uint(0); ; shift += 7 {
17633 if shift >= 64 {
17634 return 0, ErrIntOverflowMessages
17635 }
17636 if iNdEx >= l {
17637 return 0, io.ErrUnexpectedEOF
17638 }
17639 iNdEx++
17640 if data[iNdEx-1] < 0x80 {
17641 break
17642 }
17643 }
17644 return iNdEx, nil
17645 case 1:
17646 iNdEx += 8
17647 return iNdEx, nil
17648 case 2:
17649 var length int
17650 for shift := uint(0); ; shift += 7 {
17651 if shift >= 64 {
17652 return 0, ErrIntOverflowMessages
17653 }
17654 if iNdEx >= l {
17655 return 0, io.ErrUnexpectedEOF
17656 }
17657 b := data[iNdEx]
17658 iNdEx++
17659 length |= (int(b) & 0x7F) << shift
17660 if b < 0x80 {
17661 break
17662 }
17663 }
17664 iNdEx += length
17665 if length < 0 {
17666 return 0, ErrInvalidLengthMessages
17667 }
17668 return iNdEx, nil
17669 case 3:
17670 for {
17671 var innerWire uint64
17672 var start int = iNdEx
17673 for shift := uint(0); ; shift += 7 {
17674 if shift >= 64 {
17675 return 0, ErrIntOverflowMessages
17676 }
17677 if iNdEx >= l {
17678 return 0, io.ErrUnexpectedEOF
17679 }
17680 b := data[iNdEx]
17681 iNdEx++
17682 innerWire |= (uint64(b) & 0x7F) << shift
17683 if b < 0x80 {
17684 break
17685 }
17686 }
17687 innerWireType := int(innerWire & 0x7)
17688 if innerWireType == 4 {
17689 break
17690 }
17691 next, err := skipMessages(data[start:])
17692 if err != nil {
17693 return 0, err
17694 }
17695 iNdEx = start + next
17696 }
17697 return iNdEx, nil
17698 case 4:
17699 return iNdEx, nil
17700 case 5:
17701 iNdEx += 4
17702 return iNdEx, nil
17703 default:
17704 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
17705 }
17706 }
17707 panic("unreachable")
17708 }
17709
17710 var (
17711 ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling")
17712 ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow")
17713 )