Debian Codegraph @

api/v1/lib/executor/executor.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo. DO NOT EDIT.
2 // source: executor/executor.proto
3
4 /*
5 Package executor is a generated protocol buffer package.
6
7 It is generated from these files:
8 executor/executor.proto
9
10 It has these top-level messages:
11 Event
12 Call
13 */
14 package executor
15
16 import proto "github.com/gogo/protobuf/proto"
17 import fmt "fmt"
18 import math "math"
19 import mesos "github.com/mesos/mesos-go/api/v1/lib"
20 import _ "github.com/gogo/protobuf/gogoproto"
21
22 import strconv "strconv"
23
24 import bytes "bytes"
25
26 import strings "strings"
27 import reflect "reflect"
28
29 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
30
31 import io "io"
32
33 // Reference imports to suppress errors if they are not otherwise used.
34 var _ = proto.Marshal
35 var _ = fmt.Errorf
36 var _ = math.Inf
37
38 // This is a compile-time assertion to ensure that this generated file
39 // is compatible with the proto package it is being compiled against.
40 // A compilation error at this line likely means your copy of the
41 // proto package needs to be updated.
42 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
43
44 // Possible event types, followed by message definitions if
45 // applicable.
46 type Event_Type int32
47
48 const (
49 // This must be the first enum value in this list, to
50 // ensure that if 'type' is not set, the default value
51 // is UNKNOWN. This enables enum values to be added
52 // in a backwards-compatible way. See: MESOS-4997.
53 Event_UNKNOWN Event_Type = 0
54 Event_SUBSCRIBED Event_Type = 1
55 Event_LAUNCH Event_Type = 2
56 Event_LAUNCH_GROUP Event_Type = 8
57 Event_KILL Event_Type = 3
58 Event_ACKNOWLEDGED Event_Type = 4
59 Event_MESSAGE Event_Type = 5
60 Event_ERROR Event_Type = 6
61 // Received when the agent asks the executor to shutdown/kill itself.
62 // The executor is then required to kill all its active tasks, send
63 // `TASK_KILLED` status updates and gracefully exit. The executor
64 // should terminate within a `MESOS_EXECUTOR_SHUTDOWN_GRACE_PERIOD`
65 // (an environment variable set by the agent upon executor startup);
66 // it can be configured via `ExecutorInfo.shutdown_grace_period`. If
67 // the executor fails to do so, the agent will forcefully destroy the
68 // container where the executor is running. The agent would then send
69 // `TASK_LOST` updates for any remaining active tasks of this executor.
70 //
71 // NOTE: The executor must not assume that it will always be allotted
72 // the full grace period, as the agent may decide to allot a shorter
73 // period and failures / forcible terminations may occur.
74 //
75 // TODO(alexr): Consider adding a duration field into the `Shutdown`
76 // message so that the agent can communicate when a shorter period
77 // has been allotted.
78 Event_SHUTDOWN Event_Type = 7
79 )
80
81 var Event_Type_name = map[int32]string{
82 0: "UNKNOWN",
83 1: "SUBSCRIBED",
84 2: "LAUNCH",
85 8: "LAUNCH_GROUP",
86 3: "KILL",
87 4: "ACKNOWLEDGED",
88 5: "MESSAGE",
89 6: "ERROR",
90 7: "SHUTDOWN",
91 }
92 var Event_Type_value = map[string]int32{
93 "UNKNOWN": 0,
94 "SUBSCRIBED": 1,
95 "LAUNCH": 2,
96 "LAUNCH_GROUP": 8,
97 "KILL": 3,
98 "ACKNOWLEDGED": 4,
99 "MESSAGE": 5,
100 "ERROR": 6,
101 "SHUTDOWN": 7,
102 }
103
104 func (x Event_Type) Enum() *Event_Type {
105 p := new(Event_Type)
106 *p = x
107 return p
108 }
109 func (x Event_Type) MarshalJSON() ([]byte, error) {
110 return proto.MarshalJSONEnum(Event_Type_name, int32(x))
111 }
112 func (x *Event_Type) UnmarshalJSON(data []byte) error {
113 value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
114 if err != nil {
115 return err
116 }
117 *x = Event_Type(value)
118 return nil
119 }
120 func (Event_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 0} }
121
122 // Possible call types, followed by message definitions if
123 // applicable.
124 type Call_Type int32
125
126 const (
127 // See comments above on `Event::Type` for more details on this enum value.
128 Call_UNKNOWN Call_Type = 0
129 Call_SUBSCRIBE Call_Type = 1
130 Call_UPDATE Call_Type = 2
131 Call_MESSAGE Call_Type = 3
132 )
133
134 var Call_Type_name = map[int32]string{
135 0: "UNKNOWN",
136 1: "SUBSCRIBE",
137 2: "UPDATE",
138 3: "MESSAGE",
139 }
140 var Call_Type_value = map[string]int32{
141 "UNKNOWN": 0,
142 "SUBSCRIBE": 1,
143 "UPDATE": 2,
144 "MESSAGE": 3,
145 }
146
147 func (x Call_Type) Enum() *Call_Type {
148 p := new(Call_Type)
149 *p = x
150 return p
151 }
152 func (x Call_Type) MarshalJSON() ([]byte, error) {
153 return proto.MarshalJSONEnum(Call_Type_name, int32(x))
154 }
155 func (x *Call_Type) UnmarshalJSON(data []byte) error {
156 value, err := proto.UnmarshalJSONEnum(Call_Type_value, data, "Call_Type")
157 if err != nil {
158 return err
159 }
160 *x = Call_Type(value)
161 return nil
162 }
163 func (Call_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 0} }
164
165 // *
166 // Executor event API.
167 //
168 // An event is described using the standard protocol buffer "union"
169 // trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
170 type Event struct {
171 // Type of the event, indicates which optional field below should be
172 // present if that type has a nested message definition.
173 // Enum fields should be optional, see: MESOS-4997.
174 Type Event_Type `protobuf:"varint,1,opt,name=type,enum=mesos.executor.Event_Type" json:"type"`
175 Subscribed *Event_Subscribed `protobuf:"bytes,2,opt,name=subscribed" json:"subscribed,omitempty"`
176 Acknowledged *Event_Acknowledged `protobuf:"bytes,3,opt,name=acknowledged" json:"acknowledged,omitempty"`
177 Launch *Event_Launch `protobuf:"bytes,4,opt,name=launch" json:"launch,omitempty"`
178 LaunchGroup *Event_LaunchGroup `protobuf:"bytes,8,opt,name=launch_group,json=launchGroup" json:"launch_group,omitempty"`
179 Kill *Event_Kill `protobuf:"bytes,5,opt,name=kill" json:"kill,omitempty"`
180 Message *Event_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
181 Error *Event_Error `protobuf:"bytes,7,opt,name=error" json:"error,omitempty"`
182 }
183
184 func (m *Event) Reset() { *m = Event{} }
185 func (*Event) ProtoMessage() {}
186 func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0} }
187
188 func (m *Event) GetType() Event_Type {
189 if m != nil {
190 return m.Type
191 }
192 return Event_UNKNOWN
193 }
194
195 func (m *Event) GetSubscribed() *Event_Subscribed {
196 if m != nil {
197 return m.Subscribed
198 }
199 return nil
200 }
201
202 func (m *Event) GetAcknowledged() *Event_Acknowledged {
203 if m != nil {
204 return m.Acknowledged
205 }
206 return nil
207 }
208
209 func (m *Event) GetLaunch() *Event_Launch {
210 if m != nil {
211 return m.Launch
212 }
213 return nil
214 }
215
216 func (m *Event) GetLaunchGroup() *Event_LaunchGroup {
217 if m != nil {
218 return m.LaunchGroup
219 }
220 return nil
221 }
222
223 func (m *Event) GetKill() *Event_Kill {
224 if m != nil {
225 return m.Kill
226 }
227 return nil
228 }
229
230 func (m *Event) GetMessage() *Event_Message {
231 if m != nil {
232 return m.Message
233 }
234 return nil
235 }
236
237 func (m *Event) GetError() *Event_Error {
238 if m != nil {
239 return m.Error
240 }
241 return nil
242 }
243
244 // First event received when the executor subscribes.
245 // The 'id' field in the 'framework_info' will be set.
246 type Event_Subscribed struct {
247 ExecutorInfo mesos.ExecutorInfo `protobuf:"bytes,1,req,name=executor_info,json=executorInfo" json:"executor_info"`
248 FrameworkInfo mesos.FrameworkInfo `protobuf:"bytes,2,req,name=framework_info,json=frameworkInfo" json:"framework_info"`
249 AgentInfo mesos.AgentInfo `protobuf:"bytes,3,req,name=agent_info,json=agentInfo" json:"agent_info"`
250 // Uniquely identifies the container of an executor run.
251 ContainerID *mesos.ContainerID `protobuf:"bytes,4,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
252 }
253
254 func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} }
255 func (*Event_Subscribed) ProtoMessage() {}
256 func (*Event_Subscribed) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 0} }
257
258 func (m *Event_Subscribed) GetExecutorInfo() mesos.ExecutorInfo {
259 if m != nil {
260 return m.ExecutorInfo
261 }
262 return mesos.ExecutorInfo{}
263 }
264
265 func (m *Event_Subscribed) GetFrameworkInfo() mesos.FrameworkInfo {
266 if m != nil {
267 return m.FrameworkInfo
268 }
269 return mesos.FrameworkInfo{}
270 }
271
272 func (m *Event_Subscribed) GetAgentInfo() mesos.AgentInfo {
273 if m != nil {
274 return m.AgentInfo
275 }
276 return mesos.AgentInfo{}
277 }
278
279 func (m *Event_Subscribed) GetContainerID() *mesos.ContainerID {
280 if m != nil {
281 return m.ContainerID
282 }
283 return nil
284 }
285
286 // Received when the framework attempts to launch a task. Once
287 // the task is successfully launched, the executor must respond with
288 // a TASK_RUNNING update (See TaskState in v1/mesos.proto).
289 type Event_Launch struct {
290 Task mesos.TaskInfo `protobuf:"bytes,1,req,name=task" json:"task"`
291 }
292
293 func (m *Event_Launch) Reset() { *m = Event_Launch{} }
294 func (*Event_Launch) ProtoMessage() {}
295 func (*Event_Launch) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 1} }
296
297 func (m *Event_Launch) GetTask() mesos.TaskInfo {
298 if m != nil {
299 return m.Task
300 }
301 return mesos.TaskInfo{}
302 }
303
304 // Received when the framework attempts to launch a group of tasks atomically.
305 // Similar to `Launch` above the executor must send TASK_RUNNING updates for
306 // tasks that are successfully launched.
307 type Event_LaunchGroup struct {
308 TaskGroup mesos.TaskGroupInfo `protobuf:"bytes,1,req,name=task_group,json=taskGroup" json:"task_group"`
309 }
310
311 func (m *Event_LaunchGroup) Reset() { *m = Event_LaunchGroup{} }
312 func (*Event_LaunchGroup) ProtoMessage() {}
313 func (*Event_LaunchGroup) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 2} }
314
315 func (m *Event_LaunchGroup) GetTaskGroup() mesos.TaskGroupInfo {
316 if m != nil {
317 return m.TaskGroup
318 }
319 return mesos.TaskGroupInfo{}
320 }
321
322 // Received when the scheduler wants to kill a specific task. Once
323 // the task is terminated, the executor should send a TASK_KILLED
324 // (or TASK_FAILED) update. The terminal update is necessary so
325 // Mesos can release the resources associated with the task.
326 type Event_Kill struct {
327 TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
328 // If set, overrides any previously specified kill policy for this task.
329 // This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
330 // Can be used to forcefully kill a task which is already being killed.
331 KillPolicy *mesos.KillPolicy `protobuf:"bytes,2,opt,name=kill_policy,json=killPolicy" json:"kill_policy,omitempty"`
332 }
333
334 func (m *Event_Kill) Reset() { *m = Event_Kill{} }
335 func (*Event_Kill) ProtoMessage() {}
336 func (*Event_Kill) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 3} }
337
338 func (m *Event_Kill) GetTaskID() mesos.TaskID {
339 if m != nil {
340 return m.TaskID
341 }
342 return mesos.TaskID{}
343 }
344
345 func (m *Event_Kill) GetKillPolicy() *mesos.KillPolicy {
346 if m != nil {
347 return m.KillPolicy
348 }
349 return nil
350 }
351
352 // Received when the agent acknowledges the receipt of status
353 // update. Schedulers are responsible for explicitly acknowledging
354 // the receipt of status updates that have 'update.status().uuid()'
355 // field set. Unacknowledged updates can be retried by the executor.
356 // They should also be sent by the executor whenever it
357 // re-subscribes.
358 type Event_Acknowledged struct {
359 TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
360 UUID []byte `protobuf:"bytes,2,req,name=uuid" json:"uuid,omitempty"`
361 }
362
363 func (m *Event_Acknowledged) Reset() { *m = Event_Acknowledged{} }
364 func (*Event_Acknowledged) ProtoMessage() {}
365 func (*Event_Acknowledged) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 4} }
366
367 func (m *Event_Acknowledged) GetTaskID() mesos.TaskID {
368 if m != nil {
369 return m.TaskID
370 }
371 return mesos.TaskID{}
372 }
373
374 func (m *Event_Acknowledged) GetUUID() []byte {
375 if m != nil {
376 return m.UUID
377 }
378 return nil
379 }
380
381 // Received when a custom message generated by the scheduler is
382 // forwarded by the agent. Note that this message is not
383 // interpreted by Mesos and is only forwarded (without reliability
384 // guarantees) to the executor. It is up to the scheduler to retry
385 // if the message is dropped for any reason.
386 type Event_Message struct {
387 Data []byte `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
388 }
389
390 func (m *Event_Message) Reset() { *m = Event_Message{} }
391 func (*Event_Message) ProtoMessage() {}
392 func (*Event_Message) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 5} }
393
394 func (m *Event_Message) GetData() []byte {
395 if m != nil {
396 return m.Data
397 }
398 return nil
399 }
400
401 // Received in case the executor sends invalid calls (e.g.,
402 // required values not set).
403 // TODO(arojas): Remove this once the old executor driver is no
404 // longer supported. With HTTP API all errors will be signaled via
405 // HTTP response codes.
406 type Event_Error struct {
407 Message string `protobuf:"bytes,1,req,name=message" json:"message"`
408 }
409
410 func (m *Event_Error) Reset() { *m = Event_Error{} }
411 func (*Event_Error) ProtoMessage() {}
412 func (*Event_Error) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 6} }
413
414 func (m *Event_Error) GetMessage() string {
415 if m != nil {
416 return m.Message
417 }
418 return ""
419 }
420
421 // *
422 // Executor call API.
423 //
424 // Like Event, a Call is described using the standard protocol buffer
425 // "union" trick (see above).
426 type Call struct {
427 // Identifies the executor which generated this call.
428 ExecutorID mesos.ExecutorID `protobuf:"bytes,1,req,name=executor_id,json=executorId" json:"executor_id"`
429 FrameworkID mesos.FrameworkID `protobuf:"bytes,2,req,name=framework_id,json=frameworkId" json:"framework_id"`
430 // Type of the call, indicates which optional field below should be
431 // present if that type has a nested message definition.
432 // In case type is SUBSCRIBED, no message needs to be set.
433 // See comments on `Event::Type` above on the reasoning behind this
434 // field being optional.
435 Type Call_Type `protobuf:"varint,3,opt,name=type,enum=mesos.executor.Call_Type" json:"type"`
436 Subscribe *Call_Subscribe `protobuf:"bytes,4,opt,name=subscribe" json:"subscribe,omitempty"`
437 Update *Call_Update `protobuf:"bytes,5,opt,name=update" json:"update,omitempty"`
438 Message *Call_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
439 }
440
441 func (m *Call) Reset() { *m = Call{} }
442 func (*Call) ProtoMessage() {}
443 func (*Call) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1} }
444
445 func (m *Call) GetExecutorID() mesos.ExecutorID {
446 if m != nil {
447 return m.ExecutorID
448 }
449 return mesos.ExecutorID{}
450 }
451
452 func (m *Call) GetFrameworkID() mesos.FrameworkID {
453 if m != nil {
454 return m.FrameworkID
455 }
456 return mesos.FrameworkID{}
457 }
458
459 func (m *Call) GetType() Call_Type {
460 if m != nil {
461 return m.Type
462 }
463 return Call_UNKNOWN
464 }
465
466 func (m *Call) GetSubscribe() *Call_Subscribe {
467 if m != nil {
468 return m.Subscribe
469 }
470 return nil
471 }
472
473 func (m *Call) GetUpdate() *Call_Update {
474 if m != nil {
475 return m.Update
476 }
477 return nil
478 }
479
480 func (m *Call) GetMessage() *Call_Message {
481 if m != nil {
482 return m.Message
483 }
484 return nil
485 }
486
487 // Request to subscribe with the agent. If subscribing after a disconnection,
488 // it must include a list of all the tasks and updates which haven't been
489 // acknowledged by the scheduler.
490 type Call_Subscribe struct {
491 UnacknowledgedTasks []mesos.TaskInfo `protobuf:"bytes,1,rep,name=unacknowledged_tasks,json=unacknowledgedTasks" json:"unacknowledged_tasks"`
492 UnacknowledgedUpdates []Call_Update `protobuf:"bytes,2,rep,name=unacknowledged_updates,json=unacknowledgedUpdates" json:"unacknowledged_updates"`
493 }
494
495 func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} }
496 func (*Call_Subscribe) ProtoMessage() {}
497 func (*Call_Subscribe) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 0} }
498
499 func (m *Call_Subscribe) GetUnacknowledgedTasks() []mesos.TaskInfo {
500 if m != nil {
501 return m.UnacknowledgedTasks
502 }
503 return nil
504 }
505
506 func (m *Call_Subscribe) GetUnacknowledgedUpdates() []Call_Update {
507 if m != nil {
508 return m.UnacknowledgedUpdates
509 }
510 return nil
511 }
512
513 // Notifies the scheduler that a task has transitioned from one
514 // state to another. Status updates should be used by executors
515 // to reliably communicate the status of the tasks that they
516 // manage. It is crucial that a terminal update (see TaskState
517 // in v1/mesos.proto) is sent to the scheduler as soon as the task
518 // terminates, in order for Mesos to release the resources allocated
519 // to the task. It is the responsibility of the scheduler to
520 // explicitly acknowledge the receipt of a status update. See
521 // 'Acknowledged' in the 'Events' section above for the semantics.
522 type Call_Update struct {
523 Status mesos.TaskStatus `protobuf:"bytes,1,req,name=status" json:"status"`
524 }
525
526 func (m *Call_Update) Reset() { *m = Call_Update{} }
527 func (*Call_Update) ProtoMessage() {}
528 func (*Call_Update) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 1} }
529
530 func (m *Call_Update) GetStatus() mesos.TaskStatus {
531 if m != nil {
532 return m.Status
533 }
534 return mesos.TaskStatus{}
535 }
536
537 // Sends arbitrary binary data to the scheduler. Note that Mesos
538 // neither interprets this data nor makes any guarantees about the
539 // delivery of this message to the scheduler.
540 // See 'Message' in the 'Events' section.
541 type Call_Message struct {
542 Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"`
543 }
544
545 func (m *Call_Message) Reset() { *m = Call_Message{} }
546 func (*Call_Message) ProtoMessage() {}
547 func (*Call_Message) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 2} }
548
549 func (m *Call_Message) GetData() []byte {
550 if m != nil {
551 return m.Data
552 }
553 return nil
554 }
555
556 func init() {
557 proto.RegisterType((*Event)(nil), "mesos.executor.Event")
558 proto.RegisterType((*Event_Subscribed)(nil), "mesos.executor.Event.Subscribed")
559 proto.RegisterType((*Event_Launch)(nil), "mesos.executor.Event.Launch")
560 proto.RegisterType((*Event_LaunchGroup)(nil), "mesos.executor.Event.LaunchGroup")
561 proto.RegisterType((*Event_Kill)(nil), "mesos.executor.Event.Kill")
562 proto.RegisterType((*Event_Acknowledged)(nil), "mesos.executor.Event.Acknowledged")
563 proto.RegisterType((*Event_Message)(nil), "mesos.executor.Event.Message")
564 proto.RegisterType((*Event_Error)(nil), "mesos.executor.Event.Error")
565 proto.RegisterType((*Call)(nil), "mesos.executor.Call")
566 proto.RegisterType((*Call_Subscribe)(nil), "mesos.executor.Call.Subscribe")
567 proto.RegisterType((*Call_Update)(nil), "mesos.executor.Call.Update")
568 proto.RegisterType((*Call_Message)(nil), "mesos.executor.Call.Message")
569 proto.RegisterEnum("mesos.executor.Event_Type", Event_Type_name, Event_Type_value)
570 proto.RegisterEnum("mesos.executor.Call_Type", Call_Type_name, Call_Type_value)
571 }
572 func (x Event_Type) String() string {
573 s, ok := Event_Type_name[int32(x)]
574 if ok {
575 return s
576 }
577 return strconv.Itoa(int(x))
578 }
579 func (x Call_Type) String() string {
580 s, ok := Call_Type_name[int32(x)]
581 if ok {
582 return s
583 }
584 return strconv.Itoa(int(x))
585 }
586 func (this *Event) VerboseEqual(that interface{}) error {
587 if that == nil {
588 if this == nil {
589 return nil
590 }
591 return fmt.Errorf("that == nil && this != nil")
592 }
593
594 that1, ok := that.(*Event)
595 if !ok {
596 that2, ok := that.(Event)
597 if ok {
598 that1 = &that2
599 } else {
600 return fmt.Errorf("that is not of type *Event")
601 }
602 }
603 if that1 == nil {
604 if this == nil {
605 return nil
606 }
607 return fmt.Errorf("that is type *Event but is nil && this != nil")
608 } else if this == nil {
609 return fmt.Errorf("that is type *Event but is not nil && this == nil")
610 }
611 if this.Type != that1.Type {
612 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
613 }
614 if !this.Subscribed.Equal(that1.Subscribed) {
615 return fmt.Errorf("Subscribed this(%v) Not Equal that(%v)", this.Subscribed, that1.Subscribed)
616 }
617 if !this.Acknowledged.Equal(that1.Acknowledged) {
618 return fmt.Errorf("Acknowledged this(%v) Not Equal that(%v)", this.Acknowledged, that1.Acknowledged)
619 }
620 if !this.Launch.Equal(that1.Launch) {
621 return fmt.Errorf("Launch this(%v) Not Equal that(%v)", this.Launch, that1.Launch)
622 }
623 if !this.LaunchGroup.Equal(that1.LaunchGroup) {
624 return fmt.Errorf("LaunchGroup this(%v) Not Equal that(%v)", this.LaunchGroup, that1.LaunchGroup)
625 }
626 if !this.Kill.Equal(that1.Kill) {
627 return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill)
628 }
629 if !this.Message.Equal(that1.Message) {
630 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
631 }
632 if !this.Error.Equal(that1.Error) {
633 return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
634 }
635 return nil
636 }
637 func (this *Event) Equal(that interface{}) bool {
638 if that == nil {
639 if this == nil {
640 return true
641 }
642 return false
643 }
644
645 that1, ok := that.(*Event)
646 if !ok {
647 that2, ok := that.(Event)
648 if ok {
649 that1 = &that2
650 } else {
651 return false
652 }
653 }
654 if that1 == nil {
655 if this == nil {
656 return true
657 }
658 return false
659 } else if this == nil {
660 return false
661 }
662 if this.Type != that1.Type {
663 return false
664 }
665 if !this.Subscribed.Equal(that1.Subscribed) {
666 return false
667 }
668 if !this.Acknowledged.Equal(that1.Acknowledged) {
669 return false
670 }
671 if !this.Launch.Equal(that1.Launch) {
672 return false
673 }
674 if !this.LaunchGroup.Equal(that1.LaunchGroup) {
675 return false
676 }
677 if !this.Kill.Equal(that1.Kill) {
678 return false
679 }
680 if !this.Message.Equal(that1.Message) {
681 return false
682 }
683 if !this.Error.Equal(that1.Error) {
684 return false
685 }
686 return true
687 }
688 func (this *Event_Subscribed) VerboseEqual(that interface{}) error {
689 if that == nil {
690 if this == nil {
691 return nil
692 }
693 return fmt.Errorf("that == nil && this != nil")
694 }
695
696 that1, ok := that.(*Event_Subscribed)
697 if !ok {
698 that2, ok := that.(Event_Subscribed)
699 if ok {
700 that1 = &that2
701 } else {
702 return fmt.Errorf("that is not of type *Event_Subscribed")
703 }
704 }
705 if that1 == nil {
706 if this == nil {
707 return nil
708 }
709 return fmt.Errorf("that is type *Event_Subscribed but is nil && this != nil")
710 } else if this == nil {
711 return fmt.Errorf("that is type *Event_Subscribed but is not nil && this == nil")
712 }
713 if !this.ExecutorInfo.Equal(&that1.ExecutorInfo) {
714 return fmt.Errorf("ExecutorInfo this(%v) Not Equal that(%v)", this.ExecutorInfo, that1.ExecutorInfo)
715 }
716 if !this.FrameworkInfo.Equal(&that1.FrameworkInfo) {
717 return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
718 }
719 if !this.AgentInfo.Equal(&that1.AgentInfo) {
720 return fmt.Errorf("AgentInfo this(%v) Not Equal that(%v)", this.AgentInfo, that1.AgentInfo)
721 }
722 if !this.ContainerID.Equal(that1.ContainerID) {
723 return fmt.Errorf("ContainerID this(%v) Not Equal that(%v)", this.ContainerID, that1.ContainerID)
724 }
725 return nil
726 }
727 func (this *Event_Subscribed) Equal(that interface{}) bool {
728 if that == nil {
729 if this == nil {
730 return true
731 }
732 return false
733 }
734
735 that1, ok := that.(*Event_Subscribed)
736 if !ok {
737 that2, ok := that.(Event_Subscribed)
738 if ok {
739 that1 = &that2
740 } else {
741 return false
742 }
743 }
744 if that1 == nil {
745 if this == nil {
746 return true
747 }
748 return false
749 } else if this == nil {
750 return false
751 }
752 if !this.ExecutorInfo.Equal(&that1.ExecutorInfo) {
753 return false
754 }
755 if !this.FrameworkInfo.Equal(&that1.FrameworkInfo) {
756 return false
757 }
758 if !this.AgentInfo.Equal(&that1.AgentInfo) {
759 return false
760 }
761 if !this.ContainerID.Equal(that1.ContainerID) {
762 return false
763 }
764 return true
765 }
766 func (this *Event_Launch) VerboseEqual(that interface{}) error {
767 if that == nil {
768 if this == nil {
769 return nil
770 }
771 return fmt.Errorf("that == nil && this != nil")
772 }
773
774 that1, ok := that.(*Event_Launch)
775 if !ok {
776 that2, ok := that.(Event_Launch)
777 if ok {
778 that1 = &that2
779 } else {
780 return fmt.Errorf("that is not of type *Event_Launch")
781 }
782 }
783 if that1 == nil {
784 if this == nil {
785 return nil
786 }
787 return fmt.Errorf("that is type *Event_Launch but is nil && this != nil")
788 } else if this == nil {
789 return fmt.Errorf("that is type *Event_Launch but is not nil && this == nil")
790 }
791 if !this.Task.Equal(&that1.Task) {
792 return fmt.Errorf("Task this(%v) Not Equal that(%v)", this.Task, that1.Task)
793 }
794 return nil
795 }
796 func (this *Event_Launch) Equal(that interface{}) bool {
797 if that == nil {
798 if this == nil {
799 return true
800 }
801 return false
802 }
803
804 that1, ok := that.(*Event_Launch)
805 if !ok {
806 that2, ok := that.(Event_Launch)
807 if ok {
808 that1 = &that2
809 } else {
810 return false
811 }
812 }
813 if that1 == nil {
814 if this == nil {
815 return true
816 }
817 return false
818 } else if this == nil {
819 return false
820 }
821 if !this.Task.Equal(&that1.Task) {
822 return false
823 }
824 return true
825 }
826 func (this *Event_LaunchGroup) VerboseEqual(that interface{}) error {
827 if that == nil {
828 if this == nil {
829 return nil
830 }
831 return fmt.Errorf("that == nil && this != nil")
832 }
833
834 that1, ok := that.(*Event_LaunchGroup)
835 if !ok {
836 that2, ok := that.(Event_LaunchGroup)
837 if ok {
838 that1 = &that2
839 } else {
840 return fmt.Errorf("that is not of type *Event_LaunchGroup")
841 }
842 }
843 if that1 == nil {
844 if this == nil {
845 return nil
846 }
847 return fmt.Errorf("that is type *Event_LaunchGroup but is nil && this != nil")
848 } else if this == nil {
849 return fmt.Errorf("that is type *Event_LaunchGroup but is not nil && this == nil")
850 }
851 if !this.TaskGroup.Equal(&that1.TaskGroup) {
852 return fmt.Errorf("TaskGroup this(%v) Not Equal that(%v)", this.TaskGroup, that1.TaskGroup)
853 }
854 return nil
855 }
856 func (this *Event_LaunchGroup) Equal(that interface{}) bool {
857 if that == nil {
858 if this == nil {
859 return true
860 }
861 return false
862 }
863
864 that1, ok := that.(*Event_LaunchGroup)
865 if !ok {
866 that2, ok := that.(Event_LaunchGroup)
867 if ok {
868 that1 = &that2
869 } else {
870 return false
871 }
872 }
873 if that1 == nil {
874 if this == nil {
875 return true
876 }
877 return false
878 } else if this == nil {
879 return false
880 }
881 if !this.TaskGroup.Equal(&that1.TaskGroup) {
882 return false
883 }
884 return true
885 }
886 func (this *Event_Kill) VerboseEqual(that interface{}) error {
887 if that == nil {
888 if this == nil {
889 return nil
890 }
891 return fmt.Errorf("that == nil && this != nil")
892 }
893
894 that1, ok := that.(*Event_Kill)
895 if !ok {
896 that2, ok := that.(Event_Kill)
897 if ok {
898 that1 = &that2
899 } else {
900 return fmt.Errorf("that is not of type *Event_Kill")
901 }
902 }
903 if that1 == nil {
904 if this == nil {
905 return nil
906 }
907 return fmt.Errorf("that is type *Event_Kill but is nil && this != nil")
908 } else if this == nil {
909 return fmt.Errorf("that is type *Event_Kill but is not nil && this == nil")
910 }
911 if !this.TaskID.Equal(&that1.TaskID) {
912 return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
913 }
914 if !this.KillPolicy.Equal(that1.KillPolicy) {
915 return fmt.Errorf("KillPolicy this(%v) Not Equal that(%v)", this.KillPolicy, that1.KillPolicy)
916 }
917 return nil
918 }
919 func (this *Event_Kill) Equal(that interface{}) bool {
920 if that == nil {
921 if this == nil {
922 return true
923 }
924 return false
925 }
926
927 that1, ok := that.(*Event_Kill)
928 if !ok {
929 that2, ok := that.(Event_Kill)
930 if ok {
931 that1 = &that2
932 } else {
933 return false
934 }
935 }
936 if that1 == nil {
937 if this == nil {
938 return true
939 }
940 return false
941 } else if this == nil {
942 return false
943 }
944 if !this.TaskID.Equal(&that1.TaskID) {
945 return false
946 }
947 if !this.KillPolicy.Equal(that1.KillPolicy) {
948 return false
949 }
950 return true
951 }
952 func (this *Event_Acknowledged) VerboseEqual(that interface{}) error {
953 if that == nil {
954 if this == nil {
955 return nil
956 }
957 return fmt.Errorf("that == nil && this != nil")
958 }
959
960 that1, ok := that.(*Event_Acknowledged)
961 if !ok {
962 that2, ok := that.(Event_Acknowledged)
963 if ok {
964 that1 = &that2
965 } else {
966 return fmt.Errorf("that is not of type *Event_Acknowledged")
967 }
968 }
969 if that1 == nil {
970 if this == nil {
971 return nil
972 }
973 return fmt.Errorf("that is type *Event_Acknowledged but is nil && this != nil")
974 } else if this == nil {
975 return fmt.Errorf("that is type *Event_Acknowledged but is not nil && this == nil")
976 }
977 if !this.TaskID.Equal(&that1.TaskID) {
978 return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
979 }
980 if !bytes.Equal(this.UUID, that1.UUID) {
981 return fmt.Errorf("UUID this(%v) Not Equal that(%v)", this.UUID, that1.UUID)
982 }
983 return nil
984 }
985 func (this *Event_Acknowledged) Equal(that interface{}) bool {
986 if that == nil {
987 if this == nil {
988 return true
989 }
990 return false
991 }
992
993 that1, ok := that.(*Event_Acknowledged)
994 if !ok {
995 that2, ok := that.(Event_Acknowledged)
996 if ok {
997 that1 = &that2
998 } else {
999 return false
1000 }
1001 }
1002 if that1 == nil {
1003 if this == nil {
1004 return true
1005 }
1006 return false
1007 } else if this == nil {
1008 return false
1009 }
1010 if !this.TaskID.Equal(&that1.TaskID) {
1011 return false
1012 }
1013 if !bytes.Equal(this.UUID, that1.UUID) {
1014 return false
1015 }
1016 return true
1017 }
1018 func (this *Event_Message) VerboseEqual(that interface{}) error {
1019 if that == nil {
1020 if this == nil {
1021 return nil
1022 }
1023 return fmt.Errorf("that == nil && this != nil")
1024 }
1025
1026 that1, ok := that.(*Event_Message)
1027 if !ok {
1028 that2, ok := that.(Event_Message)
1029 if ok {
1030 that1 = &that2
1031 } else {
1032 return fmt.Errorf("that is not of type *Event_Message")
1033 }
1034 }
1035 if that1 == nil {
1036 if this == nil {
1037 return nil
1038 }
1039 return fmt.Errorf("that is type *Event_Message but is nil && this != nil")
1040 } else if this == nil {
1041 return fmt.Errorf("that is type *Event_Message but is not nil && this == nil")
1042 }
1043 if !bytes.Equal(this.Data, that1.Data) {
1044 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
1045 }
1046 return nil
1047 }
1048 func (this *Event_Message) Equal(that interface{}) bool {
1049 if that == nil {
1050 if this == nil {
1051 return true
1052 }
1053 return false
1054 }
1055
1056 that1, ok := that.(*Event_Message)
1057 if !ok {
1058 that2, ok := that.(Event_Message)
1059 if ok {
1060 that1 = &that2
1061 } else {
1062 return false
1063 }
1064 }
1065 if that1 == nil {
1066 if this == nil {
1067 return true
1068 }
1069 return false
1070 } else if this == nil {
1071 return false
1072 }
1073 if !bytes.Equal(this.Data, that1.Data) {
1074 return false
1075 }
1076 return true
1077 }
1078 func (this *Event_Error) VerboseEqual(that interface{}) error {
1079 if that == nil {
1080 if this == nil {
1081 return nil
1082 }
1083 return fmt.Errorf("that == nil && this != nil")
1084 }
1085
1086 that1, ok := that.(*Event_Error)
1087 if !ok {
1088 that2, ok := that.(Event_Error)
1089 if ok {
1090 that1 = &that2
1091 } else {
1092 return fmt.Errorf("that is not of type *Event_Error")
1093 }
1094 }
1095 if that1 == nil {
1096 if this == nil {
1097 return nil
1098 }
1099 return fmt.Errorf("that is type *Event_Error but is nil && this != nil")
1100 } else if this == nil {
1101 return fmt.Errorf("that is type *Event_Error but is not nil && this == nil")
1102 }
1103 if this.Message != that1.Message {
1104 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1105 }
1106 return nil
1107 }
1108 func (this *Event_Error) Equal(that interface{}) bool {
1109 if that == nil {
1110 if this == nil {
1111 return true
1112 }
1113 return false
1114 }
1115
1116 that1, ok := that.(*Event_Error)
1117 if !ok {
1118 that2, ok := that.(Event_Error)
1119 if ok {
1120 that1 = &that2
1121 } else {
1122 return false
1123 }
1124 }
1125 if that1 == nil {
1126 if this == nil {
1127 return true
1128 }
1129 return false
1130 } else if this == nil {
1131 return false
1132 }
1133 if this.Message != that1.Message {
1134 return false
1135 }
1136 return true
1137 }
1138 func (this *Call) VerboseEqual(that interface{}) error {
1139 if that == nil {
1140 if this == nil {
1141 return nil
1142 }
1143 return fmt.Errorf("that == nil && this != nil")
1144 }
1145
1146 that1, ok := that.(*Call)
1147 if !ok {
1148 that2, ok := that.(Call)
1149 if ok {
1150 that1 = &that2
1151 } else {
1152 return fmt.Errorf("that is not of type *Call")
1153 }
1154 }
1155 if that1 == nil {
1156 if this == nil {
1157 return nil
1158 }
1159 return fmt.Errorf("that is type *Call but is nil && this != nil")
1160 } else if this == nil {
1161 return fmt.Errorf("that is type *Call but is not nil && this == nil")
1162 }
1163 if !this.ExecutorID.Equal(&that1.ExecutorID) {
1164 return fmt.Errorf("ExecutorID this(%v) Not Equal that(%v)", this.ExecutorID, that1.ExecutorID)
1165 }
1166 if !this.FrameworkID.Equal(&that1.FrameworkID) {
1167 return fmt.Errorf("FrameworkID this(%v) Not Equal that(%v)", this.FrameworkID, that1.FrameworkID)
1168 }
1169 if this.Type != that1.Type {
1170 return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
1171 }
1172 if !this.Subscribe.Equal(that1.Subscribe) {
1173 return fmt.Errorf("Subscribe this(%v) Not Equal that(%v)", this.Subscribe, that1.Subscribe)
1174 }
1175 if !this.Update.Equal(that1.Update) {
1176 return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update)
1177 }
1178 if !this.Message.Equal(that1.Message) {
1179 return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
1180 }
1181 return nil
1182 }
1183 func (this *Call) Equal(that interface{}) bool {
1184 if that == nil {
1185 if this == nil {
1186 return true
1187 }
1188 return false
1189 }
1190
1191 that1, ok := that.(*Call)
1192 if !ok {
1193 that2, ok := that.(Call)
1194 if ok {
1195 that1 = &that2
1196 } else {
1197 return false
1198 }
1199 }
1200 if that1 == nil {
1201 if this == nil {
1202 return true
1203 }
1204 return false
1205 } else if this == nil {
1206 return false
1207 }
1208 if !this.ExecutorID.Equal(&that1.ExecutorID) {
1209 return false
1210 }
1211 if !this.FrameworkID.Equal(&that1.FrameworkID) {
1212 return false
1213 }
1214 if this.Type != that1.Type {
1215 return false
1216 }
1217 if !this.Subscribe.Equal(that1.Subscribe) {
1218 return false
1219 }
1220 if !this.Update.Equal(that1.Update) {
1221 return false
1222 }
1223 if !this.Message.Equal(that1.Message) {
1224 return false
1225 }
1226 return true
1227 }
1228 func (this *Call_Subscribe) VerboseEqual(that interface{}) error {
1229 if that == nil {
1230 if this == nil {
1231 return nil
1232 }
1233 return fmt.Errorf("that == nil && this != nil")
1234 }
1235
1236 that1, ok := that.(*Call_Subscribe)
1237 if !ok {
1238 that2, ok := that.(Call_Subscribe)
1239 if ok {
1240 that1 = &that2
1241 } else {
1242 return fmt.Errorf("that is not of type *Call_Subscribe")
1243 }
1244 }
1245 if that1 == nil {
1246 if this == nil {
1247 return nil
1248 }
1249 return fmt.Errorf("that is type *Call_Subscribe but is nil && this != nil")
1250 } else if this == nil {
1251 return fmt.Errorf("that is type *Call_Subscribe but is not nil && this == nil")
1252 }
1253 if len(this.UnacknowledgedTasks) != len(that1.UnacknowledgedTasks) {
1254 return fmt.Errorf("UnacknowledgedTasks this(%v) Not Equal that(%v)", len(this.UnacknowledgedTasks), len(that1.UnacknowledgedTasks))
1255 }
1256 for i := range this.UnacknowledgedTasks {
1257 if !this.UnacknowledgedTasks[i].Equal(&that1.UnacknowledgedTasks[i]) {
1258 return fmt.Errorf("UnacknowledgedTasks this[%v](%v) Not Equal that[%v](%v)", i, this.UnacknowledgedTasks[i], i, that1.UnacknowledgedTasks[i])
1259 }
1260 }
1261 if len(this.UnacknowledgedUpdates) != len(that1.UnacknowledgedUpdates) {
1262 return fmt.Errorf("UnacknowledgedUpdates this(%v) Not Equal that(%v)", len(this.UnacknowledgedUpdates), len(that1.UnacknowledgedUpdates))
1263 }
1264 for i := range this.UnacknowledgedUpdates {
1265 if !this.UnacknowledgedUpdates[i].Equal(&that1.UnacknowledgedUpdates[i]) {
1266 return fmt.Errorf("UnacknowledgedUpdates this[%v](%v) Not Equal that[%v](%v)", i, this.UnacknowledgedUpdates[i], i, that1.UnacknowledgedUpdates[i])
1267 }
1268 }
1269 return nil
1270 }
1271 func (this *Call_Subscribe) Equal(that interface{}) bool {
1272 if that == nil {
1273 if this == nil {
1274 return true
1275 }
1276 return false
1277 }
1278
1279 that1, ok := that.(*Call_Subscribe)
1280 if !ok {
1281 that2, ok := that.(Call_Subscribe)
1282 if ok {
1283 that1 = &that2
1284 } else {
1285 return false
1286 }
1287 }
1288 if that1 == nil {
1289 if this == nil {
1290 return true
1291 }
1292 return false
1293 } else if this == nil {
1294 return false
1295 }
1296 if len(this.UnacknowledgedTasks) != len(that1.UnacknowledgedTasks) {
1297 return false
1298 }
1299 for i := range this.UnacknowledgedTasks {
1300 if !this.UnacknowledgedTasks[i].Equal(&that1.UnacknowledgedTasks[i]) {
1301 return false
1302 }
1303 }
1304 if len(this.UnacknowledgedUpdates) != len(that1.UnacknowledgedUpdates) {
1305 return false
1306 }
1307 for i := range this.UnacknowledgedUpdates {
1308 if !this.UnacknowledgedUpdates[i].Equal(&that1.UnacknowledgedUpdates[i]) {
1309 return false
1310 }
1311 }
1312 return true
1313 }
1314 func (this *Call_Update) VerboseEqual(that interface{}) error {
1315 if that == nil {
1316 if this == nil {
1317 return nil
1318 }
1319 return fmt.Errorf("that == nil && this != nil")
1320 }
1321
1322 that1, ok := that.(*Call_Update)
1323 if !ok {
1324 that2, ok := that.(Call_Update)
1325 if ok {
1326 that1 = &that2
1327 } else {
1328 return fmt.Errorf("that is not of type *Call_Update")
1329 }
1330 }
1331 if that1 == nil {
1332 if this == nil {
1333 return nil
1334 }
1335 return fmt.Errorf("that is type *Call_Update but is nil && this != nil")
1336 } else if this == nil {
1337 return fmt.Errorf("that is type *Call_Update but is not nil && this == nil")
1338 }
1339 if !this.Status.Equal(&that1.Status) {
1340 return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status)
1341 }
1342 return nil
1343 }
1344 func (this *Call_Update) Equal(that interface{}) bool {
1345 if that == nil {
1346 if this == nil {
1347 return true
1348 }
1349 return false
1350 }
1351
1352 that1, ok := that.(*Call_Update)
1353 if !ok {
1354 that2, ok := that.(Call_Update)
1355 if ok {
1356 that1 = &that2
1357 } else {
1358 return false
1359 }
1360 }
1361 if that1 == nil {
1362 if this == nil {
1363 return true
1364 }
1365 return false
1366 } else if this == nil {
1367 return false
1368 }
1369 if !this.Status.Equal(&that1.Status) {
1370 return false
1371 }
1372 return true
1373 }
1374 func (this *Call_Message) VerboseEqual(that interface{}) error {
1375 if that == nil {
1376 if this == nil {
1377 return nil
1378 }
1379 return fmt.Errorf("that == nil && this != nil")
1380 }
1381
1382 that1, ok := that.(*Call_Message)
1383 if !ok {
1384 that2, ok := that.(Call_Message)
1385 if ok {
1386 that1 = &that2
1387 } else {
1388 return fmt.Errorf("that is not of type *Call_Message")
1389 }
1390 }
1391 if that1 == nil {
1392 if this == nil {
1393 return nil
1394 }
1395 return fmt.Errorf("that is type *Call_Message but is nil && this != nil")
1396 } else if this == nil {
1397 return fmt.Errorf("that is type *Call_Message but is not nil && this == nil")
1398 }
1399 if !bytes.Equal(this.Data, that1.Data) {
1400 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
1401 }
1402 return nil
1403 }
1404 func (this *Call_Message) Equal(that interface{}) bool {
1405 if that == nil {
1406 if this == nil {
1407 return true
1408 }
1409 return false
1410 }
1411
1412 that1, ok := that.(*Call_Message)
1413 if !ok {
1414 that2, ok := that.(Call_Message)
1415 if ok {
1416 that1 = &that2
1417 } else {
1418 return false
1419 }
1420 }
1421 if that1 == nil {
1422 if this == nil {
1423 return true
1424 }
1425 return false
1426 } else if this == nil {
1427 return false
1428 }
1429 if !bytes.Equal(this.Data, that1.Data) {
1430 return false
1431 }
1432 return true
1433 }
1434 func (this *Event) GoString() string {
1435 if this == nil {
1436 return "nil"
1437 }
1438 s := make([]string, 0, 12)
1439 s = append(s, "&executor.Event{")
1440 s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
1441 if this.Subscribed != nil {
1442 s = append(s, "Subscribed: "+fmt.Sprintf("%#v", this.Subscribed)+",\n")
1443 }
1444 if this.Acknowledged != nil {
1445 s = append(s, "Acknowledged: "+fmt.Sprintf("%#v", this.Acknowledged)+",\n")
1446 }
1447 if this.Launch != nil {
1448 s = append(s, "Launch: "+fmt.Sprintf("%#v", this.Launch)+",\n")
1449 }
1450 if this.LaunchGroup != nil {
1451 s = append(s, "LaunchGroup: "+fmt.Sprintf("%#v", this.LaunchGroup)+",\n")
1452 }
1453 if this.Kill != nil {
1454 s = append(s, "Kill: "+fmt.Sprintf("%#v", this.Kill)+",\n")
1455 }
1456 if this.Message != nil {
1457 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
1458 }
1459 if this.Error != nil {
1460 s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
1461 }
1462 s = append(s, "}")
1463 return strings.Join(s, "")
1464 }
1465 func (this *Event_Subscribed) GoString() string {
1466 if this == nil {
1467 return "nil"
1468 }
1469 s := make([]string, 0, 8)
1470 s = append(s, "&executor.Event_Subscribed{")
1471 s = append(s, "ExecutorInfo: "+strings.Replace(this.ExecutorInfo.GoString(), `&`, ``, 1)+",\n")
1472 s = append(s, "FrameworkInfo: "+strings.Replace(this.FrameworkInfo.GoString(), `&`, ``, 1)+",\n")
1473 s = append(s, "AgentInfo: "+strings.Replace(this.AgentInfo.GoString(), `&`, ``, 1)+",\n")
1474 if this.ContainerID != nil {
1475 s = append(s, "ContainerID: "+fmt.Sprintf("%#v", this.ContainerID)+",\n")
1476 }
1477 s = append(s, "}")
1478 return strings.Join(s, "")
1479 }
1480 func (this *Event_Launch) GoString() string {
1481 if this == nil {
1482 return "nil"
1483 }
1484 s := make([]string, 0, 5)
1485 s = append(s, "&executor.Event_Launch{")
1486 s = append(s, "Task: "+strings.Replace(this.Task.GoString(), `&`, ``, 1)+",\n")
1487 s = append(s, "}")
1488 return strings.Join(s, "")
1489 }
1490 func (this *Event_LaunchGroup) GoString() string {
1491 if this == nil {
1492 return "nil"
1493 }
1494 s := make([]string, 0, 5)
1495 s = append(s, "&executor.Event_LaunchGroup{")
1496 s = append(s, "TaskGroup: "+strings.Replace(this.TaskGroup.GoString(), `&`, ``, 1)+",\n")
1497 s = append(s, "}")
1498 return strings.Join(s, "")
1499 }
1500 func (this *Event_Kill) GoString() string {
1501 if this == nil {
1502 return "nil"
1503 }
1504 s := make([]string, 0, 6)
1505 s = append(s, "&executor.Event_Kill{")
1506 s = append(s, "TaskID: "+strings.Replace(this.TaskID.GoString(), `&`, ``, 1)+",\n")
1507 if this.KillPolicy != nil {
1508 s = append(s, "KillPolicy: "+fmt.Sprintf("%#v", this.KillPolicy)+",\n")
1509 }
1510 s = append(s, "}")
1511 return strings.Join(s, "")
1512 }
1513 func (this *Event_Acknowledged) GoString() string {
1514 if this == nil {
1515 return "nil"
1516 }
1517 s := make([]string, 0, 6)
1518 s = append(s, "&executor.Event_Acknowledged{")
1519 s = append(s, "TaskID: "+strings.Replace(this.TaskID.GoString(), `&`, ``, 1)+",\n")
1520 if this.UUID != nil {
1521 s = append(s, "UUID: "+valueToGoStringExecutor(this.UUID, "byte")+",\n")
1522 }
1523 s = append(s, "}")
1524 return strings.Join(s, "")
1525 }
1526 func (this *Event_Message) GoString() string {
1527 if this == nil {
1528 return "nil"
1529 }
1530 s := make([]string, 0, 5)
1531 s = append(s, "&executor.Event_Message{")
1532 if this.Data != nil {
1533 s = append(s, "Data: "+valueToGoStringExecutor(this.Data, "byte")+",\n")
1534 }
1535 s = append(s, "}")
1536 return strings.Join(s, "")
1537 }
1538 func (this *Event_Error) GoString() string {
1539 if this == nil {
1540 return "nil"
1541 }
1542 s := make([]string, 0, 5)
1543 s = append(s, "&executor.Event_Error{")
1544 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
1545 s = append(s, "}")
1546 return strings.Join(s, "")
1547 }
1548 func (this *Call) GoString() string {
1549 if this == nil {
1550 return "nil"
1551 }
1552 s := make([]string, 0, 10)
1553 s = append(s, "&executor.Call{")
1554 s = append(s, "ExecutorID: "+strings.Replace(this.ExecutorID.GoString(), `&`, ``, 1)+",\n")
1555 s = append(s, "FrameworkID: "+strings.Replace(this.FrameworkID.GoString(), `&`, ``, 1)+",\n")
1556 s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
1557 if this.Subscribe != nil {
1558 s = append(s, "Subscribe: "+fmt.Sprintf("%#v", this.Subscribe)+",\n")
1559 }
1560 if this.Update != nil {
1561 s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n")
1562 }
1563 if this.Message != nil {
1564 s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
1565 }
1566 s = append(s, "}")
1567 return strings.Join(s, "")
1568 }
1569 func (this *Call_Subscribe) GoString() string {
1570 if this == nil {
1571 return "nil"
1572 }
1573 s := make([]string, 0, 6)
1574 s = append(s, "&executor.Call_Subscribe{")
1575 if this.UnacknowledgedTasks != nil {
1576 s = append(s, "UnacknowledgedTasks: "+fmt.Sprintf("%#v", this.UnacknowledgedTasks)+",\n")
1577 }
1578 if this.UnacknowledgedUpdates != nil {
1579 s = append(s, "UnacknowledgedUpdates: "+fmt.Sprintf("%#v", this.UnacknowledgedUpdates)+",\n")
1580 }
1581 s = append(s, "}")
1582 return strings.Join(s, "")
1583 }
1584 func (this *Call_Update) GoString() string {
1585 if this == nil {
1586 return "nil"
1587 }
1588 s := make([]string, 0, 5)
1589 s = append(s, "&executor.Call_Update{")
1590 s = append(s, "Status: "+strings.Replace(this.Status.GoString(), `&`, ``, 1)+",\n")
1591 s = append(s, "}")
1592 return strings.Join(s, "")
1593 }
1594 func (this *Call_Message) GoString() string {
1595 if this == nil {
1596 return "nil"
1597 }
1598 s := make([]string, 0, 5)
1599 s = append(s, "&executor.Call_Message{")
1600 if this.Data != nil {
1601 s = append(s, "Data: "+valueToGoStringExecutor(this.Data, "byte")+",\n")
1602 }
1603 s = append(s, "}")
1604 return strings.Join(s, "")
1605 }
1606 func valueToGoStringExecutor(v interface{}, typ string) string {
1607 rv := reflect.ValueOf(v)
1608 if rv.IsNil() {
1609 return "nil"
1610 }
1611 pv := reflect.Indirect(rv).Interface()
1612 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
1613 }
1614 func (m *Event) Marshal() (dAtA []byte, err error) {
1615 size := m.ProtoSize()
1616 dAtA = make([]byte, size)
1617 n, err := m.MarshalTo(dAtA)
1618 if err != nil {
1619 return nil, err
1620 }
1621 return dAtA[:n], nil
1622 }
1623
1624 func (m *Event) MarshalTo(dAtA []byte) (int, error) {
1625 var i int
1626 _ = i
1627 var l int
1628 _ = l
1629 dAtA[i] = 0x8
1630 i++
1631 i = encodeVarintExecutor(dAtA, i, uint64(m.Type))
1632 if m.Subscribed != nil {
1633 dAtA[i] = 0x12
1634 i++
1635 i = encodeVarintExecutor(dAtA, i, uint64(m.Subscribed.ProtoSize()))
1636 n1, err := m.Subscribed.MarshalTo(dAtA[i:])
1637 if err != nil {
1638 return 0, err
1639 }
1640 i += n1
1641 }
1642 if m.Acknowledged != nil {
1643 dAtA[i] = 0x1a
1644 i++
1645 i = encodeVarintExecutor(dAtA, i, uint64(m.Acknowledged.ProtoSize()))
1646 n2, err := m.Acknowledged.MarshalTo(dAtA[i:])
1647 if err != nil {
1648 return 0, err
1649 }
1650 i += n2
1651 }
1652 if m.Launch != nil {
1653 dAtA[i] = 0x22
1654 i++
1655 i = encodeVarintExecutor(dAtA, i, uint64(m.Launch.ProtoSize()))
1656 n3, err := m.Launch.MarshalTo(dAtA[i:])
1657 if err != nil {
1658 return 0, err
1659 }
1660 i += n3
1661 }
1662 if m.Kill != nil {
1663 dAtA[i] = 0x2a
1664 i++
1665 i = encodeVarintExecutor(dAtA, i, uint64(m.Kill.ProtoSize()))
1666 n4, err := m.Kill.MarshalTo(dAtA[i:])
1667 if err != nil {
1668 return 0, err
1669 }
1670 i += n4
1671 }
1672 if m.Message != nil {
1673 dAtA[i] = 0x32
1674 i++
1675 i = encodeVarintExecutor(dAtA, i, uint64(m.Message.ProtoSize()))
1676 n5, err := m.Message.MarshalTo(dAtA[i:])
1677 if err != nil {
1678 return 0, err
1679 }
1680 i += n5
1681 }
1682 if m.Error != nil {
1683 dAtA[i] = 0x3a
1684 i++
1685 i = encodeVarintExecutor(dAtA, i, uint64(m.Error.ProtoSize()))
1686 n6, err := m.Error.MarshalTo(dAtA[i:])
1687 if err != nil {
1688 return 0, err
1689 }
1690 i += n6
1691 }
1692 if m.LaunchGroup != nil {
1693 dAtA[i] = 0x42
1694 i++
1695 i = encodeVarintExecutor(dAtA, i, uint64(m.LaunchGroup.ProtoSize()))
1696 n7, err := m.LaunchGroup.MarshalTo(dAtA[i:])
1697 if err != nil {
1698 return 0, err
1699 }
1700 i += n7
1701 }
1702 return i, nil
1703 }
1704
1705 func (m *Event_Subscribed) Marshal() (dAtA []byte, err error) {
1706 size := m.ProtoSize()
1707 dAtA = make([]byte, size)
1708 n, err := m.MarshalTo(dAtA)
1709 if err != nil {
1710 return nil, err
1711 }
1712 return dAtA[:n], nil
1713 }
1714
1715 func (m *Event_Subscribed) MarshalTo(dAtA []byte) (int, error) {
1716 var i int
1717 _ = i
1718 var l int
1719 _ = l
1720 dAtA[i] = 0xa
1721 i++
1722 i = encodeVarintExecutor(dAtA, i, uint64(m.ExecutorInfo.ProtoSize()))
1723 n8, err := m.ExecutorInfo.MarshalTo(dAtA[i:])
1724 if err != nil {
1725 return 0, err
1726 }
1727 i += n8
1728 dAtA[i] = 0x12
1729 i++
1730 i = encodeVarintExecutor(dAtA, i, uint64(m.FrameworkInfo.ProtoSize()))
1731 n9, err := m.FrameworkInfo.MarshalTo(dAtA[i:])
1732 if err != nil {
1733 return 0, err
1734 }
1735 i += n9
1736 dAtA[i] = 0x1a
1737 i++
1738 i = encodeVarintExecutor(dAtA, i, uint64(m.AgentInfo.ProtoSize()))
1739 n10, err := m.AgentInfo.MarshalTo(dAtA[i:])
1740 if err != nil {
1741 return 0, err
1742 }
1743 i += n10
1744 if m.ContainerID != nil {
1745 dAtA[i] = 0x22
1746 i++
1747 i = encodeVarintExecutor(dAtA, i, uint64(m.ContainerID.ProtoSize()))
1748 n11, err := m.ContainerID.MarshalTo(dAtA[i:])
1749 if err != nil {
1750 return 0, err
1751 }
1752 i += n11
1753 }
1754 return i, nil
1755 }
1756
1757 func (m *Event_Launch) Marshal() (dAtA []byte, err error) {
1758 size := m.ProtoSize()
1759 dAtA = make([]byte, size)
1760 n, err := m.MarshalTo(dAtA)
1761 if err != nil {
1762 return nil, err
1763 }
1764 return dAtA[:n], nil
1765 }
1766
1767 func (m *Event_Launch) MarshalTo(dAtA []byte) (int, error) {
1768 var i int
1769 _ = i
1770 var l int
1771 _ = l
1772 dAtA[i] = 0xa
1773 i++
1774 i = encodeVarintExecutor(dAtA, i, uint64(m.Task.ProtoSize()))
1775 n12, err := m.Task.MarshalTo(dAtA[i:])
1776 if err != nil {
1777 return 0, err
1778 }
1779 i += n12
1780 return i, nil
1781 }
1782
1783 func (m *Event_LaunchGroup) Marshal() (dAtA []byte, err error) {
1784 size := m.ProtoSize()
1785 dAtA = make([]byte, size)
1786 n, err := m.MarshalTo(dAtA)
1787 if err != nil {
1788 return nil, err
1789 }
1790 return dAtA[:n], nil
1791 }
1792
1793 func (m *Event_LaunchGroup) MarshalTo(dAtA []byte) (int, error) {
1794 var i int
1795 _ = i
1796 var l int
1797 _ = l
1798 dAtA[i] = 0xa
1799 i++
1800 i = encodeVarintExecutor(dAtA, i, uint64(m.TaskGroup.ProtoSize()))
1801 n13, err := m.TaskGroup.MarshalTo(dAtA[i:])
1802 if err != nil {
1803 return 0, err
1804 }
1805 i += n13
1806 return i, nil
1807 }
1808
1809 func (m *Event_Kill) Marshal() (dAtA []byte, err error) {
1810 size := m.ProtoSize()
1811 dAtA = make([]byte, size)
1812 n, err := m.MarshalTo(dAtA)
1813 if err != nil {
1814 return nil, err
1815 }
1816 return dAtA[:n], nil
1817 }
1818
1819 func (m *Event_Kill) MarshalTo(dAtA []byte) (int, error) {
1820 var i int
1821 _ = i
1822 var l int
1823 _ = l
1824 dAtA[i] = 0xa
1825 i++
1826 i = encodeVarintExecutor(dAtA, i, uint64(m.TaskID.ProtoSize()))
1827 n14, err := m.TaskID.MarshalTo(dAtA[i:])
1828 if err != nil {
1829 return 0, err
1830 }
1831 i += n14
1832 if m.KillPolicy != nil {
1833 dAtA[i] = 0x12
1834 i++
1835 i = encodeVarintExecutor(dAtA, i, uint64(m.KillPolicy.ProtoSize()))
1836 n15, err := m.KillPolicy.MarshalTo(dAtA[i:])
1837 if err != nil {
1838 return 0, err
1839 }
1840 i += n15
1841 }
1842 return i, nil
1843 }
1844
1845 func (m *Event_Acknowledged) Marshal() (dAtA []byte, err error) {
1846 size := m.ProtoSize()
1847 dAtA = make([]byte, size)
1848 n, err := m.MarshalTo(dAtA)
1849 if err != nil {
1850 return nil, err
1851 }
1852 return dAtA[:n], nil
1853 }
1854
1855 func (m *Event_Acknowledged) MarshalTo(dAtA []byte) (int, error) {
1856 var i int
1857 _ = i
1858 var l int
1859 _ = l
1860 dAtA[i] = 0xa
1861 i++
1862 i = encodeVarintExecutor(dAtA, i, uint64(m.TaskID.ProtoSize()))
1863 n16, err := m.TaskID.MarshalTo(dAtA[i:])
1864 if err != nil {
1865 return 0, err
1866 }
1867 i += n16
1868 if m.UUID == nil {
1869 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
1870 } else {
1871 dAtA[i] = 0x12
1872 i++
1873 i = encodeVarintExecutor(dAtA, i, uint64(len(m.UUID)))
1874 i += copy(dAtA[i:], m.UUID)
1875 }
1876 return i, nil
1877 }
1878
1879 func (m *Event_Message) Marshal() (dAtA []byte, err error) {
1880 size := m.ProtoSize()
1881 dAtA = make([]byte, size)
1882 n, err := m.MarshalTo(dAtA)
1883 if err != nil {
1884 return nil, err
1885 }
1886 return dAtA[:n], nil
1887 }
1888
1889 func (m *Event_Message) MarshalTo(dAtA []byte) (int, error) {
1890 var i int
1891 _ = i
1892 var l int
1893 _ = l
1894 if m.Data == nil {
1895 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
1896 } else {
1897 dAtA[i] = 0xa
1898 i++
1899 i = encodeVarintExecutor(dAtA, i, uint64(len(m.Data)))
1900 i += copy(dAtA[i:], m.Data)
1901 }
1902 return i, nil
1903 }
1904
1905 func (m *Event_Error) Marshal() (dAtA []byte, err error) {
1906 size := m.ProtoSize()
1907 dAtA = make([]byte, size)
1908 n, err := m.MarshalTo(dAtA)
1909 if err != nil {
1910 return nil, err
1911 }
1912 return dAtA[:n], nil
1913 }
1914
1915 func (m *Event_Error) MarshalTo(dAtA []byte) (int, error) {
1916 var i int
1917 _ = i
1918 var l int
1919 _ = l
1920 dAtA[i] = 0xa
1921 i++
1922 i = encodeVarintExecutor(dAtA, i, uint64(len(m.Message)))
1923 i += copy(dAtA[i:], m.Message)
1924 return i, nil
1925 }
1926
1927 func (m *Call) Marshal() (dAtA []byte, err error) {
1928 size := m.ProtoSize()
1929 dAtA = make([]byte, size)
1930 n, err := m.MarshalTo(dAtA)
1931 if err != nil {
1932 return nil, err
1933 }
1934 return dAtA[:n], nil
1935 }
1936
1937 func (m *Call) MarshalTo(dAtA []byte) (int, error) {
1938 var i int
1939 _ = i
1940 var l int
1941 _ = l
1942 dAtA[i] = 0xa
1943 i++
1944 i = encodeVarintExecutor(dAtA, i, uint64(m.ExecutorID.ProtoSize()))
1945 n17, err := m.ExecutorID.MarshalTo(dAtA[i:])
1946 if err != nil {
1947 return 0, err
1948 }
1949 i += n17
1950 dAtA[i] = 0x12
1951 i++
1952 i = encodeVarintExecutor(dAtA, i, uint64(m.FrameworkID.ProtoSize()))
1953 n18, err := m.FrameworkID.MarshalTo(dAtA[i:])
1954 if err != nil {
1955 return 0, err
1956 }
1957 i += n18
1958 dAtA[i] = 0x18
1959 i++
1960 i = encodeVarintExecutor(dAtA, i, uint64(m.Type))
1961 if m.Subscribe != nil {
1962 dAtA[i] = 0x22
1963 i++
1964 i = encodeVarintExecutor(dAtA, i, uint64(m.Subscribe.ProtoSize()))
1965 n19, err := m.Subscribe.MarshalTo(dAtA[i:])
1966 if err != nil {
1967 return 0, err
1968 }
1969 i += n19
1970 }
1971 if m.Update != nil {
1972 dAtA[i] = 0x2a
1973 i++
1974 i = encodeVarintExecutor(dAtA, i, uint64(m.Update.ProtoSize()))
1975 n20, err := m.Update.MarshalTo(dAtA[i:])
1976 if err != nil {
1977 return 0, err
1978 }
1979 i += n20
1980 }
1981 if m.Message != nil {
1982 dAtA[i] = 0x32
1983 i++
1984 i = encodeVarintExecutor(dAtA, i, uint64(m.Message.ProtoSize()))
1985 n21, err := m.Message.MarshalTo(dAtA[i:])
1986 if err != nil {
1987 return 0, err
1988 }
1989 i += n21
1990 }
1991 return i, nil
1992 }
1993
1994 func (m *Call_Subscribe) Marshal() (dAtA []byte, err error) {
1995 size := m.ProtoSize()
1996 dAtA = make([]byte, size)
1997 n, err := m.MarshalTo(dAtA)
1998 if err != nil {
1999 return nil, err
2000 }
2001 return dAtA[:n], nil
2002 }
2003
2004 func (m *Call_Subscribe) MarshalTo(dAtA []byte) (int, error) {
2005 var i int
2006 _ = i
2007 var l int
2008 _ = l
2009 if len(m.UnacknowledgedTasks) > 0 {
2010 for _, msg := range m.UnacknowledgedTasks {
2011 dAtA[i] = 0xa
2012 i++
2013 i = encodeVarintExecutor(dAtA, i, uint64(msg.ProtoSize()))
2014 n, err := msg.MarshalTo(dAtA[i:])
2015 if err != nil {
2016 return 0, err
2017 }
2018 i += n
2019 }
2020 }
2021 if len(m.UnacknowledgedUpdates) > 0 {
2022 for _, msg := range m.UnacknowledgedUpdates {
2023 dAtA[i] = 0x12
2024 i++
2025 i = encodeVarintExecutor(dAtA, i, uint64(msg.ProtoSize()))
2026 n, err := msg.MarshalTo(dAtA[i:])
2027 if err != nil {
2028 return 0, err
2029 }
2030 i += n
2031 }
2032 }
2033 return i, nil
2034 }
2035
2036 func (m *Call_Update) Marshal() (dAtA []byte, err error) {
2037 size := m.ProtoSize()
2038 dAtA = make([]byte, size)
2039 n, err := m.MarshalTo(dAtA)
2040 if err != nil {
2041 return nil, err
2042 }
2043 return dAtA[:n], nil
2044 }
2045
2046 func (m *Call_Update) MarshalTo(dAtA []byte) (int, error) {
2047 var i int
2048 _ = i
2049 var l int
2050 _ = l
2051 dAtA[i] = 0xa
2052 i++
2053 i = encodeVarintExecutor(dAtA, i, uint64(m.Status.ProtoSize()))
2054 n22, err := m.Status.MarshalTo(dAtA[i:])
2055 if err != nil {
2056 return 0, err
2057 }
2058 i += n22
2059 return i, nil
2060 }
2061
2062 func (m *Call_Message) Marshal() (dAtA []byte, err error) {
2063 size := m.ProtoSize()
2064 dAtA = make([]byte, size)
2065 n, err := m.MarshalTo(dAtA)
2066 if err != nil {
2067 return nil, err
2068 }
2069 return dAtA[:n], nil
2070 }
2071
2072 func (m *Call_Message) MarshalTo(dAtA []byte) (int, error) {
2073 var i int
2074 _ = i
2075 var l int
2076 _ = l
2077 if m.Data == nil {
2078 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
2079 } else {
2080 dAtA[i] = 0x12
2081 i++
2082 i = encodeVarintExecutor(dAtA, i, uint64(len(m.Data)))
2083 i += copy(dAtA[i:], m.Data)
2084 }
2085 return i, nil
2086 }
2087
2088 func encodeFixed64Executor(dAtA []byte, offset int, v uint64) int {
2089 dAtA[offset] = uint8(v)
2090 dAtA[offset+1] = uint8(v >> 8)
2091 dAtA[offset+2] = uint8(v >> 16)
2092 dAtA[offset+3] = uint8(v >> 24)
2093 dAtA[offset+4] = uint8(v >> 32)
2094 dAtA[offset+5] = uint8(v >> 40)
2095 dAtA[offset+6] = uint8(v >> 48)
2096 dAtA[offset+7] = uint8(v >> 56)
2097 return offset + 8
2098 }
2099 func encodeFixed32Executor(dAtA []byte, offset int, v uint32) int {
2100 dAtA[offset] = uint8(v)
2101 dAtA[offset+1] = uint8(v >> 8)
2102 dAtA[offset+2] = uint8(v >> 16)
2103 dAtA[offset+3] = uint8(v >> 24)
2104 return offset + 4
2105 }
2106 func encodeVarintExecutor(dAtA []byte, offset int, v uint64) int {
2107 for v >= 1<<7 {
2108 dAtA[offset] = uint8(v&0x7f | 0x80)
2109 v >>= 7
2110 offset++
2111 }
2112 dAtA[offset] = uint8(v)
2113 return offset + 1
2114 }
2115 func NewPopulatedEvent(r randyExecutor, easy bool) *Event {
2116 this := &Event{}
2117 this.Type = Event_Type([]int32{0, 1, 2, 8, 3, 4, 5, 6, 7}[r.Intn(9)])
2118 if r.Intn(10) == 0 {
2119 this.Subscribed = NewPopulatedEvent_Subscribed(r, easy)
2120 }
2121 if r.Intn(10) != 0 {
2122 this.Acknowledged = NewPopulatedEvent_Acknowledged(r, easy)
2123 }
2124 if r.Intn(10) != 0 {
2125 this.Launch = NewPopulatedEvent_Launch(r, easy)
2126 }
2127 if r.Intn(10) != 0 {
2128 this.Kill = NewPopulatedEvent_Kill(r, easy)
2129 }
2130 if r.Intn(10) != 0 {
2131 this.Message = NewPopulatedEvent_Message(r, easy)
2132 }
2133 if r.Intn(10) != 0 {
2134 this.Error = NewPopulatedEvent_Error(r, easy)
2135 }
2136 if r.Intn(10) != 0 {
2137 this.LaunchGroup = NewPopulatedEvent_LaunchGroup(r, easy)
2138 }
2139 if !easy && r.Intn(10) != 0 {
2140 }
2141 return this
2142 }
2143
2144 func NewPopulatedEvent_Subscribed(r randyExecutor, easy bool) *Event_Subscribed {
2145 this := &Event_Subscribed{}
2146 v1 := mesos.NewPopulatedExecutorInfo(r, easy)
2147 this.ExecutorInfo = *v1
2148 v2 := mesos.NewPopulatedFrameworkInfo(r, easy)
2149 this.FrameworkInfo = *v2
2150 v3 := mesos.NewPopulatedAgentInfo(r, easy)
2151 this.AgentInfo = *v3
2152 if r.Intn(10) == 0 {
2153 this.ContainerID = mesos.NewPopulatedContainerID(r, easy)
2154 }
2155 if !easy && r.Intn(10) != 0 {
2156 }
2157 return this
2158 }
2159
2160 func NewPopulatedEvent_Launch(r randyExecutor, easy bool) *Event_Launch {
2161 this := &Event_Launch{}
2162 v4 := mesos.NewPopulatedTaskInfo(r, easy)
2163 this.Task = *v4
2164 if !easy && r.Intn(10) != 0 {
2165 }
2166 return this
2167 }
2168
2169 func NewPopulatedEvent_LaunchGroup(r randyExecutor, easy bool) *Event_LaunchGroup {
2170 this := &Event_LaunchGroup{}
2171 v5 := mesos.NewPopulatedTaskGroupInfo(r, easy)
2172 this.TaskGroup = *v5
2173 if !easy && r.Intn(10) != 0 {
2174 }
2175 return this
2176 }
2177
2178 func NewPopulatedEvent_Kill(r randyExecutor, easy bool) *Event_Kill {
2179 this := &Event_Kill{}
2180 v6 := mesos.NewPopulatedTaskID(r, easy)
2181 this.TaskID = *v6
2182 if r.Intn(10) != 0 {
2183 this.KillPolicy = mesos.NewPopulatedKillPolicy(r, easy)
2184 }
2185 if !easy && r.Intn(10) != 0 {
2186 }
2187 return this
2188 }
2189
2190 func NewPopulatedEvent_Acknowledged(r randyExecutor, easy bool) *Event_Acknowledged {
2191 this := &Event_Acknowledged{}
2192 v7 := mesos.NewPopulatedTaskID(r, easy)
2193 this.TaskID = *v7
2194 v8 := r.Intn(100)
2195 this.UUID = make([]byte, v8)
2196 for i := 0; i < v8; i++ {
2197 this.UUID[i] = byte(r.Intn(256))
2198 }
2199 if !easy && r.Intn(10) != 0 {
2200 }
2201 return this
2202 }
2203
2204 func NewPopulatedEvent_Message(r randyExecutor, easy bool) *Event_Message {
2205 this := &Event_Message{}
2206 v9 := r.Intn(100)
2207 this.Data = make([]byte, v9)
2208 for i := 0; i < v9; i++ {
2209 this.Data[i] = byte(r.Intn(256))
2210 }
2211 if !easy && r.Intn(10) != 0 {
2212 }
2213 return this
2214 }
2215
2216 func NewPopulatedEvent_Error(r randyExecutor, easy bool) *Event_Error {
2217 this := &Event_Error{}
2218 this.Message = string(randStringExecutor(r))
2219 if !easy && r.Intn(10) != 0 {
2220 }
2221 return this
2222 }
2223
2224 func NewPopulatedCall(r randyExecutor, easy bool) *Call {
2225 this := &Call{}
2226 v10 := mesos.NewPopulatedExecutorID(r, easy)
2227 this.ExecutorID = *v10
2228 v11 := mesos.NewPopulatedFrameworkID(r, easy)
2229 this.FrameworkID = *v11
2230 this.Type = Call_Type([]int32{0, 1, 2, 3}[r.Intn(4)])
2231 if r.Intn(10) == 0 {
2232 this.Subscribe = NewPopulatedCall_Subscribe(r, easy)
2233 }
2234 if r.Intn(10) == 0 {
2235 this.Update = NewPopulatedCall_Update(r, easy)
2236 }
2237 if r.Intn(10) != 0 {
2238 this.Message = NewPopulatedCall_Message(r, easy)
2239 }
2240 if !easy && r.Intn(10) != 0 {
2241 }
2242 return this
2243 }
2244
2245 func NewPopulatedCall_Subscribe(r randyExecutor, easy bool) *Call_Subscribe {
2246 this := &Call_Subscribe{}
2247 if r.Intn(10) != 0 {
2248 v12 := r.Intn(5)
2249 this.UnacknowledgedTasks = make([]mesos.TaskInfo, v12)
2250 for i := 0; i < v12; i++ {
2251 v13 := mesos.NewPopulatedTaskInfo(r, easy)
2252 this.UnacknowledgedTasks[i] = *v13
2253 }
2254 }
2255 if r.Intn(10) == 0 {
2256 v14 := r.Intn(5)
2257 this.UnacknowledgedUpdates = make([]Call_Update, v14)
2258 for i := 0; i < v14; i++ {
2259 v15 := NewPopulatedCall_Update(r, easy)
2260 this.UnacknowledgedUpdates[i] = *v15
2261 }
2262 }
2263 if !easy && r.Intn(10) != 0 {
2264 }
2265 return this
2266 }
2267
2268 func NewPopulatedCall_Update(r randyExecutor, easy bool) *Call_Update {
2269 this := &Call_Update{}
2270 v16 := mesos.NewPopulatedTaskStatus(r, easy)
2271 this.Status = *v16
2272 if !easy && r.Intn(10) != 0 {
2273 }
2274 return this
2275 }
2276
2277 func NewPopulatedCall_Message(r randyExecutor, easy bool) *Call_Message {
2278 this := &Call_Message{}
2279 v17 := r.Intn(100)
2280 this.Data = make([]byte, v17)
2281 for i := 0; i < v17; i++ {
2282 this.Data[i] = byte(r.Intn(256))
2283 }
2284 if !easy && r.Intn(10) != 0 {
2285 }
2286 return this
2287 }
2288
2289 type randyExecutor interface {
2290 Float32() float32
2291 Float64() float64
2292 Int63() int64
2293 Int31() int32
2294 Uint32() uint32
2295 Intn(n int) int
2296 }
2297
2298 func randUTF8RuneExecutor(r randyExecutor) rune {
2299 ru := r.Intn(62)
2300 if ru < 10 {
2301 return rune(ru + 48)
2302 } else if ru < 36 {
2303 return rune(ru + 55)
2304 }
2305 return rune(ru + 61)
2306 }
2307 func randStringExecutor(r randyExecutor) string {
2308 v18 := r.Intn(100)
2309 tmps := make([]rune, v18)
2310 for i := 0; i < v18; i++ {
2311 tmps[i] = randUTF8RuneExecutor(r)
2312 }
2313 return string(tmps)
2314 }
2315 func randUnrecognizedExecutor(r randyExecutor, maxFieldNumber int) (dAtA []byte) {
2316 l := r.Intn(5)
2317 for i := 0; i < l; i++ {
2318 wire := r.Intn(4)
2319 if wire == 3 {
2320 wire = 5
2321 }
2322 fieldNumber := maxFieldNumber + r.Intn(100)
2323 dAtA = randFieldExecutor(dAtA, r, fieldNumber, wire)
2324 }
2325 return dAtA
2326 }
2327 func randFieldExecutor(dAtA []byte, r randyExecutor, fieldNumber int, wire int) []byte {
2328 key := uint32(fieldNumber)<<3 | uint32(wire)
2329 switch wire {
2330 case 0:
2331 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(key))
2332 v19 := r.Int63()
2333 if r.Intn(2) == 0 {
2334 v19 *= -1
2335 }
2336 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(v19))
2337 case 1:
2338 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(key))
2339 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)))
2340 case 2:
2341 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(key))
2342 ll := r.Intn(100)
2343 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(ll))
2344 for j := 0; j < ll; j++ {
2345 dAtA = append(dAtA, byte(r.Intn(256)))
2346 }
2347 default:
2348 dAtA = encodeVarintPopulateExecutor(dAtA, uint64(key))
2349 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
2350 }
2351 return dAtA
2352 }
2353 func encodeVarintPopulateExecutor(dAtA []byte, v uint64) []byte {
2354 for v >= 1<<7 {
2355 dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
2356 v >>= 7
2357 }
2358 dAtA = append(dAtA, uint8(v))
2359 return dAtA
2360 }
2361 func (m *Event) ProtoSize() (n int) {
2362 var l int
2363 _ = l
2364 n += 1 + sovExecutor(uint64(m.Type))
2365 if m.Subscribed != nil {
2366 l = m.Subscribed.ProtoSize()
2367 n += 1 + l + sovExecutor(uint64(l))
2368 }
2369 if m.Acknowledged != nil {
2370 l = m.Acknowledged.ProtoSize()
2371 n += 1 + l + sovExecutor(uint64(l))
2372 }
2373 if m.Launch != nil {
2374 l = m.Launch.ProtoSize()
2375 n += 1 + l + sovExecutor(uint64(l))
2376 }
2377 if m.Kill != nil {
2378 l = m.Kill.ProtoSize()
2379 n += 1 + l + sovExecutor(uint64(l))
2380 }
2381 if m.Message != nil {
2382 l = m.Message.ProtoSize()
2383 n += 1 + l + sovExecutor(uint64(l))
2384 }
2385 if m.Error != nil {
2386 l = m.Error.ProtoSize()
2387 n += 1 + l + sovExecutor(uint64(l))
2388 }
2389 if m.LaunchGroup != nil {
2390 l = m.LaunchGroup.ProtoSize()
2391 n += 1 + l + sovExecutor(uint64(l))
2392 }
2393 return n
2394 }
2395
2396 func (m *Event_Subscribed) ProtoSize() (n int) {
2397 var l int
2398 _ = l
2399 l = m.ExecutorInfo.ProtoSize()
2400 n += 1 + l + sovExecutor(uint64(l))
2401 l = m.FrameworkInfo.ProtoSize()
2402 n += 1 + l + sovExecutor(uint64(l))
2403 l = m.AgentInfo.ProtoSize()
2404 n += 1 + l + sovExecutor(uint64(l))
2405 if m.ContainerID != nil {
2406 l = m.ContainerID.ProtoSize()
2407 n += 1 + l + sovExecutor(uint64(l))
2408 }
2409 return n
2410 }
2411
2412 func (m *Event_Launch) ProtoSize() (n int) {
2413 var l int
2414 _ = l
2415 l = m.Task.ProtoSize()
2416 n += 1 + l + sovExecutor(uint64(l))
2417 return n
2418 }
2419
2420 func (m *Event_LaunchGroup) ProtoSize() (n int) {
2421 var l int
2422 _ = l
2423 l = m.TaskGroup.ProtoSize()
2424 n += 1 + l + sovExecutor(uint64(l))
2425 return n
2426 }
2427
2428 func (m *Event_Kill) ProtoSize() (n int) {
2429 var l int
2430 _ = l
2431 l = m.TaskID.ProtoSize()
2432 n += 1 + l + sovExecutor(uint64(l))
2433 if m.KillPolicy != nil {
2434 l = m.KillPolicy.ProtoSize()
2435 n += 1 + l + sovExecutor(uint64(l))
2436 }
2437 return n
2438 }
2439
2440 func (m *Event_Acknowledged) ProtoSize() (n int) {
2441 var l int
2442 _ = l
2443 l = m.TaskID.ProtoSize()
2444 n += 1 + l + sovExecutor(uint64(l))
2445 if m.UUID != nil {
2446 l = len(m.UUID)
2447 n += 1 + l + sovExecutor(uint64(l))
2448 }
2449 return n
2450 }
2451
2452 func (m *Event_Message) ProtoSize() (n int) {
2453 var l int
2454 _ = l
2455 if m.Data != nil {
2456 l = len(m.Data)
2457 n += 1 + l + sovExecutor(uint64(l))
2458 }
2459 return n
2460 }
2461
2462 func (m *Event_Error) ProtoSize() (n int) {
2463 var l int
2464 _ = l
2465 l = len(m.Message)
2466 n += 1 + l + sovExecutor(uint64(l))
2467 return n
2468 }
2469
2470 func (m *Call) ProtoSize() (n int) {
2471 var l int
2472 _ = l
2473 l = m.ExecutorID.ProtoSize()
2474 n += 1 + l + sovExecutor(uint64(l))
2475 l = m.FrameworkID.ProtoSize()
2476 n += 1 + l + sovExecutor(uint64(l))
2477 n += 1 + sovExecutor(uint64(m.Type))
2478 if m.Subscribe != nil {
2479 l = m.Subscribe.ProtoSize()
2480 n += 1 + l + sovExecutor(uint64(l))
2481 }
2482 if m.Update != nil {
2483 l = m.Update.ProtoSize()
2484 n += 1 + l + sovExecutor(uint64(l))
2485 }
2486 if m.Message != nil {
2487 l = m.Message.ProtoSize()
2488 n += 1 + l + sovExecutor(uint64(l))
2489 }
2490 return n
2491 }
2492
2493 func (m *Call_Subscribe) ProtoSize() (n int) {
2494 var l int
2495 _ = l
2496 if len(m.UnacknowledgedTasks) > 0 {
2497 for _, e := range m.UnacknowledgedTasks {
2498 l = e.ProtoSize()
2499 n += 1 + l + sovExecutor(uint64(l))
2500 }
2501 }
2502 if len(m.UnacknowledgedUpdates) > 0 {
2503 for _, e := range m.UnacknowledgedUpdates {
2504 l = e.ProtoSize()
2505 n += 1 + l + sovExecutor(uint64(l))
2506 }
2507 }
2508 return n
2509 }
2510
2511 func (m *Call_Update) ProtoSize() (n int) {
2512 var l int
2513 _ = l
2514 l = m.Status.ProtoSize()
2515 n += 1 + l + sovExecutor(uint64(l))
2516 return n
2517 }
2518
2519 func (m *Call_Message) ProtoSize() (n int) {
2520 var l int
2521 _ = l
2522 if m.Data != nil {
2523 l = len(m.Data)
2524 n += 1 + l + sovExecutor(uint64(l))
2525 }
2526 return n
2527 }
2528
2529 func sovExecutor(x uint64) (n int) {
2530 for {
2531 n++
2532 x >>= 7
2533 if x == 0 {
2534 break
2535 }
2536 }
2537 return n
2538 }
2539 func sozExecutor(x uint64) (n int) {
2540 return sovExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63))))
2541 }
2542 func (this *Event) String() string {
2543 if this == nil {
2544 return "nil"
2545 }
2546 s := strings.Join([]string{`&Event{`,
2547 `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
2548 `Subscribed:` + strings.Replace(fmt.Sprintf("%v", this.Subscribed), "Event_Subscribed", "Event_Subscribed", 1) + `,`,
2549 `Acknowledged:` + strings.Replace(fmt.Sprintf("%v", this.Acknowledged), "Event_Acknowledged", "Event_Acknowledged", 1) + `,`,
2550 `Launch:` + strings.Replace(fmt.Sprintf("%v", this.Launch), "Event_Launch", "Event_Launch", 1) + `,`,
2551 `Kill:` + strings.Replace(fmt.Sprintf("%v", this.Kill), "Event_Kill", "Event_Kill", 1) + `,`,
2552 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Event_Message", "Event_Message", 1) + `,`,
2553 `Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "Event_Error", "Event_Error", 1) + `,`,
2554 `LaunchGroup:` + strings.Replace(fmt.Sprintf("%v", this.LaunchGroup), "Event_LaunchGroup", "Event_LaunchGroup", 1) + `,`,
2555 `}`,
2556 }, "")
2557 return s
2558 }
2559 func (this *Event_Subscribed) String() string {
2560 if this == nil {
2561 return "nil"
2562 }
2563 s := strings.Join([]string{`&Event_Subscribed{`,
2564 `ExecutorInfo:` + strings.Replace(strings.Replace(this.ExecutorInfo.String(), "ExecutorInfo", "mesos.ExecutorInfo", 1), `&`, ``, 1) + `,`,
2565 `FrameworkInfo:` + strings.Replace(strings.Replace(this.FrameworkInfo.String(), "FrameworkInfo", "mesos.FrameworkInfo", 1), `&`, ``, 1) + `,`,
2566 `AgentInfo:` + strings.Replace(strings.Replace(this.AgentInfo.String(), "AgentInfo", "mesos.AgentInfo", 1), `&`, ``, 1) + `,`,
2567 `ContainerID:` + strings.Replace(fmt.Sprintf("%v", this.ContainerID), "ContainerID", "mesos.ContainerID", 1) + `,`,
2568 `}`,
2569 }, "")
2570 return s
2571 }
2572 func (this *Event_Launch) String() string {
2573 if this == nil {
2574 return "nil"
2575 }
2576 s := strings.Join([]string{`&Event_Launch{`,
2577 `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskInfo", "mesos.TaskInfo", 1), `&`, ``, 1) + `,`,
2578 `}`,
2579 }, "")
2580 return s
2581 }
2582 func (this *Event_LaunchGroup) String() string {
2583 if this == nil {
2584 return "nil"
2585 }
2586 s := strings.Join([]string{`&Event_LaunchGroup{`,
2587 `TaskGroup:` + strings.Replace(strings.Replace(this.TaskGroup.String(), "TaskGroupInfo", "mesos.TaskGroupInfo", 1), `&`, ``, 1) + `,`,
2588 `}`,
2589 }, "")
2590 return s
2591 }
2592 func (this *Event_Kill) String() string {
2593 if this == nil {
2594 return "nil"
2595 }
2596 s := strings.Join([]string{`&Event_Kill{`,
2597 `TaskID:` + strings.Replace(strings.Replace(this.TaskID.String(), "TaskID", "mesos.TaskID", 1), `&`, ``, 1) + `,`,
2598 `KillPolicy:` + strings.Replace(fmt.Sprintf("%v", this.KillPolicy), "KillPolicy", "mesos.KillPolicy", 1) + `,`,
2599 `}`,
2600 }, "")
2601 return s
2602 }
2603 func (this *Event_Acknowledged) String() string {
2604 if this == nil {
2605 return "nil"
2606 }
2607 s := strings.Join([]string{`&Event_Acknowledged{`,
2608 `TaskID:` + strings.Replace(strings.Replace(this.TaskID.String(), "TaskID", "mesos.TaskID", 1), `&`, ``, 1) + `,`,
2609 `UUID:` + valueToStringExecutor(this.UUID) + `,`,
2610 `}`,
2611 }, "")
2612 return s
2613 }
2614 func (this *Event_Message) String() string {
2615 if this == nil {
2616 return "nil"
2617 }
2618 s := strings.Join([]string{`&Event_Message{`,
2619 `Data:` + valueToStringExecutor(this.Data) + `,`,
2620 `}`,
2621 }, "")
2622 return s
2623 }
2624 func (this *Event_Error) String() string {
2625 if this == nil {
2626 return "nil"
2627 }
2628 s := strings.Join([]string{`&Event_Error{`,
2629 `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
2630 `}`,
2631 }, "")
2632 return s
2633 }
2634 func (this *Call) String() string {
2635 if this == nil {
2636 return "nil"
2637 }
2638 s := strings.Join([]string{`&Call{`,
2639 `ExecutorID:` + strings.Replace(strings.Replace(this.ExecutorID.String(), "ExecutorID", "mesos.ExecutorID", 1), `&`, ``, 1) + `,`,
2640 `FrameworkID:` + strings.Replace(strings.Replace(this.FrameworkID.String(), "FrameworkID", "mesos.FrameworkID", 1), `&`, ``, 1) + `,`,
2641 `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
2642 `Subscribe:` + strings.Replace(fmt.Sprintf("%v", this.Subscribe), "Call_Subscribe", "Call_Subscribe", 1) + `,`,
2643 `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "Call_Update", "Call_Update", 1) + `,`,
2644 `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Call_Message", "Call_Message", 1) + `,`,
2645 `}`,
2646 }, "")
2647 return s
2648 }
2649 func (this *Call_Subscribe) String() string {
2650 if this == nil {
2651 return "nil"
2652 }
2653 s := strings.Join([]string{`&Call_Subscribe{`,
2654 `UnacknowledgedTasks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UnacknowledgedTasks), "TaskInfo", "mesos.TaskInfo", 1), `&`, ``, 1) + `,`,
2655 `UnacknowledgedUpdates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UnacknowledgedUpdates), "Call_Update", "Call_Update", 1), `&`, ``, 1) + `,`,
2656 `}`,
2657 }, "")
2658 return s
2659 }
2660 func (this *Call_Update) String() string {
2661 if this == nil {
2662 return "nil"
2663 }
2664 s := strings.Join([]string{`&Call_Update{`,
2665 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TaskStatus", "mesos.TaskStatus", 1), `&`, ``, 1) + `,`,
2666 `}`,
2667 }, "")
2668 return s
2669 }
2670 func (this *Call_Message) String() string {
2671 if this == nil {
2672 return "nil"
2673 }
2674 s := strings.Join([]string{`&Call_Message{`,
2675 `Data:` + valueToStringExecutor(this.Data) + `,`,
2676 `}`,
2677 }, "")
2678 return s
2679 }
2680 func valueToStringExecutor(v interface{}) string {
2681 rv := reflect.ValueOf(v)
2682 if rv.IsNil() {
2683 return "nil"
2684 }
2685 pv := reflect.Indirect(rv).Interface()
2686 return fmt.Sprintf("*%v", pv)
2687 }
2688 func (m *Event) Unmarshal(dAtA []byte) error {
2689 l := len(dAtA)
2690 iNdEx := 0
2691 for iNdEx < l {
2692 preIndex := iNdEx
2693 var wire uint64
2694 for shift := uint(0); ; shift += 7 {
2695 if shift >= 64 {
2696 return ErrIntOverflowExecutor
2697 }
2698 if iNdEx >= l {
2699 return io.ErrUnexpectedEOF
2700 }
2701 b := dAtA[iNdEx]
2702 iNdEx++
2703 wire |= (uint64(b) & 0x7F) << shift
2704 if b < 0x80 {
2705 break
2706 }
2707 }
2708 fieldNum := int32(wire >> 3)
2709 wireType := int(wire & 0x7)
2710 if wireType == 4 {
2711 return fmt.Errorf("proto: Event: wiretype end group for non-group")
2712 }
2713 if fieldNum <= 0 {
2714 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
2715 }
2716 switch fieldNum {
2717 case 1:
2718 if wireType != 0 {
2719 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
2720 }
2721 m.Type = 0
2722 for shift := uint(0); ; shift += 7 {
2723 if shift >= 64 {
2724 return ErrIntOverflowExecutor
2725 }
2726 if iNdEx >= l {
2727 return io.ErrUnexpectedEOF
2728 }
2729 b := dAtA[iNdEx]
2730 iNdEx++
2731 m.Type |= (Event_Type(b) & 0x7F) << shift
2732 if b < 0x80 {
2733 break
2734 }
2735 }
2736 case 2:
2737 if wireType != 2 {
2738 return fmt.Errorf("proto: wrong wireType = %d for field Subscribed", wireType)
2739 }
2740 var msglen int
2741 for shift := uint(0); ; shift += 7 {
2742 if shift >= 64 {
2743 return ErrIntOverflowExecutor
2744 }
2745 if iNdEx >= l {
2746 return io.ErrUnexpectedEOF
2747 }
2748 b := dAtA[iNdEx]
2749 iNdEx++
2750 msglen |= (int(b) & 0x7F) << shift
2751 if b < 0x80 {
2752 break
2753 }
2754 }
2755 if msglen < 0 {
2756 return ErrInvalidLengthExecutor
2757 }
2758 postIndex := iNdEx + msglen
2759 if postIndex > l {
2760 return io.ErrUnexpectedEOF
2761 }
2762 if m.Subscribed == nil {
2763 m.Subscribed = &Event_Subscribed{}
2764 }
2765 if err := m.Subscribed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2766 return err
2767 }
2768 iNdEx = postIndex
2769 case 3:
2770 if wireType != 2 {
2771 return fmt.Errorf("proto: wrong wireType = %d for field Acknowledged", wireType)
2772 }
2773 var msglen int
2774 for shift := uint(0); ; shift += 7 {
2775 if shift >= 64 {
2776 return ErrIntOverflowExecutor
2777 }
2778 if iNdEx >= l {
2779 return io.ErrUnexpectedEOF
2780 }
2781 b := dAtA[iNdEx]
2782 iNdEx++
2783 msglen |= (int(b) & 0x7F) << shift
2784 if b < 0x80 {
2785 break
2786 }
2787 }
2788 if msglen < 0 {
2789 return ErrInvalidLengthExecutor
2790 }
2791 postIndex := iNdEx + msglen
2792 if postIndex > l {
2793 return io.ErrUnexpectedEOF
2794 }
2795 if m.Acknowledged == nil {
2796 m.Acknowledged = &Event_Acknowledged{}
2797 }
2798 if err := m.Acknowledged.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2799 return err
2800 }
2801 iNdEx = postIndex
2802 case 4:
2803 if wireType != 2 {
2804 return fmt.Errorf("proto: wrong wireType = %d for field Launch", wireType)
2805 }
2806 var msglen int
2807 for shift := uint(0); ; shift += 7 {
2808 if shift >= 64 {
2809 return ErrIntOverflowExecutor
2810 }
2811 if iNdEx >= l {
2812 return io.ErrUnexpectedEOF
2813 }
2814 b := dAtA[iNdEx]
2815 iNdEx++
2816 msglen |= (int(b) & 0x7F) << shift
2817 if b < 0x80 {
2818 break
2819 }
2820 }
2821 if msglen < 0 {
2822 return ErrInvalidLengthExecutor
2823 }
2824 postIndex := iNdEx + msglen
2825 if postIndex > l {
2826 return io.ErrUnexpectedEOF
2827 }
2828 if m.Launch == nil {
2829 m.Launch = &Event_Launch{}
2830 }
2831 if err := m.Launch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2832 return err
2833 }
2834 iNdEx = postIndex
2835 case 5:
2836 if wireType != 2 {
2837 return fmt.Errorf("proto: wrong wireType = %d for field Kill", wireType)
2838 }
2839 var msglen int
2840 for shift := uint(0); ; shift += 7 {
2841 if shift >= 64 {
2842 return ErrIntOverflowExecutor
2843 }
2844 if iNdEx >= l {
2845 return io.ErrUnexpectedEOF
2846 }
2847 b := dAtA[iNdEx]
2848 iNdEx++
2849 msglen |= (int(b) & 0x7F) << shift
2850 if b < 0x80 {
2851 break
2852 }
2853 }
2854 if msglen < 0 {
2855 return ErrInvalidLengthExecutor
2856 }
2857 postIndex := iNdEx + msglen
2858 if postIndex > l {
2859 return io.ErrUnexpectedEOF
2860 }
2861 if m.Kill == nil {
2862 m.Kill = &Event_Kill{}
2863 }
2864 if err := m.Kill.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2865 return err
2866 }
2867 iNdEx = postIndex
2868 case 6:
2869 if wireType != 2 {
2870 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
2871 }
2872 var msglen int
2873 for shift := uint(0); ; shift += 7 {
2874 if shift >= 64 {
2875 return ErrIntOverflowExecutor
2876 }
2877 if iNdEx >= l {
2878 return io.ErrUnexpectedEOF
2879 }
2880 b := dAtA[iNdEx]
2881 iNdEx++
2882 msglen |= (int(b) & 0x7F) << shift
2883 if b < 0x80 {
2884 break
2885 }
2886 }
2887 if msglen < 0 {
2888 return ErrInvalidLengthExecutor
2889 }
2890 postIndex := iNdEx + msglen
2891 if postIndex > l {
2892 return io.ErrUnexpectedEOF
2893 }
2894 if m.Message == nil {
2895 m.Message = &Event_Message{}
2896 }
2897 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2898 return err
2899 }
2900 iNdEx = postIndex
2901 case 7:
2902 if wireType != 2 {
2903 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
2904 }
2905 var msglen int
2906 for shift := uint(0); ; shift += 7 {
2907 if shift >= 64 {
2908 return ErrIntOverflowExecutor
2909 }
2910 if iNdEx >= l {
2911 return io.ErrUnexpectedEOF
2912 }
2913 b := dAtA[iNdEx]
2914 iNdEx++
2915 msglen |= (int(b) & 0x7F) << shift
2916 if b < 0x80 {
2917 break
2918 }
2919 }
2920 if msglen < 0 {
2921 return ErrInvalidLengthExecutor
2922 }
2923 postIndex := iNdEx + msglen
2924 if postIndex > l {
2925 return io.ErrUnexpectedEOF
2926 }
2927 if m.Error == nil {
2928 m.Error = &Event_Error{}
2929 }
2930 if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2931 return err
2932 }
2933 iNdEx = postIndex
2934 case 8:
2935 if wireType != 2 {
2936 return fmt.Errorf("proto: wrong wireType = %d for field LaunchGroup", wireType)
2937 }
2938 var msglen int
2939 for shift := uint(0); ; shift += 7 {
2940 if shift >= 64 {
2941 return ErrIntOverflowExecutor
2942 }
2943 if iNdEx >= l {
2944 return io.ErrUnexpectedEOF
2945 }
2946 b := dAtA[iNdEx]
2947 iNdEx++
2948 msglen |= (int(b) & 0x7F) << shift
2949 if b < 0x80 {
2950 break
2951 }
2952 }
2953 if msglen < 0 {
2954 return ErrInvalidLengthExecutor
2955 }
2956 postIndex := iNdEx + msglen
2957 if postIndex > l {
2958 return io.ErrUnexpectedEOF
2959 }
2960 if m.LaunchGroup == nil {
2961 m.LaunchGroup = &Event_LaunchGroup{}
2962 }
2963 if err := m.LaunchGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2964 return err
2965 }
2966 iNdEx = postIndex
2967 default:
2968 iNdEx = preIndex
2969 skippy, err := skipExecutor(dAtA[iNdEx:])
2970 if err != nil {
2971 return err
2972 }
2973 if skippy < 0 {
2974 return ErrInvalidLengthExecutor
2975 }
2976 if (iNdEx + skippy) > l {
2977 return io.ErrUnexpectedEOF
2978 }
2979 iNdEx += skippy
2980 }
2981 }
2982
2983 if iNdEx > l {
2984 return io.ErrUnexpectedEOF
2985 }
2986 return nil
2987 }
2988 func (m *Event_Subscribed) Unmarshal(dAtA []byte) error {
2989 var hasFields [1]uint64
2990 l := len(dAtA)
2991 iNdEx := 0
2992 for iNdEx < l {
2993 preIndex := iNdEx
2994 var wire uint64
2995 for shift := uint(0); ; shift += 7 {
2996 if shift >= 64 {
2997 return ErrIntOverflowExecutor
2998 }
2999 if iNdEx >= l {
3000 return io.ErrUnexpectedEOF
3001 }
3002 b := dAtA[iNdEx]
3003 iNdEx++
3004 wire |= (uint64(b) & 0x7F) << shift
3005 if b < 0x80 {
3006 break
3007 }
3008 }
3009 fieldNum := int32(wire >> 3)
3010 wireType := int(wire & 0x7)
3011 if wireType == 4 {
3012 return fmt.Errorf("proto: Subscribed: wiretype end group for non-group")
3013 }
3014 if fieldNum <= 0 {
3015 return fmt.Errorf("proto: Subscribed: illegal tag %d (wire type %d)", fieldNum, wire)
3016 }
3017 switch fieldNum {
3018 case 1:
3019 if wireType != 2 {
3020 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfo", wireType)
3021 }
3022 var msglen int
3023 for shift := uint(0); ; shift += 7 {
3024 if shift >= 64 {
3025 return ErrIntOverflowExecutor
3026 }
3027 if iNdEx >= l {
3028 return io.ErrUnexpectedEOF
3029 }
3030 b := dAtA[iNdEx]
3031 iNdEx++
3032 msglen |= (int(b) & 0x7F) << shift
3033 if b < 0x80 {
3034 break
3035 }
3036 }
3037 if msglen < 0 {
3038 return ErrInvalidLengthExecutor
3039 }
3040 postIndex := iNdEx + msglen
3041 if postIndex > l {
3042 return io.ErrUnexpectedEOF
3043 }
3044 if err := m.ExecutorInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3045 return err
3046 }
3047 iNdEx = postIndex
3048 hasFields[0] |= uint64(0x00000001)
3049 case 2:
3050 if wireType != 2 {
3051 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType)
3052 }
3053 var msglen int
3054 for shift := uint(0); ; shift += 7 {
3055 if shift >= 64 {
3056 return ErrIntOverflowExecutor
3057 }
3058 if iNdEx >= l {
3059 return io.ErrUnexpectedEOF
3060 }
3061 b := dAtA[iNdEx]
3062 iNdEx++
3063 msglen |= (int(b) & 0x7F) << shift
3064 if b < 0x80 {
3065 break
3066 }
3067 }
3068 if msglen < 0 {
3069 return ErrInvalidLengthExecutor
3070 }
3071 postIndex := iNdEx + msglen
3072 if postIndex > l {
3073 return io.ErrUnexpectedEOF
3074 }
3075 if err := m.FrameworkInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3076 return err
3077 }
3078 iNdEx = postIndex
3079 hasFields[0] |= uint64(0x00000002)
3080 case 3:
3081 if wireType != 2 {
3082 return fmt.Errorf("proto: wrong wireType = %d for field AgentInfo", wireType)
3083 }
3084 var msglen int
3085 for shift := uint(0); ; shift += 7 {
3086 if shift >= 64 {
3087 return ErrIntOverflowExecutor
3088 }
3089 if iNdEx >= l {
3090 return io.ErrUnexpectedEOF
3091 }
3092 b := dAtA[iNdEx]
3093 iNdEx++
3094 msglen |= (int(b) & 0x7F) << shift
3095 if b < 0x80 {
3096 break
3097 }
3098 }
3099 if msglen < 0 {
3100 return ErrInvalidLengthExecutor
3101 }
3102 postIndex := iNdEx + msglen
3103 if postIndex > l {
3104 return io.ErrUnexpectedEOF
3105 }
3106 if err := m.AgentInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3107 return err
3108 }
3109 iNdEx = postIndex
3110 hasFields[0] |= uint64(0x00000004)
3111 case 4:
3112 if wireType != 2 {
3113 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
3114 }
3115 var msglen int
3116 for shift := uint(0); ; shift += 7 {
3117 if shift >= 64 {
3118 return ErrIntOverflowExecutor
3119 }
3120 if iNdEx >= l {
3121 return io.ErrUnexpectedEOF
3122 }
3123 b := dAtA[iNdEx]
3124 iNdEx++
3125 msglen |= (int(b) & 0x7F) << shift
3126 if b < 0x80 {
3127 break
3128 }
3129 }
3130 if msglen < 0 {
3131 return ErrInvalidLengthExecutor
3132 }
3133 postIndex := iNdEx + msglen
3134 if postIndex > l {
3135 return io.ErrUnexpectedEOF
3136 }
3137 if m.ContainerID == nil {
3138 m.ContainerID = &mesos.ContainerID{}
3139 }
3140 if err := m.ContainerID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3141 return err
3142 }
3143 iNdEx = postIndex
3144 default:
3145 iNdEx = preIndex
3146 skippy, err := skipExecutor(dAtA[iNdEx:])
3147 if err != nil {
3148 return err
3149 }
3150 if skippy < 0 {
3151 return ErrInvalidLengthExecutor
3152 }
3153 if (iNdEx + skippy) > l {
3154 return io.ErrUnexpectedEOF
3155 }
3156 iNdEx += skippy
3157 }
3158 }
3159 if hasFields[0]&uint64(0x00000001) == 0 {
3160 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_info")
3161 }
3162 if hasFields[0]&uint64(0x00000002) == 0 {
3163 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info")
3164 }
3165 if hasFields[0]&uint64(0x00000004) == 0 {
3166 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("agent_info")
3167 }
3168
3169 if iNdEx > l {
3170 return io.ErrUnexpectedEOF
3171 }
3172 return nil
3173 }
3174 func (m *Event_Launch) Unmarshal(dAtA []byte) error {
3175 var hasFields [1]uint64
3176 l := len(dAtA)
3177 iNdEx := 0
3178 for iNdEx < l {
3179 preIndex := iNdEx
3180 var wire uint64
3181 for shift := uint(0); ; shift += 7 {
3182 if shift >= 64 {
3183 return ErrIntOverflowExecutor
3184 }
3185 if iNdEx >= l {
3186 return io.ErrUnexpectedEOF
3187 }
3188 b := dAtA[iNdEx]
3189 iNdEx++
3190 wire |= (uint64(b) & 0x7F) << shift
3191 if b < 0x80 {
3192 break
3193 }
3194 }
3195 fieldNum := int32(wire >> 3)
3196 wireType := int(wire & 0x7)
3197 if wireType == 4 {
3198 return fmt.Errorf("proto: Launch: wiretype end group for non-group")
3199 }
3200 if fieldNum <= 0 {
3201 return fmt.Errorf("proto: Launch: illegal tag %d (wire type %d)", fieldNum, wire)
3202 }
3203 switch fieldNum {
3204 case 1:
3205 if wireType != 2 {
3206 return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType)
3207 }
3208 var msglen int
3209 for shift := uint(0); ; shift += 7 {
3210 if shift >= 64 {
3211 return ErrIntOverflowExecutor
3212 }
3213 if iNdEx >= l {
3214 return io.ErrUnexpectedEOF
3215 }
3216 b := dAtA[iNdEx]
3217 iNdEx++
3218 msglen |= (int(b) & 0x7F) << shift
3219 if b < 0x80 {
3220 break
3221 }
3222 }
3223 if msglen < 0 {
3224 return ErrInvalidLengthExecutor
3225 }
3226 postIndex := iNdEx + msglen
3227 if postIndex > l {
3228 return io.ErrUnexpectedEOF
3229 }
3230 if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3231 return err
3232 }
3233 iNdEx = postIndex
3234 hasFields[0] |= uint64(0x00000001)
3235 default:
3236 iNdEx = preIndex
3237 skippy, err := skipExecutor(dAtA[iNdEx:])
3238 if err != nil {
3239 return err
3240 }
3241 if skippy < 0 {
3242 return ErrInvalidLengthExecutor
3243 }
3244 if (iNdEx + skippy) > l {
3245 return io.ErrUnexpectedEOF
3246 }
3247 iNdEx += skippy
3248 }
3249 }
3250 if hasFields[0]&uint64(0x00000001) == 0 {
3251 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task")
3252 }
3253
3254 if iNdEx > l {
3255 return io.ErrUnexpectedEOF
3256 }
3257 return nil
3258 }
3259 func (m *Event_LaunchGroup) Unmarshal(dAtA []byte) error {
3260 var hasFields [1]uint64
3261 l := len(dAtA)
3262 iNdEx := 0
3263 for iNdEx < l {
3264 preIndex := iNdEx
3265 var wire uint64
3266 for shift := uint(0); ; shift += 7 {
3267 if shift >= 64 {
3268 return ErrIntOverflowExecutor
3269 }
3270 if iNdEx >= l {
3271 return io.ErrUnexpectedEOF
3272 }
3273 b := dAtA[iNdEx]
3274 iNdEx++
3275 wire |= (uint64(b) & 0x7F) << shift
3276 if b < 0x80 {
3277 break
3278 }
3279 }
3280 fieldNum := int32(wire >> 3)
3281 wireType := int(wire & 0x7)
3282 if wireType == 4 {
3283 return fmt.Errorf("proto: LaunchGroup: wiretype end group for non-group")
3284 }
3285 if fieldNum <= 0 {
3286 return fmt.Errorf("proto: LaunchGroup: illegal tag %d (wire type %d)", fieldNum, wire)
3287 }
3288 switch fieldNum {
3289 case 1:
3290 if wireType != 2 {
3291 return fmt.Errorf("proto: wrong wireType = %d for field TaskGroup", wireType)
3292 }
3293 var msglen int
3294 for shift := uint(0); ; shift += 7 {
3295 if shift >= 64 {
3296 return ErrIntOverflowExecutor
3297 }
3298 if iNdEx >= l {
3299 return io.ErrUnexpectedEOF
3300 }
3301 b := dAtA[iNdEx]
3302 iNdEx++
3303 msglen |= (int(b) & 0x7F) << shift
3304 if b < 0x80 {
3305 break
3306 }
3307 }
3308 if msglen < 0 {
3309 return ErrInvalidLengthExecutor
3310 }
3311 postIndex := iNdEx + msglen
3312 if postIndex > l {
3313 return io.ErrUnexpectedEOF
3314 }
3315 if err := m.TaskGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3316 return err
3317 }
3318 iNdEx = postIndex
3319 hasFields[0] |= uint64(0x00000001)
3320 default:
3321 iNdEx = preIndex
3322 skippy, err := skipExecutor(dAtA[iNdEx:])
3323 if err != nil {
3324 return err
3325 }
3326 if skippy < 0 {
3327 return ErrInvalidLengthExecutor
3328 }
3329 if (iNdEx + skippy) > l {
3330 return io.ErrUnexpectedEOF
3331 }
3332 iNdEx += skippy
3333 }
3334 }
3335 if hasFields[0]&uint64(0x00000001) == 0 {
3336 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_group")
3337 }
3338
3339 if iNdEx > l {
3340 return io.ErrUnexpectedEOF
3341 }
3342 return nil
3343 }
3344 func (m *Event_Kill) Unmarshal(dAtA []byte) error {
3345 var hasFields [1]uint64
3346 l := len(dAtA)
3347 iNdEx := 0
3348 for iNdEx < l {
3349 preIndex := iNdEx
3350 var wire uint64
3351 for shift := uint(0); ; shift += 7 {
3352 if shift >= 64 {
3353 return ErrIntOverflowExecutor
3354 }
3355 if iNdEx >= l {
3356 return io.ErrUnexpectedEOF
3357 }
3358 b := dAtA[iNdEx]
3359 iNdEx++
3360 wire |= (uint64(b) & 0x7F) << shift
3361 if b < 0x80 {
3362 break
3363 }
3364 }
3365 fieldNum := int32(wire >> 3)
3366 wireType := int(wire & 0x7)
3367 if wireType == 4 {
3368 return fmt.Errorf("proto: Kill: wiretype end group for non-group")
3369 }
3370 if fieldNum <= 0 {
3371 return fmt.Errorf("proto: Kill: illegal tag %d (wire type %d)", fieldNum, wire)
3372 }
3373 switch fieldNum {
3374 case 1:
3375 if wireType != 2 {
3376 return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType)
3377 }
3378 var msglen int
3379 for shift := uint(0); ; shift += 7 {
3380 if shift >= 64 {
3381 return ErrIntOverflowExecutor
3382 }
3383 if iNdEx >= l {
3384 return io.ErrUnexpectedEOF
3385 }
3386 b := dAtA[iNdEx]
3387 iNdEx++
3388 msglen |= (int(b) & 0x7F) << shift
3389 if b < 0x80 {
3390 break
3391 }
3392 }
3393 if msglen < 0 {
3394 return ErrInvalidLengthExecutor
3395 }
3396 postIndex := iNdEx + msglen
3397 if postIndex > l {
3398 return io.ErrUnexpectedEOF
3399 }
3400 if err := m.TaskID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3401 return err
3402 }
3403 iNdEx = postIndex
3404 hasFields[0] |= uint64(0x00000001)
3405 case 2:
3406 if wireType != 2 {
3407 return fmt.Errorf("proto: wrong wireType = %d for field KillPolicy", wireType)
3408 }
3409 var msglen int
3410 for shift := uint(0); ; shift += 7 {
3411 if shift >= 64 {
3412 return ErrIntOverflowExecutor
3413 }
3414 if iNdEx >= l {
3415 return io.ErrUnexpectedEOF
3416 }
3417 b := dAtA[iNdEx]
3418 iNdEx++
3419 msglen |= (int(b) & 0x7F) << shift
3420 if b < 0x80 {
3421 break
3422 }
3423 }
3424 if msglen < 0 {
3425 return ErrInvalidLengthExecutor
3426 }
3427 postIndex := iNdEx + msglen
3428 if postIndex > l {
3429 return io.ErrUnexpectedEOF
3430 }
3431 if m.KillPolicy == nil {
3432 m.KillPolicy = &mesos.KillPolicy{}
3433 }
3434 if err := m.KillPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3435 return err
3436 }
3437 iNdEx = postIndex
3438 default:
3439 iNdEx = preIndex
3440 skippy, err := skipExecutor(dAtA[iNdEx:])
3441 if err != nil {
3442 return err
3443 }
3444 if skippy < 0 {
3445 return ErrInvalidLengthExecutor
3446 }
3447 if (iNdEx + skippy) > l {
3448 return io.ErrUnexpectedEOF
3449 }
3450 iNdEx += skippy
3451 }
3452 }
3453 if hasFields[0]&uint64(0x00000001) == 0 {
3454 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
3455 }
3456
3457 if iNdEx > l {
3458 return io.ErrUnexpectedEOF
3459 }
3460 return nil
3461 }
3462 func (m *Event_Acknowledged) Unmarshal(dAtA []byte) error {
3463 var hasFields [1]uint64
3464 l := len(dAtA)
3465 iNdEx := 0
3466 for iNdEx < l {
3467 preIndex := iNdEx
3468 var wire uint64
3469 for shift := uint(0); ; shift += 7 {
3470 if shift >= 64 {
3471 return ErrIntOverflowExecutor
3472 }
3473 if iNdEx >= l {
3474 return io.ErrUnexpectedEOF
3475 }
3476 b := dAtA[iNdEx]
3477 iNdEx++
3478 wire |= (uint64(b) & 0x7F) << shift
3479 if b < 0x80 {
3480 break
3481 }
3482 }
3483 fieldNum := int32(wire >> 3)
3484 wireType := int(wire & 0x7)
3485 if wireType == 4 {
3486 return fmt.Errorf("proto: Acknowledged: wiretype end group for non-group")
3487 }
3488 if fieldNum <= 0 {
3489 return fmt.Errorf("proto: Acknowledged: illegal tag %d (wire type %d)", fieldNum, wire)
3490 }
3491 switch fieldNum {
3492 case 1:
3493 if wireType != 2 {
3494 return fmt.Errorf("proto: wrong wireType = %d for field TaskID", wireType)
3495 }
3496 var msglen int
3497 for shift := uint(0); ; shift += 7 {
3498 if shift >= 64 {
3499 return ErrIntOverflowExecutor
3500 }
3501 if iNdEx >= l {
3502 return io.ErrUnexpectedEOF
3503 }
3504 b := dAtA[iNdEx]
3505 iNdEx++
3506 msglen |= (int(b) & 0x7F) << shift
3507 if b < 0x80 {
3508 break
3509 }
3510 }
3511 if msglen < 0 {
3512 return ErrInvalidLengthExecutor
3513 }
3514 postIndex := iNdEx + msglen
3515 if postIndex > l {
3516 return io.ErrUnexpectedEOF
3517 }
3518 if err := m.TaskID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3519 return err
3520 }
3521 iNdEx = postIndex
3522 hasFields[0] |= uint64(0x00000001)
3523 case 2:
3524 if wireType != 2 {
3525 return fmt.Errorf("proto: wrong wireType = %d for field UUID", wireType)
3526 }
3527 var byteLen int
3528 for shift := uint(0); ; shift += 7 {
3529 if shift >= 64 {
3530 return ErrIntOverflowExecutor
3531 }
3532 if iNdEx >= l {
3533 return io.ErrUnexpectedEOF
3534 }
3535 b := dAtA[iNdEx]
3536 iNdEx++
3537 byteLen |= (int(b) & 0x7F) << shift
3538 if b < 0x80 {
3539 break
3540 }
3541 }
3542 if byteLen < 0 {
3543 return ErrInvalidLengthExecutor
3544 }
3545 postIndex := iNdEx + byteLen
3546 if postIndex > l {
3547 return io.ErrUnexpectedEOF
3548 }
3549 m.UUID = append(m.UUID[:0], dAtA[iNdEx:postIndex]...)
3550 if m.UUID == nil {
3551 m.UUID = []byte{}
3552 }
3553 iNdEx = postIndex
3554 hasFields[0] |= uint64(0x00000002)
3555 default:
3556 iNdEx = preIndex
3557 skippy, err := skipExecutor(dAtA[iNdEx:])
3558 if err != nil {
3559 return err
3560 }
3561 if skippy < 0 {
3562 return ErrInvalidLengthExecutor
3563 }
3564 if (iNdEx + skippy) > l {
3565 return io.ErrUnexpectedEOF
3566 }
3567 iNdEx += skippy
3568 }
3569 }
3570 if hasFields[0]&uint64(0x00000001) == 0 {
3571 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id")
3572 }
3573 if hasFields[0]&uint64(0x00000002) == 0 {
3574 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid")
3575 }
3576
3577 if iNdEx > l {
3578 return io.ErrUnexpectedEOF
3579 }
3580 return nil
3581 }
3582 func (m *Event_Message) Unmarshal(dAtA []byte) error {
3583 var hasFields [1]uint64
3584 l := len(dAtA)
3585 iNdEx := 0
3586 for iNdEx < l {
3587 preIndex := iNdEx
3588 var wire uint64
3589 for shift := uint(0); ; shift += 7 {
3590 if shift >= 64 {
3591 return ErrIntOverflowExecutor
3592 }
3593 if iNdEx >= l {
3594 return io.ErrUnexpectedEOF
3595 }
3596 b := dAtA[iNdEx]
3597 iNdEx++
3598 wire |= (uint64(b) & 0x7F) << shift
3599 if b < 0x80 {
3600 break
3601 }
3602 }
3603 fieldNum := int32(wire >> 3)
3604 wireType := int(wire & 0x7)
3605 if wireType == 4 {
3606 return fmt.Errorf("proto: Message: wiretype end group for non-group")
3607 }
3608 if fieldNum <= 0 {
3609 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
3610 }
3611 switch fieldNum {
3612 case 1:
3613 if wireType != 2 {
3614 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
3615 }
3616 var byteLen int
3617 for shift := uint(0); ; shift += 7 {
3618 if shift >= 64 {
3619 return ErrIntOverflowExecutor
3620 }
3621 if iNdEx >= l {
3622 return io.ErrUnexpectedEOF
3623 }
3624 b := dAtA[iNdEx]
3625 iNdEx++
3626 byteLen |= (int(b) & 0x7F) << shift
3627 if b < 0x80 {
3628 break
3629 }
3630 }
3631 if byteLen < 0 {
3632 return ErrInvalidLengthExecutor
3633 }
3634 postIndex := iNdEx + byteLen
3635 if postIndex > l {
3636 return io.ErrUnexpectedEOF
3637 }
3638 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
3639 if m.Data == nil {
3640 m.Data = []byte{}
3641 }
3642 iNdEx = postIndex
3643 hasFields[0] |= uint64(0x00000001)
3644 default:
3645 iNdEx = preIndex
3646 skippy, err := skipExecutor(dAtA[iNdEx:])
3647 if err != nil {
3648 return err
3649 }
3650 if skippy < 0 {
3651 return ErrInvalidLengthExecutor
3652 }
3653 if (iNdEx + skippy) > l {
3654 return io.ErrUnexpectedEOF
3655 }
3656 iNdEx += skippy
3657 }
3658 }
3659 if hasFields[0]&uint64(0x00000001) == 0 {
3660 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
3661 }
3662
3663 if iNdEx > l {
3664 return io.ErrUnexpectedEOF
3665 }
3666 return nil
3667 }
3668 func (m *Event_Error) Unmarshal(dAtA []byte) error {
3669 var hasFields [1]uint64
3670 l := len(dAtA)
3671 iNdEx := 0
3672 for iNdEx < l {
3673 preIndex := iNdEx
3674 var wire uint64
3675 for shift := uint(0); ; shift += 7 {
3676 if shift >= 64 {
3677 return ErrIntOverflowExecutor
3678 }
3679 if iNdEx >= l {
3680 return io.ErrUnexpectedEOF
3681 }
3682 b := dAtA[iNdEx]
3683 iNdEx++
3684 wire |= (uint64(b) & 0x7F) << shift
3685 if b < 0x80 {
3686 break
3687 }
3688 }
3689 fieldNum := int32(wire >> 3)
3690 wireType := int(wire & 0x7)
3691 if wireType == 4 {
3692 return fmt.Errorf("proto: Error: wiretype end group for non-group")
3693 }
3694 if fieldNum <= 0 {
3695 return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire)
3696 }
3697 switch fieldNum {
3698 case 1:
3699 if wireType != 2 {
3700 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
3701 }
3702 var stringLen uint64
3703 for shift := uint(0); ; shift += 7 {
3704 if shift >= 64 {
3705 return ErrIntOverflowExecutor
3706 }
3707 if iNdEx >= l {
3708 return io.ErrUnexpectedEOF
3709 }
3710 b := dAtA[iNdEx]
3711 iNdEx++
3712 stringLen |= (uint64(b) & 0x7F) << shift
3713 if b < 0x80 {
3714 break
3715 }
3716 }
3717 intStringLen := int(stringLen)
3718 if intStringLen < 0 {
3719 return ErrInvalidLengthExecutor
3720 }
3721 postIndex := iNdEx + intStringLen
3722 if postIndex > l {
3723 return io.ErrUnexpectedEOF
3724 }
3725 m.Message = string(dAtA[iNdEx:postIndex])
3726 iNdEx = postIndex
3727 hasFields[0] |= uint64(0x00000001)
3728 default:
3729 iNdEx = preIndex
3730 skippy, err := skipExecutor(dAtA[iNdEx:])
3731 if err != nil {
3732 return err
3733 }
3734 if skippy < 0 {
3735 return ErrInvalidLengthExecutor
3736 }
3737 if (iNdEx + skippy) > l {
3738 return io.ErrUnexpectedEOF
3739 }
3740 iNdEx += skippy
3741 }
3742 }
3743 if hasFields[0]&uint64(0x00000001) == 0 {
3744 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message")
3745 }
3746
3747 if iNdEx > l {
3748 return io.ErrUnexpectedEOF
3749 }
3750 return nil
3751 }
3752 func (m *Call) Unmarshal(dAtA []byte) error {
3753 var hasFields [1]uint64
3754 l := len(dAtA)
3755 iNdEx := 0
3756 for iNdEx < l {
3757 preIndex := iNdEx
3758 var wire uint64
3759 for shift := uint(0); ; shift += 7 {
3760 if shift >= 64 {
3761 return ErrIntOverflowExecutor
3762 }
3763 if iNdEx >= l {
3764 return io.ErrUnexpectedEOF
3765 }
3766 b := dAtA[iNdEx]
3767 iNdEx++
3768 wire |= (uint64(b) & 0x7F) << shift
3769 if b < 0x80 {
3770 break
3771 }
3772 }
3773 fieldNum := int32(wire >> 3)
3774 wireType := int(wire & 0x7)
3775 if wireType == 4 {
3776 return fmt.Errorf("proto: Call: wiretype end group for non-group")
3777 }
3778 if fieldNum <= 0 {
3779 return fmt.Errorf("proto: Call: illegal tag %d (wire type %d)", fieldNum, wire)
3780 }
3781 switch fieldNum {
3782 case 1:
3783 if wireType != 2 {
3784 return fmt.Errorf("proto: wrong wireType = %d for field ExecutorID", wireType)
3785 }
3786 var msglen int
3787 for shift := uint(0); ; shift += 7 {
3788 if shift >= 64 {
3789 return ErrIntOverflowExecutor
3790 }
3791 if iNdEx >= l {
3792 return io.ErrUnexpectedEOF
3793 }
3794 b := dAtA[iNdEx]
3795 iNdEx++
3796 msglen |= (int(b) & 0x7F) << shift
3797 if b < 0x80 {
3798 break
3799 }
3800 }
3801 if msglen < 0 {
3802 return ErrInvalidLengthExecutor
3803 }
3804 postIndex := iNdEx + msglen
3805 if postIndex > l {
3806 return io.ErrUnexpectedEOF
3807 }
3808 if err := m.ExecutorID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3809 return err
3810 }
3811 iNdEx = postIndex
3812 hasFields[0] |= uint64(0x00000001)
3813 case 2:
3814 if wireType != 2 {
3815 return fmt.Errorf("proto: wrong wireType = %d for field FrameworkID", wireType)
3816 }
3817 var msglen int
3818 for shift := uint(0); ; shift += 7 {
3819 if shift >= 64 {
3820 return ErrIntOverflowExecutor
3821 }
3822 if iNdEx >= l {
3823 return io.ErrUnexpectedEOF
3824 }
3825 b := dAtA[iNdEx]
3826 iNdEx++
3827 msglen |= (int(b) & 0x7F) << shift
3828 if b < 0x80 {
3829 break
3830 }
3831 }
3832 if msglen < 0 {
3833 return ErrInvalidLengthExecutor
3834 }
3835 postIndex := iNdEx + msglen
3836 if postIndex > l {
3837 return io.ErrUnexpectedEOF
3838 }
3839 if err := m.FrameworkID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3840 return err
3841 }
3842 iNdEx = postIndex
3843 hasFields[0] |= uint64(0x00000002)
3844 case 3:
3845 if wireType != 0 {
3846 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
3847 }
3848 m.Type = 0
3849 for shift := uint(0); ; shift += 7 {
3850 if shift >= 64 {
3851 return ErrIntOverflowExecutor
3852 }
3853 if iNdEx >= l {
3854 return io.ErrUnexpectedEOF
3855 }
3856 b := dAtA[iNdEx]
3857 iNdEx++
3858 m.Type |= (Call_Type(b) & 0x7F) << shift
3859 if b < 0x80 {
3860 break
3861 }
3862 }
3863 case 4:
3864 if wireType != 2 {
3865 return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
3866 }
3867 var msglen int
3868 for shift := uint(0); ; shift += 7 {
3869 if shift >= 64 {
3870 return ErrIntOverflowExecutor
3871 }
3872 if iNdEx >= l {
3873 return io.ErrUnexpectedEOF
3874 }
3875 b := dAtA[iNdEx]
3876 iNdEx++
3877 msglen |= (int(b) & 0x7F) << shift
3878 if b < 0x80 {
3879 break
3880 }
3881 }
3882 if msglen < 0 {
3883 return ErrInvalidLengthExecutor
3884 }
3885 postIndex := iNdEx + msglen
3886 if postIndex > l {
3887 return io.ErrUnexpectedEOF
3888 }
3889 if m.Subscribe == nil {
3890 m.Subscribe = &Call_Subscribe{}
3891 }
3892 if err := m.Subscribe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3893 return err
3894 }
3895 iNdEx = postIndex
3896 case 5:
3897 if wireType != 2 {
3898 return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType)
3899 }
3900 var msglen int
3901 for shift := uint(0); ; shift += 7 {
3902 if shift >= 64 {
3903 return ErrIntOverflowExecutor
3904 }
3905 if iNdEx >= l {
3906 return io.ErrUnexpectedEOF
3907 }
3908 b := dAtA[iNdEx]
3909 iNdEx++
3910 msglen |= (int(b) & 0x7F) << shift
3911 if b < 0x80 {
3912 break
3913 }
3914 }
3915 if msglen < 0 {
3916 return ErrInvalidLengthExecutor
3917 }
3918 postIndex := iNdEx + msglen
3919 if postIndex > l {
3920 return io.ErrUnexpectedEOF
3921 }
3922 if m.Update == nil {
3923 m.Update = &Call_Update{}
3924 }
3925 if err := m.Update.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3926 return err
3927 }
3928 iNdEx = postIndex
3929 case 6:
3930 if wireType != 2 {
3931 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
3932 }
3933 var msglen int
3934 for shift := uint(0); ; shift += 7 {
3935 if shift >= 64 {
3936 return ErrIntOverflowExecutor
3937 }
3938 if iNdEx >= l {
3939 return io.ErrUnexpectedEOF
3940 }
3941 b := dAtA[iNdEx]
3942 iNdEx++
3943 msglen |= (int(b) & 0x7F) << shift
3944 if b < 0x80 {
3945 break
3946 }
3947 }
3948 if msglen < 0 {
3949 return ErrInvalidLengthExecutor
3950 }
3951 postIndex := iNdEx + msglen
3952 if postIndex > l {
3953 return io.ErrUnexpectedEOF
3954 }
3955 if m.Message == nil {
3956 m.Message = &Call_Message{}
3957 }
3958 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3959 return err
3960 }
3961 iNdEx = postIndex
3962 default:
3963 iNdEx = preIndex
3964 skippy, err := skipExecutor(dAtA[iNdEx:])
3965 if err != nil {
3966 return err
3967 }
3968 if skippy < 0 {
3969 return ErrInvalidLengthExecutor
3970 }
3971 if (iNdEx + skippy) > l {
3972 return io.ErrUnexpectedEOF
3973 }
3974 iNdEx += skippy
3975 }
3976 }
3977 if hasFields[0]&uint64(0x00000001) == 0 {
3978 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id")
3979 }
3980 if hasFields[0]&uint64(0x00000002) == 0 {
3981 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id")
3982 }
3983
3984 if iNdEx > l {
3985 return io.ErrUnexpectedEOF
3986 }
3987 return nil
3988 }
3989 func (m *Call_Subscribe) Unmarshal(dAtA []byte) error {
3990 l := len(dAtA)
3991 iNdEx := 0
3992 for iNdEx < l {
3993 preIndex := iNdEx
3994 var wire uint64
3995 for shift := uint(0); ; shift += 7 {
3996 if shift >= 64 {
3997 return ErrIntOverflowExecutor
3998 }
3999 if iNdEx >= l {
4000 return io.ErrUnexpectedEOF
4001 }
4002 b := dAtA[iNdEx]
4003 iNdEx++
4004 wire |= (uint64(b) & 0x7F) << shift
4005 if b < 0x80 {
4006 break
4007 }
4008 }
4009 fieldNum := int32(wire >> 3)
4010 wireType := int(wire & 0x7)
4011 if wireType == 4 {
4012 return fmt.Errorf("proto: Subscribe: wiretype end group for non-group")
4013 }
4014 if fieldNum <= 0 {
4015 return fmt.Errorf("proto: Subscribe: illegal tag %d (wire type %d)", fieldNum, wire)
4016 }
4017 switch fieldNum {
4018 case 1:
4019 if wireType != 2 {
4020 return fmt.Errorf("proto: wrong wireType = %d for field UnacknowledgedTasks", wireType)
4021 }
4022 var msglen int
4023 for shift := uint(0); ; shift += 7 {
4024 if shift >= 64 {
4025 return ErrIntOverflowExecutor
4026 }
4027 if iNdEx >= l {
4028 return io.ErrUnexpectedEOF
4029 }
4030 b := dAtA[iNdEx]
4031 iNdEx++
4032 msglen |= (int(b) & 0x7F) << shift
4033 if b < 0x80 {
4034 break
4035 }
4036 }
4037 if msglen < 0 {
4038 return ErrInvalidLengthExecutor
4039 }
4040 postIndex := iNdEx + msglen
4041 if postIndex > l {
4042 return io.ErrUnexpectedEOF
4043 }
4044 m.UnacknowledgedTasks = append(m.UnacknowledgedTasks, mesos.TaskInfo{})
4045 if err := m.UnacknowledgedTasks[len(m.UnacknowledgedTasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4046 return err
4047 }
4048 iNdEx = postIndex
4049 case 2:
4050 if wireType != 2 {
4051 return fmt.Errorf("proto: wrong wireType = %d for field UnacknowledgedUpdates", wireType)
4052 }
4053 var msglen int
4054 for shift := uint(0); ; shift += 7 {
4055 if shift >= 64 {
4056 return ErrIntOverflowExecutor
4057 }
4058 if iNdEx >= l {
4059 return io.ErrUnexpectedEOF
4060 }
4061 b := dAtA[iNdEx]
4062 iNdEx++
4063 msglen |= (int(b) & 0x7F) << shift
4064 if b < 0x80 {
4065 break
4066 }
4067 }
4068 if msglen < 0 {
4069 return ErrInvalidLengthExecutor
4070 }
4071 postIndex := iNdEx + msglen
4072 if postIndex > l {
4073 return io.ErrUnexpectedEOF
4074 }
4075 m.UnacknowledgedUpdates = append(m.UnacknowledgedUpdates, Call_Update{})
4076 if err := m.UnacknowledgedUpdates[len(m.UnacknowledgedUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4077 return err
4078 }
4079 iNdEx = postIndex
4080 default:
4081 iNdEx = preIndex
4082 skippy, err := skipExecutor(dAtA[iNdEx:])
4083 if err != nil {
4084 return err
4085 }
4086 if skippy < 0 {
4087 return ErrInvalidLengthExecutor
4088 }
4089 if (iNdEx + skippy) > l {
4090 return io.ErrUnexpectedEOF
4091 }
4092 iNdEx += skippy
4093 }
4094 }
4095
4096 if iNdEx > l {
4097 return io.ErrUnexpectedEOF
4098 }
4099 return nil
4100 }
4101 func (m *Call_Update) Unmarshal(dAtA []byte) error {
4102 var hasFields [1]uint64
4103 l := len(dAtA)
4104 iNdEx := 0
4105 for iNdEx < l {
4106 preIndex := iNdEx
4107 var wire uint64
4108 for shift := uint(0); ; shift += 7 {
4109 if shift >= 64 {
4110 return ErrIntOverflowExecutor
4111 }
4112 if iNdEx >= l {
4113 return io.ErrUnexpectedEOF
4114 }
4115 b := dAtA[iNdEx]
4116 iNdEx++
4117 wire |= (uint64(b) & 0x7F) << shift
4118 if b < 0x80 {
4119 break
4120 }
4121 }
4122 fieldNum := int32(wire >> 3)
4123 wireType := int(wire & 0x7)
4124 if wireType == 4 {
4125 return fmt.Errorf("proto: Update: wiretype end group for non-group")
4126 }
4127 if fieldNum <= 0 {
4128 return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire)
4129 }
4130 switch fieldNum {
4131 case 1:
4132 if wireType != 2 {
4133 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
4134 }
4135 var msglen int
4136 for shift := uint(0); ; shift += 7 {
4137 if shift >= 64 {
4138 return ErrIntOverflowExecutor
4139 }
4140 if iNdEx >= l {
4141 return io.ErrUnexpectedEOF
4142 }
4143 b := dAtA[iNdEx]
4144 iNdEx++
4145 msglen |= (int(b) & 0x7F) << shift
4146 if b < 0x80 {
4147 break
4148 }
4149 }
4150 if msglen < 0 {
4151 return ErrInvalidLengthExecutor
4152 }
4153 postIndex := iNdEx + msglen
4154 if postIndex > l {
4155 return io.ErrUnexpectedEOF
4156 }
4157 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4158 return err
4159 }
4160 iNdEx = postIndex
4161 hasFields[0] |= uint64(0x00000001)
4162 default:
4163 iNdEx = preIndex
4164 skippy, err := skipExecutor(dAtA[iNdEx:])
4165 if err != nil {
4166 return err
4167 }
4168 if skippy < 0 {
4169 return ErrInvalidLengthExecutor
4170 }
4171 if (iNdEx + skippy) > l {
4172 return io.ErrUnexpectedEOF
4173 }
4174 iNdEx += skippy
4175 }
4176 }
4177 if hasFields[0]&uint64(0x00000001) == 0 {
4178 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status")
4179 }
4180
4181 if iNdEx > l {
4182 return io.ErrUnexpectedEOF
4183 }
4184 return nil
4185 }
4186 func (m *Call_Message) Unmarshal(dAtA []byte) error {
4187 var hasFields [1]uint64
4188 l := len(dAtA)
4189 iNdEx := 0
4190 for iNdEx < l {
4191 preIndex := iNdEx
4192 var wire uint64
4193 for shift := uint(0); ; shift += 7 {
4194 if shift >= 64 {
4195 return ErrIntOverflowExecutor
4196 }
4197 if iNdEx >= l {
4198 return io.ErrUnexpectedEOF
4199 }
4200 b := dAtA[iNdEx]
4201 iNdEx++
4202 wire |= (uint64(b) & 0x7F) << shift
4203 if b < 0x80 {
4204 break
4205 }
4206 }
4207 fieldNum := int32(wire >> 3)
4208 wireType := int(wire & 0x7)
4209 if wireType == 4 {
4210 return fmt.Errorf("proto: Message: wiretype end group for non-group")
4211 }
4212 if fieldNum <= 0 {
4213 return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
4214 }
4215 switch fieldNum {
4216 case 2:
4217 if wireType != 2 {
4218 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
4219 }
4220 var byteLen int
4221 for shift := uint(0); ; shift += 7 {
4222 if shift >= 64 {
4223 return ErrIntOverflowExecutor
4224 }
4225 if iNdEx >= l {
4226 return io.ErrUnexpectedEOF
4227 }
4228 b := dAtA[iNdEx]
4229 iNdEx++
4230 byteLen |= (int(b) & 0x7F) << shift
4231 if b < 0x80 {
4232 break
4233 }
4234 }
4235 if byteLen < 0 {
4236 return ErrInvalidLengthExecutor
4237 }
4238 postIndex := iNdEx + byteLen
4239 if postIndex > l {
4240 return io.ErrUnexpectedEOF
4241 }
4242 m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
4243 if m.Data == nil {
4244 m.Data = []byte{}
4245 }
4246 iNdEx = postIndex
4247 hasFields[0] |= uint64(0x00000001)
4248 default:
4249 iNdEx = preIndex
4250 skippy, err := skipExecutor(dAtA[iNdEx:])
4251 if err != nil {
4252 return err
4253 }
4254 if skippy < 0 {
4255 return ErrInvalidLengthExecutor
4256 }
4257 if (iNdEx + skippy) > l {
4258 return io.ErrUnexpectedEOF
4259 }
4260 iNdEx += skippy
4261 }
4262 }
4263 if hasFields[0]&uint64(0x00000001) == 0 {
4264 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
4265 }
4266
4267 if iNdEx > l {
4268 return io.ErrUnexpectedEOF
4269 }
4270 return nil
4271 }
4272 func skipExecutor(dAtA []byte) (n int, err error) {
4273 l := len(dAtA)
4274 iNdEx := 0
4275 for iNdEx < l {
4276 var wire uint64
4277 for shift := uint(0); ; shift += 7 {
4278 if shift >= 64 {
4279 return 0, ErrIntOverflowExecutor
4280 }
4281 if iNdEx >= l {
4282 return 0, io.ErrUnexpectedEOF
4283 }
4284 b := dAtA[iNdEx]
4285 iNdEx++
4286 wire |= (uint64(b) & 0x7F) << shift
4287 if b < 0x80 {
4288 break
4289 }
4290 }
4291 wireType := int(wire & 0x7)
4292 switch wireType {
4293 case 0:
4294 for shift := uint(0); ; shift += 7 {
4295 if shift >= 64 {
4296 return 0, ErrIntOverflowExecutor
4297 }
4298 if iNdEx >= l {
4299 return 0, io.ErrUnexpectedEOF
4300 }
4301 iNdEx++
4302 if dAtA[iNdEx-1] < 0x80 {
4303 break
4304 }
4305 }
4306 return iNdEx, nil
4307 case 1:
4308 iNdEx += 8
4309 return iNdEx, nil
4310 case 2:
4311 var length int
4312 for shift := uint(0); ; shift += 7 {
4313 if shift >= 64 {
4314 return 0, ErrIntOverflowExecutor
4315 }
4316 if iNdEx >= l {
4317 return 0, io.ErrUnexpectedEOF
4318 }
4319 b := dAtA[iNdEx]
4320 iNdEx++
4321 length |= (int(b) & 0x7F) << shift
4322 if b < 0x80 {
4323 break
4324 }
4325 }
4326 iNdEx += length
4327 if length < 0 {
4328 return 0, ErrInvalidLengthExecutor
4329 }
4330 return iNdEx, nil
4331 case 3:
4332 for {
4333 var innerWire uint64
4334 var start int = iNdEx
4335 for shift := uint(0); ; shift += 7 {
4336 if shift >= 64 {
4337 return 0, ErrIntOverflowExecutor
4338 }
4339 if iNdEx >= l {
4340 return 0, io.ErrUnexpectedEOF
4341 }
4342 b := dAtA[iNdEx]
4343 iNdEx++
4344 innerWire |= (uint64(b) & 0x7F) << shift
4345 if b < 0x80 {
4346 break
4347 }
4348 }
4349 innerWireType := int(innerWire & 0x7)
4350 if innerWireType == 4 {
4351 break
4352 }
4353 next, err := skipExecutor(dAtA[start:])
4354 if err != nil {
4355 return 0, err
4356 }
4357 iNdEx = start + next
4358 }
4359 return iNdEx, nil
4360 case 4:
4361 return iNdEx, nil
4362 case 5:
4363 iNdEx += 4
4364 return iNdEx, nil
4365 default:
4366 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
4367 }
4368 }
4369 panic("unreachable")
4370 }
4371
4372 var (
4373 ErrInvalidLengthExecutor = fmt.Errorf("proto: negative length found during unmarshaling")
4374 ErrIntOverflowExecutor = fmt.Errorf("proto: integer overflow")
4375 )
4376
4377 func init() { proto.RegisterFile("executor/executor.proto", fileDescriptorExecutor) }
4378
4379 var fileDescriptorExecutor = []byte{
4380 // 1019 bytes of a gzipped FileDescriptorProto
4381 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xbf, 0x6f, 0xdb, 0x46,
4382 0x14, 0xd6, 0x49, 0x14, 0x25, 0x3d, 0xca, 0x0e, 0x73, 0x49, 0x5b, 0x96, 0x71, 0x68, 0xd7, 0x4b,
4383 0xdd, 0x21, 0x52, 0x63, 0xa7, 0x2d, 0x02, 0x14, 0x45, 0x25, 0x93, 0xb6, 0x55, 0x3b, 0xb6, 0x71,
4384 0xb2, 0xd0, 0xa2, 0x8b, 0x40, 0x8b, 0xb4, 0x42, 0x88, 0x16, 0x05, 0xfe, 0x48, 0xea, 0xad, 0x63,
4385 0xbb, 0x14, 0xfd, 0x07, 0x0a, 0x14, 0xe8, 0xd2, 0xad, 0x6b, 0xc7, 0x8e, 0xe9, 0x96, 0xb1, 0x93,
4386 0x51, 0x31, 0x4b, 0xc7, 0x8c, 0x1d, 0x8b, 0x3b, 0x1e, 0x25, 0x4a, 0x61, 0x32, 0x74, 0x21, 0xee,
4387 0xde, 0xfb, 0xbe, 0x8f, 0x77, 0xef, 0xde, 0xf7, 0xe0, 0x1d, 0xfb, 0x1b, 0x7b, 0x10, 0x85, 0x9e,
4388 0xdf, 0x4c, 0x17, 0x8d, 0x89, 0xef, 0x85, 0x1e, 0x5e, 0xbd, 0xb4, 0x03, 0x2f, 0x68, 0xa4, 0x51,
4389 0xf5, 0xc3, 0xa1, 0x13, 0x3e, 0x8e, 0xce, 0x1b, 0x03, 0xef, 0xb2, 0xc9, 0x52, 0xc9, 0xf7, 0xde,
4390 0xd0, 0x6b, 0x9a, 0x13, 0xa7, 0xf9, 0xe4, 0x7e, 0xd3, 0x75, 0xce, 0x93, 0x58, 0xa2, 0xa0, 0xde,
4391 0xcb, 0x30, 0x86, 0xde, 0xd0, 0x6b, 0xb2, 0xf0, 0x79, 0x74, 0xc1, 0x76, 0x6c, 0xc3, 0x56, 0x09,
4392 0x7c, 0xf3, 0x27, 0x80, 0xb2, 0xf1, 0xc4, 0x1e, 0x87, 0xf8, 0x01, 0x08, 0xe1, 0xd5, 0xc4, 0x56,
4393 0xd0, 0x06, 0xda, 0x5a, 0xdd, 0x56, 0x1b, 0x8b, 0x27, 0x69, 0x30, 0x50, 0xe3, 0xec, 0x6a, 0x62,
4394 0xb7, 0x85, 0x67, 0xd7, 0xeb, 0x05, 0xc2, 0xd0, 0xf8, 0x73, 0x80, 0x20, 0x3a, 0x0f, 0x06, 0xbe,
4395 0x73, 0x6e, 0x5b, 0x4a, 0x71, 0x03, 0x6d, 0x49, 0xdb, 0x1b, 0xf9, 0xdc, 0xee, 0x0c, 0x47, 0x32,
4396 0x1c, 0xbc, 0x07, 0x75, 0x73, 0x30, 0x1a, 0x7b, 0x4f, 0x5d, 0xdb, 0x1a, 0xda, 0x96, 0x52, 0x62,
4397 0x1a, 0x9b, 0xf9, 0x1a, 0xad, 0x0c, 0x92, 0x2c, 0xf0, 0xf0, 0x03, 0x10, 0x5d, 0x33, 0x1a, 0x0f,
4398 0x1e, 0x2b, 0x02, 0x53, 0x58, 0xcb, 0x57, 0x38, 0x62, 0x18, 0xc2, 0xb1, 0xb8, 0x01, 0xc2, 0xc8,
4399 0x71, 0x5d, 0xa5, 0xcc, 0x38, 0xaf, 0xb9, 0xf5, 0xa1, 0xe3, 0xba, 0x84, 0xe1, 0xf0, 0x27, 0x50,
4400 0xb9, 0xb4, 0x83, 0xc0, 0x1c, 0xda, 0x8a, 0xc8, 0x28, 0x77, 0xf3, 0x29, 0x8f, 0x12, 0x10, 0x49,
4401 0xd1, 0xf8, 0x3e, 0x94, 0x6d, 0xdf, 0xf7, 0x7c, 0xa5, 0xc2, 0x68, 0x77, 0xf2, 0x69, 0x06, 0x85,
4402 0x90, 0x04, 0x89, 0x75, 0xa8, 0x27, 0xa7, 0xec, 0x0f, 0x7d, 0x2f, 0x9a, 0x28, 0x55, 0xc6, 0x7c,
4403 0xef, 0x4d, 0xf7, 0xda, 0xa7, 0x40, 0x22, 0xb9, 0xf3, 0x8d, 0xfa, 0x43, 0x11, 0x60, 0x5e, 0x7a,
4404 0xfc, 0x19, 0xac, 0xa4, 0xcc, 0xbe, 0x33, 0xbe, 0xf0, 0x14, 0xb4, 0x51, 0xdc, 0x92, 0xb6, 0x6f,
4405 0x71, 0x55, 0x83, 0xe7, 0x3a, 0xe3, 0x0b, 0x8f, 0x3f, 0x74, 0xdd, 0xce, 0xc4, 0x70, 0x0b, 0x56,
4406 0x2f, 0x7c, 0xf3, 0xd2, 0x7e, 0xea, 0xf9, 0xa3, 0x44, 0xa0, 0xc8, 0x04, 0x6e, 0x73, 0x81, 0xbd,
4407 0x34, 0x99, 0x51, 0x58, 0xb9, 0xc8, 0x06, 0xf1, 0x47, 0x00, 0xe6, 0xd0, 0x1e, 0x87, 0x09, 0xbd,
4408 0xc4, 0xe8, 0x32, 0xa7, 0xb7, 0x68, 0x22, 0x43, 0xad, 0x99, 0x69, 0x80, 0x36, 0xca, 0xc0, 0x1b,
4409 0x87, 0xa6, 0x33, 0xb6, 0xfd, 0xbe, 0x63, 0xf1, 0x67, 0xc6, 0x9c, 0xb8, 0x9b, 0xa6, 0x3a, 0x7a,
4410 0xfb, 0x46, 0x7c, 0xbd, 0x2e, 0x65, 0x02, 0x44, 0x9a, 0x11, 0x3b, 0x96, 0xba, 0x03, 0x62, 0x52,
4411 0x2c, 0xfc, 0x01, 0x08, 0xa1, 0x19, 0x8c, 0x78, 0x09, 0x6e, 0x70, 0xa5, 0x33, 0x33, 0xc8, 0x1e,
4412 0x9e, 0x41, 0xd4, 0x03, 0x90, 0x32, 0x15, 0xc6, 0x0f, 0x01, 0x68, 0x98, 0x3f, 0x0c, 0x5a, 0xa8,
4413 0x00, 0xe5, 0x33, 0x54, 0xf6, 0x1a, 0x61, 0x1a, 0x54, 0x7d, 0x10, 0x68, 0x3f, 0xe1, 0x8f, 0xa1,
4414 0xc2, 0x24, 0x1c, 0x8b, 0xf3, 0x57, 0xb2, 0xff, 0xd7, 0xdb, 0xab, 0x94, 0x18, 0x5f, 0xaf, 0x8b,
4415 0xc9, 0x9e, 0x88, 0x14, 0xdd, 0xb1, 0xf0, 0x36, 0x48, 0xb4, 0x13, 0xfb, 0x13, 0xcf, 0x75, 0x06,
4416 0x57, 0xdc, 0x72, 0x37, 0x39, 0x97, 0x2a, 0x9f, 0xb2, 0x04, 0x81, 0xd1, 0x6c, 0xad, 0x5a, 0x50,
4417 0xcf, 0x3a, 0xe7, 0x7f, 0xff, 0x7b, 0x0d, 0x84, 0x28, 0x72, 0x2c, 0xf6, 0xe4, 0xf5, 0x76, 0x35,
4418 0xbe, 0x5e, 0x17, 0x7a, 0xbd, 0x8e, 0x4e, 0x58, 0x54, 0xbd, 0x0b, 0x15, 0xde, 0xf6, 0x18, 0x83,
4419 0x60, 0x99, 0xa1, 0xc9, 0xd4, 0xeb, 0x84, 0xad, 0xd5, 0xf7, 0xa1, 0xcc, 0xda, 0x1b, 0x6b, 0x73,
4420 0x0f, 0xd1, 0x7c, 0x8d, 0xd7, 0x28, 0x0d, 0x6e, 0x7e, 0x8f, 0x40, 0xa0, 0x83, 0x06, 0x4b, 0x50,
4421 0xe9, 0x1d, 0x1f, 0x1e, 0x9f, 0x7c, 0x79, 0x2c, 0x17, 0xf0, 0x2a, 0x40, 0xb7, 0xd7, 0xee, 0xee,
4422 0x92, 0x4e, 0xdb, 0xd0, 0x65, 0x84, 0x01, 0xc4, 0xa3, 0x56, 0xef, 0x78, 0xf7, 0x40, 0x2e, 0x62,
4423 0x19, 0xea, 0xc9, 0xba, 0xbf, 0x4f, 0x4e, 0x7a, 0xa7, 0x72, 0x15, 0x57, 0x41, 0x38, 0xec, 0x1c,
4424 0x1d, 0xc9, 0x25, 0x9a, 0x6b, 0xed, 0x52, 0x91, 0x23, 0x43, 0xdf, 0x37, 0x74, 0x59, 0xa0, 0xb2,
4425 0x8f, 0x8c, 0x6e, 0xb7, 0xb5, 0x6f, 0xc8, 0x65, 0x5c, 0x83, 0xb2, 0x41, 0xc8, 0x09, 0x91, 0x45,
4426 0x5c, 0x87, 0x6a, 0xf7, 0xa0, 0x77, 0xa6, 0xd3, 0xff, 0x55, 0x54, 0xe1, 0xbb, 0x5f, 0x34, 0xb4,
4427 0xf9, 0x67, 0x19, 0x84, 0x5d, 0xd3, 0x75, 0xf1, 0x1e, 0x48, 0x73, 0xdf, 0xa4, 0x65, 0xbb, 0xb9,
4428 0xec, 0x1a, 0xbd, 0x8d, 0x79, 0xe9, 0x60, 0x1e, 0x23, 0x30, 0x73, 0x90, 0x85, 0xbf, 0x80, 0x7a,
4429 0xc6, 0x3f, 0x16, 0x77, 0x0f, 0x7e, 0xc5, 0x3d, 0x7a, 0xfb, 0x16, 0x57, 0x92, 0x32, 0x41, 0x22,
4430 0xcd, 0xad, 0x64, 0xe1, 0x1d, 0x3e, 0xb2, 0x4b, 0x6c, 0x64, 0xbf, 0xbb, 0x3c, 0x18, 0xe8, 0xb9,
4431 0x5f, 0x9d, 0xd8, 0x9f, 0x42, 0x6d, 0x36, 0x7d, 0xb9, 0x87, 0xb4, 0x5c, 0xe6, 0x6c, 0x68, 0x90,
4432 0x39, 0x01, 0xef, 0x80, 0x18, 0x4d, 0x2c, 0x33, 0xb4, 0xf9, 0xc4, 0xbc, 0x93, 0x4b, 0xed, 0x31,
4433 0x08, 0xe1, 0x50, 0xda, 0x6e, 0x8b, 0x43, 0x73, 0x2d, 0x97, 0xb5, 0x3c, 0x33, 0xd5, 0xdf, 0x10,
4434 0xd4, 0x66, 0xa7, 0xc0, 0x07, 0x70, 0x3b, 0x1a, 0x67, 0x47, 0x7e, 0x9f, 0x76, 0x65, 0xa0, 0xa0,
4435 0x8d, 0xd2, 0xeb, 0xdd, 0x7b, 0x6b, 0x91, 0x42, 0xb3, 0x01, 0xfe, 0x0a, 0xde, 0x5e, 0x52, 0x4a,
4436 0x0e, 0x1a, 0x28, 0x45, 0xa6, 0xf5, 0xa6, 0x4b, 0x71, 0xdd, 0xb7, 0x16, 0x05, 0x92, 0x5c, 0xa0,
4437 0x3e, 0x04, 0x31, 0x59, 0xe2, 0x26, 0x88, 0x41, 0x68, 0x86, 0x51, 0xb0, 0xd4, 0x2a, 0xf4, 0x04,
4438 0x5d, 0x96, 0xe0, 0x4a, 0x1c, 0x96, 0xe7, 0x9e, 0xe2, 0xdc, 0x3d, 0x9b, 0xad, 0x3c, 0x4f, 0xac,
4439 0x40, 0x6d, 0xe6, 0x89, 0xc4, 0x12, 0xbd, 0x53, 0xbd, 0x75, 0x66, 0xc8, 0xc5, 0x6c, 0x93, 0x97,
4440 0x92, 0x5e, 0x6e, 0xef, 0x3d, 0x9f, 0x6a, 0x85, 0xbf, 0xa6, 0x5a, 0xe1, 0xef, 0xa9, 0x86, 0x5e,
4441 0x4e, 0x35, 0xf4, 0xef, 0x54, 0x43, 0xdf, 0xc6, 0x1a, 0xfa, 0x35, 0xd6, 0xd0, 0xef, 0xb1, 0x86,
4442 0xfe, 0x88, 0x35, 0xf4, 0x2c, 0xd6, 0xd0, 0xf3, 0x58, 0x43, 0xff, 0xc4, 0x5a, 0xe1, 0x65, 0xac,
4443 0xa1, 0x1f, 0x5f, 0x68, 0x85, 0x9f, 0x5f, 0x68, 0xe8, 0xeb, 0x6a, 0x5a, 0x8d, 0xff, 0x02, 0x00,
4444 0x00, 0xff, 0xff, 0x42, 0x17, 0xcd, 0x0d, 0xbe, 0x08, 0x00, 0x00,
4445 }