forked from mesos/mesos-go
/
executor.pb.go
4460 lines (4298 loc) · 111 KB
/
executor.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: executor/executor.proto
/*
Package executor is a generated protocol buffer package.
It is generated from these files:
executor/executor.proto
It has these top-level messages:
Event
Call
*/
package executor
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import mesos "github.com/mesos/mesos-go/api/v1/lib"
import _ "github.com/gogo/protobuf/gogoproto"
import strconv "strconv"
import bytes "bytes"
import strings "strings"
import reflect "reflect"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// Possible event types, followed by message definitions if
// applicable.
type Event_Type int32
const (
// This must be the first enum value in this list, to
// ensure that if 'type' is not set, the default value
// is UNKNOWN. This enables enum values to be added
// in a backwards-compatible way. See: MESOS-4997.
Event_UNKNOWN Event_Type = 0
Event_SUBSCRIBED Event_Type = 1
Event_LAUNCH Event_Type = 2
Event_LAUNCH_GROUP Event_Type = 8
Event_KILL Event_Type = 3
Event_ACKNOWLEDGED Event_Type = 4
Event_MESSAGE Event_Type = 5
Event_ERROR Event_Type = 6
// Received when the agent asks the executor to shutdown/kill itself.
// The executor is then required to kill all its active tasks, send
// `TASK_KILLED` status updates and gracefully exit. The executor
// should terminate within a `MESOS_EXECUTOR_SHUTDOWN_GRACE_PERIOD`
// (an environment variable set by the agent upon executor startup);
// it can be configured via `ExecutorInfo.shutdown_grace_period`. If
// the executor fails to do so, the agent will forcefully destroy the
// container where the executor is running. The agent would then send
// `TASK_LOST` updates for any remaining active tasks of this executor.
//
// NOTE: The executor must not assume that it will always be allotted
// the full grace period, as the agent may decide to allot a shorter
// period and failures / forcible terminations may occur.
//
// TODO(alexr): Consider adding a duration field into the `Shutdown`
// message so that the agent can communicate when a shorter period
// has been allotted.
Event_SHUTDOWN Event_Type = 7
// Received periodically to make sure the connection is alive and to
// prevent any possible network intermediaries from marking the
// connection as stale (when there are no other messages being sent).
Event_HEARTBEAT Event_Type = 9
)
var Event_Type_name = map[int32]string{
0: "UNKNOWN",
1: "SUBSCRIBED",
2: "LAUNCH",
8: "LAUNCH_GROUP",
3: "KILL",
4: "ACKNOWLEDGED",
5: "MESSAGE",
6: "ERROR",
7: "SHUTDOWN",
9: "HEARTBEAT",
}
var Event_Type_value = map[string]int32{
"UNKNOWN": 0,
"SUBSCRIBED": 1,
"LAUNCH": 2,
"LAUNCH_GROUP": 8,
"KILL": 3,
"ACKNOWLEDGED": 4,
"MESSAGE": 5,
"ERROR": 6,
"SHUTDOWN": 7,
"HEARTBEAT": 9,
}
func (x Event_Type) Enum() *Event_Type {
p := new(Event_Type)
*p = x
return p
}
func (x Event_Type) MarshalJSON() ([]byte, error) {
return proto.MarshalJSONEnum(Event_Type_name, int32(x))
}
func (x *Event_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Event_Type_value, data, "Event_Type")
if err != nil {
return err
}
*x = Event_Type(value)
return nil
}
func (Event_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 0} }
// Possible call types, followed by message definitions if
// applicable.
type Call_Type int32
const (
// See comments above on `Event::Type` for more details on this enum value.
Call_UNKNOWN Call_Type = 0
Call_SUBSCRIBE Call_Type = 1
Call_UPDATE Call_Type = 2
Call_MESSAGE Call_Type = 3
// Optional message that can be used to make sure the executor's
// connection is still alive and to prevent any possible network
// intermediaries from marking the connection as stale (when there
// are no other messages being sent). Heartbeats are only necessary
// if the executor uses a persistent connection to send calls.
Call_HEARTBEAT Call_Type = 4
)
var Call_Type_name = map[int32]string{
0: "UNKNOWN",
1: "SUBSCRIBE",
2: "UPDATE",
3: "MESSAGE",
4: "HEARTBEAT",
}
var Call_Type_value = map[string]int32{
"UNKNOWN": 0,
"SUBSCRIBE": 1,
"UPDATE": 2,
"MESSAGE": 3,
"HEARTBEAT": 4,
}
func (x Call_Type) Enum() *Call_Type {
p := new(Call_Type)
*p = x
return p
}
func (x Call_Type) MarshalJSON() ([]byte, error) {
return proto.MarshalJSONEnum(Call_Type_name, int32(x))
}
func (x *Call_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Call_Type_value, data, "Call_Type")
if err != nil {
return err
}
*x = Call_Type(value)
return nil
}
func (Call_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 0} }
// *
// Executor event API.
//
// An event is described using the standard protocol buffer "union"
// trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
type Event struct {
// Type of the event, indicates which optional field below should be
// present if that type has a nested message definition.
// Enum fields should be optional, see: MESOS-4997.
Type Event_Type `protobuf:"varint,1,opt,name=type,enum=mesos.executor.Event_Type" json:"type"`
Subscribed *Event_Subscribed `protobuf:"bytes,2,opt,name=subscribed" json:"subscribed,omitempty"`
Acknowledged *Event_Acknowledged `protobuf:"bytes,3,opt,name=acknowledged" json:"acknowledged,omitempty"`
Launch *Event_Launch `protobuf:"bytes,4,opt,name=launch" json:"launch,omitempty"`
LaunchGroup *Event_LaunchGroup `protobuf:"bytes,8,opt,name=launch_group,json=launchGroup" json:"launch_group,omitempty"`
Kill *Event_Kill `protobuf:"bytes,5,opt,name=kill" json:"kill,omitempty"`
Message *Event_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
Error *Event_Error `protobuf:"bytes,7,opt,name=error" json:"error,omitempty"`
}
func (m *Event) Reset() { *m = Event{} }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0} }
func (m *Event) GetType() Event_Type {
if m != nil {
return m.Type
}
return Event_UNKNOWN
}
func (m *Event) GetSubscribed() *Event_Subscribed {
if m != nil {
return m.Subscribed
}
return nil
}
func (m *Event) GetAcknowledged() *Event_Acknowledged {
if m != nil {
return m.Acknowledged
}
return nil
}
func (m *Event) GetLaunch() *Event_Launch {
if m != nil {
return m.Launch
}
return nil
}
func (m *Event) GetLaunchGroup() *Event_LaunchGroup {
if m != nil {
return m.LaunchGroup
}
return nil
}
func (m *Event) GetKill() *Event_Kill {
if m != nil {
return m.Kill
}
return nil
}
func (m *Event) GetMessage() *Event_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *Event) GetError() *Event_Error {
if m != nil {
return m.Error
}
return nil
}
// First event received when the executor subscribes.
// The 'id' field in the 'framework_info' will be set.
type Event_Subscribed struct {
ExecutorInfo mesos.ExecutorInfo `protobuf:"bytes,1,req,name=executor_info,json=executorInfo" json:"executor_info"`
FrameworkInfo mesos.FrameworkInfo `protobuf:"bytes,2,req,name=framework_info,json=frameworkInfo" json:"framework_info"`
AgentInfo mesos.AgentInfo `protobuf:"bytes,3,req,name=agent_info,json=agentInfo" json:"agent_info"`
// Uniquely identifies the container of an executor run.
ContainerID *mesos.ContainerID `protobuf:"bytes,4,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
}
func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} }
func (*Event_Subscribed) ProtoMessage() {}
func (*Event_Subscribed) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 0} }
func (m *Event_Subscribed) GetExecutorInfo() mesos.ExecutorInfo {
if m != nil {
return m.ExecutorInfo
}
return mesos.ExecutorInfo{}
}
func (m *Event_Subscribed) GetFrameworkInfo() mesos.FrameworkInfo {
if m != nil {
return m.FrameworkInfo
}
return mesos.FrameworkInfo{}
}
func (m *Event_Subscribed) GetAgentInfo() mesos.AgentInfo {
if m != nil {
return m.AgentInfo
}
return mesos.AgentInfo{}
}
func (m *Event_Subscribed) GetContainerID() *mesos.ContainerID {
if m != nil {
return m.ContainerID
}
return nil
}
// Received when the framework attempts to launch a task. Once
// the task is successfully launched, the executor must respond with
// a TASK_RUNNING update (See TaskState in v1/mesos.proto).
type Event_Launch struct {
Task mesos.TaskInfo `protobuf:"bytes,1,req,name=task" json:"task"`
}
func (m *Event_Launch) Reset() { *m = Event_Launch{} }
func (*Event_Launch) ProtoMessage() {}
func (*Event_Launch) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 1} }
func (m *Event_Launch) GetTask() mesos.TaskInfo {
if m != nil {
return m.Task
}
return mesos.TaskInfo{}
}
// Received when the framework attempts to launch a group of tasks atomically.
// Similar to `Launch` above the executor must send TASK_RUNNING updates for
// tasks that are successfully launched.
type Event_LaunchGroup struct {
TaskGroup mesos.TaskGroupInfo `protobuf:"bytes,1,req,name=task_group,json=taskGroup" json:"task_group"`
}
func (m *Event_LaunchGroup) Reset() { *m = Event_LaunchGroup{} }
func (*Event_LaunchGroup) ProtoMessage() {}
func (*Event_LaunchGroup) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 2} }
func (m *Event_LaunchGroup) GetTaskGroup() mesos.TaskGroupInfo {
if m != nil {
return m.TaskGroup
}
return mesos.TaskGroupInfo{}
}
// Received when the scheduler wants to kill a specific task. Once
// the task is terminated, the executor should send a TASK_KILLED
// (or TASK_FAILED) update. The terminal update is necessary so
// Mesos can release the resources associated with the task.
type Event_Kill struct {
TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
// If set, overrides any previously specified kill policy for this task.
// This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
// Can be used to forcefully kill a task which is already being killed.
KillPolicy *mesos.KillPolicy `protobuf:"bytes,2,opt,name=kill_policy,json=killPolicy" json:"kill_policy,omitempty"`
}
func (m *Event_Kill) Reset() { *m = Event_Kill{} }
func (*Event_Kill) ProtoMessage() {}
func (*Event_Kill) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 3} }
func (m *Event_Kill) GetTaskID() mesos.TaskID {
if m != nil {
return m.TaskID
}
return mesos.TaskID{}
}
func (m *Event_Kill) GetKillPolicy() *mesos.KillPolicy {
if m != nil {
return m.KillPolicy
}
return nil
}
// Received when the agent acknowledges the receipt of status
// update. Schedulers are responsible for explicitly acknowledging
// the receipt of status updates that have 'update.status().uuid()'
// field set. Unacknowledged updates can be retried by the executor.
// They should also be sent by the executor whenever it
// re-subscribes.
type Event_Acknowledged struct {
TaskID mesos.TaskID `protobuf:"bytes,1,req,name=task_id,json=taskId" json:"task_id"`
UUID []byte `protobuf:"bytes,2,req,name=uuid" json:"uuid,omitempty"`
}
func (m *Event_Acknowledged) Reset() { *m = Event_Acknowledged{} }
func (*Event_Acknowledged) ProtoMessage() {}
func (*Event_Acknowledged) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 4} }
func (m *Event_Acknowledged) GetTaskID() mesos.TaskID {
if m != nil {
return m.TaskID
}
return mesos.TaskID{}
}
func (m *Event_Acknowledged) GetUUID() []byte {
if m != nil {
return m.UUID
}
return nil
}
// Received when a custom message generated by the scheduler is
// forwarded by the agent. Note that this message is not
// interpreted by Mesos and is only forwarded (without reliability
// guarantees) to the executor. It is up to the scheduler to retry
// if the message is dropped for any reason.
type Event_Message struct {
Data []byte `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
}
func (m *Event_Message) Reset() { *m = Event_Message{} }
func (*Event_Message) ProtoMessage() {}
func (*Event_Message) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 5} }
func (m *Event_Message) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
// Received in case the executor sends invalid calls (e.g.,
// required values not set).
// TODO(arojas): Remove this once the old executor driver is no
// longer supported. With HTTP API all errors will be signaled via
// HTTP response codes.
type Event_Error struct {
Message string `protobuf:"bytes,1,req,name=message" json:"message"`
}
func (m *Event_Error) Reset() { *m = Event_Error{} }
func (*Event_Error) ProtoMessage() {}
func (*Event_Error) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{0, 6} }
func (m *Event_Error) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
// *
// Executor call API.
//
// Like Event, a Call is described using the standard protocol buffer
// "union" trick (see above).
type Call struct {
// Identifies the executor which generated this call.
ExecutorID mesos.ExecutorID `protobuf:"bytes,1,req,name=executor_id,json=executorId" json:"executor_id"`
FrameworkID mesos.FrameworkID `protobuf:"bytes,2,req,name=framework_id,json=frameworkId" json:"framework_id"`
// Type of the call, indicates which optional field below should be
// present if that type has a nested message definition.
// In case type is SUBSCRIBED, no message needs to be set.
// See comments on `Event::Type` above on the reasoning behind this
// field being optional.
Type Call_Type `protobuf:"varint,3,opt,name=type,enum=mesos.executor.Call_Type" json:"type"`
Subscribe *Call_Subscribe `protobuf:"bytes,4,opt,name=subscribe" json:"subscribe,omitempty"`
Update *Call_Update `protobuf:"bytes,5,opt,name=update" json:"update,omitempty"`
Message *Call_Message `protobuf:"bytes,6,opt,name=message" json:"message,omitempty"`
}
func (m *Call) Reset() { *m = Call{} }
func (*Call) ProtoMessage() {}
func (*Call) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1} }
func (m *Call) GetExecutorID() mesos.ExecutorID {
if m != nil {
return m.ExecutorID
}
return mesos.ExecutorID{}
}
func (m *Call) GetFrameworkID() mesos.FrameworkID {
if m != nil {
return m.FrameworkID
}
return mesos.FrameworkID{}
}
func (m *Call) GetType() Call_Type {
if m != nil {
return m.Type
}
return Call_UNKNOWN
}
func (m *Call) GetSubscribe() *Call_Subscribe {
if m != nil {
return m.Subscribe
}
return nil
}
func (m *Call) GetUpdate() *Call_Update {
if m != nil {
return m.Update
}
return nil
}
func (m *Call) GetMessage() *Call_Message {
if m != nil {
return m.Message
}
return nil
}
// Request to subscribe with the agent. If subscribing after a disconnection,
// it must include a list of all the tasks and updates which haven't been
// acknowledged by the scheduler.
type Call_Subscribe struct {
UnacknowledgedTasks []mesos.TaskInfo `protobuf:"bytes,1,rep,name=unacknowledged_tasks,json=unacknowledgedTasks" json:"unacknowledged_tasks"`
UnacknowledgedUpdates []Call_Update `protobuf:"bytes,2,rep,name=unacknowledged_updates,json=unacknowledgedUpdates" json:"unacknowledged_updates"`
}
func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} }
func (*Call_Subscribe) ProtoMessage() {}
func (*Call_Subscribe) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 0} }
func (m *Call_Subscribe) GetUnacknowledgedTasks() []mesos.TaskInfo {
if m != nil {
return m.UnacknowledgedTasks
}
return nil
}
func (m *Call_Subscribe) GetUnacknowledgedUpdates() []Call_Update {
if m != nil {
return m.UnacknowledgedUpdates
}
return nil
}
// Notifies the scheduler that a task has transitioned from one
// state to another. Status updates should be used by executors
// to reliably communicate the status of the tasks that they
// manage. It is crucial that a terminal update (see TaskState
// in v1/mesos.proto) is sent to the scheduler as soon as the task
// terminates, in order for Mesos to release the resources allocated
// to the task. It is the responsibility of the scheduler to
// explicitly acknowledge the receipt of a status update. See
// 'Acknowledged' in the 'Events' section above for the semantics.
type Call_Update struct {
Status mesos.TaskStatus `protobuf:"bytes,1,req,name=status" json:"status"`
}
func (m *Call_Update) Reset() { *m = Call_Update{} }
func (*Call_Update) ProtoMessage() {}
func (*Call_Update) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 1} }
func (m *Call_Update) GetStatus() mesos.TaskStatus {
if m != nil {
return m.Status
}
return mesos.TaskStatus{}
}
// Sends arbitrary binary data to the scheduler. Note that Mesos
// neither interprets this data nor makes any guarantees about the
// delivery of this message to the scheduler.
// See 'Message' in the 'Events' section.
type Call_Message struct {
Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"`
}
func (m *Call_Message) Reset() { *m = Call_Message{} }
func (*Call_Message) ProtoMessage() {}
func (*Call_Message) Descriptor() ([]byte, []int) { return fileDescriptorExecutor, []int{1, 2} }
func (m *Call_Message) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*Event)(nil), "mesos.executor.Event")
proto.RegisterType((*Event_Subscribed)(nil), "mesos.executor.Event.Subscribed")
proto.RegisterType((*Event_Launch)(nil), "mesos.executor.Event.Launch")
proto.RegisterType((*Event_LaunchGroup)(nil), "mesos.executor.Event.LaunchGroup")
proto.RegisterType((*Event_Kill)(nil), "mesos.executor.Event.Kill")
proto.RegisterType((*Event_Acknowledged)(nil), "mesos.executor.Event.Acknowledged")
proto.RegisterType((*Event_Message)(nil), "mesos.executor.Event.Message")
proto.RegisterType((*Event_Error)(nil), "mesos.executor.Event.Error")
proto.RegisterType((*Call)(nil), "mesos.executor.Call")
proto.RegisterType((*Call_Subscribe)(nil), "mesos.executor.Call.Subscribe")
proto.RegisterType((*Call_Update)(nil), "mesos.executor.Call.Update")
proto.RegisterType((*Call_Message)(nil), "mesos.executor.Call.Message")
proto.RegisterEnum("mesos.executor.Event_Type", Event_Type_name, Event_Type_value)
proto.RegisterEnum("mesos.executor.Call_Type", Call_Type_name, Call_Type_value)
}
func (x Event_Type) String() string {
s, ok := Event_Type_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (x Call_Type) String() string {
s, ok := Call_Type_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (this *Event) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event)
if !ok {
that2, ok := that.(Event)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event but is not nil && this == nil")
}
if this.Type != that1.Type {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
}
if !this.Subscribed.Equal(that1.Subscribed) {
return fmt.Errorf("Subscribed this(%v) Not Equal that(%v)", this.Subscribed, that1.Subscribed)
}
if !this.Acknowledged.Equal(that1.Acknowledged) {
return fmt.Errorf("Acknowledged this(%v) Not Equal that(%v)", this.Acknowledged, that1.Acknowledged)
}
if !this.Launch.Equal(that1.Launch) {
return fmt.Errorf("Launch this(%v) Not Equal that(%v)", this.Launch, that1.Launch)
}
if !this.LaunchGroup.Equal(that1.LaunchGroup) {
return fmt.Errorf("LaunchGroup this(%v) Not Equal that(%v)", this.LaunchGroup, that1.LaunchGroup)
}
if !this.Kill.Equal(that1.Kill) {
return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill)
}
if !this.Message.Equal(that1.Message) {
return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message)
}
if !this.Error.Equal(that1.Error) {
return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
}
return nil
}
func (this *Event) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event)
if !ok {
that2, ok := that.(Event)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Type != that1.Type {
return false
}
if !this.Subscribed.Equal(that1.Subscribed) {
return false
}
if !this.Acknowledged.Equal(that1.Acknowledged) {
return false
}
if !this.Launch.Equal(that1.Launch) {
return false
}
if !this.LaunchGroup.Equal(that1.LaunchGroup) {
return false
}
if !this.Kill.Equal(that1.Kill) {
return false
}
if !this.Message.Equal(that1.Message) {
return false
}
if !this.Error.Equal(that1.Error) {
return false
}
return true
}
func (this *Event_Subscribed) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Subscribed)
if !ok {
that2, ok := that.(Event_Subscribed)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event_Subscribed")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Subscribed but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Subscribed but is not nil && this == nil")
}
if !this.ExecutorInfo.Equal(&that1.ExecutorInfo) {
return fmt.Errorf("ExecutorInfo this(%v) Not Equal that(%v)", this.ExecutorInfo, that1.ExecutorInfo)
}
if !this.FrameworkInfo.Equal(&that1.FrameworkInfo) {
return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo)
}
if !this.AgentInfo.Equal(&that1.AgentInfo) {
return fmt.Errorf("AgentInfo this(%v) Not Equal that(%v)", this.AgentInfo, that1.AgentInfo)
}
if !this.ContainerID.Equal(that1.ContainerID) {
return fmt.Errorf("ContainerID this(%v) Not Equal that(%v)", this.ContainerID, that1.ContainerID)
}
return nil
}
func (this *Event_Subscribed) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Subscribed)
if !ok {
that2, ok := that.(Event_Subscribed)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.ExecutorInfo.Equal(&that1.ExecutorInfo) {
return false
}
if !this.FrameworkInfo.Equal(&that1.FrameworkInfo) {
return false
}
if !this.AgentInfo.Equal(&that1.AgentInfo) {
return false
}
if !this.ContainerID.Equal(that1.ContainerID) {
return false
}
return true
}
func (this *Event_Launch) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Launch)
if !ok {
that2, ok := that.(Event_Launch)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event_Launch")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Launch but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Launch but is not nil && this == nil")
}
if !this.Task.Equal(&that1.Task) {
return fmt.Errorf("Task this(%v) Not Equal that(%v)", this.Task, that1.Task)
}
return nil
}
func (this *Event_Launch) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Launch)
if !ok {
that2, ok := that.(Event_Launch)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Task.Equal(&that1.Task) {
return false
}
return true
}
func (this *Event_LaunchGroup) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_LaunchGroup)
if !ok {
that2, ok := that.(Event_LaunchGroup)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event_LaunchGroup")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_LaunchGroup but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_LaunchGroup but is not nil && this == nil")
}
if !this.TaskGroup.Equal(&that1.TaskGroup) {
return fmt.Errorf("TaskGroup this(%v) Not Equal that(%v)", this.TaskGroup, that1.TaskGroup)
}
return nil
}
func (this *Event_LaunchGroup) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_LaunchGroup)
if !ok {
that2, ok := that.(Event_LaunchGroup)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.TaskGroup.Equal(&that1.TaskGroup) {
return false
}
return true
}
func (this *Event_Kill) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Kill)
if !ok {
that2, ok := that.(Event_Kill)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event_Kill")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Kill but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Kill but is not nil && this == nil")
}
if !this.TaskID.Equal(&that1.TaskID) {
return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
}
if !this.KillPolicy.Equal(that1.KillPolicy) {
return fmt.Errorf("KillPolicy this(%v) Not Equal that(%v)", this.KillPolicy, that1.KillPolicy)
}
return nil
}
func (this *Event_Kill) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Event_Kill)
if !ok {
that2, ok := that.(Event_Kill)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.TaskID.Equal(&that1.TaskID) {
return false
}
if !this.KillPolicy.Equal(that1.KillPolicy) {
return false
}
return true
}
func (this *Event_Acknowledged) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Event_Acknowledged)
if !ok {
that2, ok := that.(Event_Acknowledged)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Event_Acknowledged")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Event_Acknowledged but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Event_Acknowledged but is not nil && this == nil")
}
if !this.TaskID.Equal(&that1.TaskID) {
return fmt.Errorf("TaskID this(%v) Not Equal that(%v)", this.TaskID, that1.TaskID)
}
if !bytes.Equal(this.UUID, that1.UUID) {
return fmt.Errorf("UUID this(%v) Not Equal that(%v)", this.UUID, that1.UUID)
}
return nil
}
func (this *Event_Acknowledged) Equal(that interface{}) bool {
if that == nil {