diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index aab9183d331c..d5573fec9a22 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -423,43 +423,43 @@ }, { "ImportPath": "github.com/mesos/mesos-go/auth", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/detector", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/executor", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/mesosproto", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/mesosutil", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/messenger", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/scheduler", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/mesos/mesos-go/upid", - "Comment": "mesos-0.24.0-20-gb164c06", - "Rev": "b164c06f346af1e93aecb6502f83d31dbacdbb91" + "Comment": "v0.0.2-5-ged907b1", + "Rev": "ed907b10717e66325cf2894eb90a0553a89fcb11" }, { "ImportPath": "github.com/miekg/dns", diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.pb.go index 76bd7b3a9d14..2315ad110081 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.pb.go @@ -3,141 +3,146 @@ // DO NOT EDIT! /* - Package mesosproto is a generated protocol buffer package. - - It is generated from these files: - authentication.proto - containerizer.proto - internal.proto - log.proto - mesos.proto - messages.proto - registry.proto - scheduler.proto - state.proto - - It has these top-level messages: - AuthenticateMessage - AuthenticationMechanismsMessage - AuthenticationStartMessage - AuthenticationStepMessage - AuthenticationCompletedMessage - AuthenticationFailedMessage - AuthenticationErrorMessage - Launch - Update - Wait - Destroy - Usage - Termination - Containers - InternalMasterChangeDetected - InternalTryAuthentication - InternalAuthenticationResult - Promise - Action - Metadata - Record - PromiseRequest - PromiseResponse - WriteRequest - WriteResponse - LearnedMessage - RecoverRequest - RecoverResponse - FrameworkID - OfferID - SlaveID - TaskID - ExecutorID - ContainerID - FrameworkInfo - HealthCheck - CommandInfo - ExecutorInfo - MasterInfo - SlaveInfo - Value - Attribute - Resource - TrafficControlStatistics - ResourceStatistics - ResourceUsage - PerfStatistics - Request - Offer - TaskInfo - TaskStatus - Filters - Environment - Parameter - Parameters - Credential - Credentials - ACL - ACLs - RateLimit - RateLimits - Volume - ContainerInfo - Labels - Label - Port - Ports - DiscoveryInfo - Task - StatusUpdate - StatusUpdateRecord - SubmitSchedulerRequest - SubmitSchedulerResponse - ExecutorToFrameworkMessage - FrameworkToExecutorMessage - RegisterFrameworkMessage - ReregisterFrameworkMessage - FrameworkRegisteredMessage - FrameworkReregisteredMessage - UnregisterFrameworkMessage - DeactivateFrameworkMessage - ResourceRequestMessage - ResourceOffersMessage - LaunchTasksMessage - RescindResourceOfferMessage - ReviveOffersMessage - RunTaskMessage - KillTaskMessage - StatusUpdateMessage - StatusUpdateAcknowledgementMessage - LostSlaveMessage - ReconcileTasksMessage - FrameworkErrorMessage - RegisterSlaveMessage - ReregisterSlaveMessage - SlaveRegisteredMessage - SlaveReregisteredMessage - UnregisterSlaveMessage - MasterSlaveConnection - PingSlaveMessage - PongSlaveMessage - ShutdownFrameworkMessage - ShutdownExecutorMessage - UpdateFrameworkMessage - CheckpointResourcesMessage - UpdateSlaveMessage - RegisterExecutorMessage - ExecutorRegisteredMessage - ExecutorReregisteredMessage - ExitedExecutorMessage - ReconnectExecutorMessage - ReregisterExecutorMessage - ShutdownMessage - Archive - TaskHealthStatus - HookExecuted - Registry - Event - Call - Entry - Operation +Package mesosproto is a generated protocol buffer package. + +It is generated from these files: + authentication.proto + authorizer.proto + containerizer.proto + internal.proto + log.proto + mesos.proto + messages.proto + registry.proto + scheduler.proto + state.proto + +It has these top-level messages: + AuthenticateMessage + AuthenticationMechanismsMessage + AuthenticationStartMessage + AuthenticationStepMessage + AuthenticationCompletedMessage + AuthenticationFailedMessage + AuthenticationErrorMessage + ACL + ACLs + Launch + Update + Wait + Destroy + Usage + Termination + Containers + InternalMasterChangeDetected + InternalTryAuthentication + InternalAuthenticationResult + Promise + Action + Metadata + Record + PromiseRequest + PromiseResponse + WriteRequest + WriteResponse + LearnedMessage + RecoverRequest + RecoverResponse + FrameworkID + OfferID + SlaveID + TaskID + ExecutorID + ContainerID + Address + URL + FrameworkInfo + HealthCheck + CommandInfo + ExecutorInfo + MasterInfo + SlaveInfo + Value + Attribute + Resource + TrafficControlStatistics + ResourceStatistics + ResourceUsage + PerfStatistics + Request + Offer + TaskInfo + TaskStatus + Filters + Environment + Parameter + Parameters + Credential + Credentials + RateLimit + RateLimits + Image + Volume + ContainerInfo + Labels + Label + Port + Ports + DiscoveryInfo + AppcImageManifest + Task + StatusUpdate + StatusUpdateRecord + SubmitSchedulerRequest + SubmitSchedulerResponse + ExecutorToFrameworkMessage + FrameworkToExecutorMessage + RegisterFrameworkMessage + ReregisterFrameworkMessage + FrameworkRegisteredMessage + FrameworkReregisteredMessage + UnregisterFrameworkMessage + DeactivateFrameworkMessage + ResourceRequestMessage + ResourceOffersMessage + LaunchTasksMessage + RescindResourceOfferMessage + ReviveOffersMessage + RunTaskMessage + KillTaskMessage + StatusUpdateMessage + StatusUpdateAcknowledgementMessage + LostSlaveMessage + ReconcileTasksMessage + FrameworkErrorMessage + RegisterSlaveMessage + ReregisterSlaveMessage + SlaveRegisteredMessage + SlaveReregisteredMessage + UnregisterSlaveMessage + MasterSlaveConnection + PingSlaveMessage + PongSlaveMessage + ShutdownFrameworkMessage + ShutdownExecutorMessage + UpdateFrameworkMessage + CheckpointResourcesMessage + UpdateSlaveMessage + RegisterExecutorMessage + ExecutorRegisteredMessage + ExecutorReregisteredMessage + ExitedExecutorMessage + ReconnectExecutorMessage + ReregisterExecutorMessage + ShutdownMessage + Archive + TaskHealthStatus + HookExecuted + Registry + Event + Call + Entry + Operation */ package mesosproto @@ -145,6 +150,18 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" +// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" + +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -155,9 +172,8 @@ type AuthenticateMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticateMessage) Reset() { *m = AuthenticateMessage{} } -func (m *AuthenticateMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticateMessage) ProtoMessage() {} +func (m *AuthenticateMessage) Reset() { *m = AuthenticateMessage{} } +func (*AuthenticateMessage) ProtoMessage() {} func (m *AuthenticateMessage) GetPid() string { if m != nil && m.Pid != nil { @@ -171,9 +187,8 @@ type AuthenticationMechanismsMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationMechanismsMessage) Reset() { *m = AuthenticationMechanismsMessage{} } -func (m *AuthenticationMechanismsMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationMechanismsMessage) ProtoMessage() {} +func (m *AuthenticationMechanismsMessage) Reset() { *m = AuthenticationMechanismsMessage{} } +func (*AuthenticationMechanismsMessage) ProtoMessage() {} func (m *AuthenticationMechanismsMessage) GetMechanisms() []string { if m != nil { @@ -188,9 +203,8 @@ type AuthenticationStartMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationStartMessage) Reset() { *m = AuthenticationStartMessage{} } -func (m *AuthenticationStartMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationStartMessage) ProtoMessage() {} +func (m *AuthenticationStartMessage) Reset() { *m = AuthenticationStartMessage{} } +func (*AuthenticationStartMessage) ProtoMessage() {} func (m *AuthenticationStartMessage) GetMechanism() string { if m != nil && m.Mechanism != nil { @@ -211,9 +225,8 @@ type AuthenticationStepMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationStepMessage) Reset() { *m = AuthenticationStepMessage{} } -func (m *AuthenticationStepMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationStepMessage) ProtoMessage() {} +func (m *AuthenticationStepMessage) Reset() { *m = AuthenticationStepMessage{} } +func (*AuthenticationStepMessage) ProtoMessage() {} func (m *AuthenticationStepMessage) GetData() []byte { if m != nil { @@ -226,26 +239,23 @@ type AuthenticationCompletedMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationCompletedMessage) Reset() { *m = AuthenticationCompletedMessage{} } -func (m *AuthenticationCompletedMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationCompletedMessage) ProtoMessage() {} +func (m *AuthenticationCompletedMessage) Reset() { *m = AuthenticationCompletedMessage{} } +func (*AuthenticationCompletedMessage) ProtoMessage() {} type AuthenticationFailedMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationFailedMessage) Reset() { *m = AuthenticationFailedMessage{} } -func (m *AuthenticationFailedMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationFailedMessage) ProtoMessage() {} +func (m *AuthenticationFailedMessage) Reset() { *m = AuthenticationFailedMessage{} } +func (*AuthenticationFailedMessage) ProtoMessage() {} type AuthenticationErrorMessage struct { Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_unrecognized []byte `json:"-"` } -func (m *AuthenticationErrorMessage) Reset() { *m = AuthenticationErrorMessage{} } -func (m *AuthenticationErrorMessage) String() string { return proto.CompactTextString(m) } -func (*AuthenticationErrorMessage) ProtoMessage() {} +func (m *AuthenticationErrorMessage) Reset() { *m = AuthenticationErrorMessage{} } +func (*AuthenticationErrorMessage) ProtoMessage() {} func (m *AuthenticationErrorMessage) GetError() string { if m != nil && m.Error != nil { @@ -253,3 +263,1712 @@ func (m *AuthenticationErrorMessage) GetError() string { } return "" } + +func (this *AuthenticateMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticateMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticateMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticateMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticateMessagebut is not nil && this == nil") + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid) + } + } else if this.Pid != nil { + return fmt.Errorf("this.Pid == nil && that.Pid != nil") + } else if that1.Pid != nil { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticateMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticateMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return false + } + } else if this.Pid != nil { + return false + } else if that1.Pid != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationMechanismsMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationMechanismsMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationMechanismsMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationMechanismsMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationMechanismsMessagebut is not nil && this == nil") + } + if len(this.Mechanisms) != len(that1.Mechanisms) { + return fmt.Errorf("Mechanisms this(%v) Not Equal that(%v)", len(this.Mechanisms), len(that1.Mechanisms)) + } + for i := range this.Mechanisms { + if this.Mechanisms[i] != that1.Mechanisms[i] { + return fmt.Errorf("Mechanisms this[%v](%v) Not Equal that[%v](%v)", i, this.Mechanisms[i], i, that1.Mechanisms[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationMechanismsMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationMechanismsMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Mechanisms) != len(that1.Mechanisms) { + return false + } + for i := range this.Mechanisms { + if this.Mechanisms[i] != that1.Mechanisms[i] { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationStartMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationStartMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationStartMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationStartMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationStartMessagebut is not nil && this == nil") + } + if this.Mechanism != nil && that1.Mechanism != nil { + if *this.Mechanism != *that1.Mechanism { + return fmt.Errorf("Mechanism this(%v) Not Equal that(%v)", *this.Mechanism, *that1.Mechanism) + } + } else if this.Mechanism != nil { + return fmt.Errorf("this.Mechanism == nil && that.Mechanism != nil") + } else if that1.Mechanism != nil { + return fmt.Errorf("Mechanism this(%v) Not Equal that(%v)", this.Mechanism, that1.Mechanism) + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationStartMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationStartMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Mechanism != nil && that1.Mechanism != nil { + if *this.Mechanism != *that1.Mechanism { + return false + } + } else if this.Mechanism != nil { + return false + } else if that1.Mechanism != nil { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationStepMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationStepMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationStepMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationStepMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationStepMessagebut is not nil && this == nil") + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationStepMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationStepMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationCompletedMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationCompletedMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationCompletedMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationCompletedMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationCompletedMessagebut is not nil && this == nil") + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationCompletedMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationCompletedMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationFailedMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationFailedMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationFailedMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationFailedMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationFailedMessagebut is not nil && this == nil") + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationFailedMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationFailedMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticationErrorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*AuthenticationErrorMessage) + if !ok { + return fmt.Errorf("that is not of type *AuthenticationErrorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *AuthenticationErrorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *AuthenticationErrorMessagebut is not nil && this == nil") + } + if this.Error != nil && that1.Error != nil { + if *this.Error != *that1.Error { + return fmt.Errorf("Error this(%v) Not Equal that(%v)", *this.Error, *that1.Error) + } + } else if this.Error != nil { + return fmt.Errorf("this.Error == nil && that.Error != nil") + } else if that1.Error != nil { + return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *AuthenticationErrorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*AuthenticationErrorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Error != nil && that1.Error != nil { + if *this.Error != *that1.Error { + return false + } + } else if this.Error != nil { + return false + } else if that1.Error != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *AuthenticateMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.AuthenticateMessage{") + if this.Pid != nil { + s = append(s, "Pid: "+valueToGoStringAuthentication(this.Pid, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationMechanismsMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.AuthenticationMechanismsMessage{") + if this.Mechanisms != nil { + s = append(s, "Mechanisms: "+fmt.Sprintf("%#v", this.Mechanisms)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationStartMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.AuthenticationStartMessage{") + if this.Mechanism != nil { + s = append(s, "Mechanism: "+valueToGoStringAuthentication(this.Mechanism, "string")+",\n") + } + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringAuthentication(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationStepMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.AuthenticationStepMessage{") + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringAuthentication(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationCompletedMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&mesosproto.AuthenticationCompletedMessage{") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationFailedMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&mesosproto.AuthenticationFailedMessage{") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AuthenticationErrorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.AuthenticationErrorMessage{") + if this.Error != nil { + s = append(s, "Error: "+valueToGoStringAuthentication(this.Error, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringAuthentication(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringAuthentication(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *AuthenticateMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticateMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Pid == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("pid") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthentication(data, i, uint64(len(*m.Pid))) + i += copy(data[i:], *m.Pid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationMechanismsMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationMechanismsMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Mechanisms) > 0 { + for _, s := range m.Mechanisms { + data[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationStartMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationStartMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Mechanism == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("mechanism") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthentication(data, i, uint64(len(*m.Mechanism))) + i += copy(data[i:], *m.Mechanism) + } + if m.Data != nil { + data[i] = 0x12 + i++ + i = encodeVarintAuthentication(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationStepMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationStepMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Data == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthentication(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationCompletedMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationCompletedMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationFailedMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationFailedMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AuthenticationErrorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AuthenticationErrorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Error != nil { + data[i] = 0xa + i++ + i = encodeVarintAuthentication(data, i, uint64(len(*m.Error))) + i += copy(data[i:], *m.Error) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Authentication(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Authentication(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintAuthentication(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedAuthenticateMessage(r randyAuthentication, easy bool) *AuthenticateMessage { + this := &AuthenticateMessage{} + v1 := randStringAuthentication(r) + this.Pid = &v1 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2) + } + return this +} + +func NewPopulatedAuthenticationMechanismsMessage(r randyAuthentication, easy bool) *AuthenticationMechanismsMessage { + this := &AuthenticationMechanismsMessage{} + if r.Intn(10) != 0 { + v2 := r.Intn(10) + this.Mechanisms = make([]string, v2) + for i := 0; i < v2; i++ { + this.Mechanisms[i] = randStringAuthentication(r) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2) + } + return this +} + +func NewPopulatedAuthenticationStartMessage(r randyAuthentication, easy bool) *AuthenticationStartMessage { + this := &AuthenticationStartMessage{} + v3 := randStringAuthentication(r) + this.Mechanism = &v3 + if r.Intn(10) != 0 { + v4 := r.Intn(100) + this.Data = make([]byte, v4) + for i := 0; i < v4; i++ { + this.Data[i] = byte(r.Intn(256)) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 3) + } + return this +} + +func NewPopulatedAuthenticationStepMessage(r randyAuthentication, easy bool) *AuthenticationStepMessage { + this := &AuthenticationStepMessage{} + v5 := r.Intn(100) + this.Data = make([]byte, v5) + for i := 0; i < v5; i++ { + this.Data[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2) + } + return this +} + +func NewPopulatedAuthenticationCompletedMessage(r randyAuthentication, easy bool) *AuthenticationCompletedMessage { + this := &AuthenticationCompletedMessage{} + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 1) + } + return this +} + +func NewPopulatedAuthenticationFailedMessage(r randyAuthentication, easy bool) *AuthenticationFailedMessage { + this := &AuthenticationFailedMessage{} + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 1) + } + return this +} + +func NewPopulatedAuthenticationErrorMessage(r randyAuthentication, easy bool) *AuthenticationErrorMessage { + this := &AuthenticationErrorMessage{} + if r.Intn(10) != 0 { + v6 := randStringAuthentication(r) + this.Error = &v6 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2) + } + return this +} + +type randyAuthentication interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneAuthentication(r randyAuthentication) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringAuthentication(r randyAuthentication) string { + v7 := r.Intn(100) + tmps := make([]rune, v7) + for i := 0; i < v7; i++ { + tmps[i] = randUTF8RuneAuthentication(r) + } + return string(tmps) +} +func randUnrecognizedAuthentication(r randyAuthentication, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldAuthentication(data, r, fieldNumber, wire) + } + return data +} +func randFieldAuthentication(data []byte, r randyAuthentication, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateAuthentication(data, uint64(key)) + v8 := r.Int63() + if r.Intn(2) == 0 { + v8 *= -1 + } + data = encodeVarintPopulateAuthentication(data, uint64(v8)) + case 1: + data = encodeVarintPopulateAuthentication(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateAuthentication(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateAuthentication(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateAuthentication(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateAuthentication(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *AuthenticateMessage) Size() (n int) { + var l int + _ = l + if m.Pid != nil { + l = len(*m.Pid) + n += 1 + l + sovAuthentication(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationMechanismsMessage) Size() (n int) { + var l int + _ = l + if len(m.Mechanisms) > 0 { + for _, s := range m.Mechanisms { + l = len(s) + n += 1 + l + sovAuthentication(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationStartMessage) Size() (n int) { + var l int + _ = l + if m.Mechanism != nil { + l = len(*m.Mechanism) + n += 1 + l + sovAuthentication(uint64(l)) + } + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovAuthentication(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationStepMessage) Size() (n int) { + var l int + _ = l + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovAuthentication(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationCompletedMessage) Size() (n int) { + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationFailedMessage) Size() (n int) { + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AuthenticationErrorMessage) Size() (n int) { + var l int + _ = l + if m.Error != nil { + l = len(*m.Error) + n += 1 + l + sovAuthentication(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAuthentication(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozAuthentication(x uint64) (n int) { + return sovAuthentication(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *AuthenticateMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticateMessage{`, + `Pid:` + valueToStringAuthentication(this.Pid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationMechanismsMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationMechanismsMessage{`, + `Mechanisms:` + fmt.Sprintf("%v", this.Mechanisms) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationStartMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationStartMessage{`, + `Mechanism:` + valueToStringAuthentication(this.Mechanism) + `,`, + `Data:` + valueToStringAuthentication(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationStepMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationStepMessage{`, + `Data:` + valueToStringAuthentication(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationCompletedMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationCompletedMessage{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationFailedMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationFailedMessage{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *AuthenticationErrorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AuthenticationErrorMessage{`, + `Error:` + valueToStringAuthentication(this.Error) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringAuthentication(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *AuthenticateMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Pid = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("pid") + } + + return nil +} +func (m *AuthenticationMechanismsMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mechanisms", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Mechanisms = append(m.Mechanisms, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *AuthenticationStartMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mechanism", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Mechanism = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("mechanism") + } + + return nil +} +func (m *AuthenticationStepMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } + + return nil +} +func (m *AuthenticationCompletedMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + switch fieldNum { + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *AuthenticationFailedMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + switch fieldNum { + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *AuthenticationErrorMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthentication + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Error = &s + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthentication(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthentication + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipAuthentication(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthAuthentication + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipAuthentication(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthAuthentication = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.proto index d8e42569e398..6fd3f55726b0 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authentication.proto @@ -18,8 +18,19 @@ package mesosproto; -import "mesos.proto"; - +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; + +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; message AuthenticateMessage { required string pid = 1; // PID that needs to be authenticated. diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.pb.go new file mode 100644 index 000000000000..6e06b300dbec --- /dev/null +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.pb.go @@ -0,0 +1,2183 @@ +// Code generated by protoc-gen-gogo. +// source: authorizer.proto +// DO NOT EDIT! + +package mesosproto + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" + +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ACL_Entity_Type int32 + +const ( + ACL_Entity_SOME ACL_Entity_Type = 0 + ACL_Entity_ANY ACL_Entity_Type = 1 + ACL_Entity_NONE ACL_Entity_Type = 2 +) + +var ACL_Entity_Type_name = map[int32]string{ + 0: "SOME", + 1: "ANY", + 2: "NONE", +} +var ACL_Entity_Type_value = map[string]int32{ + "SOME": 0, + "ANY": 1, + "NONE": 2, +} + +func (x ACL_Entity_Type) Enum() *ACL_Entity_Type { + p := new(ACL_Entity_Type) + *p = x + return p +} +func (x ACL_Entity_Type) String() string { + return proto.EnumName(ACL_Entity_Type_name, int32(x)) +} +func (x *ACL_Entity_Type) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(ACL_Entity_Type_value, data, "ACL_Entity_Type") + if err != nil { + return err + } + *x = ACL_Entity_Type(value) + return nil +} + +// * +// ACLs used for local authorization (See authorization.md file in the +// docs). +type ACL struct { + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACL) Reset() { *m = ACL{} } +func (*ACL) ProtoMessage() {} + +// Entity is used to describe a subject(s) or an object(s) of an ACL. +// NOTE: +// To allow everyone access to an Entity set its type to 'ANY'. +// To deny access to an Entity set its type to 'NONE'. +type ACL_Entity struct { + Type *ACL_Entity_Type `protobuf:"varint,1,opt,name=type,enum=mesosproto.ACL_Entity_Type,def=0" json:"type,omitempty"` + Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACL_Entity) Reset() { *m = ACL_Entity{} } +func (*ACL_Entity) ProtoMessage() {} + +const Default_ACL_Entity_Type ACL_Entity_Type = ACL_Entity_SOME + +func (m *ACL_Entity) GetType() ACL_Entity_Type { + if m != nil && m.Type != nil { + return *m.Type + } + return Default_ACL_Entity_Type +} + +func (m *ACL_Entity) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +// ACLs. +type ACL_RegisterFramework struct { + // Subjects. + Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` + // Objects. + Roles *ACL_Entity `protobuf:"bytes,2,req,name=roles" json:"roles,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACL_RegisterFramework) Reset() { *m = ACL_RegisterFramework{} } +func (*ACL_RegisterFramework) ProtoMessage() {} + +func (m *ACL_RegisterFramework) GetPrincipals() *ACL_Entity { + if m != nil { + return m.Principals + } + return nil +} + +func (m *ACL_RegisterFramework) GetRoles() *ACL_Entity { + if m != nil { + return m.Roles + } + return nil +} + +type ACL_RunTask struct { + // Subjects. + Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` + // Objects. + Users *ACL_Entity `protobuf:"bytes,2,req,name=users" json:"users,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACL_RunTask) Reset() { *m = ACL_RunTask{} } +func (*ACL_RunTask) ProtoMessage() {} + +func (m *ACL_RunTask) GetPrincipals() *ACL_Entity { + if m != nil { + return m.Principals + } + return nil +} + +func (m *ACL_RunTask) GetUsers() *ACL_Entity { + if m != nil { + return m.Users + } + return nil +} + +// Which principals are authorized to shutdown frameworks of other +// principals. +type ACL_ShutdownFramework struct { + // Subjects. + Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` + // Objects. + FrameworkPrincipals *ACL_Entity `protobuf:"bytes,2,req,name=framework_principals" json:"framework_principals,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACL_ShutdownFramework) Reset() { *m = ACL_ShutdownFramework{} } +func (*ACL_ShutdownFramework) ProtoMessage() {} + +func (m *ACL_ShutdownFramework) GetPrincipals() *ACL_Entity { + if m != nil { + return m.Principals + } + return nil +} + +func (m *ACL_ShutdownFramework) GetFrameworkPrincipals() *ACL_Entity { + if m != nil { + return m.FrameworkPrincipals + } + return nil +} + +// * +// Collection of ACL. +// +// Each authorization request is evaluated against the ACLs in the order +// they are defined. +// +// For simplicity, the ACLs for a given action are not aggregated even +// when they have the same subjects or objects. The first ACL that +// matches the request determines whether that request should be +// permitted or not. An ACL matches iff both the subjects +// (e.g., clients, principals) and the objects (e.g., urls, users, +// roles) of the ACL match the request. +// +// If none of the ACLs match the request, the 'permissive' field +// determines whether the request should be permitted or not. +// +// TODO(vinod): Do aggregation of ACLs when possible. +// +type ACLs struct { + Permissive *bool `protobuf:"varint,1,opt,name=permissive,def=1" json:"permissive,omitempty"` + RegisterFrameworks []*ACL_RegisterFramework `protobuf:"bytes,2,rep,name=register_frameworks" json:"register_frameworks,omitempty"` + RunTasks []*ACL_RunTask `protobuf:"bytes,3,rep,name=run_tasks" json:"run_tasks,omitempty"` + ShutdownFrameworks []*ACL_ShutdownFramework `protobuf:"bytes,4,rep,name=shutdown_frameworks" json:"shutdown_frameworks,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ACLs) Reset() { *m = ACLs{} } +func (*ACLs) ProtoMessage() {} + +const Default_ACLs_Permissive bool = true + +func (m *ACLs) GetPermissive() bool { + if m != nil && m.Permissive != nil { + return *m.Permissive + } + return Default_ACLs_Permissive +} + +func (m *ACLs) GetRegisterFrameworks() []*ACL_RegisterFramework { + if m != nil { + return m.RegisterFrameworks + } + return nil +} + +func (m *ACLs) GetRunTasks() []*ACL_RunTask { + if m != nil { + return m.RunTasks + } + return nil +} + +func (m *ACLs) GetShutdownFrameworks() []*ACL_ShutdownFramework { + if m != nil { + return m.ShutdownFrameworks + } + return nil +} + +func init() { + proto.RegisterEnum("mesosproto.ACL_Entity_Type", ACL_Entity_Type_name, ACL_Entity_Type_value) +} +func (this *ACL) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACL) + if !ok { + return fmt.Errorf("that is not of type *ACL") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACL but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACLbut is not nil && this == nil") + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACL) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACL) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACL_Entity) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACL_Entity) + if !ok { + return fmt.Errorf("that is not of type *ACL_Entity") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACL_Entity but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACL_Entitybut is not nil && this == nil") + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + } + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) + } + if len(this.Values) != len(that1.Values) { + return fmt.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values)) + } + for i := range this.Values { + if this.Values[i] != that1.Values[i] { + return fmt.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACL_Entity) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACL_Entity) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return false + } + } else if this.Type != nil { + return false + } else if that1.Type != nil { + return false + } + if len(this.Values) != len(that1.Values) { + return false + } + for i := range this.Values { + if this.Values[i] != that1.Values[i] { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACL_RegisterFramework) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACL_RegisterFramework) + if !ok { + return fmt.Errorf("that is not of type *ACL_RegisterFramework") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACL_RegisterFramework but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACL_RegisterFrameworkbut is not nil && this == nil") + } + if !this.Principals.Equal(that1.Principals) { + return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) + } + if !this.Roles.Equal(that1.Roles) { + return fmt.Errorf("Roles this(%v) Not Equal that(%v)", this.Roles, that1.Roles) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACL_RegisterFramework) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACL_RegisterFramework) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Principals.Equal(that1.Principals) { + return false + } + if !this.Roles.Equal(that1.Roles) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACL_RunTask) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACL_RunTask) + if !ok { + return fmt.Errorf("that is not of type *ACL_RunTask") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACL_RunTask but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACL_RunTaskbut is not nil && this == nil") + } + if !this.Principals.Equal(that1.Principals) { + return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) + } + if !this.Users.Equal(that1.Users) { + return fmt.Errorf("Users this(%v) Not Equal that(%v)", this.Users, that1.Users) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACL_RunTask) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACL_RunTask) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Principals.Equal(that1.Principals) { + return false + } + if !this.Users.Equal(that1.Users) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACL_ShutdownFramework) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACL_ShutdownFramework) + if !ok { + return fmt.Errorf("that is not of type *ACL_ShutdownFramework") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACL_ShutdownFramework but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACL_ShutdownFrameworkbut is not nil && this == nil") + } + if !this.Principals.Equal(that1.Principals) { + return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) + } + if !this.FrameworkPrincipals.Equal(that1.FrameworkPrincipals) { + return fmt.Errorf("FrameworkPrincipals this(%v) Not Equal that(%v)", this.FrameworkPrincipals, that1.FrameworkPrincipals) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACL_ShutdownFramework) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACL_ShutdownFramework) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Principals.Equal(that1.Principals) { + return false + } + if !this.FrameworkPrincipals.Equal(that1.FrameworkPrincipals) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACLs) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ACLs) + if !ok { + return fmt.Errorf("that is not of type *ACLs") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ACLs but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ACLsbut is not nil && this == nil") + } + if this.Permissive != nil && that1.Permissive != nil { + if *this.Permissive != *that1.Permissive { + return fmt.Errorf("Permissive this(%v) Not Equal that(%v)", *this.Permissive, *that1.Permissive) + } + } else if this.Permissive != nil { + return fmt.Errorf("this.Permissive == nil && that.Permissive != nil") + } else if that1.Permissive != nil { + return fmt.Errorf("Permissive this(%v) Not Equal that(%v)", this.Permissive, that1.Permissive) + } + if len(this.RegisterFrameworks) != len(that1.RegisterFrameworks) { + return fmt.Errorf("RegisterFrameworks this(%v) Not Equal that(%v)", len(this.RegisterFrameworks), len(that1.RegisterFrameworks)) + } + for i := range this.RegisterFrameworks { + if !this.RegisterFrameworks[i].Equal(that1.RegisterFrameworks[i]) { + return fmt.Errorf("RegisterFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.RegisterFrameworks[i], i, that1.RegisterFrameworks[i]) + } + } + if len(this.RunTasks) != len(that1.RunTasks) { + return fmt.Errorf("RunTasks this(%v) Not Equal that(%v)", len(this.RunTasks), len(that1.RunTasks)) + } + for i := range this.RunTasks { + if !this.RunTasks[i].Equal(that1.RunTasks[i]) { + return fmt.Errorf("RunTasks this[%v](%v) Not Equal that[%v](%v)", i, this.RunTasks[i], i, that1.RunTasks[i]) + } + } + if len(this.ShutdownFrameworks) != len(that1.ShutdownFrameworks) { + return fmt.Errorf("ShutdownFrameworks this(%v) Not Equal that(%v)", len(this.ShutdownFrameworks), len(that1.ShutdownFrameworks)) + } + for i := range this.ShutdownFrameworks { + if !this.ShutdownFrameworks[i].Equal(that1.ShutdownFrameworks[i]) { + return fmt.Errorf("ShutdownFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.ShutdownFrameworks[i], i, that1.ShutdownFrameworks[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ACLs) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ACLs) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Permissive != nil && that1.Permissive != nil { + if *this.Permissive != *that1.Permissive { + return false + } + } else if this.Permissive != nil { + return false + } else if that1.Permissive != nil { + return false + } + if len(this.RegisterFrameworks) != len(that1.RegisterFrameworks) { + return false + } + for i := range this.RegisterFrameworks { + if !this.RegisterFrameworks[i].Equal(that1.RegisterFrameworks[i]) { + return false + } + } + if len(this.RunTasks) != len(that1.RunTasks) { + return false + } + for i := range this.RunTasks { + if !this.RunTasks[i].Equal(that1.RunTasks[i]) { + return false + } + } + if len(this.ShutdownFrameworks) != len(that1.ShutdownFrameworks) { + return false + } + for i := range this.ShutdownFrameworks { + if !this.ShutdownFrameworks[i].Equal(that1.ShutdownFrameworks[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ACL) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&mesosproto.ACL{") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ACL_Entity) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ACL_Entity{") + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringAuthorizer(this.Type, "mesosproto.ACL_Entity_Type")+",\n") + } + if this.Values != nil { + s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ACL_RegisterFramework) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ACL_RegisterFramework{") + if this.Principals != nil { + s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") + } + if this.Roles != nil { + s = append(s, "Roles: "+fmt.Sprintf("%#v", this.Roles)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ACL_RunTask) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ACL_RunTask{") + if this.Principals != nil { + s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") + } + if this.Users != nil { + s = append(s, "Users: "+fmt.Sprintf("%#v", this.Users)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ACL_ShutdownFramework) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ACL_ShutdownFramework{") + if this.Principals != nil { + s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") + } + if this.FrameworkPrincipals != nil { + s = append(s, "FrameworkPrincipals: "+fmt.Sprintf("%#v", this.FrameworkPrincipals)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ACLs) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.ACLs{") + if this.Permissive != nil { + s = append(s, "Permissive: "+valueToGoStringAuthorizer(this.Permissive, "bool")+",\n") + } + if this.RegisterFrameworks != nil { + s = append(s, "RegisterFrameworks: "+fmt.Sprintf("%#v", this.RegisterFrameworks)+",\n") + } + if this.RunTasks != nil { + s = append(s, "RunTasks: "+fmt.Sprintf("%#v", this.RunTasks)+",\n") + } + if this.ShutdownFrameworks != nil { + s = append(s, "ShutdownFrameworks: "+fmt.Sprintf("%#v", this.ShutdownFrameworks)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringAuthorizer(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringAuthorizer(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *ACL) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACL) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ACL_Entity) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACL_Entity) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Type != nil { + data[i] = 0x8 + i++ + i = encodeVarintAuthorizer(data, i, uint64(*m.Type)) + } + if len(m.Values) > 0 { + for _, s := range m.Values { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ACL_RegisterFramework) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACL_RegisterFramework) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Principals == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.Principals.Size())) + n1, err := m.Principals.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.Roles == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("roles") + } else { + data[i] = 0x12 + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.Roles.Size())) + n2, err := m.Roles.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ACL_RunTask) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACL_RunTask) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Principals == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.Principals.Size())) + n3, err := m.Principals.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Users == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("users") + } else { + data[i] = 0x12 + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.Users.Size())) + n4, err := m.Users.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ACL_ShutdownFramework) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACL_ShutdownFramework) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Principals == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } else { + data[i] = 0xa + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.Principals.Size())) + n5, err := m.Principals.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.FrameworkPrincipals == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_principals") + } else { + data[i] = 0x12 + i++ + i = encodeVarintAuthorizer(data, i, uint64(m.FrameworkPrincipals.Size())) + n6, err := m.FrameworkPrincipals.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ACLs) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ACLs) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Permissive != nil { + data[i] = 0x8 + i++ + if *m.Permissive { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if len(m.RegisterFrameworks) > 0 { + for _, msg := range m.RegisterFrameworks { + data[i] = 0x12 + i++ + i = encodeVarintAuthorizer(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.RunTasks) > 0 { + for _, msg := range m.RunTasks { + data[i] = 0x1a + i++ + i = encodeVarintAuthorizer(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.ShutdownFrameworks) > 0 { + for _, msg := range m.ShutdownFrameworks { + data[i] = 0x22 + i++ + i = encodeVarintAuthorizer(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Authorizer(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Authorizer(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintAuthorizer(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedACL(r randyAuthorizer, easy bool) *ACL { + this := &ACL{} + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 1) + } + return this +} + +func NewPopulatedACL_Entity(r randyAuthorizer, easy bool) *ACL_Entity { + this := &ACL_Entity{} + if r.Intn(10) != 0 { + v1 := ACL_Entity_Type([]int32{0, 1, 2}[r.Intn(3)]) + this.Type = &v1 + } + if r.Intn(10) != 0 { + v2 := r.Intn(10) + this.Values = make([]string, v2) + for i := 0; i < v2; i++ { + this.Values[i] = randStringAuthorizer(r) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 3) + } + return this +} + +func NewPopulatedACL_RegisterFramework(r randyAuthorizer, easy bool) *ACL_RegisterFramework { + this := &ACL_RegisterFramework{} + this.Principals = NewPopulatedACL_Entity(r, easy) + this.Roles = NewPopulatedACL_Entity(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 3) + } + return this +} + +func NewPopulatedACL_RunTask(r randyAuthorizer, easy bool) *ACL_RunTask { + this := &ACL_RunTask{} + this.Principals = NewPopulatedACL_Entity(r, easy) + this.Users = NewPopulatedACL_Entity(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 3) + } + return this +} + +func NewPopulatedACL_ShutdownFramework(r randyAuthorizer, easy bool) *ACL_ShutdownFramework { + this := &ACL_ShutdownFramework{} + this.Principals = NewPopulatedACL_Entity(r, easy) + this.FrameworkPrincipals = NewPopulatedACL_Entity(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 3) + } + return this +} + +func NewPopulatedACLs(r randyAuthorizer, easy bool) *ACLs { + this := &ACLs{} + if r.Intn(10) != 0 { + v3 := bool(bool(r.Intn(2) == 0)) + this.Permissive = &v3 + } + if r.Intn(10) != 0 { + v4 := r.Intn(10) + this.RegisterFrameworks = make([]*ACL_RegisterFramework, v4) + for i := 0; i < v4; i++ { + this.RegisterFrameworks[i] = NewPopulatedACL_RegisterFramework(r, easy) + } + } + if r.Intn(10) != 0 { + v5 := r.Intn(10) + this.RunTasks = make([]*ACL_RunTask, v5) + for i := 0; i < v5; i++ { + this.RunTasks[i] = NewPopulatedACL_RunTask(r, easy) + } + } + if r.Intn(10) != 0 { + v6 := r.Intn(10) + this.ShutdownFrameworks = make([]*ACL_ShutdownFramework, v6) + for i := 0; i < v6; i++ { + this.ShutdownFrameworks[i] = NewPopulatedACL_ShutdownFramework(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedAuthorizer(r, 5) + } + return this +} + +type randyAuthorizer interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneAuthorizer(r randyAuthorizer) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringAuthorizer(r randyAuthorizer) string { + v7 := r.Intn(100) + tmps := make([]rune, v7) + for i := 0; i < v7; i++ { + tmps[i] = randUTF8RuneAuthorizer(r) + } + return string(tmps) +} +func randUnrecognizedAuthorizer(r randyAuthorizer, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldAuthorizer(data, r, fieldNumber, wire) + } + return data +} +func randFieldAuthorizer(data []byte, r randyAuthorizer, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateAuthorizer(data, uint64(key)) + v8 := r.Int63() + if r.Intn(2) == 0 { + v8 *= -1 + } + data = encodeVarintPopulateAuthorizer(data, uint64(v8)) + case 1: + data = encodeVarintPopulateAuthorizer(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateAuthorizer(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateAuthorizer(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateAuthorizer(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateAuthorizer(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *ACL) Size() (n int) { + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ACL_Entity) Size() (n int) { + var l int + _ = l + if m.Type != nil { + n += 1 + sovAuthorizer(uint64(*m.Type)) + } + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sovAuthorizer(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ACL_RegisterFramework) Size() (n int) { + var l int + _ = l + if m.Principals != nil { + l = m.Principals.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.Roles != nil { + l = m.Roles.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ACL_RunTask) Size() (n int) { + var l int + _ = l + if m.Principals != nil { + l = m.Principals.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.Users != nil { + l = m.Users.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ACL_ShutdownFramework) Size() (n int) { + var l int + _ = l + if m.Principals != nil { + l = m.Principals.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.FrameworkPrincipals != nil { + l = m.FrameworkPrincipals.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ACLs) Size() (n int) { + var l int + _ = l + if m.Permissive != nil { + n += 2 + } + if len(m.RegisterFrameworks) > 0 { + for _, e := range m.RegisterFrameworks { + l = e.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + } + if len(m.RunTasks) > 0 { + for _, e := range m.RunTasks { + l = e.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + } + if len(m.ShutdownFrameworks) > 0 { + for _, e := range m.ShutdownFrameworks { + l = e.Size() + n += 1 + l + sovAuthorizer(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAuthorizer(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozAuthorizer(x uint64) (n int) { + return sovAuthorizer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ACL) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACL{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ACL_Entity) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACL_Entity{`, + `Type:` + valueToStringAuthorizer(this.Type) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ACL_RegisterFramework) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACL_RegisterFramework{`, + `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, + `Roles:` + strings.Replace(fmt.Sprintf("%v", this.Roles), "ACL_Entity", "ACL_Entity", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ACL_RunTask) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACL_RunTask{`, + `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, + `Users:` + strings.Replace(fmt.Sprintf("%v", this.Users), "ACL_Entity", "ACL_Entity", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ACL_ShutdownFramework) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACL_ShutdownFramework{`, + `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, + `FrameworkPrincipals:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkPrincipals), "ACL_Entity", "ACL_Entity", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ACLs) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ACLs{`, + `Permissive:` + valueToStringAuthorizer(this.Permissive) + `,`, + `RegisterFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.RegisterFrameworks), "ACL_RegisterFramework", "ACL_RegisterFramework", 1) + `,`, + `RunTasks:` + strings.Replace(fmt.Sprintf("%v", this.RunTasks), "ACL_RunTask", "ACL_RunTask", 1) + `,`, + `ShutdownFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.ShutdownFrameworks), "ACL_ShutdownFramework", "ACL_ShutdownFramework", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringAuthorizer(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *ACL) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + switch fieldNum { + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *ACL_Entity) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v ACL_Entity_Type + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (ACL_Entity_Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Values = append(m.Values, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *ACL_RegisterFramework) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Principals == nil { + m.Principals = &ACL_Entity{} + } + if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Roles == nil { + m.Roles = &ACL_Entity{} + } + if err := m.Roles.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("roles") + } + + return nil +} +func (m *ACL_RunTask) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Principals == nil { + m.Principals = &ACL_Entity{} + } + if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Users == nil { + m.Users = &ACL_Entity{} + } + if err := m.Users.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("users") + } + + return nil +} +func (m *ACL_ShutdownFramework) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Principals == nil { + m.Principals = &ACL_Entity{} + } + if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkPrincipals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkPrincipals == nil { + m.FrameworkPrincipals = &ACL_Entity{} + } + if err := m.FrameworkPrincipals.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_principals") + } + + return nil +} +func (m *ACLs) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permissive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Permissive = &b + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegisterFrameworks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RegisterFrameworks = append(m.RegisterFrameworks, &ACL_RegisterFramework{}) + if err := m.RegisterFrameworks[len(m.RegisterFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RunTasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RunTasks = append(m.RunTasks, &ACL_RunTask{}) + if err := m.RunTasks[len(m.RunTasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownFrameworks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthorizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ShutdownFrameworks = append(m.ShutdownFrameworks, &ACL_ShutdownFramework{}) + if err := m.ShutdownFrameworks[len(m.ShutdownFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipAuthorizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthorizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipAuthorizer(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthAuthorizer + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipAuthorizer(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthAuthorizer = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.proto new file mode 100644 index 000000000000..03ee69b4e8ef --- /dev/null +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/authorizer.proto @@ -0,0 +1,108 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package mesosproto; + +import "github.com/gogo/protobuf/gogoproto/gogo.proto"; + +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; + +/** + * ACLs used for local authorization (See authorization.md file in the + * docs). + */ +message ACL { + + // Entity is used to describe a subject(s) or an object(s) of an ACL. + // NOTE: + // To allow everyone access to an Entity set its type to 'ANY'. + // To deny access to an Entity set its type to 'NONE'. + message Entity { + enum Type { + SOME = 0; + ANY = 1; + NONE = 2; + } + optional Type type = 1 [default = SOME]; + repeated string values = 2; // Ignored for ANY/NONE. + } + + // ACLs. + message RegisterFramework { + // Subjects. + required Entity principals = 1; // Framework principals. + + // Objects. + required Entity roles = 2; // Roles for resource offers. + } + + message RunTask { + // Subjects. + required Entity principals = 1; // Framework principals. + + // Objects. + required Entity users = 2; // Users to run the tasks/executors as. + } + + // Which principals are authorized to shutdown frameworks of other + // principals. + message ShutdownFramework { + // Subjects. + required Entity principals = 1; + + // Objects. + required Entity framework_principals = 2; + } +} + + +/** + * Collection of ACL. + * + * Each authorization request is evaluated against the ACLs in the order + * they are defined. + * + * For simplicity, the ACLs for a given action are not aggregated even + * when they have the same subjects or objects. The first ACL that + * matches the request determines whether that request should be + * permitted or not. An ACL matches iff both the subjects + * (e.g., clients, principals) and the objects (e.g., urls, users, + * roles) of the ACL match the request. + * + * If none of the ACLs match the request, the 'permissive' field + * determines whether the request should be permitted or not. + * + * TODO(vinod): Do aggregation of ACLs when possible. + * + */ +message ACLs { + optional bool permissive = 1 [default = true]; + repeated ACL.RegisterFramework register_frameworks = 2; + repeated ACL.RunTask run_tasks = 3; + repeated ACL.ShutdownFramework shutdown_frameworks = 4; +} diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.pb.go index da62428f0801..3bb913a1d2b8 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.pb.go @@ -10,6 +10,16 @@ import math "math" // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -30,9 +40,8 @@ type Launch struct { XXX_unrecognized []byte `json:"-"` } -func (m *Launch) Reset() { *m = Launch{} } -func (m *Launch) String() string { return proto.CompactTextString(m) } -func (*Launch) ProtoMessage() {} +func (m *Launch) Reset() { *m = Launch{} } +func (*Launch) ProtoMessage() {} func (m *Launch) GetContainerId() *ContainerID { if m != nil { @@ -99,9 +108,8 @@ type Update struct { XXX_unrecognized []byte `json:"-"` } -func (m *Update) Reset() { *m = Update{} } -func (m *Update) String() string { return proto.CompactTextString(m) } -func (*Update) ProtoMessage() {} +func (m *Update) Reset() { *m = Update{} } +func (*Update) ProtoMessage() {} func (m *Update) GetContainerId() *ContainerID { if m != nil { @@ -125,9 +133,8 @@ type Wait struct { XXX_unrecognized []byte `json:"-"` } -func (m *Wait) Reset() { *m = Wait{} } -func (m *Wait) String() string { return proto.CompactTextString(m) } -func (*Wait) ProtoMessage() {} +func (m *Wait) Reset() { *m = Wait{} } +func (*Wait) ProtoMessage() {} func (m *Wait) GetContainerId() *ContainerID { if m != nil { @@ -144,9 +151,8 @@ type Destroy struct { XXX_unrecognized []byte `json:"-"` } -func (m *Destroy) Reset() { *m = Destroy{} } -func (m *Destroy) String() string { return proto.CompactTextString(m) } -func (*Destroy) ProtoMessage() {} +func (m *Destroy) Reset() { *m = Destroy{} } +func (*Destroy) ProtoMessage() {} func (m *Destroy) GetContainerId() *ContainerID { if m != nil { @@ -163,9 +169,8 @@ type Usage struct { XXX_unrecognized []byte `json:"-"` } -func (m *Usage) Reset() { *m = Usage{} } -func (m *Usage) String() string { return proto.CompactTextString(m) } -func (*Usage) ProtoMessage() {} +func (m *Usage) Reset() { *m = Usage{} } +func (*Usage) ProtoMessage() {} func (m *Usage) GetContainerId() *ContainerID { if m != nil { @@ -189,9 +194,8 @@ type Termination struct { XXX_unrecognized []byte `json:"-"` } -func (m *Termination) Reset() { *m = Termination{} } -func (m *Termination) String() string { return proto.CompactTextString(m) } -func (*Termination) ProtoMessage() {} +func (m *Termination) Reset() { *m = Termination{} } +func (*Termination) ProtoMessage() {} func (m *Termination) GetKilled() bool { if m != nil && m.Killed != nil { @@ -222,9 +226,8 @@ type Containers struct { XXX_unrecognized []byte `json:"-"` } -func (m *Containers) Reset() { *m = Containers{} } -func (m *Containers) String() string { return proto.CompactTextString(m) } -func (*Containers) ProtoMessage() {} +func (m *Containers) Reset() { *m = Containers{} } +func (*Containers) ProtoMessage() {} func (m *Containers) GetContainers() []*ContainerID { if m != nil { @@ -232,3 +235,2388 @@ func (m *Containers) GetContainers() []*ContainerID { } return nil } + +func (this *Launch) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Launch) + if !ok { + return fmt.Errorf("that is not of type *Launch") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Launch but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Launchbut is not nil && this == nil") + } + if !this.ContainerId.Equal(that1.ContainerId) { + return fmt.Errorf("ContainerId this(%v) Not Equal that(%v)", this.ContainerId, that1.ContainerId) + } + if !this.TaskInfo.Equal(that1.TaskInfo) { + return fmt.Errorf("TaskInfo this(%v) Not Equal that(%v)", this.TaskInfo, that1.TaskInfo) + } + if !this.ExecutorInfo.Equal(that1.ExecutorInfo) { + return fmt.Errorf("ExecutorInfo this(%v) Not Equal that(%v)", this.ExecutorInfo, that1.ExecutorInfo) + } + if this.Directory != nil && that1.Directory != nil { + if *this.Directory != *that1.Directory { + return fmt.Errorf("Directory this(%v) Not Equal that(%v)", *this.Directory, *that1.Directory) + } + } else if this.Directory != nil { + return fmt.Errorf("this.Directory == nil && that.Directory != nil") + } else if that1.Directory != nil { + return fmt.Errorf("Directory this(%v) Not Equal that(%v)", this.Directory, that1.Directory) + } + if this.User != nil && that1.User != nil { + if *this.User != *that1.User { + return fmt.Errorf("User this(%v) Not Equal that(%v)", *this.User, *that1.User) + } + } else if this.User != nil { + return fmt.Errorf("this.User == nil && that.User != nil") + } else if that1.User != nil { + return fmt.Errorf("User this(%v) Not Equal that(%v)", this.User, that1.User) + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if this.SlavePid != nil && that1.SlavePid != nil { + if *this.SlavePid != *that1.SlavePid { + return fmt.Errorf("SlavePid this(%v) Not Equal that(%v)", *this.SlavePid, *that1.SlavePid) + } + } else if this.SlavePid != nil { + return fmt.Errorf("this.SlavePid == nil && that.SlavePid != nil") + } else if that1.SlavePid != nil { + return fmt.Errorf("SlavePid this(%v) Not Equal that(%v)", this.SlavePid, that1.SlavePid) + } + if this.Checkpoint != nil && that1.Checkpoint != nil { + if *this.Checkpoint != *that1.Checkpoint { + return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", *this.Checkpoint, *that1.Checkpoint) + } + } else if this.Checkpoint != nil { + return fmt.Errorf("this.Checkpoint == nil && that.Checkpoint != nil") + } else if that1.Checkpoint != nil { + return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", this.Checkpoint, that1.Checkpoint) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Launch) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Launch) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ContainerId.Equal(that1.ContainerId) { + return false + } + if !this.TaskInfo.Equal(that1.TaskInfo) { + return false + } + if !this.ExecutorInfo.Equal(that1.ExecutorInfo) { + return false + } + if this.Directory != nil && that1.Directory != nil { + if *this.Directory != *that1.Directory { + return false + } + } else if this.Directory != nil { + return false + } else if that1.Directory != nil { + return false + } + if this.User != nil && that1.User != nil { + if *this.User != *that1.User { + return false + } + } else if this.User != nil { + return false + } else if that1.User != nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if this.SlavePid != nil && that1.SlavePid != nil { + if *this.SlavePid != *that1.SlavePid { + return false + } + } else if this.SlavePid != nil { + return false + } else if that1.SlavePid != nil { + return false + } + if this.Checkpoint != nil && that1.Checkpoint != nil { + if *this.Checkpoint != *that1.Checkpoint { + return false + } + } else if this.Checkpoint != nil { + return false + } else if that1.Checkpoint != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Update) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Update) + if !ok { + return fmt.Errorf("that is not of type *Update") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Update but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Updatebut is not nil && this == nil") + } + if !this.ContainerId.Equal(that1.ContainerId) { + return fmt.Errorf("ContainerId this(%v) Not Equal that(%v)", this.ContainerId, that1.ContainerId) + } + if len(this.Resources) != len(that1.Resources) { + return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources)) + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return fmt.Errorf("Resources this[%v](%v) Not Equal that[%v](%v)", i, this.Resources[i], i, that1.Resources[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Update) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Update) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ContainerId.Equal(that1.ContainerId) { + return false + } + if len(this.Resources) != len(that1.Resources) { + return false + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Wait) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Wait) + if !ok { + return fmt.Errorf("that is not of type *Wait") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Wait but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Waitbut is not nil && this == nil") + } + if !this.ContainerId.Equal(that1.ContainerId) { + return fmt.Errorf("ContainerId this(%v) Not Equal that(%v)", this.ContainerId, that1.ContainerId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Wait) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Wait) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ContainerId.Equal(that1.ContainerId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Destroy) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Destroy) + if !ok { + return fmt.Errorf("that is not of type *Destroy") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Destroy but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Destroybut is not nil && this == nil") + } + if !this.ContainerId.Equal(that1.ContainerId) { + return fmt.Errorf("ContainerId this(%v) Not Equal that(%v)", this.ContainerId, that1.ContainerId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Destroy) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Destroy) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ContainerId.Equal(that1.ContainerId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Usage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Usage) + if !ok { + return fmt.Errorf("that is not of type *Usage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Usage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Usagebut is not nil && this == nil") + } + if !this.ContainerId.Equal(that1.ContainerId) { + return fmt.Errorf("ContainerId this(%v) Not Equal that(%v)", this.ContainerId, that1.ContainerId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Usage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Usage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ContainerId.Equal(that1.ContainerId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Termination) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Termination) + if !ok { + return fmt.Errorf("that is not of type *Termination") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Termination but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Terminationbut is not nil && this == nil") + } + if this.Killed != nil && that1.Killed != nil { + if *this.Killed != *that1.Killed { + return fmt.Errorf("Killed this(%v) Not Equal that(%v)", *this.Killed, *that1.Killed) + } + } else if this.Killed != nil { + return fmt.Errorf("this.Killed == nil && that.Killed != nil") + } else if that1.Killed != nil { + return fmt.Errorf("Killed this(%v) Not Equal that(%v)", this.Killed, that1.Killed) + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message) + } + } else if this.Message != nil { + return fmt.Errorf("this.Message == nil && that.Message != nil") + } else if that1.Message != nil { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status) + } + } else if this.Status != nil { + return fmt.Errorf("this.Status == nil && that.Status != nil") + } else if that1.Status != nil { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Termination) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Termination) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Killed != nil && that1.Killed != nil { + if *this.Killed != *that1.Killed { + return false + } + } else if this.Killed != nil { + return false + } else if that1.Killed != nil { + return false + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return false + } + } else if this.Message != nil { + return false + } else if that1.Message != nil { + return false + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return false + } + } else if this.Status != nil { + return false + } else if that1.Status != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Containers) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Containers) + if !ok { + return fmt.Errorf("that is not of type *Containers") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Containers but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Containersbut is not nil && this == nil") + } + if len(this.Containers) != len(that1.Containers) { + return fmt.Errorf("Containers this(%v) Not Equal that(%v)", len(this.Containers), len(that1.Containers)) + } + for i := range this.Containers { + if !this.Containers[i].Equal(that1.Containers[i]) { + return fmt.Errorf("Containers this[%v](%v) Not Equal that[%v](%v)", i, this.Containers[i], i, that1.Containers[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Containers) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Containers) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Containers) != len(that1.Containers) { + return false + } + for i := range this.Containers { + if !this.Containers[i].Equal(that1.Containers[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Launch) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 12) + s = append(s, "&mesosproto.Launch{") + if this.ContainerId != nil { + s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") + } + if this.TaskInfo != nil { + s = append(s, "TaskInfo: "+fmt.Sprintf("%#v", this.TaskInfo)+",\n") + } + if this.ExecutorInfo != nil { + s = append(s, "ExecutorInfo: "+fmt.Sprintf("%#v", this.ExecutorInfo)+",\n") + } + if this.Directory != nil { + s = append(s, "Directory: "+valueToGoStringContainerizer(this.Directory, "string")+",\n") + } + if this.User != nil { + s = append(s, "User: "+valueToGoStringContainerizer(this.User, "string")+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.SlavePid != nil { + s = append(s, "SlavePid: "+valueToGoStringContainerizer(this.SlavePid, "string")+",\n") + } + if this.Checkpoint != nil { + s = append(s, "Checkpoint: "+valueToGoStringContainerizer(this.Checkpoint, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Update) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Update{") + if this.ContainerId != nil { + s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") + } + if this.Resources != nil { + s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Wait) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Wait{") + if this.ContainerId != nil { + s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Destroy) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Destroy{") + if this.ContainerId != nil { + s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Usage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Usage{") + if this.ContainerId != nil { + s = append(s, "ContainerId: "+fmt.Sprintf("%#v", this.ContainerId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Termination) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Termination{") + if this.Killed != nil { + s = append(s, "Killed: "+valueToGoStringContainerizer(this.Killed, "bool")+",\n") + } + if this.Message != nil { + s = append(s, "Message: "+valueToGoStringContainerizer(this.Message, "string")+",\n") + } + if this.Status != nil { + s = append(s, "Status: "+valueToGoStringContainerizer(this.Status, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Containers) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Containers{") + if this.Containers != nil { + s = append(s, "Containers: "+fmt.Sprintf("%#v", this.Containers)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringContainerizer(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringContainerizer(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *Launch) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Launch) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ContainerId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ContainerId.Size())) + n1, err := m.ContainerId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.TaskInfo != nil { + data[i] = 0x12 + i++ + i = encodeVarintContainerizer(data, i, uint64(m.TaskInfo.Size())) + n2, err := m.TaskInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.ExecutorInfo != nil { + data[i] = 0x1a + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ExecutorInfo.Size())) + n3, err := m.ExecutorInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Directory != nil { + data[i] = 0x22 + i++ + i = encodeVarintContainerizer(data, i, uint64(len(*m.Directory))) + i += copy(data[i:], *m.Directory) + } + if m.User != nil { + data[i] = 0x2a + i++ + i = encodeVarintContainerizer(data, i, uint64(len(*m.User))) + i += copy(data[i:], *m.User) + } + if m.SlaveId != nil { + data[i] = 0x32 + i++ + i = encodeVarintContainerizer(data, i, uint64(m.SlaveId.Size())) + n4, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.SlavePid != nil { + data[i] = 0x3a + i++ + i = encodeVarintContainerizer(data, i, uint64(len(*m.SlavePid))) + i += copy(data[i:], *m.SlavePid) + } + if m.Checkpoint != nil { + data[i] = 0x40 + i++ + if *m.Checkpoint { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Update) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Update) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ContainerId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ContainerId.Size())) + n5, err := m.ContainerId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if len(m.Resources) > 0 { + for _, msg := range m.Resources { + data[i] = 0x12 + i++ + i = encodeVarintContainerizer(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Wait) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Wait) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ContainerId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ContainerId.Size())) + n6, err := m.ContainerId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Destroy) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Destroy) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ContainerId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ContainerId.Size())) + n7, err := m.ContainerId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Usage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Usage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ContainerId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(m.ContainerId.Size())) + n8, err := m.ContainerId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Termination) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Termination) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Killed == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("killed") + } else { + data[i] = 0x8 + i++ + if *m.Killed { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.Message == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } else { + data[i] = 0x12 + i++ + i = encodeVarintContainerizer(data, i, uint64(len(*m.Message))) + i += copy(data[i:], *m.Message) + } + if m.Status != nil { + data[i] = 0x18 + i++ + i = encodeVarintContainerizer(data, i, uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Containers) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Containers) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Containers) > 0 { + for _, msg := range m.Containers { + data[i] = 0xa + i++ + i = encodeVarintContainerizer(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Containerizer(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Containerizer(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintContainerizer(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedLaunch(r randyContainerizer, easy bool) *Launch { + this := &Launch{} + this.ContainerId = NewPopulatedContainerID(r, easy) + if r.Intn(10) != 0 { + this.TaskInfo = NewPopulatedTaskInfo(r, easy) + } + if r.Intn(10) != 0 { + this.ExecutorInfo = NewPopulatedExecutorInfo(r, easy) + } + if r.Intn(10) != 0 { + v1 := randStringContainerizer(r) + this.Directory = &v1 + } + if r.Intn(10) != 0 { + v2 := randStringContainerizer(r) + this.User = &v2 + } + if r.Intn(10) != 0 { + this.SlaveId = NewPopulatedSlaveID(r, easy) + } + if r.Intn(10) != 0 { + v3 := randStringContainerizer(r) + this.SlavePid = &v3 + } + if r.Intn(10) != 0 { + v4 := bool(bool(r.Intn(2) == 0)) + this.Checkpoint = &v4 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 9) + } + return this +} + +func NewPopulatedUpdate(r randyContainerizer, easy bool) *Update { + this := &Update{} + this.ContainerId = NewPopulatedContainerID(r, easy) + if r.Intn(10) != 0 { + v5 := r.Intn(10) + this.Resources = make([]*Resource, v5) + for i := 0; i < v5; i++ { + this.Resources[i] = NewPopulatedResource(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 3) + } + return this +} + +func NewPopulatedWait(r randyContainerizer, easy bool) *Wait { + this := &Wait{} + this.ContainerId = NewPopulatedContainerID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 2) + } + return this +} + +func NewPopulatedDestroy(r randyContainerizer, easy bool) *Destroy { + this := &Destroy{} + this.ContainerId = NewPopulatedContainerID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 2) + } + return this +} + +func NewPopulatedUsage(r randyContainerizer, easy bool) *Usage { + this := &Usage{} + this.ContainerId = NewPopulatedContainerID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 2) + } + return this +} + +func NewPopulatedTermination(r randyContainerizer, easy bool) *Termination { + this := &Termination{} + v6 := bool(bool(r.Intn(2) == 0)) + this.Killed = &v6 + v7 := randStringContainerizer(r) + this.Message = &v7 + if r.Intn(10) != 0 { + v8 := int32(r.Int31()) + if r.Intn(2) == 0 { + v8 *= -1 + } + this.Status = &v8 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 4) + } + return this +} + +func NewPopulatedContainers(r randyContainerizer, easy bool) *Containers { + this := &Containers{} + if r.Intn(10) != 0 { + v9 := r.Intn(10) + this.Containers = make([]*ContainerID, v9) + for i := 0; i < v9; i++ { + this.Containers[i] = NewPopulatedContainerID(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedContainerizer(r, 2) + } + return this +} + +type randyContainerizer interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneContainerizer(r randyContainerizer) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringContainerizer(r randyContainerizer) string { + v10 := r.Intn(100) + tmps := make([]rune, v10) + for i := 0; i < v10; i++ { + tmps[i] = randUTF8RuneContainerizer(r) + } + return string(tmps) +} +func randUnrecognizedContainerizer(r randyContainerizer, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldContainerizer(data, r, fieldNumber, wire) + } + return data +} +func randFieldContainerizer(data []byte, r randyContainerizer, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateContainerizer(data, uint64(key)) + v11 := r.Int63() + if r.Intn(2) == 0 { + v11 *= -1 + } + data = encodeVarintPopulateContainerizer(data, uint64(v11)) + case 1: + data = encodeVarintPopulateContainerizer(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateContainerizer(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateContainerizer(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateContainerizer(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateContainerizer(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *Launch) Size() (n int) { + var l int + _ = l + if m.ContainerId != nil { + l = m.ContainerId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.TaskInfo != nil { + l = m.TaskInfo.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.ExecutorInfo != nil { + l = m.ExecutorInfo.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.Directory != nil { + l = len(*m.Directory) + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.User != nil { + l = len(*m.User) + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.SlavePid != nil { + l = len(*m.SlavePid) + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.Checkpoint != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Update) Size() (n int) { + var l int + _ = l + if m.ContainerId != nil { + l = m.ContainerId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if len(m.Resources) > 0 { + for _, e := range m.Resources { + l = e.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Wait) Size() (n int) { + var l int + _ = l + if m.ContainerId != nil { + l = m.ContainerId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Destroy) Size() (n int) { + var l int + _ = l + if m.ContainerId != nil { + l = m.ContainerId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Usage) Size() (n int) { + var l int + _ = l + if m.ContainerId != nil { + l = m.ContainerId.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Termination) Size() (n int) { + var l int + _ = l + if m.Killed != nil { + n += 2 + } + if m.Message != nil { + l = len(*m.Message) + n += 1 + l + sovContainerizer(uint64(l)) + } + if m.Status != nil { + n += 1 + sovContainerizer(uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Containers) Size() (n int) { + var l int + _ = l + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovContainerizer(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovContainerizer(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozContainerizer(x uint64) (n int) { + return sovContainerizer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Launch) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Launch{`, + `ContainerId:` + strings.Replace(fmt.Sprintf("%v", this.ContainerId), "ContainerID", "ContainerID", 1) + `,`, + `TaskInfo:` + strings.Replace(fmt.Sprintf("%v", this.TaskInfo), "TaskInfo", "TaskInfo", 1) + `,`, + `ExecutorInfo:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorInfo), "ExecutorInfo", "ExecutorInfo", 1) + `,`, + `Directory:` + valueToStringContainerizer(this.Directory) + `,`, + `User:` + valueToStringContainerizer(this.User) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `SlavePid:` + valueToStringContainerizer(this.SlavePid) + `,`, + `Checkpoint:` + valueToStringContainerizer(this.Checkpoint) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Update) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Update{`, + `ContainerId:` + strings.Replace(fmt.Sprintf("%v", this.ContainerId), "ContainerID", "ContainerID", 1) + `,`, + `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Wait) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Wait{`, + `ContainerId:` + strings.Replace(fmt.Sprintf("%v", this.ContainerId), "ContainerID", "ContainerID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Destroy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Destroy{`, + `ContainerId:` + strings.Replace(fmt.Sprintf("%v", this.ContainerId), "ContainerID", "ContainerID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Usage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Usage{`, + `ContainerId:` + strings.Replace(fmt.Sprintf("%v", this.ContainerId), "ContainerID", "ContainerID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Termination) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Termination{`, + `Killed:` + valueToStringContainerizer(this.Killed) + `,`, + `Message:` + valueToStringContainerizer(this.Message) + `,`, + `Status:` + valueToStringContainerizer(this.Status) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Containers) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Containers{`, + `Containers:` + strings.Replace(fmt.Sprintf("%v", this.Containers), "ContainerID", "ContainerID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringContainerizer(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Launch) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerId == nil { + m.ContainerId = &ContainerID{} + } + if err := m.ContainerId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskInfo == nil { + m.TaskInfo = &TaskInfo{} + } + if err := m.TaskInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorInfo == nil { + m.ExecutorInfo = &ExecutorInfo{} + } + if err := m.ExecutorInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Directory", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Directory = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.User = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlavePid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.SlavePid = &s + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Checkpoint = &b + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } + + return nil +} +func (m *Update) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerId == nil { + m.ContainerId = &ContainerID{} + } + if err := m.ContainerId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Resources = append(m.Resources, &Resource{}) + if err := m.Resources[len(m.Resources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } + + return nil +} +func (m *Wait) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerId == nil { + m.ContainerId = &ContainerID{} + } + if err := m.ContainerId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } + + return nil +} +func (m *Destroy) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerId == nil { + m.ContainerId = &ContainerID{} + } + if err := m.ContainerId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } + + return nil +} +func (m *Usage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerId == nil { + m.ContainerId = &ContainerID{} + } + if err := m.ContainerId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_id") + } + + return nil +} +func (m *Termination) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Killed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Killed = &b + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Status = &v + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("killed") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } + + return nil +} +func (m *Containers) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthContainerizer + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Containers = append(m.Containers, &ContainerID{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipContainerizer(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthContainerizer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipContainerizer(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthContainerizer + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipContainerizer(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthContainerizer = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.proto index 878060cc4923..8b3dc721e44c 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/containerizer.proto @@ -21,6 +21,17 @@ package mesosproto; import "mesos.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; /** * Encodes the launch command sent to the external containerizer diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.pb.go index 007d24d3fdb4..0165ccafa731 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.pb.go @@ -363,39 +363,36 @@ func (x *TaskStatus_Reason) UnmarshalJSON(data []byte) error { return nil } -type ACL_Entity_Type int32 +type Image_Type int32 const ( - ACL_Entity_SOME ACL_Entity_Type = 0 - ACL_Entity_ANY ACL_Entity_Type = 1 - ACL_Entity_NONE ACL_Entity_Type = 2 + Image_APPC Image_Type = 1 + Image_DOCKER Image_Type = 2 ) -var ACL_Entity_Type_name = map[int32]string{ - 0: "SOME", - 1: "ANY", - 2: "NONE", +var Image_Type_name = map[int32]string{ + 1: "APPC", + 2: "DOCKER", } -var ACL_Entity_Type_value = map[string]int32{ - "SOME": 0, - "ANY": 1, - "NONE": 2, +var Image_Type_value = map[string]int32{ + "APPC": 1, + "DOCKER": 2, } -func (x ACL_Entity_Type) Enum() *ACL_Entity_Type { - p := new(ACL_Entity_Type) +func (x Image_Type) Enum() *Image_Type { + p := new(Image_Type) *p = x return p } -func (x ACL_Entity_Type) String() string { - return proto.EnumName(ACL_Entity_Type_name, int32(x)) +func (x Image_Type) String() string { + return proto.EnumName(Image_Type_name, int32(x)) } -func (x *ACL_Entity_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(ACL_Entity_Type_value, data, "ACL_Entity_Type") +func (x *Image_Type) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(Image_Type_value, data, "Image_Type") if err != nil { return err } - *x = ACL_Entity_Type(value) + *x = Image_Type(value) return nil } @@ -652,6 +649,91 @@ func (m *ContainerID) GetValue() string { return "" } +// * +// A network address. +// +// TODO(bmahler): Use this more widely. +type Address struct { + // May contain a hostname, IP address, or both. + Hostname *string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"` + Ip *string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"` + Port *int32 `protobuf:"varint,3,req,name=port" json:"port,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Address) Reset() { *m = Address{} } +func (*Address) ProtoMessage() {} + +func (m *Address) GetHostname() string { + if m != nil && m.Hostname != nil { + return *m.Hostname + } + return "" +} + +func (m *Address) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *Address) GetPort() int32 { + if m != nil && m.Port != nil { + return *m.Port + } + return 0 +} + +// * +// Represents a URL. +type URL struct { + Scheme *string `protobuf:"bytes,1,req,name=scheme" json:"scheme,omitempty"` + Address *Address `protobuf:"bytes,2,req,name=address" json:"address,omitempty"` + Path *string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` + Query []*Parameter `protobuf:"bytes,4,rep,name=query" json:"query,omitempty"` + Fragment *string `protobuf:"bytes,5,opt,name=fragment" json:"fragment,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *URL) Reset() { *m = URL{} } +func (*URL) ProtoMessage() {} + +func (m *URL) GetScheme() string { + if m != nil && m.Scheme != nil { + return *m.Scheme + } + return "" +} + +func (m *URL) GetAddress() *Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *URL) GetPath() string { + if m != nil && m.Path != nil { + return *m.Path + } + return "" +} + +func (m *URL) GetQuery() []*Parameter { + if m != nil { + return m.Query + } + return nil +} + +func (m *URL) GetFragment() string { + if m != nil && m.Fragment != nil { + return *m.Fragment + } + return "" +} + // * // Describes a framework. type FrameworkInfo struct { @@ -682,7 +764,8 @@ type FrameworkInfo struct { Role *string `protobuf:"bytes,6,opt,name=role,def=*" json:"role,omitempty"` // Used to indicate the current host from which the scheduler is // registered in the Mesos Web UI. If set to an empty string Mesos - // will automagically set it to the current hostname. + // will automagically set it to the current hostname if one is + // available. Hostname *string `protobuf:"bytes,7,opt,name=hostname" json:"hostname,omitempty"` // This field should match the credential's principal the framework // uses for authentication. This field is used for framework API @@ -696,8 +779,12 @@ type FrameworkInfo struct { // This field allows a framework to advertise its set of // capabilities (e.g., ability to receive offers for revocable // resources). - Capabilities []*FrameworkInfo_Capability `protobuf:"bytes,10,rep,name=capabilities" json:"capabilities,omitempty"` - XXX_unrecognized []byte `json:"-"` + Capabilities []*FrameworkInfo_Capability `protobuf:"bytes,10,rep,name=capabilities" json:"capabilities,omitempty"` + // Labels are free-form key value pairs supplied by the framework + // scheduler (e.g., to describe additional functionality offered by + // the framework). These labels are not interpreted by Mesos itself. + Labels *Labels `protobuf:"bytes,11,opt,name=labels" json:"labels,omitempty"` + XXX_unrecognized []byte `json:"-"` } func (m *FrameworkInfo) Reset() { *m = FrameworkInfo{} } @@ -777,6 +864,13 @@ func (m *FrameworkInfo) GetCapabilities() []*FrameworkInfo_Capability { return nil } +func (m *FrameworkInfo) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + type FrameworkInfo_Capability struct { Type *FrameworkInfo_Capability_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.FrameworkInfo_Capability_Type" json:"type,omitempty"` XXX_unrecognized []byte `json:"-"` @@ -1193,13 +1287,31 @@ func (m *ExecutorInfo) GetDiscovery() *DiscoveryInfo { // future which might be used, for example, to link a framework webui // to a master webui. type MasterInfo struct { - Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` - Ip *uint32 `protobuf:"varint,2,req,name=ip" json:"ip,omitempty"` - Port *uint32 `protobuf:"varint,3,req,name=port,def=5050" json:"port,omitempty"` - Pid *string `protobuf:"bytes,4,opt,name=pid" json:"pid,omitempty"` - Hostname *string `protobuf:"bytes,5,opt,name=hostname" json:"hostname,omitempty"` - Version *string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` + Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` + // The IP address (only IPv4) as a packed 4-bytes integer, + // stored in network order. Deprecated, use `address.ip` instead. + Ip *uint32 `protobuf:"varint,2,req,name=ip" json:"ip,omitempty"` + // The TCP port the Master is listening on for incoming + // HTTP requests; deprecated, use `address.port` instead. + Port *uint32 `protobuf:"varint,3,req,name=port,def=5050" json:"port,omitempty"` + // In the default implementation, this will contain information + // about both the IP address, port and Master name; it should really + // not be relied upon by external tooling/frameworks and be + // considered an "internal" implementation field. + Pid *string `protobuf:"bytes,4,opt,name=pid" json:"pid,omitempty"` + // The server's hostname, if available; it may be unreliable + // in environments where the DNS configuration does not resolve + // internal hostnames (eg, some public cloud providers). + // Deprecated, use `address.hostname` instead. + Hostname *string `protobuf:"bytes,5,opt,name=hostname" json:"hostname,omitempty"` + // The running Master version, as a string; taken from the + // generated "master/version.hpp". + Version *string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"` + // The full IP address (supports both IPv4 and IPv6 formats) + // and supersedes the use of `ip`, `port` and `hostname`. + // Since Mesos 0.24. + Address *Address `protobuf:"bytes,7,opt,name=address" json:"address,omitempty"` + XXX_unrecognized []byte `json:"-"` } func (m *MasterInfo) Reset() { *m = MasterInfo{} } @@ -1249,6 +1361,13 @@ func (m *MasterInfo) GetVersion() string { return "" } +func (m *MasterInfo) GetAddress() *Address { + if m != nil { + return m.Address + } + return nil +} + // * // Describes a slave. Note that the 'id' field is only available after // a slave is registered with the master, and is made available here @@ -1844,7 +1963,8 @@ type ResourceStatistics struct { MemRssBytes *uint64 `protobuf:"varint,5,opt,name=mem_rss_bytes" json:"mem_rss_bytes,omitempty"` MemMappedFileBytes *uint64 `protobuf:"varint,12,opt,name=mem_mapped_file_bytes" json:"mem_mapped_file_bytes,omitempty"` // This is only set if swap is enabled. - MemSwapBytes *uint64 `protobuf:"varint,40,opt,name=mem_swap_bytes" json:"mem_swap_bytes,omitempty"` + MemSwapBytes *uint64 `protobuf:"varint,40,opt,name=mem_swap_bytes" json:"mem_swap_bytes,omitempty"` + MemUnevictableBytes *uint64 `protobuf:"varint,41,opt,name=mem_unevictable_bytes" json:"mem_unevictable_bytes,omitempty"` // Number of occurrences of different levels of memory pressure // events reported by memory cgroup. Pressure listening (re)starts // with these values set to 0 when slave (re)starts. See @@ -2018,6 +2138,13 @@ func (m *ResourceStatistics) GetMemSwapBytes() uint64 { return 0 } +func (m *ResourceStatistics) GetMemUnevictableBytes() uint64 { + if m != nil && m.MemUnevictableBytes != nil { + return *m.MemUnevictableBytes + } + return 0 +} + func (m *ResourceStatistics) GetMemLowPressureCounter() uint64 { if m != nil && m.MemLowPressureCounter != nil { return *m.MemLowPressureCounter @@ -2168,8 +2295,11 @@ func (m *ResourceStatistics) GetNetTrafficControlStatistics() []*TrafficControlS // * // Describes a snapshot of the resource usage for executors. type ResourceUsage struct { - Executors []*ResourceUsage_Executor `protobuf:"bytes,1,rep,name=executors" json:"executors,omitempty"` - XXX_unrecognized []byte `json:"-"` + Executors []*ResourceUsage_Executor `protobuf:"bytes,1,rep,name=executors" json:"executors,omitempty"` + // Slave's total resources including checkpointed dynamic + // reservations and persistent volumes. + Total []*Resource `protobuf:"bytes,2,rep,name=total" json:"total,omitempty"` + XXX_unrecognized []byte `json:"-"` } func (m *ResourceUsage) Reset() { *m = ResourceUsage{} } @@ -2182,6 +2312,13 @@ func (m *ResourceUsage) GetExecutors() []*ResourceUsage_Executor { return nil } +func (m *ResourceUsage) GetTotal() []*Resource { + if m != nil { + return m.Total + } + return nil +} + type ResourceUsage_Executor struct { ExecutorInfo *ExecutorInfo `protobuf:"bytes,1,req,name=executor_info" json:"executor_info,omitempty"` // This includes resources used by the executor itself @@ -2667,8 +2804,6 @@ func (m *PerfStatistics) GetNodePrefetchMisses() uint64 { // to proactively influence the allocator. If 'slave_id' is provided // then this request is assumed to only apply to resources on that // slave. -// -// TODO(vinod): Remove this once the old driver is removed. type Request struct { SlaveId *SlaveID `protobuf:"bytes,1,opt,name=slave_id" json:"slave_id,omitempty"` Resources []*Resource `protobuf:"bytes,2,rep,name=resources" json:"resources,omitempty"` @@ -2696,10 +2831,12 @@ func (m *Request) GetResources() []*Resource { // Describes some resources available on a slave. An offer only // contains resources from a single slave. type Offer struct { - Id *OfferID `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` - FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"` - SlaveId *SlaveID `protobuf:"bytes,3,req,name=slave_id" json:"slave_id,omitempty"` - Hostname *string `protobuf:"bytes,4,req,name=hostname" json:"hostname,omitempty"` + Id *OfferID `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` + FrameworkId *FrameworkID `protobuf:"bytes,2,req,name=framework_id" json:"framework_id,omitempty"` + SlaveId *SlaveID `protobuf:"bytes,3,req,name=slave_id" json:"slave_id,omitempty"` + Hostname *string `protobuf:"bytes,4,req,name=hostname" json:"hostname,omitempty"` + // URL for reaching the slave running on the host. + Url *URL `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` Resources []*Resource `protobuf:"bytes,5,rep,name=resources" json:"resources,omitempty"` Attributes []*Attribute `protobuf:"bytes,7,rep,name=attributes" json:"attributes,omitempty"` ExecutorIds []*ExecutorID `protobuf:"bytes,6,rep,name=executor_ids" json:"executor_ids,omitempty"` @@ -2737,6 +2874,13 @@ func (m *Offer) GetHostname() string { return "" } +func (m *Offer) GetUrl() *URL { + if m != nil { + return m.Url + } + return nil +} + func (m *Offer) GetResources() []*Resource { if m != nil { return m.Resources @@ -3028,8 +3172,15 @@ type TaskStatus struct { // Describes whether the task has been determined to be healthy // (true) or unhealthy (false) according to the HealthCheck field in // the command info. - Healthy *bool `protobuf:"varint,8,opt,name=healthy" json:"healthy,omitempty"` - XXX_unrecognized []byte `json:"-"` + Healthy *bool `protobuf:"varint,8,opt,name=healthy" json:"healthy,omitempty"` + // Labels are free-form key value pairs which are exposed through + // master and slave endpoints. Labels will not be interpreted or + // acted upon by Mesos itself. As opposed to the data field, labels + // will be kept in memory on master and slave processes. Therefore, + // labels should be used to tag TaskStatus message with light-weight + // meta-data. + Labels *Labels `protobuf:"bytes,12,opt,name=labels" json:"labels,omitempty"` + XXX_unrecognized []byte `json:"-"` } func (m *TaskStatus) Reset() { *m = TaskStatus{} } @@ -3112,6 +3263,13 @@ func (m *TaskStatus) GetHealthy() bool { return false } +func (m *TaskStatus) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + // * // Describes possible filters that can be applied to unused resources // (see SchedulerDriver::launchTasks) to influence the allocator. @@ -3272,181 +3430,6 @@ func (m *Credentials) GetCredentials() []*Credential { return nil } -// * -// ACLs used for authorization. -type ACL struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACL) Reset() { *m = ACL{} } -func (*ACL) ProtoMessage() {} - -// Entity is used to describe a subject(s) or an object(s) of an ACL. -// NOTE: -// To allow everyone access to an Entity set its type to 'ANY'. -// To deny access to an Entity set its type to 'NONE'. -type ACL_Entity struct { - Type *ACL_Entity_Type `protobuf:"varint,1,opt,name=type,enum=mesosproto.ACL_Entity_Type,def=0" json:"type,omitempty"` - Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACL_Entity) Reset() { *m = ACL_Entity{} } -func (*ACL_Entity) ProtoMessage() {} - -const Default_ACL_Entity_Type ACL_Entity_Type = ACL_Entity_SOME - -func (m *ACL_Entity) GetType() ACL_Entity_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return Default_ACL_Entity_Type -} - -func (m *ACL_Entity) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -// ACLs. -type ACL_RegisterFramework struct { - // Subjects. - Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` - // Objects. - Roles *ACL_Entity `protobuf:"bytes,2,req,name=roles" json:"roles,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACL_RegisterFramework) Reset() { *m = ACL_RegisterFramework{} } -func (*ACL_RegisterFramework) ProtoMessage() {} - -func (m *ACL_RegisterFramework) GetPrincipals() *ACL_Entity { - if m != nil { - return m.Principals - } - return nil -} - -func (m *ACL_RegisterFramework) GetRoles() *ACL_Entity { - if m != nil { - return m.Roles - } - return nil -} - -type ACL_RunTask struct { - // Subjects. - Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` - // Objects. - Users *ACL_Entity `protobuf:"bytes,2,req,name=users" json:"users,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACL_RunTask) Reset() { *m = ACL_RunTask{} } -func (*ACL_RunTask) ProtoMessage() {} - -func (m *ACL_RunTask) GetPrincipals() *ACL_Entity { - if m != nil { - return m.Principals - } - return nil -} - -func (m *ACL_RunTask) GetUsers() *ACL_Entity { - if m != nil { - return m.Users - } - return nil -} - -// Which principals are authorized to shutdown frameworks of other -// principals. -type ACL_ShutdownFramework struct { - // Subjects. - Principals *ACL_Entity `protobuf:"bytes,1,req,name=principals" json:"principals,omitempty"` - // Objects. - FrameworkPrincipals *ACL_Entity `protobuf:"bytes,2,req,name=framework_principals" json:"framework_principals,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACL_ShutdownFramework) Reset() { *m = ACL_ShutdownFramework{} } -func (*ACL_ShutdownFramework) ProtoMessage() {} - -func (m *ACL_ShutdownFramework) GetPrincipals() *ACL_Entity { - if m != nil { - return m.Principals - } - return nil -} - -func (m *ACL_ShutdownFramework) GetFrameworkPrincipals() *ACL_Entity { - if m != nil { - return m.FrameworkPrincipals - } - return nil -} - -// * -// Collection of ACL. -// -// Each authorization request is evaluated against the ACLs in the order -// they are defined. -// -// For simplicity, the ACLs for a given action are not aggregated even -// when they have the same subjects or objects. The first ACL that -// matches the request determines whether that request should be -// permitted or not. An ACL matches iff both the subjects -// (e.g., clients, principals) and the objects (e.g., urls, users, -// roles) of the ACL match the request. -// -// If none of the ACLs match the request, the 'permissive' field -// determines whether the request should be permitted or not. -// -// TODO(vinod): Do aggregation of ACLs when possible. -// -type ACLs struct { - Permissive *bool `protobuf:"varint,1,opt,name=permissive,def=1" json:"permissive,omitempty"` - RegisterFrameworks []*ACL_RegisterFramework `protobuf:"bytes,2,rep,name=register_frameworks" json:"register_frameworks,omitempty"` - RunTasks []*ACL_RunTask `protobuf:"bytes,3,rep,name=run_tasks" json:"run_tasks,omitempty"` - ShutdownFrameworks []*ACL_ShutdownFramework `protobuf:"bytes,4,rep,name=shutdown_frameworks" json:"shutdown_frameworks,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ACLs) Reset() { *m = ACLs{} } -func (*ACLs) ProtoMessage() {} - -const Default_ACLs_Permissive bool = true - -func (m *ACLs) GetPermissive() bool { - if m != nil && m.Permissive != nil { - return *m.Permissive - } - return Default_ACLs_Permissive -} - -func (m *ACLs) GetRegisterFrameworks() []*ACL_RegisterFramework { - if m != nil { - return m.RegisterFrameworks - } - return nil -} - -func (m *ACLs) GetRunTasks() []*ACL_RunTask { - if m != nil { - return m.RunTasks - } - return nil -} - -func (m *ACLs) GetShutdownFrameworks() []*ACL_ShutdownFramework { - if m != nil { - return m.ShutdownFrameworks - } - return nil -} - // * // Rate (queries per second, QPS) limit for messages from a framework to master. // Strictly speaking they are the combined rate from all frameworks of the same @@ -3533,22 +3516,128 @@ func (m *RateLimits) GetAggregateDefaultCapacity() uint64 { return 0 } +// * +// Describe an image used by tasks or executors. Note that it's only +// for tasks or executors launched by MesosContainerizer currently. +// TODO(jieyu): This feature not fully supported in 0.24.0. Please do +// not use it until this feature is announced. +type Image struct { + Type *Image_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.Image_Type" json:"type,omitempty"` + // Only one of the following image messages should be set to match + // the type. + Appc *Image_AppC `protobuf:"bytes,2,opt,name=appc" json:"appc,omitempty"` + Docker *Image_Docker `protobuf:"bytes,3,opt,name=docker" json:"docker,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Image) Reset() { *m = Image{} } +func (*Image) ProtoMessage() {} + +func (m *Image) GetType() Image_Type { + if m != nil && m.Type != nil { + return *m.Type + } + return Image_APPC +} + +func (m *Image) GetAppc() *Image_AppC { + if m != nil { + return m.Appc + } + return nil +} + +func (m *Image) GetDocker() *Image_Docker { + if m != nil { + return m.Docker + } + return nil +} + +// Protobuf for specifying an Appc container image. See: +// https://github.com/appc/spec/blob/master/spec/aci.md +type Image_AppC struct { + // The name of the image. + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // An image ID is a string of the format "hash-value", where + // "hash" is the hash algorithm used and "value" is the hex + // encoded string of the digest. Currently the only permitted + // hash algorithm is sha512. + Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` + // Optional labels. Suggested labels: "version", "os", and "arch". + Labels *Labels `protobuf:"bytes,3,opt,name=labels" json:"labels,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Image_AppC) Reset() { *m = Image_AppC{} } +func (*Image_AppC) ProtoMessage() {} + +func (m *Image_AppC) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *Image_AppC) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *Image_AppC) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +type Image_Docker struct { + // The name of the image. Expected in format repository[:tag]. + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Image_Docker) Reset() { *m = Image_Docker{} } +func (*Image_Docker) ProtoMessage() {} + +func (m *Image_Docker) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + // * // Describes a volume mapping either from host to container or vice // versa. Both paths can either refer to a directory or a file. type Volume struct { - // Absolute path pointing to a directory or file in the container. + Mode *Volume_Mode `protobuf:"varint,3,req,name=mode,enum=mesosproto.Volume_Mode" json:"mode,omitempty"` + // Path pointing to a directory or file in the container. If the + // path is a relative path, it is relative to the container work + // directory. If the path is an absolute path, that path must + // already exist. ContainerPath *string `protobuf:"bytes,1,req,name=container_path" json:"container_path,omitempty"` - // Absolute path pointing to a directory or file on the host or a path - // relative to the container work directory. - HostPath *string `protobuf:"bytes,2,opt,name=host_path" json:"host_path,omitempty"` - Mode *Volume_Mode `protobuf:"varint,3,req,name=mode,enum=mesosproto.Volume_Mode" json:"mode,omitempty"` - XXX_unrecognized []byte `json:"-"` + // Absolute path pointing to a directory or file on the host or a + // path relative to the container work directory. + HostPath *string `protobuf:"bytes,2,opt,name=host_path" json:"host_path,omitempty"` + // The source of the volume is an Image which describes a root + // filesystem which will be provisioned by Mesos. + Image *Image `protobuf:"bytes,4,opt,name=image" json:"image,omitempty"` + XXX_unrecognized []byte `json:"-"` } func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} +func (m *Volume) GetMode() Volume_Mode { + if m != nil && m.Mode != nil { + return *m.Mode + } + return Volume_RW +} + func (m *Volume) GetContainerPath() string { if m != nil && m.ContainerPath != nil { return *m.ContainerPath @@ -3563,21 +3652,24 @@ func (m *Volume) GetHostPath() string { return "" } -func (m *Volume) GetMode() Volume_Mode { - if m != nil && m.Mode != nil { - return *m.Mode +func (m *Volume) GetImage() *Image { + if m != nil { + return m.Image } - return Volume_RW + return nil } // * // Describes a container configuration and allows extensible // configurations for different container implementations. type ContainerInfo struct { - Type *ContainerInfo_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.ContainerInfo_Type" json:"type,omitempty"` - Volumes []*Volume `protobuf:"bytes,2,rep,name=volumes" json:"volumes,omitempty"` - Hostname *string `protobuf:"bytes,4,opt,name=hostname" json:"hostname,omitempty"` + Type *ContainerInfo_Type `protobuf:"varint,1,req,name=type,enum=mesosproto.ContainerInfo_Type" json:"type,omitempty"` + Volumes []*Volume `protobuf:"bytes,2,rep,name=volumes" json:"volumes,omitempty"` + Hostname *string `protobuf:"bytes,4,opt,name=hostname" json:"hostname,omitempty"` + // Only one of the following *Info messages should be set to match + // the type. Docker *ContainerInfo_DockerInfo `protobuf:"bytes,3,opt,name=docker" json:"docker,omitempty"` + Mesos *ContainerInfo_MesosInfo `protobuf:"bytes,5,opt,name=mesos" json:"mesos,omitempty"` XXX_unrecognized []byte `json:"-"` } @@ -3612,8 +3704,15 @@ func (m *ContainerInfo) GetDocker() *ContainerInfo_DockerInfo { return nil } -type ContainerInfo_DockerInfo struct { - // The docker image that is going to be passed to the registry. +func (m *ContainerInfo) GetMesos() *ContainerInfo_MesosInfo { + if m != nil { + return m.Mesos + } + return nil +} + +type ContainerInfo_DockerInfo struct { + // The docker image that is going to be passed to the registry. Image *string `protobuf:"bytes,1,req,name=image" json:"image,omitempty"` Network *ContainerInfo_DockerInfo_Network `protobuf:"varint,2,opt,name=network,enum=mesosproto.ContainerInfo_DockerInfo_Network,def=1" json:"network,omitempty"` PortMappings []*ContainerInfo_DockerInfo_PortMapping `protobuf:"bytes,3,rep,name=port_mappings" json:"port_mappings,omitempty"` @@ -3710,6 +3809,21 @@ func (m *ContainerInfo_DockerInfo_PortMapping) GetProtocol() string { return "" } +type ContainerInfo_MesosInfo struct { + Image *Image `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *ContainerInfo_MesosInfo) Reset() { *m = ContainerInfo_MesosInfo{} } +func (*ContainerInfo_MesosInfo) ProtoMessage() {} + +func (m *ContainerInfo_MesosInfo) GetImage() *Image { + if m != nil { + return m.Image + } + return nil +} + // * // Collection of labels. type Labels struct { @@ -3877,6 +3991,110 @@ func (m *DiscoveryInfo) GetLabels() *Labels { return nil } +// * +// Protobuf for the Appc image manifest JSON schema: +// https://github.com/appc/spec/blob/master/spec/aci.md#image-manifest-schema +// Where possible, any field required in the schema is required in the protobuf +// but some cannot be expressed, e.g., a repeated string that has at least one +// element. Further validation should be performed after parsing the JSON into +// the protobuf. +// This version of Appc protobuf is based on Appc spec version 0.6.1. +// TODO(xujyan): This protobuf currently defines a subset of fields in the spec +// that Mesos makes use of to avoid confusion. New fields are going to be added +// when Mesos starts to support them. +type AppcImageManifest struct { + AcKind *string `protobuf:"bytes,1,req,name=acKind" json:"acKind,omitempty"` + AcVersion *string `protobuf:"bytes,2,req,name=acVersion" json:"acVersion,omitempty"` + Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` + Labels []*AppcImageManifest_Label `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty"` + Annotations []*AppcImageManifest_Annotation `protobuf:"bytes,5,rep,name=annotations" json:"annotations,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *AppcImageManifest) Reset() { *m = AppcImageManifest{} } +func (*AppcImageManifest) ProtoMessage() {} + +func (m *AppcImageManifest) GetAcKind() string { + if m != nil && m.AcKind != nil { + return *m.AcKind + } + return "" +} + +func (m *AppcImageManifest) GetAcVersion() string { + if m != nil && m.AcVersion != nil { + return *m.AcVersion + } + return "" +} + +func (m *AppcImageManifest) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *AppcImageManifest) GetLabels() []*AppcImageManifest_Label { + if m != nil { + return m.Labels + } + return nil +} + +func (m *AppcImageManifest) GetAnnotations() []*AppcImageManifest_Annotation { + if m != nil { + return m.Annotations + } + return nil +} + +type AppcImageManifest_Label struct { + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *AppcImageManifest_Label) Reset() { *m = AppcImageManifest_Label{} } +func (*AppcImageManifest_Label) ProtoMessage() {} + +func (m *AppcImageManifest_Label) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *AppcImageManifest_Label) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type AppcImageManifest_Annotation struct { + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *AppcImageManifest_Annotation) Reset() { *m = AppcImageManifest_Annotation{} } +func (*AppcImageManifest_Annotation) ProtoMessage() {} + +func (m *AppcImageManifest_Annotation) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *AppcImageManifest_Annotation) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + func init() { proto.RegisterEnum("mesosproto.Status", Status_name, Status_value) proto.RegisterEnum("mesosproto.TaskState", TaskState_name, TaskState_value) @@ -3885,7 +4103,7 @@ func init() { proto.RegisterEnum("mesosproto.Offer_Operation_Type", Offer_Operation_Type_name, Offer_Operation_Type_value) proto.RegisterEnum("mesosproto.TaskStatus_Source", TaskStatus_Source_name, TaskStatus_Source_value) proto.RegisterEnum("mesosproto.TaskStatus_Reason", TaskStatus_Reason_name, TaskStatus_Reason_value) - proto.RegisterEnum("mesosproto.ACL_Entity_Type", ACL_Entity_Type_name, ACL_Entity_Type_value) + proto.RegisterEnum("mesosproto.Image_Type", Image_Type_name, Image_Type_value) proto.RegisterEnum("mesosproto.Volume_Mode", Volume_Mode_name, Volume_Mode_value) proto.RegisterEnum("mesosproto.ContainerInfo_Type", ContainerInfo_Type_name, ContainerInfo_Type_value) proto.RegisterEnum("mesosproto.ContainerInfo_DockerInfo_Network", ContainerInfo_DockerInfo_Network_name, ContainerInfo_DockerInfo_Network_value) @@ -4299,7 +4517,7 @@ func (this *ContainerID) Equal(that interface{}) bool { } return true } -func (this *FrameworkInfo) VerboseEqual(that interface{}) error { +func (this *Address) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -4307,65 +4525,17 @@ func (this *FrameworkInfo) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*FrameworkInfo) + that1, ok := that.(*Address) if !ok { - return fmt.Errorf("that is not of type *FrameworkInfo") + return fmt.Errorf("that is not of type *Address") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *FrameworkInfo but is nil && this != nil") + return fmt.Errorf("that is type *Address but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *FrameworkInfobut is not nil && this == nil") - } - if this.User != nil && that1.User != nil { - if *this.User != *that1.User { - return fmt.Errorf("User this(%v) Not Equal that(%v)", *this.User, *that1.User) - } - } else if this.User != nil { - return fmt.Errorf("this.User == nil && that.User != nil") - } else if that1.User != nil { - return fmt.Errorf("User this(%v) Not Equal that(%v)", this.User, that1.User) - } - if this.Name != nil && that1.Name != nil { - if *this.Name != *that1.Name { - return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) - } - } else if this.Name != nil { - return fmt.Errorf("this.Name == nil && that.Name != nil") - } else if that1.Name != nil { - return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) - } - if !this.Id.Equal(that1.Id) { - return fmt.Errorf("Id this(%v) Not Equal that(%v)", this.Id, that1.Id) - } - if this.FailoverTimeout != nil && that1.FailoverTimeout != nil { - if *this.FailoverTimeout != *that1.FailoverTimeout { - return fmt.Errorf("FailoverTimeout this(%v) Not Equal that(%v)", *this.FailoverTimeout, *that1.FailoverTimeout) - } - } else if this.FailoverTimeout != nil { - return fmt.Errorf("this.FailoverTimeout == nil && that.FailoverTimeout != nil") - } else if that1.FailoverTimeout != nil { - return fmt.Errorf("FailoverTimeout this(%v) Not Equal that(%v)", this.FailoverTimeout, that1.FailoverTimeout) - } - if this.Checkpoint != nil && that1.Checkpoint != nil { - if *this.Checkpoint != *that1.Checkpoint { - return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", *this.Checkpoint, *that1.Checkpoint) - } - } else if this.Checkpoint != nil { - return fmt.Errorf("this.Checkpoint == nil && that.Checkpoint != nil") - } else if that1.Checkpoint != nil { - return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", this.Checkpoint, that1.Checkpoint) - } - if this.Role != nil && that1.Role != nil { - if *this.Role != *that1.Role { - return fmt.Errorf("Role this(%v) Not Equal that(%v)", *this.Role, *that1.Role) - } - } else if this.Role != nil { - return fmt.Errorf("this.Role == nil && that.Role != nil") - } else if that1.Role != nil { - return fmt.Errorf("Role this(%v) Not Equal that(%v)", this.Role, that1.Role) + return fmt.Errorf("that is type *Addressbut is not nil && this == nil") } if this.Hostname != nil && that1.Hostname != nil { if *this.Hostname != *that1.Hostname { @@ -4376,38 +4546,30 @@ func (this *FrameworkInfo) VerboseEqual(that interface{}) error { } else if that1.Hostname != nil { return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", this.Hostname, that1.Hostname) } - if this.Principal != nil && that1.Principal != nil { - if *this.Principal != *that1.Principal { - return fmt.Errorf("Principal this(%v) Not Equal that(%v)", *this.Principal, *that1.Principal) - } - } else if this.Principal != nil { - return fmt.Errorf("this.Principal == nil && that.Principal != nil") - } else if that1.Principal != nil { - return fmt.Errorf("Principal this(%v) Not Equal that(%v)", this.Principal, that1.Principal) - } - if this.WebuiUrl != nil && that1.WebuiUrl != nil { - if *this.WebuiUrl != *that1.WebuiUrl { - return fmt.Errorf("WebuiUrl this(%v) Not Equal that(%v)", *this.WebuiUrl, *that1.WebuiUrl) + if this.Ip != nil && that1.Ip != nil { + if *this.Ip != *that1.Ip { + return fmt.Errorf("Ip this(%v) Not Equal that(%v)", *this.Ip, *that1.Ip) } - } else if this.WebuiUrl != nil { - return fmt.Errorf("this.WebuiUrl == nil && that.WebuiUrl != nil") - } else if that1.WebuiUrl != nil { - return fmt.Errorf("WebuiUrl this(%v) Not Equal that(%v)", this.WebuiUrl, that1.WebuiUrl) - } - if len(this.Capabilities) != len(that1.Capabilities) { - return fmt.Errorf("Capabilities this(%v) Not Equal that(%v)", len(this.Capabilities), len(that1.Capabilities)) + } else if this.Ip != nil { + return fmt.Errorf("this.Ip == nil && that.Ip != nil") + } else if that1.Ip != nil { + return fmt.Errorf("Ip this(%v) Not Equal that(%v)", this.Ip, that1.Ip) } - for i := range this.Capabilities { - if !this.Capabilities[i].Equal(that1.Capabilities[i]) { - return fmt.Errorf("Capabilities this[%v](%v) Not Equal that[%v](%v)", i, this.Capabilities[i], i, that1.Capabilities[i]) + if this.Port != nil && that1.Port != nil { + if *this.Port != *that1.Port { + return fmt.Errorf("Port this(%v) Not Equal that(%v)", *this.Port, *that1.Port) } + } else if this.Port != nil { + return fmt.Errorf("this.Port == nil && that.Port != nil") + } else if that1.Port != nil { + return fmt.Errorf("Port this(%v) Not Equal that(%v)", this.Port, that1.Port) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *FrameworkInfo) Equal(that interface{}) bool { +func (this *Address) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -4415,7 +4577,7 @@ func (this *FrameworkInfo) Equal(that interface{}) bool { return false } - that1, ok := that.(*FrameworkInfo) + that1, ok := that.(*Address) if !ok { return false } @@ -4427,54 +4589,6 @@ func (this *FrameworkInfo) Equal(that interface{}) bool { } else if this == nil { return false } - if this.User != nil && that1.User != nil { - if *this.User != *that1.User { - return false - } - } else if this.User != nil { - return false - } else if that1.User != nil { - return false - } - if this.Name != nil && that1.Name != nil { - if *this.Name != *that1.Name { - return false - } - } else if this.Name != nil { - return false - } else if that1.Name != nil { - return false - } - if !this.Id.Equal(that1.Id) { - return false - } - if this.FailoverTimeout != nil && that1.FailoverTimeout != nil { - if *this.FailoverTimeout != *that1.FailoverTimeout { - return false - } - } else if this.FailoverTimeout != nil { - return false - } else if that1.FailoverTimeout != nil { - return false - } - if this.Checkpoint != nil && that1.Checkpoint != nil { - if *this.Checkpoint != *that1.Checkpoint { - return false - } - } else if this.Checkpoint != nil { - return false - } else if that1.Checkpoint != nil { - return false - } - if this.Role != nil && that1.Role != nil { - if *this.Role != *that1.Role { - return false - } - } else if this.Role != nil { - return false - } else if that1.Role != nil { - return false - } if this.Hostname != nil && that1.Hostname != nil { if *this.Hostname != *that1.Hostname { return false @@ -4484,38 +4598,30 @@ func (this *FrameworkInfo) Equal(that interface{}) bool { } else if that1.Hostname != nil { return false } - if this.Principal != nil && that1.Principal != nil { - if *this.Principal != *that1.Principal { + if this.Ip != nil && that1.Ip != nil { + if *this.Ip != *that1.Ip { return false } - } else if this.Principal != nil { + } else if this.Ip != nil { return false - } else if that1.Principal != nil { + } else if that1.Ip != nil { return false } - if this.WebuiUrl != nil && that1.WebuiUrl != nil { - if *this.WebuiUrl != *that1.WebuiUrl { + if this.Port != nil && that1.Port != nil { + if *this.Port != *that1.Port { return false } - } else if this.WebuiUrl != nil { - return false - } else if that1.WebuiUrl != nil { + } else if this.Port != nil { return false - } - if len(this.Capabilities) != len(that1.Capabilities) { + } else if that1.Port != nil { return false } - for i := range this.Capabilities { - if !this.Capabilities[i].Equal(that1.Capabilities[i]) { - return false - } - } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *FrameworkInfo_Capability) VerboseEqual(that interface{}) error { +func (this *URL) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -4523,31 +4629,379 @@ func (this *FrameworkInfo_Capability) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*FrameworkInfo_Capability) + that1, ok := that.(*URL) if !ok { - return fmt.Errorf("that is not of type *FrameworkInfo_Capability") + return fmt.Errorf("that is not of type *URL") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *FrameworkInfo_Capability but is nil && this != nil") + return fmt.Errorf("that is type *URL but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *FrameworkInfo_Capabilitybut is not nil && this == nil") + return fmt.Errorf("that is type *URLbut is not nil && this == nil") } - if this.Type != nil && that1.Type != nil { - if *this.Type != *that1.Type { - return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + if this.Scheme != nil && that1.Scheme != nil { + if *this.Scheme != *that1.Scheme { + return fmt.Errorf("Scheme this(%v) Not Equal that(%v)", *this.Scheme, *that1.Scheme) } - } else if this.Type != nil { - return fmt.Errorf("this.Type == nil && that.Type != nil") - } else if that1.Type != nil { - return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) + } else if this.Scheme != nil { + return fmt.Errorf("this.Scheme == nil && that.Scheme != nil") + } else if that1.Scheme != nil { + return fmt.Errorf("Scheme this(%v) Not Equal that(%v)", this.Scheme, that1.Scheme) } - if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { - return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + if !this.Address.Equal(that1.Address) { + return fmt.Errorf("Address this(%v) Not Equal that(%v)", this.Address, that1.Address) } - return nil + if this.Path != nil && that1.Path != nil { + if *this.Path != *that1.Path { + return fmt.Errorf("Path this(%v) Not Equal that(%v)", *this.Path, *that1.Path) + } + } else if this.Path != nil { + return fmt.Errorf("this.Path == nil && that.Path != nil") + } else if that1.Path != nil { + return fmt.Errorf("Path this(%v) Not Equal that(%v)", this.Path, that1.Path) + } + if len(this.Query) != len(that1.Query) { + return fmt.Errorf("Query this(%v) Not Equal that(%v)", len(this.Query), len(that1.Query)) + } + for i := range this.Query { + if !this.Query[i].Equal(that1.Query[i]) { + return fmt.Errorf("Query this[%v](%v) Not Equal that[%v](%v)", i, this.Query[i], i, that1.Query[i]) + } + } + if this.Fragment != nil && that1.Fragment != nil { + if *this.Fragment != *that1.Fragment { + return fmt.Errorf("Fragment this(%v) Not Equal that(%v)", *this.Fragment, *that1.Fragment) + } + } else if this.Fragment != nil { + return fmt.Errorf("this.Fragment == nil && that.Fragment != nil") + } else if that1.Fragment != nil { + return fmt.Errorf("Fragment this(%v) Not Equal that(%v)", this.Fragment, that1.Fragment) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *URL) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*URL) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Scheme != nil && that1.Scheme != nil { + if *this.Scheme != *that1.Scheme { + return false + } + } else if this.Scheme != nil { + return false + } else if that1.Scheme != nil { + return false + } + if !this.Address.Equal(that1.Address) { + return false + } + if this.Path != nil && that1.Path != nil { + if *this.Path != *that1.Path { + return false + } + } else if this.Path != nil { + return false + } else if that1.Path != nil { + return false + } + if len(this.Query) != len(that1.Query) { + return false + } + for i := range this.Query { + if !this.Query[i].Equal(that1.Query[i]) { + return false + } + } + if this.Fragment != nil && that1.Fragment != nil { + if *this.Fragment != *that1.Fragment { + return false + } + } else if this.Fragment != nil { + return false + } else if that1.Fragment != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkInfo) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkInfo) + if !ok { + return fmt.Errorf("that is not of type *FrameworkInfo") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkInfo but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkInfobut is not nil && this == nil") + } + if this.User != nil && that1.User != nil { + if *this.User != *that1.User { + return fmt.Errorf("User this(%v) Not Equal that(%v)", *this.User, *that1.User) + } + } else if this.User != nil { + return fmt.Errorf("this.User == nil && that.User != nil") + } else if that1.User != nil { + return fmt.Errorf("User this(%v) Not Equal that(%v)", this.User, that1.User) + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) + } + if !this.Id.Equal(that1.Id) { + return fmt.Errorf("Id this(%v) Not Equal that(%v)", this.Id, that1.Id) + } + if this.FailoverTimeout != nil && that1.FailoverTimeout != nil { + if *this.FailoverTimeout != *that1.FailoverTimeout { + return fmt.Errorf("FailoverTimeout this(%v) Not Equal that(%v)", *this.FailoverTimeout, *that1.FailoverTimeout) + } + } else if this.FailoverTimeout != nil { + return fmt.Errorf("this.FailoverTimeout == nil && that.FailoverTimeout != nil") + } else if that1.FailoverTimeout != nil { + return fmt.Errorf("FailoverTimeout this(%v) Not Equal that(%v)", this.FailoverTimeout, that1.FailoverTimeout) + } + if this.Checkpoint != nil && that1.Checkpoint != nil { + if *this.Checkpoint != *that1.Checkpoint { + return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", *this.Checkpoint, *that1.Checkpoint) + } + } else if this.Checkpoint != nil { + return fmt.Errorf("this.Checkpoint == nil && that.Checkpoint != nil") + } else if that1.Checkpoint != nil { + return fmt.Errorf("Checkpoint this(%v) Not Equal that(%v)", this.Checkpoint, that1.Checkpoint) + } + if this.Role != nil && that1.Role != nil { + if *this.Role != *that1.Role { + return fmt.Errorf("Role this(%v) Not Equal that(%v)", *this.Role, *that1.Role) + } + } else if this.Role != nil { + return fmt.Errorf("this.Role == nil && that.Role != nil") + } else if that1.Role != nil { + return fmt.Errorf("Role this(%v) Not Equal that(%v)", this.Role, that1.Role) + } + if this.Hostname != nil && that1.Hostname != nil { + if *this.Hostname != *that1.Hostname { + return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", *this.Hostname, *that1.Hostname) + } + } else if this.Hostname != nil { + return fmt.Errorf("this.Hostname == nil && that.Hostname != nil") + } else if that1.Hostname != nil { + return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", this.Hostname, that1.Hostname) + } + if this.Principal != nil && that1.Principal != nil { + if *this.Principal != *that1.Principal { + return fmt.Errorf("Principal this(%v) Not Equal that(%v)", *this.Principal, *that1.Principal) + } + } else if this.Principal != nil { + return fmt.Errorf("this.Principal == nil && that.Principal != nil") + } else if that1.Principal != nil { + return fmt.Errorf("Principal this(%v) Not Equal that(%v)", this.Principal, that1.Principal) + } + if this.WebuiUrl != nil && that1.WebuiUrl != nil { + if *this.WebuiUrl != *that1.WebuiUrl { + return fmt.Errorf("WebuiUrl this(%v) Not Equal that(%v)", *this.WebuiUrl, *that1.WebuiUrl) + } + } else if this.WebuiUrl != nil { + return fmt.Errorf("this.WebuiUrl == nil && that.WebuiUrl != nil") + } else if that1.WebuiUrl != nil { + return fmt.Errorf("WebuiUrl this(%v) Not Equal that(%v)", this.WebuiUrl, that1.WebuiUrl) + } + if len(this.Capabilities) != len(that1.Capabilities) { + return fmt.Errorf("Capabilities this(%v) Not Equal that(%v)", len(this.Capabilities), len(that1.Capabilities)) + } + for i := range this.Capabilities { + if !this.Capabilities[i].Equal(that1.Capabilities[i]) { + return fmt.Errorf("Capabilities this[%v](%v) Not Equal that[%v](%v)", i, this.Capabilities[i], i, that1.Capabilities[i]) + } + } + if !this.Labels.Equal(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *FrameworkInfo) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*FrameworkInfo) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.User != nil && that1.User != nil { + if *this.User != *that1.User { + return false + } + } else if this.User != nil { + return false + } else if that1.User != nil { + return false + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { + return false + } else if that1.Name != nil { + return false + } + if !this.Id.Equal(that1.Id) { + return false + } + if this.FailoverTimeout != nil && that1.FailoverTimeout != nil { + if *this.FailoverTimeout != *that1.FailoverTimeout { + return false + } + } else if this.FailoverTimeout != nil { + return false + } else if that1.FailoverTimeout != nil { + return false + } + if this.Checkpoint != nil && that1.Checkpoint != nil { + if *this.Checkpoint != *that1.Checkpoint { + return false + } + } else if this.Checkpoint != nil { + return false + } else if that1.Checkpoint != nil { + return false + } + if this.Role != nil && that1.Role != nil { + if *this.Role != *that1.Role { + return false + } + } else if this.Role != nil { + return false + } else if that1.Role != nil { + return false + } + if this.Hostname != nil && that1.Hostname != nil { + if *this.Hostname != *that1.Hostname { + return false + } + } else if this.Hostname != nil { + return false + } else if that1.Hostname != nil { + return false + } + if this.Principal != nil && that1.Principal != nil { + if *this.Principal != *that1.Principal { + return false + } + } else if this.Principal != nil { + return false + } else if that1.Principal != nil { + return false + } + if this.WebuiUrl != nil && that1.WebuiUrl != nil { + if *this.WebuiUrl != *that1.WebuiUrl { + return false + } + } else if this.WebuiUrl != nil { + return false + } else if that1.WebuiUrl != nil { + return false + } + if len(this.Capabilities) != len(that1.Capabilities) { + return false + } + for i := range this.Capabilities { + if !this.Capabilities[i].Equal(that1.Capabilities[i]) { + return false + } + } + if !this.Labels.Equal(that1.Labels) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkInfo_Capability) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkInfo_Capability) + if !ok { + return fmt.Errorf("that is not of type *FrameworkInfo_Capability") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkInfo_Capability but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkInfo_Capabilitybut is not nil && this == nil") + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + } + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil } func (this *FrameworkInfo_Capability) Equal(that interface{}) bool { if that == nil { @@ -5403,6 +5857,9 @@ func (this *MasterInfo) VerboseEqual(that interface{}) error { } else if that1.Version != nil { return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version) } + if !this.Address.Equal(that1.Address) { + return fmt.Errorf("Address this(%v) Not Equal that(%v)", this.Address, that1.Address) + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } @@ -5482,6 +5939,9 @@ func (this *MasterInfo) Equal(that interface{}) bool { } else if that1.Version != nil { return false } + if !this.Address.Equal(that1.Address) { + return false + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } @@ -6994,6 +7454,15 @@ func (this *ResourceStatistics) VerboseEqual(that interface{}) error { } else if that1.MemSwapBytes != nil { return fmt.Errorf("MemSwapBytes this(%v) Not Equal that(%v)", this.MemSwapBytes, that1.MemSwapBytes) } + if this.MemUnevictableBytes != nil && that1.MemUnevictableBytes != nil { + if *this.MemUnevictableBytes != *that1.MemUnevictableBytes { + return fmt.Errorf("MemUnevictableBytes this(%v) Not Equal that(%v)", *this.MemUnevictableBytes, *that1.MemUnevictableBytes) + } + } else if this.MemUnevictableBytes != nil { + return fmt.Errorf("this.MemUnevictableBytes == nil && that.MemUnevictableBytes != nil") + } else if that1.MemUnevictableBytes != nil { + return fmt.Errorf("MemUnevictableBytes this(%v) Not Equal that(%v)", this.MemUnevictableBytes, that1.MemUnevictableBytes) + } if this.MemLowPressureCounter != nil && that1.MemLowPressureCounter != nil { if *this.MemLowPressureCounter != *that1.MemLowPressureCounter { return fmt.Errorf("MemLowPressureCounter this(%v) Not Equal that(%v)", *this.MemLowPressureCounter, *that1.MemLowPressureCounter) @@ -7372,6 +7841,15 @@ func (this *ResourceStatistics) Equal(that interface{}) bool { } else if that1.MemSwapBytes != nil { return false } + if this.MemUnevictableBytes != nil && that1.MemUnevictableBytes != nil { + if *this.MemUnevictableBytes != *that1.MemUnevictableBytes { + return false + } + } else if this.MemUnevictableBytes != nil { + return false + } else if that1.MemUnevictableBytes != nil { + return false + } if this.MemLowPressureCounter != nil && that1.MemLowPressureCounter != nil { if *this.MemLowPressureCounter != *that1.MemLowPressureCounter { return false @@ -7587,6 +8065,14 @@ func (this *ResourceUsage) VerboseEqual(that interface{}) error { return fmt.Errorf("Executors this[%v](%v) Not Equal that[%v](%v)", i, this.Executors[i], i, that1.Executors[i]) } } + if len(this.Total) != len(that1.Total) { + return fmt.Errorf("Total this(%v) Not Equal that(%v)", len(this.Total), len(that1.Total)) + } + for i := range this.Total { + if !this.Total[i].Equal(that1.Total[i]) { + return fmt.Errorf("Total this[%v](%v) Not Equal that[%v](%v)", i, this.Total[i], i, that1.Total[i]) + } + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } @@ -7620,6 +8106,14 @@ func (this *ResourceUsage) Equal(that interface{}) bool { return false } } + if len(this.Total) != len(that1.Total) { + return false + } + for i := range this.Total { + if !this.Total[i].Equal(that1.Total[i]) { + return false + } + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } @@ -8817,6 +9311,9 @@ func (this *Offer) VerboseEqual(that interface{}) error { } else if that1.Hostname != nil { return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", this.Hostname, that1.Hostname) } + if !this.Url.Equal(that1.Url) { + return fmt.Errorf("Url this(%v) Not Equal that(%v)", this.Url, that1.Url) + } if len(this.Resources) != len(that1.Resources) { return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources)) } @@ -8884,6 +9381,9 @@ func (this *Offer) Equal(that interface{}) bool { } else if that1.Hostname != nil { return false } + if !this.Url.Equal(that1.Url) { + return false + } if len(this.Resources) != len(that1.Resources) { return false } @@ -9568,6 +10068,9 @@ func (this *TaskStatus) VerboseEqual(that interface{}) error { } else if that1.Healthy != nil { return fmt.Errorf("Healthy this(%v) Not Equal that(%v)", this.Healthy, that1.Healthy) } + if !this.Labels.Equal(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } @@ -9662,6 +10165,9 @@ func (this *TaskStatus) Equal(that interface{}) bool { } else if that1.Healthy != nil { return false } + if !this.Labels.Equal(that1.Labels) { + return false + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } @@ -10136,17 +10642,102 @@ func (this *Credentials) VerboseEqual(that interface{}) error { if len(this.Credentials) != len(that1.Credentials) { return fmt.Errorf("Credentials this(%v) Not Equal that(%v)", len(this.Credentials), len(that1.Credentials)) } - for i := range this.Credentials { - if !this.Credentials[i].Equal(that1.Credentials[i]) { - return fmt.Errorf("Credentials this[%v](%v) Not Equal that[%v](%v)", i, this.Credentials[i], i, that1.Credentials[i]) + for i := range this.Credentials { + if !this.Credentials[i].Equal(that1.Credentials[i]) { + return fmt.Errorf("Credentials this[%v](%v) Not Equal that[%v](%v)", i, this.Credentials[i], i, that1.Credentials[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Credentials) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Credentials) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Credentials) != len(that1.Credentials) { + return false + } + for i := range this.Credentials { + if !this.Credentials[i].Equal(that1.Credentials[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RateLimit) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RateLimit) + if !ok { + return fmt.Errorf("that is not of type *RateLimit") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RateLimit but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RateLimitbut is not nil && this == nil") + } + if this.Qps != nil && that1.Qps != nil { + if *this.Qps != *that1.Qps { + return fmt.Errorf("Qps this(%v) Not Equal that(%v)", *this.Qps, *that1.Qps) + } + } else if this.Qps != nil { + return fmt.Errorf("this.Qps == nil && that.Qps != nil") + } else if that1.Qps != nil { + return fmt.Errorf("Qps this(%v) Not Equal that(%v)", this.Qps, that1.Qps) + } + if this.Principal != nil && that1.Principal != nil { + if *this.Principal != *that1.Principal { + return fmt.Errorf("Principal this(%v) Not Equal that(%v)", *this.Principal, *that1.Principal) + } + } else if this.Principal != nil { + return fmt.Errorf("this.Principal == nil && that.Principal != nil") + } else if that1.Principal != nil { + return fmt.Errorf("Principal this(%v) Not Equal that(%v)", this.Principal, that1.Principal) + } + if this.Capacity != nil && that1.Capacity != nil { + if *this.Capacity != *that1.Capacity { + return fmt.Errorf("Capacity this(%v) Not Equal that(%v)", *this.Capacity, *that1.Capacity) } + } else if this.Capacity != nil { + return fmt.Errorf("this.Capacity == nil && that.Capacity != nil") + } else if that1.Capacity != nil { + return fmt.Errorf("Capacity this(%v) Not Equal that(%v)", this.Capacity, that1.Capacity) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *Credentials) Equal(that interface{}) bool { +func (this *RateLimit) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10154,7 +10745,7 @@ func (this *Credentials) Equal(that interface{}) bool { return false } - that1, ok := that.(*Credentials) + that1, ok := that.(*RateLimit) if !ok { return false } @@ -10166,20 +10757,39 @@ func (this *Credentials) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Credentials) != len(that1.Credentials) { + if this.Qps != nil && that1.Qps != nil { + if *this.Qps != *that1.Qps { + return false + } + } else if this.Qps != nil { + return false + } else if that1.Qps != nil { return false } - for i := range this.Credentials { - if !this.Credentials[i].Equal(that1.Credentials[i]) { + if this.Principal != nil && that1.Principal != nil { + if *this.Principal != *that1.Principal { + return false + } + } else if this.Principal != nil { + return false + } else if that1.Principal != nil { + return false + } + if this.Capacity != nil && that1.Capacity != nil { + if *this.Capacity != *that1.Capacity { return false } + } else if this.Capacity != nil { + return false + } else if that1.Capacity != nil { + return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *ACL) VerboseEqual(that interface{}) error { +func (this *RateLimits) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10187,24 +10797,50 @@ func (this *ACL) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACL) + that1, ok := that.(*RateLimits) if !ok { - return fmt.Errorf("that is not of type *ACL") + return fmt.Errorf("that is not of type *RateLimits") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACL but is nil && this != nil") + return fmt.Errorf("that is type *RateLimits but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACLbut is not nil && this == nil") + return fmt.Errorf("that is type *RateLimitsbut is not nil && this == nil") + } + if len(this.Limits) != len(that1.Limits) { + return fmt.Errorf("Limits this(%v) Not Equal that(%v)", len(this.Limits), len(that1.Limits)) + } + for i := range this.Limits { + if !this.Limits[i].Equal(that1.Limits[i]) { + return fmt.Errorf("Limits this[%v](%v) Not Equal that[%v](%v)", i, this.Limits[i], i, that1.Limits[i]) + } + } + if this.AggregateDefaultQps != nil && that1.AggregateDefaultQps != nil { + if *this.AggregateDefaultQps != *that1.AggregateDefaultQps { + return fmt.Errorf("AggregateDefaultQps this(%v) Not Equal that(%v)", *this.AggregateDefaultQps, *that1.AggregateDefaultQps) + } + } else if this.AggregateDefaultQps != nil { + return fmt.Errorf("this.AggregateDefaultQps == nil && that.AggregateDefaultQps != nil") + } else if that1.AggregateDefaultQps != nil { + return fmt.Errorf("AggregateDefaultQps this(%v) Not Equal that(%v)", this.AggregateDefaultQps, that1.AggregateDefaultQps) + } + if this.AggregateDefaultCapacity != nil && that1.AggregateDefaultCapacity != nil { + if *this.AggregateDefaultCapacity != *that1.AggregateDefaultCapacity { + return fmt.Errorf("AggregateDefaultCapacity this(%v) Not Equal that(%v)", *this.AggregateDefaultCapacity, *that1.AggregateDefaultCapacity) + } + } else if this.AggregateDefaultCapacity != nil { + return fmt.Errorf("this.AggregateDefaultCapacity == nil && that.AggregateDefaultCapacity != nil") + } else if that1.AggregateDefaultCapacity != nil { + return fmt.Errorf("AggregateDefaultCapacity this(%v) Not Equal that(%v)", this.AggregateDefaultCapacity, that1.AggregateDefaultCapacity) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACL) Equal(that interface{}) bool { +func (this *RateLimits) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10212,7 +10848,7 @@ func (this *ACL) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACL) + that1, ok := that.(*RateLimits) if !ok { return false } @@ -10224,12 +10860,38 @@ func (this *ACL) Equal(that interface{}) bool { } else if this == nil { return false } + if len(this.Limits) != len(that1.Limits) { + return false + } + for i := range this.Limits { + if !this.Limits[i].Equal(that1.Limits[i]) { + return false + } + } + if this.AggregateDefaultQps != nil && that1.AggregateDefaultQps != nil { + if *this.AggregateDefaultQps != *that1.AggregateDefaultQps { + return false + } + } else if this.AggregateDefaultQps != nil { + return false + } else if that1.AggregateDefaultQps != nil { + return false + } + if this.AggregateDefaultCapacity != nil && that1.AggregateDefaultCapacity != nil { + if *this.AggregateDefaultCapacity != *that1.AggregateDefaultCapacity { + return false + } + } else if this.AggregateDefaultCapacity != nil { + return false + } else if that1.AggregateDefaultCapacity != nil { + return false + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *ACL_Entity) VerboseEqual(that interface{}) error { +func (this *Image) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10237,17 +10899,17 @@ func (this *ACL_Entity) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACL_Entity) + that1, ok := that.(*Image) if !ok { - return fmt.Errorf("that is not of type *ACL_Entity") + return fmt.Errorf("that is not of type *Image") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACL_Entity but is nil && this != nil") + return fmt.Errorf("that is type *Image but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACL_Entitybut is not nil && this == nil") + return fmt.Errorf("that is type *Imagebut is not nil && this == nil") } if this.Type != nil && that1.Type != nil { if *this.Type != *that1.Type { @@ -10258,20 +10920,18 @@ func (this *ACL_Entity) VerboseEqual(that interface{}) error { } else if that1.Type != nil { return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) } - if len(this.Values) != len(that1.Values) { - return fmt.Errorf("Values this(%v) Not Equal that(%v)", len(this.Values), len(that1.Values)) + if !this.Appc.Equal(that1.Appc) { + return fmt.Errorf("Appc this(%v) Not Equal that(%v)", this.Appc, that1.Appc) } - for i := range this.Values { - if this.Values[i] != that1.Values[i] { - return fmt.Errorf("Values this[%v](%v) Not Equal that[%v](%v)", i, this.Values[i], i, that1.Values[i]) - } + if !this.Docker.Equal(that1.Docker) { + return fmt.Errorf("Docker this(%v) Not Equal that(%v)", this.Docker, that1.Docker) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACL_Entity) Equal(that interface{}) bool { +func (this *Image) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10279,7 +10939,7 @@ func (this *ACL_Entity) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACL_Entity) + that1, ok := that.(*Image) if !ok { return false } @@ -10300,20 +10960,18 @@ func (this *ACL_Entity) Equal(that interface{}) bool { } else if that1.Type != nil { return false } - if len(this.Values) != len(that1.Values) { + if !this.Appc.Equal(that1.Appc) { return false } - for i := range this.Values { - if this.Values[i] != that1.Values[i] { - return false - } + if !this.Docker.Equal(that1.Docker) { + return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *ACL_RegisterFramework) VerboseEqual(that interface{}) error { +func (this *Image_AppC) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10321,30 +10979,45 @@ func (this *ACL_RegisterFramework) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACL_RegisterFramework) + that1, ok := that.(*Image_AppC) if !ok { - return fmt.Errorf("that is not of type *ACL_RegisterFramework") + return fmt.Errorf("that is not of type *Image_AppC") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACL_RegisterFramework but is nil && this != nil") + return fmt.Errorf("that is type *Image_AppC but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACL_RegisterFrameworkbut is not nil && this == nil") + return fmt.Errorf("that is type *Image_AppCbut is not nil && this == nil") + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } - if !this.Principals.Equal(that1.Principals) { - return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) + if this.Id != nil && that1.Id != nil { + if *this.Id != *that1.Id { + return fmt.Errorf("Id this(%v) Not Equal that(%v)", *this.Id, *that1.Id) + } + } else if this.Id != nil { + return fmt.Errorf("this.Id == nil && that.Id != nil") + } else if that1.Id != nil { + return fmt.Errorf("Id this(%v) Not Equal that(%v)", this.Id, that1.Id) } - if !this.Roles.Equal(that1.Roles) { - return fmt.Errorf("Roles this(%v) Not Equal that(%v)", this.Roles, that1.Roles) + if !this.Labels.Equal(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACL_RegisterFramework) Equal(that interface{}) bool { +func (this *Image_AppC) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10352,7 +11025,7 @@ func (this *ACL_RegisterFramework) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACL_RegisterFramework) + that1, ok := that.(*Image_AppC) if !ok { return false } @@ -10364,10 +11037,25 @@ func (this *ACL_RegisterFramework) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Principals.Equal(that1.Principals) { + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { + return false + } else if that1.Name != nil { + return false + } + if this.Id != nil && that1.Id != nil { + if *this.Id != *that1.Id { + return false + } + } else if this.Id != nil { + return false + } else if that1.Id != nil { return false } - if !this.Roles.Equal(that1.Roles) { + if !this.Labels.Equal(that1.Labels) { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10375,7 +11063,7 @@ func (this *ACL_RegisterFramework) Equal(that interface{}) bool { } return true } -func (this *ACL_RunTask) VerboseEqual(that interface{}) error { +func (this *Image_Docker) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10383,30 +11071,33 @@ func (this *ACL_RunTask) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACL_RunTask) + that1, ok := that.(*Image_Docker) if !ok { - return fmt.Errorf("that is not of type *ACL_RunTask") + return fmt.Errorf("that is not of type *Image_Docker") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACL_RunTask but is nil && this != nil") + return fmt.Errorf("that is type *Image_Docker but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACL_RunTaskbut is not nil && this == nil") + return fmt.Errorf("that is type *Image_Dockerbut is not nil && this == nil") } - if !this.Principals.Equal(that1.Principals) { - return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) - } - if !this.Users.Equal(that1.Users) { - return fmt.Errorf("Users this(%v) Not Equal that(%v)", this.Users, that1.Users) + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACL_RunTask) Equal(that interface{}) bool { +func (this *Image_Docker) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10414,7 +11105,7 @@ func (this *ACL_RunTask) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACL_RunTask) + that1, ok := that.(*Image_Docker) if !ok { return false } @@ -10426,10 +11117,13 @@ func (this *ACL_RunTask) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Principals.Equal(that1.Principals) { + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { return false - } - if !this.Users.Equal(that1.Users) { + } else if that1.Name != nil { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10437,7 +11131,7 @@ func (this *ACL_RunTask) Equal(that interface{}) bool { } return true } -func (this *ACL_ShutdownFramework) VerboseEqual(that interface{}) error { +func (this *Volume) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10445,30 +11139,54 @@ func (this *ACL_ShutdownFramework) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACL_ShutdownFramework) + that1, ok := that.(*Volume) if !ok { - return fmt.Errorf("that is not of type *ACL_ShutdownFramework") + return fmt.Errorf("that is not of type *Volume") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACL_ShutdownFramework but is nil && this != nil") + return fmt.Errorf("that is type *Volume but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACL_ShutdownFrameworkbut is not nil && this == nil") + return fmt.Errorf("that is type *Volumebut is not nil && this == nil") + } + if this.Mode != nil && that1.Mode != nil { + if *this.Mode != *that1.Mode { + return fmt.Errorf("Mode this(%v) Not Equal that(%v)", *this.Mode, *that1.Mode) + } + } else if this.Mode != nil { + return fmt.Errorf("this.Mode == nil && that.Mode != nil") + } else if that1.Mode != nil { + return fmt.Errorf("Mode this(%v) Not Equal that(%v)", this.Mode, that1.Mode) } - if !this.Principals.Equal(that1.Principals) { - return fmt.Errorf("Principals this(%v) Not Equal that(%v)", this.Principals, that1.Principals) + if this.ContainerPath != nil && that1.ContainerPath != nil { + if *this.ContainerPath != *that1.ContainerPath { + return fmt.Errorf("ContainerPath this(%v) Not Equal that(%v)", *this.ContainerPath, *that1.ContainerPath) + } + } else if this.ContainerPath != nil { + return fmt.Errorf("this.ContainerPath == nil && that.ContainerPath != nil") + } else if that1.ContainerPath != nil { + return fmt.Errorf("ContainerPath this(%v) Not Equal that(%v)", this.ContainerPath, that1.ContainerPath) + } + if this.HostPath != nil && that1.HostPath != nil { + if *this.HostPath != *that1.HostPath { + return fmt.Errorf("HostPath this(%v) Not Equal that(%v)", *this.HostPath, *that1.HostPath) + } + } else if this.HostPath != nil { + return fmt.Errorf("this.HostPath == nil && that.HostPath != nil") + } else if that1.HostPath != nil { + return fmt.Errorf("HostPath this(%v) Not Equal that(%v)", this.HostPath, that1.HostPath) } - if !this.FrameworkPrincipals.Equal(that1.FrameworkPrincipals) { - return fmt.Errorf("FrameworkPrincipals this(%v) Not Equal that(%v)", this.FrameworkPrincipals, that1.FrameworkPrincipals) + if !this.Image.Equal(that1.Image) { + return fmt.Errorf("Image this(%v) Not Equal that(%v)", this.Image, that1.Image) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACL_ShutdownFramework) Equal(that interface{}) bool { +func (this *Volume) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10476,7 +11194,7 @@ func (this *ACL_ShutdownFramework) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACL_ShutdownFramework) + that1, ok := that.(*Volume) if !ok { return false } @@ -10488,10 +11206,34 @@ func (this *ACL_ShutdownFramework) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Principals.Equal(that1.Principals) { + if this.Mode != nil && that1.Mode != nil { + if *this.Mode != *that1.Mode { + return false + } + } else if this.Mode != nil { + return false + } else if that1.Mode != nil { + return false + } + if this.ContainerPath != nil && that1.ContainerPath != nil { + if *this.ContainerPath != *that1.ContainerPath { + return false + } + } else if this.ContainerPath != nil { + return false + } else if that1.ContainerPath != nil { + return false + } + if this.HostPath != nil && that1.HostPath != nil { + if *this.HostPath != *that1.HostPath { + return false + } + } else if this.HostPath != nil { + return false + } else if that1.HostPath != nil { return false } - if !this.FrameworkPrincipals.Equal(that1.FrameworkPrincipals) { + if !this.Image.Equal(that1.Image) { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10499,7 +11241,7 @@ func (this *ACL_ShutdownFramework) Equal(that interface{}) bool { } return true } -func (this *ACLs) VerboseEqual(that interface{}) error { +func (this *ContainerInfo) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10507,57 +11249,56 @@ func (this *ACLs) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ACLs) + that1, ok := that.(*ContainerInfo) if !ok { - return fmt.Errorf("that is not of type *ACLs") + return fmt.Errorf("that is not of type *ContainerInfo") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ACLs but is nil && this != nil") + return fmt.Errorf("that is type *ContainerInfo but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ACLsbut is not nil && this == nil") + return fmt.Errorf("that is type *ContainerInfobut is not nil && this == nil") } - if this.Permissive != nil && that1.Permissive != nil { - if *this.Permissive != *that1.Permissive { - return fmt.Errorf("Permissive this(%v) Not Equal that(%v)", *this.Permissive, *that1.Permissive) + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) } - } else if this.Permissive != nil { - return fmt.Errorf("this.Permissive == nil && that.Permissive != nil") - } else if that1.Permissive != nil { - return fmt.Errorf("Permissive this(%v) Not Equal that(%v)", this.Permissive, that1.Permissive) + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) } - if len(this.RegisterFrameworks) != len(that1.RegisterFrameworks) { - return fmt.Errorf("RegisterFrameworks this(%v) Not Equal that(%v)", len(this.RegisterFrameworks), len(that1.RegisterFrameworks)) + if len(this.Volumes) != len(that1.Volumes) { + return fmt.Errorf("Volumes this(%v) Not Equal that(%v)", len(this.Volumes), len(that1.Volumes)) } - for i := range this.RegisterFrameworks { - if !this.RegisterFrameworks[i].Equal(that1.RegisterFrameworks[i]) { - return fmt.Errorf("RegisterFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.RegisterFrameworks[i], i, that1.RegisterFrameworks[i]) + for i := range this.Volumes { + if !this.Volumes[i].Equal(that1.Volumes[i]) { + return fmt.Errorf("Volumes this[%v](%v) Not Equal that[%v](%v)", i, this.Volumes[i], i, that1.Volumes[i]) } } - if len(this.RunTasks) != len(that1.RunTasks) { - return fmt.Errorf("RunTasks this(%v) Not Equal that(%v)", len(this.RunTasks), len(that1.RunTasks)) - } - for i := range this.RunTasks { - if !this.RunTasks[i].Equal(that1.RunTasks[i]) { - return fmt.Errorf("RunTasks this[%v](%v) Not Equal that[%v](%v)", i, this.RunTasks[i], i, that1.RunTasks[i]) + if this.Hostname != nil && that1.Hostname != nil { + if *this.Hostname != *that1.Hostname { + return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", *this.Hostname, *that1.Hostname) } + } else if this.Hostname != nil { + return fmt.Errorf("this.Hostname == nil && that.Hostname != nil") + } else if that1.Hostname != nil { + return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", this.Hostname, that1.Hostname) } - if len(this.ShutdownFrameworks) != len(that1.ShutdownFrameworks) { - return fmt.Errorf("ShutdownFrameworks this(%v) Not Equal that(%v)", len(this.ShutdownFrameworks), len(that1.ShutdownFrameworks)) + if !this.Docker.Equal(that1.Docker) { + return fmt.Errorf("Docker this(%v) Not Equal that(%v)", this.Docker, that1.Docker) } - for i := range this.ShutdownFrameworks { - if !this.ShutdownFrameworks[i].Equal(that1.ShutdownFrameworks[i]) { - return fmt.Errorf("ShutdownFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.ShutdownFrameworks[i], i, that1.ShutdownFrameworks[i]) - } + if !this.Mesos.Equal(that1.Mesos) { + return fmt.Errorf("Mesos this(%v) Not Equal that(%v)", this.Mesos, that1.Mesos) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ACLs) Equal(that interface{}) bool { +func (this *ContainerInfo) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10565,7 +11306,7 @@ func (this *ACLs) Equal(that interface{}) bool { return false } - that1, ok := that.(*ACLs) + that1, ok := that.(*ContainerInfo) if !ok { return false } @@ -10577,45 +11318,44 @@ func (this *ACLs) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Permissive != nil && that1.Permissive != nil { - if *this.Permissive != *that1.Permissive { + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { return false } - } else if this.Permissive != nil { + } else if this.Type != nil { return false - } else if that1.Permissive != nil { + } else if that1.Type != nil { return false } - if len(this.RegisterFrameworks) != len(that1.RegisterFrameworks) { + if len(this.Volumes) != len(that1.Volumes) { return false } - for i := range this.RegisterFrameworks { - if !this.RegisterFrameworks[i].Equal(that1.RegisterFrameworks[i]) { + for i := range this.Volumes { + if !this.Volumes[i].Equal(that1.Volumes[i]) { return false } } - if len(this.RunTasks) != len(that1.RunTasks) { - return false - } - for i := range this.RunTasks { - if !this.RunTasks[i].Equal(that1.RunTasks[i]) { + if this.Hostname != nil && that1.Hostname != nil { + if *this.Hostname != *that1.Hostname { return false } + } else if this.Hostname != nil { + return false + } else if that1.Hostname != nil { + return false } - if len(this.ShutdownFrameworks) != len(that1.ShutdownFrameworks) { + if !this.Docker.Equal(that1.Docker) { return false } - for i := range this.ShutdownFrameworks { - if !this.ShutdownFrameworks[i].Equal(that1.ShutdownFrameworks[i]) { - return false - } + if !this.Mesos.Equal(that1.Mesos) { + return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *RateLimit) VerboseEqual(that interface{}) error { +func (this *ContainerInfo_DockerInfo) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10623,51 +11363,76 @@ func (this *RateLimit) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*RateLimit) + that1, ok := that.(*ContainerInfo_DockerInfo) if !ok { - return fmt.Errorf("that is not of type *RateLimit") + return fmt.Errorf("that is not of type *ContainerInfo_DockerInfo") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *RateLimit but is nil && this != nil") + return fmt.Errorf("that is type *ContainerInfo_DockerInfo but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *RateLimitbut is not nil && this == nil") + return fmt.Errorf("that is type *ContainerInfo_DockerInfobut is not nil && this == nil") } - if this.Qps != nil && that1.Qps != nil { - if *this.Qps != *that1.Qps { - return fmt.Errorf("Qps this(%v) Not Equal that(%v)", *this.Qps, *that1.Qps) + if this.Image != nil && that1.Image != nil { + if *this.Image != *that1.Image { + return fmt.Errorf("Image this(%v) Not Equal that(%v)", *this.Image, *that1.Image) } - } else if this.Qps != nil { - return fmt.Errorf("this.Qps == nil && that.Qps != nil") - } else if that1.Qps != nil { - return fmt.Errorf("Qps this(%v) Not Equal that(%v)", this.Qps, that1.Qps) + } else if this.Image != nil { + return fmt.Errorf("this.Image == nil && that.Image != nil") + } else if that1.Image != nil { + return fmt.Errorf("Image this(%v) Not Equal that(%v)", this.Image, that1.Image) } - if this.Principal != nil && that1.Principal != nil { - if *this.Principal != *that1.Principal { - return fmt.Errorf("Principal this(%v) Not Equal that(%v)", *this.Principal, *that1.Principal) + if this.Network != nil && that1.Network != nil { + if *this.Network != *that1.Network { + return fmt.Errorf("Network this(%v) Not Equal that(%v)", *this.Network, *that1.Network) } - } else if this.Principal != nil { - return fmt.Errorf("this.Principal == nil && that.Principal != nil") - } else if that1.Principal != nil { - return fmt.Errorf("Principal this(%v) Not Equal that(%v)", this.Principal, that1.Principal) + } else if this.Network != nil { + return fmt.Errorf("this.Network == nil && that.Network != nil") + } else if that1.Network != nil { + return fmt.Errorf("Network this(%v) Not Equal that(%v)", this.Network, that1.Network) } - if this.Capacity != nil && that1.Capacity != nil { - if *this.Capacity != *that1.Capacity { - return fmt.Errorf("Capacity this(%v) Not Equal that(%v)", *this.Capacity, *that1.Capacity) + if len(this.PortMappings) != len(that1.PortMappings) { + return fmt.Errorf("PortMappings this(%v) Not Equal that(%v)", len(this.PortMappings), len(that1.PortMappings)) + } + for i := range this.PortMappings { + if !this.PortMappings[i].Equal(that1.PortMappings[i]) { + return fmt.Errorf("PortMappings this[%v](%v) Not Equal that[%v](%v)", i, this.PortMappings[i], i, that1.PortMappings[i]) } - } else if this.Capacity != nil { - return fmt.Errorf("this.Capacity == nil && that.Capacity != nil") - } else if that1.Capacity != nil { - return fmt.Errorf("Capacity this(%v) Not Equal that(%v)", this.Capacity, that1.Capacity) + } + if this.Privileged != nil && that1.Privileged != nil { + if *this.Privileged != *that1.Privileged { + return fmt.Errorf("Privileged this(%v) Not Equal that(%v)", *this.Privileged, *that1.Privileged) + } + } else if this.Privileged != nil { + return fmt.Errorf("this.Privileged == nil && that.Privileged != nil") + } else if that1.Privileged != nil { + return fmt.Errorf("Privileged this(%v) Not Equal that(%v)", this.Privileged, that1.Privileged) + } + if len(this.Parameters) != len(that1.Parameters) { + return fmt.Errorf("Parameters this(%v) Not Equal that(%v)", len(this.Parameters), len(that1.Parameters)) + } + for i := range this.Parameters { + if !this.Parameters[i].Equal(that1.Parameters[i]) { + return fmt.Errorf("Parameters this[%v](%v) Not Equal that[%v](%v)", i, this.Parameters[i], i, that1.Parameters[i]) + } + } + if this.ForcePullImage != nil && that1.ForcePullImage != nil { + if *this.ForcePullImage != *that1.ForcePullImage { + return fmt.Errorf("ForcePullImage this(%v) Not Equal that(%v)", *this.ForcePullImage, *that1.ForcePullImage) + } + } else if this.ForcePullImage != nil { + return fmt.Errorf("this.ForcePullImage == nil && that.ForcePullImage != nil") + } else if that1.ForcePullImage != nil { + return fmt.Errorf("ForcePullImage this(%v) Not Equal that(%v)", this.ForcePullImage, that1.ForcePullImage) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *RateLimit) Equal(that interface{}) bool { +func (this *ContainerInfo_DockerInfo) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10675,7 +11440,7 @@ func (this *RateLimit) Equal(that interface{}) bool { return false } - that1, ok := that.(*RateLimit) + that1, ok := that.(*ContainerInfo_DockerInfo) if !ok { return false } @@ -10687,31 +11452,56 @@ func (this *RateLimit) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Qps != nil && that1.Qps != nil { - if *this.Qps != *that1.Qps { + if this.Image != nil && that1.Image != nil { + if *this.Image != *that1.Image { return false } - } else if this.Qps != nil { + } else if this.Image != nil { return false - } else if that1.Qps != nil { + } else if that1.Image != nil { return false } - if this.Principal != nil && that1.Principal != nil { - if *this.Principal != *that1.Principal { + if this.Network != nil && that1.Network != nil { + if *this.Network != *that1.Network { return false } - } else if this.Principal != nil { + } else if this.Network != nil { return false - } else if that1.Principal != nil { + } else if that1.Network != nil { return false } - if this.Capacity != nil && that1.Capacity != nil { - if *this.Capacity != *that1.Capacity { + if len(this.PortMappings) != len(that1.PortMappings) { + return false + } + for i := range this.PortMappings { + if !this.PortMappings[i].Equal(that1.PortMappings[i]) { return false } - } else if this.Capacity != nil { + } + if this.Privileged != nil && that1.Privileged != nil { + if *this.Privileged != *that1.Privileged { + return false + } + } else if this.Privileged != nil { return false - } else if that1.Capacity != nil { + } else if that1.Privileged != nil { + return false + } + if len(this.Parameters) != len(that1.Parameters) { + return false + } + for i := range this.Parameters { + if !this.Parameters[i].Equal(that1.Parameters[i]) { + return false + } + } + if this.ForcePullImage != nil && that1.ForcePullImage != nil { + if *this.ForcePullImage != *that1.ForcePullImage { + return false + } + } else if this.ForcePullImage != nil { + return false + } else if that1.ForcePullImage != nil { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10719,7 +11509,7 @@ func (this *RateLimit) Equal(that interface{}) bool { } return true } -func (this *RateLimits) VerboseEqual(that interface{}) error { +func (this *ContainerInfo_DockerInfo_PortMapping) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10727,50 +11517,51 @@ func (this *RateLimits) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*RateLimits) + that1, ok := that.(*ContainerInfo_DockerInfo_PortMapping) if !ok { - return fmt.Errorf("that is not of type *RateLimits") + return fmt.Errorf("that is not of type *ContainerInfo_DockerInfo_PortMapping") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *RateLimits but is nil && this != nil") + return fmt.Errorf("that is type *ContainerInfo_DockerInfo_PortMapping but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *RateLimitsbut is not nil && this == nil") - } - if len(this.Limits) != len(that1.Limits) { - return fmt.Errorf("Limits this(%v) Not Equal that(%v)", len(this.Limits), len(that1.Limits)) + return fmt.Errorf("that is type *ContainerInfo_DockerInfo_PortMappingbut is not nil && this == nil") } - for i := range this.Limits { - if !this.Limits[i].Equal(that1.Limits[i]) { - return fmt.Errorf("Limits this[%v](%v) Not Equal that[%v](%v)", i, this.Limits[i], i, that1.Limits[i]) + if this.HostPort != nil && that1.HostPort != nil { + if *this.HostPort != *that1.HostPort { + return fmt.Errorf("HostPort this(%v) Not Equal that(%v)", *this.HostPort, *that1.HostPort) } + } else if this.HostPort != nil { + return fmt.Errorf("this.HostPort == nil && that.HostPort != nil") + } else if that1.HostPort != nil { + return fmt.Errorf("HostPort this(%v) Not Equal that(%v)", this.HostPort, that1.HostPort) } - if this.AggregateDefaultQps != nil && that1.AggregateDefaultQps != nil { - if *this.AggregateDefaultQps != *that1.AggregateDefaultQps { - return fmt.Errorf("AggregateDefaultQps this(%v) Not Equal that(%v)", *this.AggregateDefaultQps, *that1.AggregateDefaultQps) + if this.ContainerPort != nil && that1.ContainerPort != nil { + if *this.ContainerPort != *that1.ContainerPort { + return fmt.Errorf("ContainerPort this(%v) Not Equal that(%v)", *this.ContainerPort, *that1.ContainerPort) } - } else if this.AggregateDefaultQps != nil { - return fmt.Errorf("this.AggregateDefaultQps == nil && that.AggregateDefaultQps != nil") - } else if that1.AggregateDefaultQps != nil { - return fmt.Errorf("AggregateDefaultQps this(%v) Not Equal that(%v)", this.AggregateDefaultQps, that1.AggregateDefaultQps) + } else if this.ContainerPort != nil { + return fmt.Errorf("this.ContainerPort == nil && that.ContainerPort != nil") + } else if that1.ContainerPort != nil { + return fmt.Errorf("ContainerPort this(%v) Not Equal that(%v)", this.ContainerPort, that1.ContainerPort) } - if this.AggregateDefaultCapacity != nil && that1.AggregateDefaultCapacity != nil { - if *this.AggregateDefaultCapacity != *that1.AggregateDefaultCapacity { - return fmt.Errorf("AggregateDefaultCapacity this(%v) Not Equal that(%v)", *this.AggregateDefaultCapacity, *that1.AggregateDefaultCapacity) + if this.Protocol != nil && that1.Protocol != nil { + if *this.Protocol != *that1.Protocol { + return fmt.Errorf("Protocol this(%v) Not Equal that(%v)", *this.Protocol, *that1.Protocol) } - } else if this.AggregateDefaultCapacity != nil { - return fmt.Errorf("this.AggregateDefaultCapacity == nil && that.AggregateDefaultCapacity != nil") - } else if that1.AggregateDefaultCapacity != nil { - return fmt.Errorf("AggregateDefaultCapacity this(%v) Not Equal that(%v)", this.AggregateDefaultCapacity, that1.AggregateDefaultCapacity) + } else if this.Protocol != nil { + return fmt.Errorf("this.Protocol == nil && that.Protocol != nil") + } else if that1.Protocol != nil { + return fmt.Errorf("Protocol this(%v) Not Equal that(%v)", this.Protocol, that1.Protocol) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *RateLimits) Equal(that interface{}) bool { +func (this *ContainerInfo_DockerInfo_PortMapping) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10778,7 +11569,7 @@ func (this *RateLimits) Equal(that interface{}) bool { return false } - that1, ok := that.(*RateLimits) + that1, ok := that.(*ContainerInfo_DockerInfo_PortMapping) if !ok { return false } @@ -10790,30 +11581,31 @@ func (this *RateLimits) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Limits) != len(that1.Limits) { - return false - } - for i := range this.Limits { - if !this.Limits[i].Equal(that1.Limits[i]) { + if this.HostPort != nil && that1.HostPort != nil { + if *this.HostPort != *that1.HostPort { return false } + } else if this.HostPort != nil { + return false + } else if that1.HostPort != nil { + return false } - if this.AggregateDefaultQps != nil && that1.AggregateDefaultQps != nil { - if *this.AggregateDefaultQps != *that1.AggregateDefaultQps { + if this.ContainerPort != nil && that1.ContainerPort != nil { + if *this.ContainerPort != *that1.ContainerPort { return false } - } else if this.AggregateDefaultQps != nil { + } else if this.ContainerPort != nil { return false - } else if that1.AggregateDefaultQps != nil { + } else if that1.ContainerPort != nil { return false } - if this.AggregateDefaultCapacity != nil && that1.AggregateDefaultCapacity != nil { - if *this.AggregateDefaultCapacity != *that1.AggregateDefaultCapacity { + if this.Protocol != nil && that1.Protocol != nil { + if *this.Protocol != *that1.Protocol { return false } - } else if this.AggregateDefaultCapacity != nil { + } else if this.Protocol != nil { return false - } else if that1.AggregateDefaultCapacity != nil { + } else if that1.Protocol != nil { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10821,59 +11613,35 @@ func (this *RateLimits) Equal(that interface{}) bool { } return true } -func (this *Volume) VerboseEqual(that interface{}) error { +func (this *ContainerInfo_MesosInfo) VerboseEqual(that interface{}) error { if that == nil { if this == nil { - return nil - } - return fmt.Errorf("that == nil && this != nil") - } - - that1, ok := that.(*Volume) - if !ok { - return fmt.Errorf("that is not of type *Volume") - } - if that1 == nil { - if this == nil { - return nil - } - return fmt.Errorf("that is type *Volume but is nil && this != nil") - } else if this == nil { - return fmt.Errorf("that is type *Volumebut is not nil && this == nil") - } - if this.ContainerPath != nil && that1.ContainerPath != nil { - if *this.ContainerPath != *that1.ContainerPath { - return fmt.Errorf("ContainerPath this(%v) Not Equal that(%v)", *this.ContainerPath, *that1.ContainerPath) - } - } else if this.ContainerPath != nil { - return fmt.Errorf("this.ContainerPath == nil && that.ContainerPath != nil") - } else if that1.ContainerPath != nil { - return fmt.Errorf("ContainerPath this(%v) Not Equal that(%v)", this.ContainerPath, that1.ContainerPath) - } - if this.HostPath != nil && that1.HostPath != nil { - if *this.HostPath != *that1.HostPath { - return fmt.Errorf("HostPath this(%v) Not Equal that(%v)", *this.HostPath, *that1.HostPath) + return nil } - } else if this.HostPath != nil { - return fmt.Errorf("this.HostPath == nil && that.HostPath != nil") - } else if that1.HostPath != nil { - return fmt.Errorf("HostPath this(%v) Not Equal that(%v)", this.HostPath, that1.HostPath) + return fmt.Errorf("that == nil && this != nil") } - if this.Mode != nil && that1.Mode != nil { - if *this.Mode != *that1.Mode { - return fmt.Errorf("Mode this(%v) Not Equal that(%v)", *this.Mode, *that1.Mode) + + that1, ok := that.(*ContainerInfo_MesosInfo) + if !ok { + return fmt.Errorf("that is not of type *ContainerInfo_MesosInfo") + } + if that1 == nil { + if this == nil { + return nil } - } else if this.Mode != nil { - return fmt.Errorf("this.Mode == nil && that.Mode != nil") - } else if that1.Mode != nil { - return fmt.Errorf("Mode this(%v) Not Equal that(%v)", this.Mode, that1.Mode) + return fmt.Errorf("that is type *ContainerInfo_MesosInfo but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ContainerInfo_MesosInfobut is not nil && this == nil") + } + if !this.Image.Equal(that1.Image) { + return fmt.Errorf("Image this(%v) Not Equal that(%v)", this.Image, that1.Image) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *Volume) Equal(that interface{}) bool { +func (this *ContainerInfo_MesosInfo) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10881,7 +11649,7 @@ func (this *Volume) Equal(that interface{}) bool { return false } - that1, ok := that.(*Volume) + that1, ok := that.(*ContainerInfo_MesosInfo) if !ok { return false } @@ -10893,31 +11661,7 @@ func (this *Volume) Equal(that interface{}) bool { } else if this == nil { return false } - if this.ContainerPath != nil && that1.ContainerPath != nil { - if *this.ContainerPath != *that1.ContainerPath { - return false - } - } else if this.ContainerPath != nil { - return false - } else if that1.ContainerPath != nil { - return false - } - if this.HostPath != nil && that1.HostPath != nil { - if *this.HostPath != *that1.HostPath { - return false - } - } else if this.HostPath != nil { - return false - } else if that1.HostPath != nil { - return false - } - if this.Mode != nil && that1.Mode != nil { - if *this.Mode != *that1.Mode { - return false - } - } else if this.Mode != nil { - return false - } else if that1.Mode != nil { + if !this.Image.Equal(that1.Image) { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -10925,7 +11669,7 @@ func (this *Volume) Equal(that interface{}) bool { } return true } -func (this *ContainerInfo) VerboseEqual(that interface{}) error { +func (this *Labels) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -10933,53 +11677,32 @@ func (this *ContainerInfo) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ContainerInfo) + that1, ok := that.(*Labels) if !ok { - return fmt.Errorf("that is not of type *ContainerInfo") + return fmt.Errorf("that is not of type *Labels") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ContainerInfo but is nil && this != nil") + return fmt.Errorf("that is type *Labels but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ContainerInfobut is not nil && this == nil") - } - if this.Type != nil && that1.Type != nil { - if *this.Type != *that1.Type { - return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) - } - } else if this.Type != nil { - return fmt.Errorf("this.Type == nil && that.Type != nil") - } else if that1.Type != nil { - return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) - } - if len(this.Volumes) != len(that1.Volumes) { - return fmt.Errorf("Volumes this(%v) Not Equal that(%v)", len(this.Volumes), len(that1.Volumes)) + return fmt.Errorf("that is type *Labelsbut is not nil && this == nil") } - for i := range this.Volumes { - if !this.Volumes[i].Equal(that1.Volumes[i]) { - return fmt.Errorf("Volumes this[%v](%v) Not Equal that[%v](%v)", i, this.Volumes[i], i, that1.Volumes[i]) - } + if len(this.Labels) != len(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", len(this.Labels), len(that1.Labels)) } - if this.Hostname != nil && that1.Hostname != nil { - if *this.Hostname != *that1.Hostname { - return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", *this.Hostname, *that1.Hostname) + for i := range this.Labels { + if !this.Labels[i].Equal(that1.Labels[i]) { + return fmt.Errorf("Labels this[%v](%v) Not Equal that[%v](%v)", i, this.Labels[i], i, that1.Labels[i]) } - } else if this.Hostname != nil { - return fmt.Errorf("this.Hostname == nil && that.Hostname != nil") - } else if that1.Hostname != nil { - return fmt.Errorf("Hostname this(%v) Not Equal that(%v)", this.Hostname, that1.Hostname) - } - if !this.Docker.Equal(that1.Docker) { - return fmt.Errorf("Docker this(%v) Not Equal that(%v)", this.Docker, that1.Docker) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ContainerInfo) Equal(that interface{}) bool { +func (this *Labels) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -10987,7 +11710,7 @@ func (this *ContainerInfo) Equal(that interface{}) bool { return false } - that1, ok := that.(*ContainerInfo) + that1, ok := that.(*Labels) if !ok { return false } @@ -10999,41 +11722,20 @@ func (this *ContainerInfo) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Type != nil && that1.Type != nil { - if *this.Type != *that1.Type { - return false - } - } else if this.Type != nil { - return false - } else if that1.Type != nil { - return false - } - if len(this.Volumes) != len(that1.Volumes) { + if len(this.Labels) != len(that1.Labels) { return false } - for i := range this.Volumes { - if !this.Volumes[i].Equal(that1.Volumes[i]) { - return false - } - } - if this.Hostname != nil && that1.Hostname != nil { - if *this.Hostname != *that1.Hostname { + for i := range this.Labels { + if !this.Labels[i].Equal(that1.Labels[i]) { return false } - } else if this.Hostname != nil { - return false - } else if that1.Hostname != nil { - return false - } - if !this.Docker.Equal(that1.Docker) { - return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *ContainerInfo_DockerInfo) VerboseEqual(that interface{}) error { +func (this *Label) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11041,76 +11743,42 @@ func (this *ContainerInfo_DockerInfo) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ContainerInfo_DockerInfo) + that1, ok := that.(*Label) if !ok { - return fmt.Errorf("that is not of type *ContainerInfo_DockerInfo") + return fmt.Errorf("that is not of type *Label") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ContainerInfo_DockerInfo but is nil && this != nil") + return fmt.Errorf("that is type *Label but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ContainerInfo_DockerInfobut is not nil && this == nil") - } - if this.Image != nil && that1.Image != nil { - if *this.Image != *that1.Image { - return fmt.Errorf("Image this(%v) Not Equal that(%v)", *this.Image, *that1.Image) - } - } else if this.Image != nil { - return fmt.Errorf("this.Image == nil && that.Image != nil") - } else if that1.Image != nil { - return fmt.Errorf("Image this(%v) Not Equal that(%v)", this.Image, that1.Image) - } - if this.Network != nil && that1.Network != nil { - if *this.Network != *that1.Network { - return fmt.Errorf("Network this(%v) Not Equal that(%v)", *this.Network, *that1.Network) - } - } else if this.Network != nil { - return fmt.Errorf("this.Network == nil && that.Network != nil") - } else if that1.Network != nil { - return fmt.Errorf("Network this(%v) Not Equal that(%v)", this.Network, that1.Network) - } - if len(this.PortMappings) != len(that1.PortMappings) { - return fmt.Errorf("PortMappings this(%v) Not Equal that(%v)", len(this.PortMappings), len(that1.PortMappings)) - } - for i := range this.PortMappings { - if !this.PortMappings[i].Equal(that1.PortMappings[i]) { - return fmt.Errorf("PortMappings this[%v](%v) Not Equal that[%v](%v)", i, this.PortMappings[i], i, that1.PortMappings[i]) - } - } - if this.Privileged != nil && that1.Privileged != nil { - if *this.Privileged != *that1.Privileged { - return fmt.Errorf("Privileged this(%v) Not Equal that(%v)", *this.Privileged, *that1.Privileged) - } - } else if this.Privileged != nil { - return fmt.Errorf("this.Privileged == nil && that.Privileged != nil") - } else if that1.Privileged != nil { - return fmt.Errorf("Privileged this(%v) Not Equal that(%v)", this.Privileged, that1.Privileged) - } - if len(this.Parameters) != len(that1.Parameters) { - return fmt.Errorf("Parameters this(%v) Not Equal that(%v)", len(this.Parameters), len(that1.Parameters)) + return fmt.Errorf("that is type *Labelbut is not nil && this == nil") } - for i := range this.Parameters { - if !this.Parameters[i].Equal(that1.Parameters[i]) { - return fmt.Errorf("Parameters this[%v](%v) Not Equal that[%v](%v)", i, this.Parameters[i], i, that1.Parameters[i]) + if this.Key != nil && that1.Key != nil { + if *this.Key != *that1.Key { + return fmt.Errorf("Key this(%v) Not Equal that(%v)", *this.Key, *that1.Key) } + } else if this.Key != nil { + return fmt.Errorf("this.Key == nil && that.Key != nil") + } else if that1.Key != nil { + return fmt.Errorf("Key this(%v) Not Equal that(%v)", this.Key, that1.Key) } - if this.ForcePullImage != nil && that1.ForcePullImage != nil { - if *this.ForcePullImage != *that1.ForcePullImage { - return fmt.Errorf("ForcePullImage this(%v) Not Equal that(%v)", *this.ForcePullImage, *that1.ForcePullImage) + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", *this.Value, *that1.Value) } - } else if this.ForcePullImage != nil { - return fmt.Errorf("this.ForcePullImage == nil && that.ForcePullImage != nil") - } else if that1.ForcePullImage != nil { - return fmt.Errorf("ForcePullImage this(%v) Not Equal that(%v)", this.ForcePullImage, that1.ForcePullImage) + } else if this.Value != nil { + return fmt.Errorf("this.Value == nil && that.Value != nil") + } else if that1.Value != nil { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", this.Value, that1.Value) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *ContainerInfo_DockerInfo) Equal(that interface{}) bool { +func (this *Label) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11118,7 +11786,7 @@ func (this *ContainerInfo_DockerInfo) Equal(that interface{}) bool { return false } - that1, ok := that.(*ContainerInfo_DockerInfo) + that1, ok := that.(*Label) if !ok { return false } @@ -11130,56 +11798,22 @@ func (this *ContainerInfo_DockerInfo) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Image != nil && that1.Image != nil { - if *this.Image != *that1.Image { - return false - } - } else if this.Image != nil { - return false - } else if that1.Image != nil { - return false - } - if this.Network != nil && that1.Network != nil { - if *this.Network != *that1.Network { - return false - } - } else if this.Network != nil { - return false - } else if that1.Network != nil { - return false - } - if len(this.PortMappings) != len(that1.PortMappings) { - return false - } - for i := range this.PortMappings { - if !this.PortMappings[i].Equal(that1.PortMappings[i]) { - return false - } - } - if this.Privileged != nil && that1.Privileged != nil { - if *this.Privileged != *that1.Privileged { + if this.Key != nil && that1.Key != nil { + if *this.Key != *that1.Key { return false } - } else if this.Privileged != nil { - return false - } else if that1.Privileged != nil { + } else if this.Key != nil { return false - } - if len(this.Parameters) != len(that1.Parameters) { + } else if that1.Key != nil { return false } - for i := range this.Parameters { - if !this.Parameters[i].Equal(that1.Parameters[i]) { - return false - } - } - if this.ForcePullImage != nil && that1.ForcePullImage != nil { - if *this.ForcePullImage != *that1.ForcePullImage { + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { return false } - } else if this.ForcePullImage != nil { + } else if this.Value != nil { return false - } else if that1.ForcePullImage != nil { + } else if that1.Value != nil { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -11187,7 +11821,7 @@ func (this *ContainerInfo_DockerInfo) Equal(that interface{}) bool { } return true } -func (this *ContainerInfo_DockerInfo_PortMapping) VerboseEqual(that interface{}) error { +func (this *Port) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11195,35 +11829,35 @@ func (this *ContainerInfo_DockerInfo_PortMapping) VerboseEqual(that interface{}) return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*ContainerInfo_DockerInfo_PortMapping) + that1, ok := that.(*Port) if !ok { - return fmt.Errorf("that is not of type *ContainerInfo_DockerInfo_PortMapping") + return fmt.Errorf("that is not of type *Port") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *ContainerInfo_DockerInfo_PortMapping but is nil && this != nil") + return fmt.Errorf("that is type *Port but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *ContainerInfo_DockerInfo_PortMappingbut is not nil && this == nil") + return fmt.Errorf("that is type *Portbut is not nil && this == nil") } - if this.HostPort != nil && that1.HostPort != nil { - if *this.HostPort != *that1.HostPort { - return fmt.Errorf("HostPort this(%v) Not Equal that(%v)", *this.HostPort, *that1.HostPort) + if this.Number != nil && that1.Number != nil { + if *this.Number != *that1.Number { + return fmt.Errorf("Number this(%v) Not Equal that(%v)", *this.Number, *that1.Number) } - } else if this.HostPort != nil { - return fmt.Errorf("this.HostPort == nil && that.HostPort != nil") - } else if that1.HostPort != nil { - return fmt.Errorf("HostPort this(%v) Not Equal that(%v)", this.HostPort, that1.HostPort) + } else if this.Number != nil { + return fmt.Errorf("this.Number == nil && that.Number != nil") + } else if that1.Number != nil { + return fmt.Errorf("Number this(%v) Not Equal that(%v)", this.Number, that1.Number) } - if this.ContainerPort != nil && that1.ContainerPort != nil { - if *this.ContainerPort != *that1.ContainerPort { - return fmt.Errorf("ContainerPort this(%v) Not Equal that(%v)", *this.ContainerPort, *that1.ContainerPort) + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) } - } else if this.ContainerPort != nil { - return fmt.Errorf("this.ContainerPort == nil && that.ContainerPort != nil") - } else if that1.ContainerPort != nil { - return fmt.Errorf("ContainerPort this(%v) Not Equal that(%v)", this.ContainerPort, that1.ContainerPort) + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } if this.Protocol != nil && that1.Protocol != nil { if *this.Protocol != *that1.Protocol { @@ -11239,7 +11873,7 @@ func (this *ContainerInfo_DockerInfo_PortMapping) VerboseEqual(that interface{}) } return nil } -func (this *ContainerInfo_DockerInfo_PortMapping) Equal(that interface{}) bool { +func (this *Port) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11247,7 +11881,7 @@ func (this *ContainerInfo_DockerInfo_PortMapping) Equal(that interface{}) bool { return false } - that1, ok := that.(*ContainerInfo_DockerInfo_PortMapping) + that1, ok := that.(*Port) if !ok { return false } @@ -11259,22 +11893,22 @@ func (this *ContainerInfo_DockerInfo_PortMapping) Equal(that interface{}) bool { } else if this == nil { return false } - if this.HostPort != nil && that1.HostPort != nil { - if *this.HostPort != *that1.HostPort { + if this.Number != nil && that1.Number != nil { + if *this.Number != *that1.Number { return false } - } else if this.HostPort != nil { + } else if this.Number != nil { return false - } else if that1.HostPort != nil { + } else if that1.Number != nil { return false } - if this.ContainerPort != nil && that1.ContainerPort != nil { - if *this.ContainerPort != *that1.ContainerPort { + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { return false } - } else if this.ContainerPort != nil { + } else if this.Name != nil { return false - } else if that1.ContainerPort != nil { + } else if that1.Name != nil { return false } if this.Protocol != nil && that1.Protocol != nil { @@ -11291,7 +11925,7 @@ func (this *ContainerInfo_DockerInfo_PortMapping) Equal(that interface{}) bool { } return true } -func (this *Labels) VerboseEqual(that interface{}) error { +func (this *Ports) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11299,24 +11933,24 @@ func (this *Labels) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*Labels) + that1, ok := that.(*Ports) if !ok { - return fmt.Errorf("that is not of type *Labels") + return fmt.Errorf("that is not of type *Ports") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *Labels but is nil && this != nil") + return fmt.Errorf("that is type *Ports but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *Labelsbut is not nil && this == nil") + return fmt.Errorf("that is type *Portsbut is not nil && this == nil") } - if len(this.Labels) != len(that1.Labels) { - return fmt.Errorf("Labels this(%v) Not Equal that(%v)", len(this.Labels), len(that1.Labels)) + if len(this.Ports) != len(that1.Ports) { + return fmt.Errorf("Ports this(%v) Not Equal that(%v)", len(this.Ports), len(that1.Ports)) } - for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { - return fmt.Errorf("Labels this[%v](%v) Not Equal that[%v](%v)", i, this.Labels[i], i, that1.Labels[i]) + for i := range this.Ports { + if !this.Ports[i].Equal(that1.Ports[i]) { + return fmt.Errorf("Ports this[%v](%v) Not Equal that[%v](%v)", i, this.Ports[i], i, that1.Ports[i]) } } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -11324,7 +11958,7 @@ func (this *Labels) VerboseEqual(that interface{}) error { } return nil } -func (this *Labels) Equal(that interface{}) bool { +func (this *Ports) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11332,7 +11966,7 @@ func (this *Labels) Equal(that interface{}) bool { return false } - that1, ok := that.(*Labels) + that1, ok := that.(*Ports) if !ok { return false } @@ -11344,11 +11978,11 @@ func (this *Labels) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Labels) != len(that1.Labels) { + if len(this.Ports) != len(that1.Ports) { return false } - for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + for i := range this.Ports { + if !this.Ports[i].Equal(that1.Ports[i]) { return false } } @@ -11357,7 +11991,7 @@ func (this *Labels) Equal(that interface{}) bool { } return true } -func (this *Label) VerboseEqual(that interface{}) error { +func (this *DiscoveryInfo) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11365,42 +11999,75 @@ func (this *Label) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*Label) + that1, ok := that.(*DiscoveryInfo) if !ok { - return fmt.Errorf("that is not of type *Label") + return fmt.Errorf("that is not of type *DiscoveryInfo") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *Label but is nil && this != nil") + return fmt.Errorf("that is type *DiscoveryInfo but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *Labelbut is not nil && this == nil") + return fmt.Errorf("that is type *DiscoveryInfobut is not nil && this == nil") } - if this.Key != nil && that1.Key != nil { - if *this.Key != *that1.Key { - return fmt.Errorf("Key this(%v) Not Equal that(%v)", *this.Key, *that1.Key) + if this.Visibility != nil && that1.Visibility != nil { + if *this.Visibility != *that1.Visibility { + return fmt.Errorf("Visibility this(%v) Not Equal that(%v)", *this.Visibility, *that1.Visibility) } - } else if this.Key != nil { - return fmt.Errorf("this.Key == nil && that.Key != nil") - } else if that1.Key != nil { - return fmt.Errorf("Key this(%v) Not Equal that(%v)", this.Key, that1.Key) + } else if this.Visibility != nil { + return fmt.Errorf("this.Visibility == nil && that.Visibility != nil") + } else if that1.Visibility != nil { + return fmt.Errorf("Visibility this(%v) Not Equal that(%v)", this.Visibility, that1.Visibility) } - if this.Value != nil && that1.Value != nil { - if *this.Value != *that1.Value { - return fmt.Errorf("Value this(%v) Not Equal that(%v)", *this.Value, *that1.Value) + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) } - } else if this.Value != nil { - return fmt.Errorf("this.Value == nil && that.Value != nil") - } else if that1.Value != nil { - return fmt.Errorf("Value this(%v) Not Equal that(%v)", this.Value, that1.Value) + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) + } + if this.Environment != nil && that1.Environment != nil { + if *this.Environment != *that1.Environment { + return fmt.Errorf("Environment this(%v) Not Equal that(%v)", *this.Environment, *that1.Environment) + } + } else if this.Environment != nil { + return fmt.Errorf("this.Environment == nil && that.Environment != nil") + } else if that1.Environment != nil { + return fmt.Errorf("Environment this(%v) Not Equal that(%v)", this.Environment, that1.Environment) + } + if this.Location != nil && that1.Location != nil { + if *this.Location != *that1.Location { + return fmt.Errorf("Location this(%v) Not Equal that(%v)", *this.Location, *that1.Location) + } + } else if this.Location != nil { + return fmt.Errorf("this.Location == nil && that.Location != nil") + } else if that1.Location != nil { + return fmt.Errorf("Location this(%v) Not Equal that(%v)", this.Location, that1.Location) + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version) + } + } else if this.Version != nil { + return fmt.Errorf("this.Version == nil && that.Version != nil") + } else if that1.Version != nil { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version) + } + if !this.Ports.Equal(that1.Ports) { + return fmt.Errorf("Ports this(%v) Not Equal that(%v)", this.Ports, that1.Ports) + } + if !this.Labels.Equal(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *Label) Equal(that interface{}) bool { +func (this *DiscoveryInfo) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11408,7 +12075,7 @@ func (this *Label) Equal(that interface{}) bool { return false } - that1, ok := that.(*Label) + that1, ok := that.(*DiscoveryInfo) if !ok { return false } @@ -11420,22 +12087,55 @@ func (this *Label) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Key != nil && that1.Key != nil { - if *this.Key != *that1.Key { + if this.Visibility != nil && that1.Visibility != nil { + if *this.Visibility != *that1.Visibility { return false } - } else if this.Key != nil { + } else if this.Visibility != nil { return false - } else if that1.Key != nil { + } else if that1.Visibility != nil { return false } - if this.Value != nil && that1.Value != nil { - if *this.Value != *that1.Value { + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { return false } - } else if this.Value != nil { + } else if this.Name != nil { return false - } else if that1.Value != nil { + } else if that1.Name != nil { + return false + } + if this.Environment != nil && that1.Environment != nil { + if *this.Environment != *that1.Environment { + return false + } + } else if this.Environment != nil { + return false + } else if that1.Environment != nil { + return false + } + if this.Location != nil && that1.Location != nil { + if *this.Location != *that1.Location { + return false + } + } else if this.Location != nil { + return false + } else if that1.Location != nil { + return false + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return false + } + } else if this.Version != nil { + return false + } else if that1.Version != nil { + return false + } + if !this.Ports.Equal(that1.Ports) { + return false + } + if !this.Labels.Equal(that1.Labels) { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -11443,7 +12143,7 @@ func (this *Label) Equal(that interface{}) bool { } return true } -func (this *Port) VerboseEqual(that interface{}) error { +func (this *AppcImageManifest) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11451,26 +12151,35 @@ func (this *Port) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*Port) + that1, ok := that.(*AppcImageManifest) if !ok { - return fmt.Errorf("that is not of type *Port") + return fmt.Errorf("that is not of type *AppcImageManifest") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *Port but is nil && this != nil") + return fmt.Errorf("that is type *AppcImageManifest but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *Portbut is not nil && this == nil") + return fmt.Errorf("that is type *AppcImageManifestbut is not nil && this == nil") } - if this.Number != nil && that1.Number != nil { - if *this.Number != *that1.Number { - return fmt.Errorf("Number this(%v) Not Equal that(%v)", *this.Number, *that1.Number) + if this.AcKind != nil && that1.AcKind != nil { + if *this.AcKind != *that1.AcKind { + return fmt.Errorf("AcKind this(%v) Not Equal that(%v)", *this.AcKind, *that1.AcKind) } - } else if this.Number != nil { - return fmt.Errorf("this.Number == nil && that.Number != nil") - } else if that1.Number != nil { - return fmt.Errorf("Number this(%v) Not Equal that(%v)", this.Number, that1.Number) + } else if this.AcKind != nil { + return fmt.Errorf("this.AcKind == nil && that.AcKind != nil") + } else if that1.AcKind != nil { + return fmt.Errorf("AcKind this(%v) Not Equal that(%v)", this.AcKind, that1.AcKind) + } + if this.AcVersion != nil && that1.AcVersion != nil { + if *this.AcVersion != *that1.AcVersion { + return fmt.Errorf("AcVersion this(%v) Not Equal that(%v)", *this.AcVersion, *that1.AcVersion) + } + } else if this.AcVersion != nil { + return fmt.Errorf("this.AcVersion == nil && that.AcVersion != nil") + } else if that1.AcVersion != nil { + return fmt.Errorf("AcVersion this(%v) Not Equal that(%v)", this.AcVersion, that1.AcVersion) } if this.Name != nil && that1.Name != nil { if *this.Name != *that1.Name { @@ -11481,21 +12190,28 @@ func (this *Port) VerboseEqual(that interface{}) error { } else if that1.Name != nil { return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } - if this.Protocol != nil && that1.Protocol != nil { - if *this.Protocol != *that1.Protocol { - return fmt.Errorf("Protocol this(%v) Not Equal that(%v)", *this.Protocol, *that1.Protocol) + if len(this.Labels) != len(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", len(this.Labels), len(that1.Labels)) + } + for i := range this.Labels { + if !this.Labels[i].Equal(that1.Labels[i]) { + return fmt.Errorf("Labels this[%v](%v) Not Equal that[%v](%v)", i, this.Labels[i], i, that1.Labels[i]) + } + } + if len(this.Annotations) != len(that1.Annotations) { + return fmt.Errorf("Annotations this(%v) Not Equal that(%v)", len(this.Annotations), len(that1.Annotations)) + } + for i := range this.Annotations { + if !this.Annotations[i].Equal(that1.Annotations[i]) { + return fmt.Errorf("Annotations this[%v](%v) Not Equal that[%v](%v)", i, this.Annotations[i], i, that1.Annotations[i]) } - } else if this.Protocol != nil { - return fmt.Errorf("this.Protocol == nil && that.Protocol != nil") - } else if that1.Protocol != nil { - return fmt.Errorf("Protocol this(%v) Not Equal that(%v)", this.Protocol, that1.Protocol) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *Port) Equal(that interface{}) bool { +func (this *AppcImageManifest) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11503,7 +12219,7 @@ func (this *Port) Equal(that interface{}) bool { return false } - that1, ok := that.(*Port) + that1, ok := that.(*AppcImageManifest) if !ok { return false } @@ -11515,13 +12231,22 @@ func (this *Port) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Number != nil && that1.Number != nil { - if *this.Number != *that1.Number { + if this.AcKind != nil && that1.AcKind != nil { + if *this.AcKind != *that1.AcKind { return false } - } else if this.Number != nil { + } else if this.AcKind != nil { return false - } else if that1.Number != nil { + } else if that1.AcKind != nil { + return false + } + if this.AcVersion != nil && that1.AcVersion != nil { + if *this.AcVersion != *that1.AcVersion { + return false + } + } else if this.AcVersion != nil { + return false + } else if that1.AcVersion != nil { return false } if this.Name != nil && that1.Name != nil { @@ -11533,21 +12258,28 @@ func (this *Port) Equal(that interface{}) bool { } else if that1.Name != nil { return false } - if this.Protocol != nil && that1.Protocol != nil { - if *this.Protocol != *that1.Protocol { + if len(this.Labels) != len(that1.Labels) { + return false + } + for i := range this.Labels { + if !this.Labels[i].Equal(that1.Labels[i]) { return false } - } else if this.Protocol != nil { - return false - } else if that1.Protocol != nil { + } + if len(this.Annotations) != len(that1.Annotations) { return false } + for i := range this.Annotations { + if !this.Annotations[i].Equal(that1.Annotations[i]) { + return false + } + } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *Ports) VerboseEqual(that interface{}) error { +func (this *AppcImageManifest_Label) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11555,32 +12287,42 @@ func (this *Ports) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*Ports) + that1, ok := that.(*AppcImageManifest_Label) if !ok { - return fmt.Errorf("that is not of type *Ports") + return fmt.Errorf("that is not of type *AppcImageManifest_Label") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *Ports but is nil && this != nil") + return fmt.Errorf("that is type *AppcImageManifest_Label but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *Portsbut is not nil && this == nil") + return fmt.Errorf("that is type *AppcImageManifest_Labelbut is not nil && this == nil") } - if len(this.Ports) != len(that1.Ports) { - return fmt.Errorf("Ports this(%v) Not Equal that(%v)", len(this.Ports), len(that1.Ports)) + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } - for i := range this.Ports { - if !this.Ports[i].Equal(that1.Ports[i]) { - return fmt.Errorf("Ports this[%v](%v) Not Equal that[%v](%v)", i, this.Ports[i], i, that1.Ports[i]) + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", *this.Value, *that1.Value) } + } else if this.Value != nil { + return fmt.Errorf("this.Value == nil && that.Value != nil") + } else if that1.Value != nil { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", this.Value, that1.Value) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *Ports) Equal(that interface{}) bool { +func (this *AppcImageManifest_Label) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11588,7 +12330,7 @@ func (this *Ports) Equal(that interface{}) bool { return false } - that1, ok := that.(*Ports) + that1, ok := that.(*AppcImageManifest_Label) if !ok { return false } @@ -11600,20 +12342,30 @@ func (this *Ports) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Ports) != len(that1.Ports) { + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { + return false + } else if that1.Name != nil { return false } - for i := range this.Ports { - if !this.Ports[i].Equal(that1.Ports[i]) { + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { return false } + } else if this.Value != nil { + return false + } else if that1.Value != nil { + return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } -func (this *DiscoveryInfo) VerboseEqual(that interface{}) error { +func (this *AppcImageManifest_Annotation) VerboseEqual(that interface{}) error { if that == nil { if this == nil { return nil @@ -11621,26 +12373,17 @@ func (this *DiscoveryInfo) VerboseEqual(that interface{}) error { return fmt.Errorf("that == nil && this != nil") } - that1, ok := that.(*DiscoveryInfo) + that1, ok := that.(*AppcImageManifest_Annotation) if !ok { - return fmt.Errorf("that is not of type *DiscoveryInfo") + return fmt.Errorf("that is not of type *AppcImageManifest_Annotation") } if that1 == nil { if this == nil { return nil } - return fmt.Errorf("that is type *DiscoveryInfo but is nil && this != nil") + return fmt.Errorf("that is type *AppcImageManifest_Annotation but is nil && this != nil") } else if this == nil { - return fmt.Errorf("that is type *DiscoveryInfobut is not nil && this == nil") - } - if this.Visibility != nil && that1.Visibility != nil { - if *this.Visibility != *that1.Visibility { - return fmt.Errorf("Visibility this(%v) Not Equal that(%v)", *this.Visibility, *that1.Visibility) - } - } else if this.Visibility != nil { - return fmt.Errorf("this.Visibility == nil && that.Visibility != nil") - } else if that1.Visibility != nil { - return fmt.Errorf("Visibility this(%v) Not Equal that(%v)", this.Visibility, that1.Visibility) + return fmt.Errorf("that is type *AppcImageManifest_Annotationbut is not nil && this == nil") } if this.Name != nil && that1.Name != nil { if *this.Name != *that1.Name { @@ -11651,45 +12394,21 @@ func (this *DiscoveryInfo) VerboseEqual(that interface{}) error { } else if that1.Name != nil { return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) } - if this.Environment != nil && that1.Environment != nil { - if *this.Environment != *that1.Environment { - return fmt.Errorf("Environment this(%v) Not Equal that(%v)", *this.Environment, *that1.Environment) - } - } else if this.Environment != nil { - return fmt.Errorf("this.Environment == nil && that.Environment != nil") - } else if that1.Environment != nil { - return fmt.Errorf("Environment this(%v) Not Equal that(%v)", this.Environment, that1.Environment) - } - if this.Location != nil && that1.Location != nil { - if *this.Location != *that1.Location { - return fmt.Errorf("Location this(%v) Not Equal that(%v)", *this.Location, *that1.Location) - } - } else if this.Location != nil { - return fmt.Errorf("this.Location == nil && that.Location != nil") - } else if that1.Location != nil { - return fmt.Errorf("Location this(%v) Not Equal that(%v)", this.Location, that1.Location) - } - if this.Version != nil && that1.Version != nil { - if *this.Version != *that1.Version { - return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version) + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", *this.Value, *that1.Value) } - } else if this.Version != nil { - return fmt.Errorf("this.Version == nil && that.Version != nil") - } else if that1.Version != nil { - return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version) - } - if !this.Ports.Equal(that1.Ports) { - return fmt.Errorf("Ports this(%v) Not Equal that(%v)", this.Ports, that1.Ports) - } - if !this.Labels.Equal(that1.Labels) { - return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) + } else if this.Value != nil { + return fmt.Errorf("this.Value == nil && that.Value != nil") + } else if that1.Value != nil { + return fmt.Errorf("Value this(%v) Not Equal that(%v)", this.Value, that1.Value) } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) } return nil } -func (this *DiscoveryInfo) Equal(that interface{}) bool { +func (this *AppcImageManifest_Annotation) Equal(that interface{}) bool { if that == nil { if this == nil { return true @@ -11697,7 +12416,7 @@ func (this *DiscoveryInfo) Equal(that interface{}) bool { return false } - that1, ok := that.(*DiscoveryInfo) + that1, ok := that.(*AppcImageManifest_Annotation) if !ok { return false } @@ -11709,15 +12428,6 @@ func (this *DiscoveryInfo) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Visibility != nil && that1.Visibility != nil { - if *this.Visibility != *that1.Visibility { - return false - } - } else if this.Visibility != nil { - return false - } else if that1.Visibility != nil { - return false - } if this.Name != nil && that1.Name != nil { if *this.Name != *that1.Name { return false @@ -11727,37 +12437,13 @@ func (this *DiscoveryInfo) Equal(that interface{}) bool { } else if that1.Name != nil { return false } - if this.Environment != nil && that1.Environment != nil { - if *this.Environment != *that1.Environment { - return false - } - } else if this.Environment != nil { - return false - } else if that1.Environment != nil { - return false - } - if this.Location != nil && that1.Location != nil { - if *this.Location != *that1.Location { - return false - } - } else if this.Location != nil { - return false - } else if that1.Location != nil { - return false - } - if this.Version != nil && that1.Version != nil { - if *this.Version != *that1.Version { + if this.Value != nil && that1.Value != nil { + if *this.Value != *that1.Value { return false } - } else if this.Version != nil { - return false - } else if that1.Version != nil { - return false - } - if !this.Ports.Equal(that1.Ports) { + } else if this.Value != nil { return false - } - if !this.Labels.Equal(that1.Labels) { + } else if that1.Value != nil { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { @@ -11855,11 +12541,59 @@ func (this *ContainerID) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *Address) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Address{") + if this.Hostname != nil { + s = append(s, "Hostname: "+valueToGoStringMesos(this.Hostname, "string")+",\n") + } + if this.Ip != nil { + s = append(s, "Ip: "+valueToGoStringMesos(this.Ip, "string")+",\n") + } + if this.Port != nil { + s = append(s, "Port: "+valueToGoStringMesos(this.Port, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *URL) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&mesosproto.URL{") + if this.Scheme != nil { + s = append(s, "Scheme: "+valueToGoStringMesos(this.Scheme, "string")+",\n") + } + if this.Address != nil { + s = append(s, "Address: "+fmt.Sprintf("%#v", this.Address)+",\n") + } + if this.Path != nil { + s = append(s, "Path: "+valueToGoStringMesos(this.Path, "string")+",\n") + } + if this.Query != nil { + s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") + } + if this.Fragment != nil { + s = append(s, "Fragment: "+valueToGoStringMesos(this.Fragment, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} func (this *FrameworkInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 14) + s := make([]string, 0, 15) s = append(s, "&mesosproto.FrameworkInfo{") if this.User != nil { s = append(s, "User: "+valueToGoStringMesos(this.User, "string")+",\n") @@ -11891,6 +12625,9 @@ func (this *FrameworkInfo) GoString() string { if this.Capabilities != nil { s = append(s, "Capabilities: "+fmt.Sprintf("%#v", this.Capabilities)+",\n") } + if this.Labels != nil { + s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } @@ -12084,7 +12821,7 @@ func (this *MasterInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 10) + s := make([]string, 0, 11) s = append(s, "&mesosproto.MasterInfo{") if this.Id != nil { s = append(s, "Id: "+valueToGoStringMesos(this.Id, "string")+",\n") @@ -12104,6 +12841,9 @@ func (this *MasterInfo) GoString() string { if this.Version != nil { s = append(s, "Version: "+valueToGoStringMesos(this.Version, "string")+",\n") } + if this.Address != nil { + s = append(s, "Address: "+fmt.Sprintf("%#v", this.Address)+",\n") + } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } @@ -12420,7 +13160,7 @@ func (this *ResourceStatistics) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 44) + s := make([]string, 0, 45) s = append(s, "&mesosproto.ResourceStatistics{") if this.Timestamp != nil { s = append(s, "Timestamp: "+valueToGoStringMesos(this.Timestamp, "float64")+",\n") @@ -12479,6 +13219,9 @@ func (this *ResourceStatistics) GoString() string { if this.MemSwapBytes != nil { s = append(s, "MemSwapBytes: "+valueToGoStringMesos(this.MemSwapBytes, "uint64")+",\n") } + if this.MemUnevictableBytes != nil { + s = append(s, "MemUnevictableBytes: "+valueToGoStringMesos(this.MemUnevictableBytes, "uint64")+",\n") + } if this.MemLowPressureCounter != nil { s = append(s, "MemLowPressureCounter: "+valueToGoStringMesos(this.MemLowPressureCounter, "uint64")+",\n") } @@ -12552,11 +13295,14 @@ func (this *ResourceUsage) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 5) + s := make([]string, 0, 6) s = append(s, "&mesosproto.ResourceUsage{") if this.Executors != nil { s = append(s, "Executors: "+fmt.Sprintf("%#v", this.Executors)+",\n") } + if this.Total != nil { + s = append(s, "Total: "+fmt.Sprintf("%#v", this.Total)+",\n") + } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } @@ -12777,7 +13523,7 @@ func (this *Offer) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 11) + s := make([]string, 0, 12) s = append(s, "&mesosproto.Offer{") if this.Id != nil { s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") @@ -12791,6 +13537,9 @@ func (this *Offer) GoString() string { if this.Hostname != nil { s = append(s, "Hostname: "+valueToGoStringMesos(this.Hostname, "string")+",\n") } + if this.Url != nil { + s = append(s, "Url: "+fmt.Sprintf("%#v", this.Url)+",\n") + } if this.Resources != nil { s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n") } @@ -12960,7 +13709,7 @@ func (this *TaskStatus) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 15) + s := make([]string, 0, 16) s = append(s, "&mesosproto.TaskStatus{") if this.TaskId != nil { s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") @@ -12995,6 +13744,9 @@ func (this *TaskStatus) GoString() string { if this.Healthy != nil { s = append(s, "Healthy: "+valueToGoStringMesos(this.Healthy, "bool")+",\n") } + if this.Labels != nil { + s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } @@ -13115,47 +13867,20 @@ func (this *Credentials) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *ACL) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&mesosproto.ACL{") - if this.XXX_unrecognized != nil { - s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ACL_Entity) GoString() string { +func (this *RateLimit) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 6) - s = append(s, "&mesosproto.ACL_Entity{") - if this.Type != nil { - s = append(s, "Type: "+valueToGoStringMesos(this.Type, "mesosproto.ACL_Entity_Type")+",\n") - } - if this.Values != nil { - s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n") - } - if this.XXX_unrecognized != nil { - s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ACL_RegisterFramework) GoString() string { - if this == nil { - return "nil" + s := make([]string, 0, 7) + s = append(s, "&mesosproto.RateLimit{") + if this.Qps != nil { + s = append(s, "Qps: "+valueToGoStringMesos(this.Qps, "float64")+",\n") } - s := make([]string, 0, 6) - s = append(s, "&mesosproto.ACL_RegisterFramework{") - if this.Principals != nil { - s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") + if this.Principal != nil { + s = append(s, "Principal: "+valueToGoStringMesos(this.Principal, "string")+",\n") } - if this.Roles != nil { - s = append(s, "Roles: "+fmt.Sprintf("%#v", this.Roles)+",\n") + if this.Capacity != nil { + s = append(s, "Capacity: "+valueToGoStringMesos(this.Capacity, "uint64")+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13163,35 +13888,20 @@ func (this *ACL_RegisterFramework) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *ACL_RunTask) GoString() string { +func (this *RateLimits) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 6) - s = append(s, "&mesosproto.ACL_RunTask{") - if this.Principals != nil { - s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") - } - if this.Users != nil { - s = append(s, "Users: "+fmt.Sprintf("%#v", this.Users)+",\n") - } - if this.XXX_unrecognized != nil { - s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ACL_ShutdownFramework) GoString() string { - if this == nil { - return "nil" + s := make([]string, 0, 7) + s = append(s, "&mesosproto.RateLimits{") + if this.Limits != nil { + s = append(s, "Limits: "+fmt.Sprintf("%#v", this.Limits)+",\n") } - s := make([]string, 0, 6) - s = append(s, "&mesosproto.ACL_ShutdownFramework{") - if this.Principals != nil { - s = append(s, "Principals: "+fmt.Sprintf("%#v", this.Principals)+",\n") + if this.AggregateDefaultQps != nil { + s = append(s, "AggregateDefaultQps: "+valueToGoStringMesos(this.AggregateDefaultQps, "float64")+",\n") } - if this.FrameworkPrincipals != nil { - s = append(s, "FrameworkPrincipals: "+fmt.Sprintf("%#v", this.FrameworkPrincipals)+",\n") + if this.AggregateDefaultCapacity != nil { + s = append(s, "AggregateDefaultCapacity: "+valueToGoStringMesos(this.AggregateDefaultCapacity, "uint64")+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13199,23 +13909,20 @@ func (this *ACL_ShutdownFramework) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *ACLs) GoString() string { +func (this *Image) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 8) - s = append(s, "&mesosproto.ACLs{") - if this.Permissive != nil { - s = append(s, "Permissive: "+valueToGoStringMesos(this.Permissive, "bool")+",\n") - } - if this.RegisterFrameworks != nil { - s = append(s, "RegisterFrameworks: "+fmt.Sprintf("%#v", this.RegisterFrameworks)+",\n") + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Image{") + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringMesos(this.Type, "mesosproto.Image_Type")+",\n") } - if this.RunTasks != nil { - s = append(s, "RunTasks: "+fmt.Sprintf("%#v", this.RunTasks)+",\n") + if this.Appc != nil { + s = append(s, "Appc: "+fmt.Sprintf("%#v", this.Appc)+",\n") } - if this.ShutdownFrameworks != nil { - s = append(s, "ShutdownFrameworks: "+fmt.Sprintf("%#v", this.ShutdownFrameworks)+",\n") + if this.Docker != nil { + s = append(s, "Docker: "+fmt.Sprintf("%#v", this.Docker)+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13223,20 +13930,20 @@ func (this *ACLs) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *RateLimit) GoString() string { +func (this *Image_AppC) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) - s = append(s, "&mesosproto.RateLimit{") - if this.Qps != nil { - s = append(s, "Qps: "+valueToGoStringMesos(this.Qps, "float64")+",\n") + s = append(s, "&mesosproto.Image_AppC{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMesos(this.Name, "string")+",\n") } - if this.Principal != nil { - s = append(s, "Principal: "+valueToGoStringMesos(this.Principal, "string")+",\n") + if this.Id != nil { + s = append(s, "Id: "+valueToGoStringMesos(this.Id, "string")+",\n") } - if this.Capacity != nil { - s = append(s, "Capacity: "+valueToGoStringMesos(this.Capacity, "uint64")+",\n") + if this.Labels != nil { + s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13244,20 +13951,14 @@ func (this *RateLimit) GoString() string { s = append(s, "}") return strings.Join(s, "") } -func (this *RateLimits) GoString() string { +func (this *Image_Docker) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 7) - s = append(s, "&mesosproto.RateLimits{") - if this.Limits != nil { - s = append(s, "Limits: "+fmt.Sprintf("%#v", this.Limits)+",\n") - } - if this.AggregateDefaultQps != nil { - s = append(s, "AggregateDefaultQps: "+valueToGoStringMesos(this.AggregateDefaultQps, "float64")+",\n") - } - if this.AggregateDefaultCapacity != nil { - s = append(s, "AggregateDefaultCapacity: "+valueToGoStringMesos(this.AggregateDefaultCapacity, "uint64")+",\n") + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Image_Docker{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMesos(this.Name, "string")+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13269,16 +13970,19 @@ func (this *Volume) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 7) + s := make([]string, 0, 8) s = append(s, "&mesosproto.Volume{") + if this.Mode != nil { + s = append(s, "Mode: "+valueToGoStringMesos(this.Mode, "mesosproto.Volume_Mode")+",\n") + } if this.ContainerPath != nil { s = append(s, "ContainerPath: "+valueToGoStringMesos(this.ContainerPath, "string")+",\n") } if this.HostPath != nil { s = append(s, "HostPath: "+valueToGoStringMesos(this.HostPath, "string")+",\n") } - if this.Mode != nil { - s = append(s, "Mode: "+valueToGoStringMesos(this.Mode, "mesosproto.Volume_Mode")+",\n") + if this.Image != nil { + s = append(s, "Image: "+fmt.Sprintf("%#v", this.Image)+",\n") } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") @@ -13290,7 +13994,7 @@ func (this *ContainerInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 8) + s := make([]string, 0, 9) s = append(s, "&mesosproto.ContainerInfo{") if this.Type != nil { s = append(s, "Type: "+valueToGoStringMesos(this.Type, "mesosproto.ContainerInfo_Type")+",\n") @@ -13304,6 +14008,9 @@ func (this *ContainerInfo) GoString() string { if this.Docker != nil { s = append(s, "Docker: "+fmt.Sprintf("%#v", this.Docker)+",\n") } + if this.Mesos != nil { + s = append(s, "Mesos: "+fmt.Sprintf("%#v", this.Mesos)+",\n") + } if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } @@ -13361,6 +14068,21 @@ func (this *ContainerInfo_DockerInfo_PortMapping) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *ContainerInfo_MesosInfo) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.ContainerInfo_MesosInfo{") + if this.Image != nil { + s = append(s, "Image: "+fmt.Sprintf("%#v", this.Image)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} func (this *Labels) GoString() string { if this == nil { return "nil" @@ -13463,6 +14185,69 @@ func (this *DiscoveryInfo) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *AppcImageManifest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&mesosproto.AppcImageManifest{") + if this.AcKind != nil { + s = append(s, "AcKind: "+valueToGoStringMesos(this.AcKind, "string")+",\n") + } + if this.AcVersion != nil { + s = append(s, "AcVersion: "+valueToGoStringMesos(this.AcVersion, "string")+",\n") + } + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMesos(this.Name, "string")+",\n") + } + if this.Labels != nil { + s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + } + if this.Annotations != nil { + s = append(s, "Annotations: "+fmt.Sprintf("%#v", this.Annotations)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AppcImageManifest_Label) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.AppcImageManifest_Label{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMesos(this.Name, "string")+",\n") + } + if this.Value != nil { + s = append(s, "Value: "+valueToGoStringMesos(this.Value, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AppcImageManifest_Annotation) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.AppcImageManifest_Annotation{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMesos(this.Name, "string")+",\n") + } + if this.Value != nil { + s = append(s, "Value: "+valueToGoStringMesos(this.Value, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} func valueToGoStringMesos(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -13662,6 +14447,111 @@ func (m *ContainerID) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *Address) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Address) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Hostname != nil { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Hostname))) + i += copy(data[i:], *m.Hostname) + } + if m.Ip != nil { + data[i] = 0x12 + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Ip))) + i += copy(data[i:], *m.Ip) + } + if m.Port == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("port") + } else { + data[i] = 0x18 + i++ + i = encodeVarintMesos(data, i, uint64(*m.Port)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *URL) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *URL) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Scheme == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("scheme") + } else { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Scheme))) + i += copy(data[i:], *m.Scheme) + } + if m.Address == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("address") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMesos(data, i, uint64(m.Address.Size())) + n1, err := m.Address.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.Path != nil { + data[i] = 0x1a + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Path))) + i += copy(data[i:], *m.Path) + } + if len(m.Query) > 0 { + for _, msg := range m.Query { + data[i] = 0x22 + i++ + i = encodeVarintMesos(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Fragment != nil { + data[i] = 0x2a + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Fragment))) + i += copy(data[i:], *m.Fragment) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + func (m *FrameworkInfo) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -13697,11 +14587,11 @@ func (m *FrameworkInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Id.Size())) - n1, err := m.Id.MarshalTo(data[i:]) + n2, err := m.Id.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n1 + i += n2 } if m.FailoverTimeout != nil { data[i] = 0x21 @@ -13754,6 +14644,16 @@ func (m *FrameworkInfo) MarshalTo(data []byte) (int, error) { i += n } } + if m.Labels != nil { + data[i] = 0x5a + i++ + i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) + n3, err := m.Labels.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -13807,11 +14707,11 @@ func (m *HealthCheck) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.Http.Size())) - n2, err := m.Http.MarshalTo(data[i:]) + n4, err := m.Http.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n2 + i += n4 } if m.DelaySeconds != nil { data[i] = 0x11 @@ -13842,11 +14742,11 @@ func (m *HealthCheck) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintMesos(data, i, uint64(m.Command.Size())) - n3, err := m.Command.MarshalTo(data[i:]) + n5, err := m.Command.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n3 + i += n5 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -13926,11 +14826,11 @@ func (m *CommandInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.Environment.Size())) - n4, err := m.Environment.MarshalTo(data[i:]) + n6, err := m.Environment.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n4 + i += n6 } if m.Value != nil { data[i] = 0x1a @@ -13942,11 +14842,11 @@ func (m *CommandInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintMesos(data, i, uint64(m.Container.Size())) - n5, err := m.Container.MarshalTo(data[i:]) + n7, err := m.Container.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n5 + i += n7 } if m.User != nil { data[i] = 0x2a @@ -14109,11 +15009,11 @@ func (m *ExecutorInfo) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.ExecutorId.Size())) - n6, err := m.ExecutorId.MarshalTo(data[i:]) + n8, err := m.ExecutorId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n6 + i += n8 } if m.Data != nil { data[i] = 0x22 @@ -14139,21 +15039,21 @@ func (m *ExecutorInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintMesos(data, i, uint64(m.Command.Size())) - n7, err := m.Command.MarshalTo(data[i:]) + n9, err := m.Command.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n7 + i += n9 } if m.FrameworkId != nil { data[i] = 0x42 i++ i = encodeVarintMesos(data, i, uint64(m.FrameworkId.Size())) - n8, err := m.FrameworkId.MarshalTo(data[i:]) + n10, err := m.FrameworkId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n8 + i += n10 } if m.Name != nil { data[i] = 0x4a @@ -14171,21 +15071,21 @@ func (m *ExecutorInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x5a i++ i = encodeVarintMesos(data, i, uint64(m.Container.Size())) - n9, err := m.Container.MarshalTo(data[i:]) + n11, err := m.Container.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n9 + i += n11 } if m.Discovery != nil { data[i] = 0x62 i++ i = encodeVarintMesos(data, i, uint64(m.Discovery.Size())) - n10, err := m.Discovery.MarshalTo(data[i:]) + n12, err := m.Discovery.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n10 + i += n12 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -14248,6 +15148,16 @@ func (m *MasterInfo) MarshalTo(data []byte) (int, error) { i = encodeVarintMesos(data, i, uint64(len(*m.Version))) i += copy(data[i:], *m.Version) } + if m.Address != nil { + data[i] = 0x3a + i++ + i = encodeVarintMesos(data, i, uint64(m.Address.Size())) + n13, err := m.Address.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -14305,11 +15215,11 @@ func (m *SlaveInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x32 i++ i = encodeVarintMesos(data, i, uint64(m.Id.Size())) - n11, err := m.Id.MarshalTo(data[i:]) + n14, err := m.Id.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n11 + i += n14 } if m.Checkpoint != nil { data[i] = 0x38 @@ -14358,41 +15268,41 @@ func (m *Value) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.Scalar.Size())) - n12, err := m.Scalar.MarshalTo(data[i:]) + n15, err := m.Scalar.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n12 + i += n15 } if m.Ranges != nil { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Ranges.Size())) - n13, err := m.Ranges.MarshalTo(data[i:]) + n16, err := m.Ranges.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n13 + i += n16 } if m.Set != nil { data[i] = 0x22 i++ i = encodeVarintMesos(data, i, uint64(m.Set.Size())) - n14, err := m.Set.MarshalTo(data[i:]) + n17, err := m.Set.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n14 + i += n17 } if m.Text != nil { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.Text.Size())) - n15, err := m.Text.MarshalTo(data[i:]) + n18, err := m.Text.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n15 + i += n18 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -14595,41 +15505,41 @@ func (m *Attribute) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Scalar.Size())) - n16, err := m.Scalar.MarshalTo(data[i:]) + n19, err := m.Scalar.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n16 + i += n19 } if m.Ranges != nil { data[i] = 0x22 i++ i = encodeVarintMesos(data, i, uint64(m.Ranges.Size())) - n17, err := m.Ranges.MarshalTo(data[i:]) + n20, err := m.Ranges.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n17 + i += n20 } if m.Text != nil { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.Text.Size())) - n18, err := m.Text.MarshalTo(data[i:]) + n21, err := m.Text.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n18 + i += n21 } if m.Set != nil { data[i] = 0x32 i++ i = encodeVarintMesos(data, i, uint64(m.Set.Size())) - n19, err := m.Set.MarshalTo(data[i:]) + n22, err := m.Set.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n19 + i += n22 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -14671,31 +15581,31 @@ func (m *Resource) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Scalar.Size())) - n20, err := m.Scalar.MarshalTo(data[i:]) + n23, err := m.Scalar.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n20 + i += n23 } if m.Ranges != nil { data[i] = 0x22 i++ i = encodeVarintMesos(data, i, uint64(m.Ranges.Size())) - n21, err := m.Ranges.MarshalTo(data[i:]) + n24, err := m.Ranges.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n21 + i += n24 } if m.Set != nil { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.Set.Size())) - n22, err := m.Set.MarshalTo(data[i:]) + n25, err := m.Set.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n22 + i += n25 } if m.Role != nil { data[i] = 0x32 @@ -14707,31 +15617,31 @@ func (m *Resource) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintMesos(data, i, uint64(m.Disk.Size())) - n23, err := m.Disk.MarshalTo(data[i:]) + n26, err := m.Disk.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n23 + i += n26 } if m.Reservation != nil { data[i] = 0x42 i++ i = encodeVarintMesos(data, i, uint64(m.Reservation.Size())) - n24, err := m.Reservation.MarshalTo(data[i:]) + n27, err := m.Reservation.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n24 + i += n27 } if m.Revocable != nil { data[i] = 0x4a i++ i = encodeVarintMesos(data, i, uint64(m.Revocable.Size())) - n25, err := m.Revocable.MarshalTo(data[i:]) + n28, err := m.Revocable.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n25 + i += n28 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -14787,21 +15697,21 @@ func (m *Resource_DiskInfo) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.Persistence.Size())) - n26, err := m.Persistence.MarshalTo(data[i:]) + n29, err := m.Persistence.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n26 + i += n29 } if m.Volume != nil { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.Volume.Size())) - n27, err := m.Volume.MarshalTo(data[i:]) + n30, err := m.Volume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n27 + i += n30 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -15014,11 +15924,11 @@ func (m *ResourceStatistics) MarshalTo(data []byte) (int, error) { data[i] = 0x6a i++ i = encodeVarintMesos(data, i, uint64(m.Perf.Size())) - n28, err := m.Perf.MarshalTo(data[i:]) + n31, err := m.Perf.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n28 + i += n31 } if m.NetRxPackets != nil { data[i] = 0x70 @@ -15212,6 +16122,13 @@ func (m *ResourceStatistics) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintMesos(data, i, uint64(*m.MemSwapBytes)) } + if m.MemUnevictableBytes != nil { + data[i] = 0xc8 + i++ + data[i] = 0x2 + i++ + i = encodeVarintMesos(data, i, uint64(*m.MemUnevictableBytes)) + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -15245,6 +16162,18 @@ func (m *ResourceUsage) MarshalTo(data []byte) (int, error) { i += n } } + if len(m.Total) > 0 { + for _, msg := range m.Total { + data[i] = 0x12 + i++ + i = encodeVarintMesos(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -15272,11 +16201,11 @@ func (m *ResourceUsage_Executor) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.ExecutorInfo.Size())) - n29, err := m.ExecutorInfo.MarshalTo(data[i:]) + n32, err := m.ExecutorInfo.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n29 + i += n32 } if len(m.Allocated) > 0 { for _, msg := range m.Allocated { @@ -15294,11 +16223,11 @@ func (m *ResourceUsage_Executor) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Statistics.Size())) - n30, err := m.Statistics.MarshalTo(data[i:]) + n33, err := m.Statistics.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n30 + i += n33 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -15691,11 +16620,11 @@ func (m *Request) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.SlaveId.Size())) - n31, err := m.SlaveId.MarshalTo(data[i:]) + n34, err := m.SlaveId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n31 + i += n34 } if len(m.Resources) > 0 { for _, msg := range m.Resources { @@ -15736,11 +16665,11 @@ func (m *Offer) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.Id.Size())) - n32, err := m.Id.MarshalTo(data[i:]) + n35, err := m.Id.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n32 + i += n35 } if m.FrameworkId == nil { return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") @@ -15748,11 +16677,11 @@ func (m *Offer) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.FrameworkId.Size())) - n33, err := m.FrameworkId.MarshalTo(data[i:]) + n36, err := m.FrameworkId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n33 + i += n36 } if m.SlaveId == nil { return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") @@ -15760,11 +16689,11 @@ func (m *Offer) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.SlaveId.Size())) - n34, err := m.SlaveId.MarshalTo(data[i:]) + n37, err := m.SlaveId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n34 + i += n37 } if m.Hostname == nil { return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("hostname") @@ -15810,6 +16739,16 @@ func (m *Offer) MarshalTo(data []byte) (int, error) { i += n } } + if m.Url != nil { + data[i] = 0x42 + i++ + i = encodeVarintMesos(data, i, uint64(m.Url.Size())) + n38, err := m.Url.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n38 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -15842,51 +16781,51 @@ func (m *Offer_Operation) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.Launch.Size())) - n35, err := m.Launch.MarshalTo(data[i:]) + n39, err := m.Launch.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n35 + i += n39 } if m.Reserve != nil { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Reserve.Size())) - n36, err := m.Reserve.MarshalTo(data[i:]) + n40, err := m.Reserve.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n36 + i += n40 } if m.Unreserve != nil { data[i] = 0x22 i++ i = encodeVarintMesos(data, i, uint64(m.Unreserve.Size())) - n37, err := m.Unreserve.MarshalTo(data[i:]) + n41, err := m.Unreserve.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n37 + i += n41 } if m.Create != nil { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.Create.Size())) - n38, err := m.Create.MarshalTo(data[i:]) + n42, err := m.Create.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n38 + i += n42 } if m.Destroy != nil { data[i] = 0x32 i++ i = encodeVarintMesos(data, i, uint64(m.Destroy.Size())) - n39, err := m.Destroy.MarshalTo(data[i:]) + n43, err := m.Destroy.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n39 + i += n43 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16088,11 +17027,11 @@ func (m *TaskInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintMesos(data, i, uint64(m.TaskId.Size())) - n40, err := m.TaskId.MarshalTo(data[i:]) + n44, err := m.TaskId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n40 + i += n44 } if m.SlaveId == nil { return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") @@ -16100,11 +17039,11 @@ func (m *TaskInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.SlaveId.Size())) - n41, err := m.SlaveId.MarshalTo(data[i:]) + n45, err := m.SlaveId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n41 + i += n45 } if len(m.Resources) > 0 { for _, msg := range m.Resources { @@ -16122,11 +17061,11 @@ func (m *TaskInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.Executor.Size())) - n42, err := m.Executor.MarshalTo(data[i:]) + n46, err := m.Executor.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n42 + i += n46 } if m.Data != nil { data[i] = 0x32 @@ -16138,51 +17077,51 @@ func (m *TaskInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintMesos(data, i, uint64(m.Command.Size())) - n43, err := m.Command.MarshalTo(data[i:]) + n47, err := m.Command.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n43 + i += n47 } if m.HealthCheck != nil { data[i] = 0x42 i++ i = encodeVarintMesos(data, i, uint64(m.HealthCheck.Size())) - n44, err := m.HealthCheck.MarshalTo(data[i:]) + n48, err := m.HealthCheck.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n44 + i += n48 } if m.Container != nil { data[i] = 0x4a i++ i = encodeVarintMesos(data, i, uint64(m.Container.Size())) - n45, err := m.Container.MarshalTo(data[i:]) + n49, err := m.Container.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n45 + i += n49 } if m.Labels != nil { data[i] = 0x52 i++ i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) - n46, err := m.Labels.MarshalTo(data[i:]) + n50, err := m.Labels.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n46 + i += n50 } if m.Discovery != nil { data[i] = 0x5a i++ i = encodeVarintMesos(data, i, uint64(m.Discovery.Size())) - n47, err := m.Discovery.MarshalTo(data[i:]) + n51, err := m.Discovery.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n47 + i += n51 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16211,11 +17150,11 @@ func (m *TaskStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintMesos(data, i, uint64(m.TaskId.Size())) - n48, err := m.TaskId.MarshalTo(data[i:]) + n52, err := m.TaskId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n48 + i += n52 } if m.State == nil { return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("state") @@ -16240,11 +17179,11 @@ func (m *TaskStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x2a i++ i = encodeVarintMesos(data, i, uint64(m.SlaveId.Size())) - n49, err := m.SlaveId.MarshalTo(data[i:]) + n53, err := m.SlaveId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n49 + i += n53 } if m.Timestamp != nil { data[i] = 0x31 @@ -16255,11 +17194,11 @@ func (m *TaskStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintMesos(data, i, uint64(m.ExecutorId.Size())) - n50, err := m.ExecutorId.MarshalTo(data[i:]) + n54, err := m.ExecutorId.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n50 + i += n54 } if m.Healthy != nil { data[i] = 0x40 @@ -16287,6 +17226,16 @@ func (m *TaskStatus) MarshalTo(data []byte) (int, error) { i = encodeVarintMesos(data, i, uint64(len(m.Uuid))) i += copy(data[i:], m.Uuid) } + if m.Labels != nil { + data[i] = 0x62 + i++ + i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) + n55, err := m.Labels.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n55 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -16527,28 +17476,7 @@ func (m *Credentials) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ACL) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ACL) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i += copy(data[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *ACL_Entity) Marshal() (data []byte, err error) { +func (m *RateLimit) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -16558,75 +17486,28 @@ func (m *ACL_Entity) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *ACL_Entity) MarshalTo(data []byte) (int, error) { +func (m *RateLimit) MarshalTo(data []byte) (int, error) { var i int _ = i var l int _ = l - if m.Type != nil { - data[i] = 0x8 + if m.Qps != nil { + data[i] = 0x9 i++ - i = encodeVarintMesos(data, i, uint64(*m.Type)) - } - if len(m.Values) > 0 { - for _, s := range m.Values { - data[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.XXX_unrecognized != nil { - i += copy(data[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *ACL_RegisterFramework) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err + i = encodeFixed64Mesos(data, i, uint64(math.Float64bits(*m.Qps))) } - return data[:n], nil -} - -func (m *ACL_RegisterFramework) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Principals == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + if m.Principal == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principal") } else { - data[i] = 0xa + data[i] = 0x12 i++ - i = encodeVarintMesos(data, i, uint64(m.Principals.Size())) - n51, err := m.Principals.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n51 + i = encodeVarintMesos(data, i, uint64(len(*m.Principal))) + i += copy(data[i:], *m.Principal) } - if m.Roles == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("roles") - } else { - data[i] = 0x12 + if m.Capacity != nil { + data[i] = 0x18 i++ - i = encodeVarintMesos(data, i, uint64(m.Roles.Size())) - n52, err := m.Roles.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n52 + i = encodeVarintMesos(data, i, uint64(*m.Capacity)) } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16634,7 +17515,7 @@ func (m *ACL_RegisterFramework) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ACL_RunTask) Marshal() (data []byte, err error) { +func (m *RateLimits) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -16644,34 +17525,32 @@ func (m *ACL_RunTask) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *ACL_RunTask) MarshalTo(data []byte) (int, error) { +func (m *RateLimits) MarshalTo(data []byte) (int, error) { var i int _ = i var l int _ = l - if m.Principals == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") - } else { - data[i] = 0xa - i++ - i = encodeVarintMesos(data, i, uint64(m.Principals.Size())) - n53, err := m.Principals.MarshalTo(data[i:]) - if err != nil { - return 0, err + if len(m.Limits) > 0 { + for _, msg := range m.Limits { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n } - i += n53 } - if m.Users == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("users") - } else { - data[i] = 0x12 + if m.AggregateDefaultQps != nil { + data[i] = 0x11 i++ - i = encodeVarintMesos(data, i, uint64(m.Users.Size())) - n54, err := m.Users.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n54 + i = encodeFixed64Mesos(data, i, uint64(math.Float64bits(*m.AggregateDefaultQps))) + } + if m.AggregateDefaultCapacity != nil { + data[i] = 0x18 + i++ + i = encodeVarintMesos(data, i, uint64(*m.AggregateDefaultCapacity)) } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16679,7 +17558,7 @@ func (m *ACL_RunTask) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *ACL_ShutdownFramework) Marshal() (data []byte, err error) { +func (m *Image) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -16689,101 +17568,37 @@ func (m *ACL_ShutdownFramework) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *ACL_ShutdownFramework) MarshalTo(data []byte) (int, error) { +func (m *Image) MarshalTo(data []byte) (int, error) { var i int _ = i var l int _ = l - if m.Principals == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + if m.Type == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") } else { - data[i] = 0xa + data[i] = 0x8 i++ - i = encodeVarintMesos(data, i, uint64(m.Principals.Size())) - n55, err := m.Principals.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n55 + i = encodeVarintMesos(data, i, uint64(*m.Type)) } - if m.FrameworkPrincipals == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_principals") - } else { + if m.Appc != nil { data[i] = 0x12 i++ - i = encodeVarintMesos(data, i, uint64(m.FrameworkPrincipals.Size())) - n56, err := m.FrameworkPrincipals.MarshalTo(data[i:]) + i = encodeVarintMesos(data, i, uint64(m.Appc.Size())) + n56, err := m.Appc.MarshalTo(data[i:]) if err != nil { return 0, err } i += n56 } - if m.XXX_unrecognized != nil { - i += copy(data[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *ACLs) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ACLs) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Permissive != nil { - data[i] = 0x8 - i++ - if *m.Permissive { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.RegisterFrameworks) > 0 { - for _, msg := range m.RegisterFrameworks { - data[i] = 0x12 - i++ - i = encodeVarintMesos(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.RunTasks) > 0 { - for _, msg := range m.RunTasks { - data[i] = 0x1a - i++ - i = encodeVarintMesos(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ShutdownFrameworks) > 0 { - for _, msg := range m.ShutdownFrameworks { - data[i] = 0x22 - i++ - i = encodeVarintMesos(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n + if m.Docker != nil { + data[i] = 0x1a + i++ + i = encodeVarintMesos(data, i, uint64(m.Docker.Size())) + n57, err := m.Docker.MarshalTo(data[i:]) + if err != nil { + return 0, err } + i += n57 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16791,7 +17606,7 @@ func (m *ACLs) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RateLimit) Marshal() (data []byte, err error) { +func (m *Image_AppC) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -16801,28 +17616,34 @@ func (m *RateLimit) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *RateLimit) MarshalTo(data []byte) (int, error) { +func (m *Image_AppC) MarshalTo(data []byte) (int, error) { var i int _ = i var l int _ = l - if m.Qps != nil { - data[i] = 0x9 + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa i++ - i = encodeFixed64Mesos(data, i, uint64(math.Float64bits(*m.Qps))) + i = encodeVarintMesos(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) } - if m.Principal == nil { - return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("principal") - } else { + if m.Id != nil { data[i] = 0x12 i++ - i = encodeVarintMesos(data, i, uint64(len(*m.Principal))) - i += copy(data[i:], *m.Principal) + i = encodeVarintMesos(data, i, uint64(len(*m.Id))) + i += copy(data[i:], *m.Id) } - if m.Capacity != nil { - data[i] = 0x18 + if m.Labels != nil { + data[i] = 0x1a i++ - i = encodeVarintMesos(data, i, uint64(*m.Capacity)) + i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) + n58, err := m.Labels.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n58 } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16830,7 +17651,7 @@ func (m *RateLimit) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *RateLimits) Marshal() (data []byte, err error) { +func (m *Image_Docker) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -16840,32 +17661,18 @@ func (m *RateLimits) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *RateLimits) MarshalTo(data []byte) (int, error) { +func (m *Image_Docker) MarshalTo(data []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Limits) > 0 { - for _, msg := range m.Limits { - data[i] = 0xa - i++ - i = encodeVarintMesos(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.AggregateDefaultQps != nil { - data[i] = 0x11 - i++ - i = encodeFixed64Mesos(data, i, uint64(math.Float64bits(*m.AggregateDefaultQps))) - } - if m.AggregateDefaultCapacity != nil { - data[i] = 0x18 + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa i++ - i = encodeVarintMesos(data, i, uint64(*m.AggregateDefaultCapacity)) + i = encodeVarintMesos(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -16909,6 +17716,16 @@ func (m *Volume) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintMesos(data, i, uint64(*m.Mode)) } + if m.Image != nil { + data[i] = 0x22 + i++ + i = encodeVarintMesos(data, i, uint64(m.Image.Size())) + n59, err := m.Image.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n59 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -16953,11 +17770,11 @@ func (m *ContainerInfo) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintMesos(data, i, uint64(m.Docker.Size())) - n57, err := m.Docker.MarshalTo(data[i:]) + n60, err := m.Docker.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n57 + i += n60 } if m.Hostname != nil { data[i] = 0x22 @@ -16965,6 +17782,16 @@ func (m *ContainerInfo) MarshalTo(data []byte) (int, error) { i = encodeVarintMesos(data, i, uint64(len(*m.Hostname))) i += copy(data[i:], *m.Hostname) } + if m.Mesos != nil { + data[i] = 0x2a + i++ + i = encodeVarintMesos(data, i, uint64(m.Mesos.Size())) + n61, err := m.Mesos.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n61 + } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) } @@ -17090,6 +17917,37 @@ func (m *ContainerInfo_DockerInfo_PortMapping) MarshalTo(data []byte) (int, erro return i, nil } +func (m *ContainerInfo_MesosInfo) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ContainerInfo_MesosInfo) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Image != nil { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(m.Image.Size())) + n62, err := m.Image.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n62 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + func (m *Labels) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -17259,43 +18117,186 @@ func (m *DiscoveryInfo) MarshalTo(data []byte) (int, error) { i = encodeVarintMesos(data, i, uint64(len(*m.Name))) i += copy(data[i:], *m.Name) } - if m.Environment != nil { - data[i] = 0x1a - i++ - i = encodeVarintMesos(data, i, uint64(len(*m.Environment))) - i += copy(data[i:], *m.Environment) - } - if m.Location != nil { - data[i] = 0x22 - i++ - i = encodeVarintMesos(data, i, uint64(len(*m.Location))) - i += copy(data[i:], *m.Location) - } - if m.Version != nil { - data[i] = 0x2a - i++ - i = encodeVarintMesos(data, i, uint64(len(*m.Version))) - i += copy(data[i:], *m.Version) - } - if m.Ports != nil { - data[i] = 0x32 - i++ - i = encodeVarintMesos(data, i, uint64(m.Ports.Size())) - n58, err := m.Ports.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n58 - } - if m.Labels != nil { - data[i] = 0x3a + if m.Environment != nil { + data[i] = 0x1a + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Environment))) + i += copy(data[i:], *m.Environment) + } + if m.Location != nil { + data[i] = 0x22 + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Location))) + i += copy(data[i:], *m.Location) + } + if m.Version != nil { + data[i] = 0x2a + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Version))) + i += copy(data[i:], *m.Version) + } + if m.Ports != nil { + data[i] = 0x32 + i++ + i = encodeVarintMesos(data, i, uint64(m.Ports.Size())) + n63, err := m.Ports.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n63 + } + if m.Labels != nil { + data[i] = 0x3a + i++ + i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) + n64, err := m.Labels.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n64 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AppcImageManifest) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AppcImageManifest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.AcKind == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("acKind") + } else { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.AcKind))) + i += copy(data[i:], *m.AcKind) + } + if m.AcVersion == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("acVersion") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.AcVersion))) + i += copy(data[i:], *m.AcVersion) + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) + } + if len(m.Labels) > 0 { + for _, msg := range m.Labels { + data[i] = 0x22 + i++ + i = encodeVarintMesos(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Annotations) > 0 { + for _, msg := range m.Annotations { + data[i] = 0x2a + i++ + i = encodeVarintMesos(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AppcImageManifest_Label) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AppcImageManifest_Label) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) + } + if m.Value == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Value))) + i += copy(data[i:], *m.Value) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *AppcImageManifest_Annotation) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AppcImageManifest_Annotation) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa + i++ + i = encodeVarintMesos(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) + } + if m.Value == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + } else { + data[i] = 0x12 i++ - i = encodeVarintMesos(data, i, uint64(m.Labels.Size())) - n59, err := m.Labels.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n59 + i = encodeVarintMesos(data, i, uint64(len(*m.Value))) + i += copy(data[i:], *m.Value) } if m.XXX_unrecognized != nil { i += copy(data[i:], m.XXX_unrecognized) @@ -17390,59 +18391,109 @@ func NewPopulatedContainerID(r randyMesos, easy bool) *ContainerID { return this } +func NewPopulatedAddress(r randyMesos, easy bool) *Address { + this := &Address{} + if r.Intn(10) != 0 { + v7 := randStringMesos(r) + this.Hostname = &v7 + } + if r.Intn(10) != 0 { + v8 := randStringMesos(r) + this.Ip = &v8 + } + v9 := int32(r.Int31()) + if r.Intn(2) == 0 { + v9 *= -1 + } + this.Port = &v9 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 4) + } + return this +} + +func NewPopulatedURL(r randyMesos, easy bool) *URL { + this := &URL{} + v10 := randStringMesos(r) + this.Scheme = &v10 + this.Address = NewPopulatedAddress(r, easy) + if r.Intn(10) != 0 { + v11 := randStringMesos(r) + this.Path = &v11 + } + if r.Intn(10) != 0 { + v12 := r.Intn(10) + this.Query = make([]*Parameter, v12) + for i := 0; i < v12; i++ { + this.Query[i] = NewPopulatedParameter(r, easy) + } + } + if r.Intn(10) != 0 { + v13 := randStringMesos(r) + this.Fragment = &v13 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 6) + } + return this +} + func NewPopulatedFrameworkInfo(r randyMesos, easy bool) *FrameworkInfo { this := &FrameworkInfo{} - v7 := randStringMesos(r) - this.User = &v7 - v8 := randStringMesos(r) - this.Name = &v8 + v14 := randStringMesos(r) + this.User = &v14 + v15 := randStringMesos(r) + this.Name = &v15 if r.Intn(10) != 0 { this.Id = NewPopulatedFrameworkID(r, easy) } if r.Intn(10) != 0 { - v9 := float64(r.Float64()) + v16 := float64(r.Float64()) if r.Intn(2) == 0 { - v9 *= -1 + v16 *= -1 } - this.FailoverTimeout = &v9 + this.FailoverTimeout = &v16 } if r.Intn(10) != 0 { - v10 := bool(bool(r.Intn(2) == 0)) - this.Checkpoint = &v10 + v17 := bool(bool(r.Intn(2) == 0)) + this.Checkpoint = &v17 } if r.Intn(10) != 0 { - v11 := randStringMesos(r) - this.Role = &v11 + v18 := randStringMesos(r) + this.Role = &v18 } if r.Intn(10) != 0 { - v12 := randStringMesos(r) - this.Hostname = &v12 + v19 := randStringMesos(r) + this.Hostname = &v19 } if r.Intn(10) != 0 { - v13 := randStringMesos(r) - this.Principal = &v13 + v20 := randStringMesos(r) + this.Principal = &v20 } if r.Intn(10) != 0 { - v14 := randStringMesos(r) - this.WebuiUrl = &v14 + v21 := randStringMesos(r) + this.WebuiUrl = &v21 } if r.Intn(10) != 0 { - v15 := r.Intn(10) - this.Capabilities = make([]*FrameworkInfo_Capability, v15) - for i := 0; i < v15; i++ { + v22 := r.Intn(10) + this.Capabilities = make([]*FrameworkInfo_Capability, v22) + for i := 0; i < v22; i++ { this.Capabilities[i] = NewPopulatedFrameworkInfo_Capability(r, easy) } } + if r.Intn(10) != 0 { + this.Labels = NewPopulatedLabels(r, easy) + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 11) + this.XXX_unrecognized = randUnrecognizedMesos(r, 12) } return this } func NewPopulatedFrameworkInfo_Capability(r randyMesos, easy bool) *FrameworkInfo_Capability { this := &FrameworkInfo_Capability{} - v16 := FrameworkInfo_Capability_Type([]int32{1}[r.Intn(1)]) - this.Type = &v16 + v23 := FrameworkInfo_Capability_Type([]int32{1}[r.Intn(1)]) + this.Type = &v23 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } @@ -17455,36 +18506,36 @@ func NewPopulatedHealthCheck(r randyMesos, easy bool) *HealthCheck { this.Http = NewPopulatedHealthCheck_HTTP(r, easy) } if r.Intn(10) != 0 { - v17 := float64(r.Float64()) + v24 := float64(r.Float64()) if r.Intn(2) == 0 { - v17 *= -1 + v24 *= -1 } - this.DelaySeconds = &v17 + this.DelaySeconds = &v24 } if r.Intn(10) != 0 { - v18 := float64(r.Float64()) + v25 := float64(r.Float64()) if r.Intn(2) == 0 { - v18 *= -1 + v25 *= -1 } - this.IntervalSeconds = &v18 + this.IntervalSeconds = &v25 } if r.Intn(10) != 0 { - v19 := float64(r.Float64()) + v26 := float64(r.Float64()) if r.Intn(2) == 0 { - v19 *= -1 + v26 *= -1 } - this.TimeoutSeconds = &v19 + this.TimeoutSeconds = &v26 } if r.Intn(10) != 0 { - v20 := uint32(r.Uint32()) - this.ConsecutiveFailures = &v20 + v27 := uint32(r.Uint32()) + this.ConsecutiveFailures = &v27 } if r.Intn(10) != 0 { - v21 := float64(r.Float64()) + v28 := float64(r.Float64()) if r.Intn(2) == 0 { - v21 *= -1 + v28 *= -1 } - this.GracePeriodSeconds = &v21 + this.GracePeriodSeconds = &v28 } if r.Intn(10) != 0 { this.Command = NewPopulatedCommandInfo(r, easy) @@ -17497,16 +18548,16 @@ func NewPopulatedHealthCheck(r randyMesos, easy bool) *HealthCheck { func NewPopulatedHealthCheck_HTTP(r randyMesos, easy bool) *HealthCheck_HTTP { this := &HealthCheck_HTTP{} - v22 := uint32(r.Uint32()) - this.Port = &v22 + v29 := uint32(r.Uint32()) + this.Port = &v29 if r.Intn(10) != 0 { - v23 := randStringMesos(r) - this.Path = &v23 + v30 := randStringMesos(r) + this.Path = &v30 } if r.Intn(10) != 0 { - v24 := r.Intn(100) - this.Statuses = make([]uint32, v24) - for i := 0; i < v24; i++ { + v31 := r.Intn(100) + this.Statuses = make([]uint32, v31) + for i := 0; i < v31; i++ { this.Statuses[i] = uint32(r.Uint32()) } } @@ -17519,9 +18570,9 @@ func NewPopulatedHealthCheck_HTTP(r randyMesos, easy bool) *HealthCheck_HTTP { func NewPopulatedCommandInfo(r randyMesos, easy bool) *CommandInfo { this := &CommandInfo{} if r.Intn(10) != 0 { - v25 := r.Intn(10) - this.Uris = make([]*CommandInfo_URI, v25) - for i := 0; i < v25; i++ { + v32 := r.Intn(10) + this.Uris = make([]*CommandInfo_URI, v32) + for i := 0; i < v32; i++ { this.Uris[i] = NewPopulatedCommandInfo_URI(r, easy) } } @@ -17529,24 +18580,24 @@ func NewPopulatedCommandInfo(r randyMesos, easy bool) *CommandInfo { this.Environment = NewPopulatedEnvironment(r, easy) } if r.Intn(10) != 0 { - v26 := randStringMesos(r) - this.Value = &v26 + v33 := randStringMesos(r) + this.Value = &v33 } if r.Intn(10) != 0 { this.Container = NewPopulatedCommandInfo_ContainerInfo(r, easy) } if r.Intn(10) != 0 { - v27 := randStringMesos(r) - this.User = &v27 + v34 := randStringMesos(r) + this.User = &v34 } if r.Intn(10) != 0 { - v28 := bool(bool(r.Intn(2) == 0)) - this.Shell = &v28 + v35 := bool(bool(r.Intn(2) == 0)) + this.Shell = &v35 } if r.Intn(10) != 0 { - v29 := r.Intn(10) - this.Arguments = make([]string, v29) - for i := 0; i < v29; i++ { + v36 := r.Intn(10) + this.Arguments = make([]string, v36) + for i := 0; i < v36; i++ { this.Arguments[i] = randStringMesos(r) } } @@ -17558,19 +18609,19 @@ func NewPopulatedCommandInfo(r randyMesos, easy bool) *CommandInfo { func NewPopulatedCommandInfo_URI(r randyMesos, easy bool) *CommandInfo_URI { this := &CommandInfo_URI{} - v30 := randStringMesos(r) - this.Value = &v30 + v37 := randStringMesos(r) + this.Value = &v37 if r.Intn(10) != 0 { - v31 := bool(bool(r.Intn(2) == 0)) - this.Executable = &v31 + v38 := bool(bool(r.Intn(2) == 0)) + this.Executable = &v38 } if r.Intn(10) != 0 { - v32 := bool(bool(r.Intn(2) == 0)) - this.Extract = &v32 + v39 := bool(bool(r.Intn(2) == 0)) + this.Extract = &v39 } if r.Intn(10) != 0 { - v33 := bool(bool(r.Intn(2) == 0)) - this.Cache = &v33 + v40 := bool(bool(r.Intn(2) == 0)) + this.Cache = &v40 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 5) @@ -17580,12 +18631,12 @@ func NewPopulatedCommandInfo_URI(r randyMesos, easy bool) *CommandInfo_URI { func NewPopulatedCommandInfo_ContainerInfo(r randyMesos, easy bool) *CommandInfo_ContainerInfo { this := &CommandInfo_ContainerInfo{} - v34 := randStringMesos(r) - this.Image = &v34 + v41 := randStringMesos(r) + this.Image = &v41 if r.Intn(10) != 0 { - v35 := r.Intn(10) - this.Options = make([]string, v35) - for i := 0; i < v35; i++ { + v42 := r.Intn(10) + this.Options = make([]string, v42) + for i := 0; i < v42; i++ { this.Options[i] = randStringMesos(r) } } @@ -17599,16 +18650,16 @@ func NewPopulatedExecutorInfo(r randyMesos, easy bool) *ExecutorInfo { this := &ExecutorInfo{} this.ExecutorId = NewPopulatedExecutorID(r, easy) if r.Intn(10) != 0 { - v36 := r.Intn(100) - this.Data = make([]byte, v36) - for i := 0; i < v36; i++ { + v43 := r.Intn(100) + this.Data = make([]byte, v43) + for i := 0; i < v43; i++ { this.Data[i] = byte(r.Intn(256)) } } if r.Intn(10) != 0 { - v37 := r.Intn(10) - this.Resources = make([]*Resource, v37) - for i := 0; i < v37; i++ { + v44 := r.Intn(10) + this.Resources = make([]*Resource, v44) + for i := 0; i < v44; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } @@ -17617,12 +18668,12 @@ func NewPopulatedExecutorInfo(r randyMesos, easy bool) *ExecutorInfo { this.FrameworkId = NewPopulatedFrameworkID(r, easy) } if r.Intn(10) != 0 { - v38 := randStringMesos(r) - this.Name = &v38 + v45 := randStringMesos(r) + this.Name = &v45 } if r.Intn(10) != 0 { - v39 := randStringMesos(r) - this.Source = &v39 + v46 := randStringMesos(r) + this.Source = &v46 } if r.Intn(10) != 0 { this.Container = NewPopulatedContainerInfo(r, easy) @@ -17638,45 +18689,48 @@ func NewPopulatedExecutorInfo(r randyMesos, easy bool) *ExecutorInfo { func NewPopulatedMasterInfo(r randyMesos, easy bool) *MasterInfo { this := &MasterInfo{} - v40 := randStringMesos(r) - this.Id = &v40 - v41 := uint32(r.Uint32()) - this.Ip = &v41 - v42 := uint32(r.Uint32()) - this.Port = &v42 + v47 := randStringMesos(r) + this.Id = &v47 + v48 := uint32(r.Uint32()) + this.Ip = &v48 + v49 := uint32(r.Uint32()) + this.Port = &v49 if r.Intn(10) != 0 { - v43 := randStringMesos(r) - this.Pid = &v43 + v50 := randStringMesos(r) + this.Pid = &v50 } if r.Intn(10) != 0 { - v44 := randStringMesos(r) - this.Hostname = &v44 + v51 := randStringMesos(r) + this.Hostname = &v51 } if r.Intn(10) != 0 { - v45 := randStringMesos(r) - this.Version = &v45 + v52 := randStringMesos(r) + this.Version = &v52 + } + if r.Intn(10) != 0 { + this.Address = NewPopulatedAddress(r, easy) } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 7) + this.XXX_unrecognized = randUnrecognizedMesos(r, 8) } return this } func NewPopulatedSlaveInfo(r randyMesos, easy bool) *SlaveInfo { this := &SlaveInfo{} - v46 := randStringMesos(r) - this.Hostname = &v46 + v53 := randStringMesos(r) + this.Hostname = &v53 if r.Intn(10) != 0 { - v47 := r.Intn(10) - this.Resources = make([]*Resource, v47) - for i := 0; i < v47; i++ { + v54 := r.Intn(10) + this.Resources = make([]*Resource, v54) + for i := 0; i < v54; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } if r.Intn(10) != 0 { - v48 := r.Intn(10) - this.Attributes = make([]*Attribute, v48) - for i := 0; i < v48; i++ { + v55 := r.Intn(10) + this.Attributes = make([]*Attribute, v55) + for i := 0; i < v55; i++ { this.Attributes[i] = NewPopulatedAttribute(r, easy) } } @@ -17684,15 +18738,15 @@ func NewPopulatedSlaveInfo(r randyMesos, easy bool) *SlaveInfo { this.Id = NewPopulatedSlaveID(r, easy) } if r.Intn(10) != 0 { - v49 := bool(bool(r.Intn(2) == 0)) - this.Checkpoint = &v49 + v56 := bool(bool(r.Intn(2) == 0)) + this.Checkpoint = &v56 } if r.Intn(10) != 0 { - v50 := int32(r.Int31()) + v57 := int32(r.Int31()) if r.Intn(2) == 0 { - v50 *= -1 + v57 *= -1 } - this.Port = &v50 + this.Port = &v57 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 9) @@ -17702,8 +18756,8 @@ func NewPopulatedSlaveInfo(r randyMesos, easy bool) *SlaveInfo { func NewPopulatedValue(r randyMesos, easy bool) *Value { this := &Value{} - v51 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) - this.Type = &v51 + v58 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) + this.Type = &v58 if r.Intn(10) != 0 { this.Scalar = NewPopulatedValue_Scalar(r, easy) } @@ -17724,11 +18778,11 @@ func NewPopulatedValue(r randyMesos, easy bool) *Value { func NewPopulatedValue_Scalar(r randyMesos, easy bool) *Value_Scalar { this := &Value_Scalar{} - v52 := float64(r.Float64()) + v59 := float64(r.Float64()) if r.Intn(2) == 0 { - v52 *= -1 + v59 *= -1 } - this.Value = &v52 + this.Value = &v59 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } @@ -17737,10 +18791,10 @@ func NewPopulatedValue_Scalar(r randyMesos, easy bool) *Value_Scalar { func NewPopulatedValue_Range(r randyMesos, easy bool) *Value_Range { this := &Value_Range{} - v53 := uint64(uint64(r.Uint32())) - this.Begin = &v53 - v54 := uint64(uint64(r.Uint32())) - this.End = &v54 + v60 := uint64(uint64(r.Uint32())) + this.Begin = &v60 + v61 := uint64(uint64(r.Uint32())) + this.End = &v61 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 3) } @@ -17750,9 +18804,9 @@ func NewPopulatedValue_Range(r randyMesos, easy bool) *Value_Range { func NewPopulatedValue_Ranges(r randyMesos, easy bool) *Value_Ranges { this := &Value_Ranges{} if r.Intn(10) != 0 { - v55 := r.Intn(10) - this.Range = make([]*Value_Range, v55) - for i := 0; i < v55; i++ { + v62 := r.Intn(10) + this.Range = make([]*Value_Range, v62) + for i := 0; i < v62; i++ { this.Range[i] = NewPopulatedValue_Range(r, easy) } } @@ -17765,9 +18819,9 @@ func NewPopulatedValue_Ranges(r randyMesos, easy bool) *Value_Ranges { func NewPopulatedValue_Set(r randyMesos, easy bool) *Value_Set { this := &Value_Set{} if r.Intn(10) != 0 { - v56 := r.Intn(10) - this.Item = make([]string, v56) - for i := 0; i < v56; i++ { + v63 := r.Intn(10) + this.Item = make([]string, v63) + for i := 0; i < v63; i++ { this.Item[i] = randStringMesos(r) } } @@ -17779,8 +18833,8 @@ func NewPopulatedValue_Set(r randyMesos, easy bool) *Value_Set { func NewPopulatedValue_Text(r randyMesos, easy bool) *Value_Text { this := &Value_Text{} - v57 := randStringMesos(r) - this.Value = &v57 + v64 := randStringMesos(r) + this.Value = &v64 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } @@ -17789,10 +18843,10 @@ func NewPopulatedValue_Text(r randyMesos, easy bool) *Value_Text { func NewPopulatedAttribute(r randyMesos, easy bool) *Attribute { this := &Attribute{} - v58 := randStringMesos(r) - this.Name = &v58 - v59 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) - this.Type = &v59 + v65 := randStringMesos(r) + this.Name = &v65 + v66 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) + this.Type = &v66 if r.Intn(10) != 0 { this.Scalar = NewPopulatedValue_Scalar(r, easy) } @@ -17813,10 +18867,10 @@ func NewPopulatedAttribute(r randyMesos, easy bool) *Attribute { func NewPopulatedResource(r randyMesos, easy bool) *Resource { this := &Resource{} - v60 := randStringMesos(r) - this.Name = &v60 - v61 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) - this.Type = &v61 + v67 := randStringMesos(r) + this.Name = &v67 + v68 := Value_Type([]int32{0, 1, 2, 3}[r.Intn(4)]) + this.Type = &v68 if r.Intn(10) != 0 { this.Scalar = NewPopulatedValue_Scalar(r, easy) } @@ -17827,8 +18881,8 @@ func NewPopulatedResource(r randyMesos, easy bool) *Resource { this.Set = NewPopulatedValue_Set(r, easy) } if r.Intn(10) != 0 { - v62 := randStringMesos(r) - this.Role = &v62 + v69 := randStringMesos(r) + this.Role = &v69 } if r.Intn(10) != 0 { this.Disk = NewPopulatedResource_DiskInfo(r, easy) @@ -17847,8 +18901,8 @@ func NewPopulatedResource(r randyMesos, easy bool) *Resource { func NewPopulatedResource_ReservationInfo(r randyMesos, easy bool) *Resource_ReservationInfo { this := &Resource_ReservationInfo{} - v63 := randStringMesos(r) - this.Principal = &v63 + v70 := randStringMesos(r) + this.Principal = &v70 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } @@ -17871,8 +18925,8 @@ func NewPopulatedResource_DiskInfo(r randyMesos, easy bool) *Resource_DiskInfo { func NewPopulatedResource_DiskInfo_Persistence(r randyMesos, easy bool) *Resource_DiskInfo_Persistence { this := &Resource_DiskInfo_Persistence{} - v64 := randStringMesos(r) - this.Id = &v64 + v71 := randStringMesos(r) + this.Id = &v71 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } @@ -17889,43 +18943,43 @@ func NewPopulatedResource_RevocableInfo(r randyMesos, easy bool) *Resource_Revoc func NewPopulatedTrafficControlStatistics(r randyMesos, easy bool) *TrafficControlStatistics { this := &TrafficControlStatistics{} - v65 := randStringMesos(r) - this.Id = &v65 + v72 := randStringMesos(r) + this.Id = &v72 if r.Intn(10) != 0 { - v66 := uint64(uint64(r.Uint32())) - this.Backlog = &v66 + v73 := uint64(uint64(r.Uint32())) + this.Backlog = &v73 } if r.Intn(10) != 0 { - v67 := uint64(uint64(r.Uint32())) - this.Bytes = &v67 + v74 := uint64(uint64(r.Uint32())) + this.Bytes = &v74 } if r.Intn(10) != 0 { - v68 := uint64(uint64(r.Uint32())) - this.Drops = &v68 + v75 := uint64(uint64(r.Uint32())) + this.Drops = &v75 } if r.Intn(10) != 0 { - v69 := uint64(uint64(r.Uint32())) - this.Overlimits = &v69 + v76 := uint64(uint64(r.Uint32())) + this.Overlimits = &v76 } if r.Intn(10) != 0 { - v70 := uint64(uint64(r.Uint32())) - this.Packets = &v70 + v77 := uint64(uint64(r.Uint32())) + this.Packets = &v77 } if r.Intn(10) != 0 { - v71 := uint64(uint64(r.Uint32())) - this.Qlen = &v71 + v78 := uint64(uint64(r.Uint32())) + this.Qlen = &v78 } if r.Intn(10) != 0 { - v72 := uint64(uint64(r.Uint32())) - this.Ratebps = &v72 + v79 := uint64(uint64(r.Uint32())) + this.Ratebps = &v79 } if r.Intn(10) != 0 { - v73 := uint64(uint64(r.Uint32())) - this.Ratepps = &v73 + v80 := uint64(uint64(r.Uint32())) + this.Ratepps = &v80 } if r.Intn(10) != 0 { - v74 := uint64(uint64(r.Uint32())) - this.Requeues = &v74 + v81 := uint64(uint64(r.Uint32())) + this.Requeues = &v81 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 11) @@ -17935,201 +18989,205 @@ func NewPopulatedTrafficControlStatistics(r randyMesos, easy bool) *TrafficContr func NewPopulatedResourceStatistics(r randyMesos, easy bool) *ResourceStatistics { this := &ResourceStatistics{} - v75 := float64(r.Float64()) + v82 := float64(r.Float64()) if r.Intn(2) == 0 { - v75 *= -1 + v82 *= -1 } - this.Timestamp = &v75 + this.Timestamp = &v82 if r.Intn(10) != 0 { - v76 := float64(r.Float64()) + v83 := float64(r.Float64()) if r.Intn(2) == 0 { - v76 *= -1 + v83 *= -1 } - this.CpusUserTimeSecs = &v76 + this.CpusUserTimeSecs = &v83 } if r.Intn(10) != 0 { - v77 := float64(r.Float64()) + v84 := float64(r.Float64()) if r.Intn(2) == 0 { - v77 *= -1 + v84 *= -1 } - this.CpusSystemTimeSecs = &v77 + this.CpusSystemTimeSecs = &v84 } if r.Intn(10) != 0 { - v78 := float64(r.Float64()) + v85 := float64(r.Float64()) if r.Intn(2) == 0 { - v78 *= -1 + v85 *= -1 } - this.CpusLimit = &v78 + this.CpusLimit = &v85 } if r.Intn(10) != 0 { - v79 := uint64(uint64(r.Uint32())) - this.MemRssBytes = &v79 + v86 := uint64(uint64(r.Uint32())) + this.MemRssBytes = &v86 } if r.Intn(10) != 0 { - v80 := uint64(uint64(r.Uint32())) - this.MemLimitBytes = &v80 + v87 := uint64(uint64(r.Uint32())) + this.MemLimitBytes = &v87 } if r.Intn(10) != 0 { - v81 := uint32(r.Uint32()) - this.CpusNrPeriods = &v81 + v88 := uint32(r.Uint32()) + this.CpusNrPeriods = &v88 } if r.Intn(10) != 0 { - v82 := uint32(r.Uint32()) - this.CpusNrThrottled = &v82 + v89 := uint32(r.Uint32()) + this.CpusNrThrottled = &v89 } if r.Intn(10) != 0 { - v83 := float64(r.Float64()) + v90 := float64(r.Float64()) if r.Intn(2) == 0 { - v83 *= -1 + v90 *= -1 } - this.CpusThrottledTimeSecs = &v83 + this.CpusThrottledTimeSecs = &v90 } if r.Intn(10) != 0 { - v84 := uint64(uint64(r.Uint32())) - this.MemFileBytes = &v84 + v91 := uint64(uint64(r.Uint32())) + this.MemFileBytes = &v91 } if r.Intn(10) != 0 { - v85 := uint64(uint64(r.Uint32())) - this.MemAnonBytes = &v85 + v92 := uint64(uint64(r.Uint32())) + this.MemAnonBytes = &v92 } if r.Intn(10) != 0 { - v86 := uint64(uint64(r.Uint32())) - this.MemMappedFileBytes = &v86 + v93 := uint64(uint64(r.Uint32())) + this.MemMappedFileBytes = &v93 } if r.Intn(10) != 0 { this.Perf = NewPopulatedPerfStatistics(r, easy) } if r.Intn(10) != 0 { - v87 := uint64(uint64(r.Uint32())) - this.NetRxPackets = &v87 + v94 := uint64(uint64(r.Uint32())) + this.NetRxPackets = &v94 } if r.Intn(10) != 0 { - v88 := uint64(uint64(r.Uint32())) - this.NetRxBytes = &v88 + v95 := uint64(uint64(r.Uint32())) + this.NetRxBytes = &v95 } if r.Intn(10) != 0 { - v89 := uint64(uint64(r.Uint32())) - this.NetRxErrors = &v89 + v96 := uint64(uint64(r.Uint32())) + this.NetRxErrors = &v96 } if r.Intn(10) != 0 { - v90 := uint64(uint64(r.Uint32())) - this.NetRxDropped = &v90 + v97 := uint64(uint64(r.Uint32())) + this.NetRxDropped = &v97 } if r.Intn(10) != 0 { - v91 := uint64(uint64(r.Uint32())) - this.NetTxPackets = &v91 + v98 := uint64(uint64(r.Uint32())) + this.NetTxPackets = &v98 } if r.Intn(10) != 0 { - v92 := uint64(uint64(r.Uint32())) - this.NetTxBytes = &v92 + v99 := uint64(uint64(r.Uint32())) + this.NetTxBytes = &v99 } if r.Intn(10) != 0 { - v93 := uint64(uint64(r.Uint32())) - this.NetTxErrors = &v93 + v100 := uint64(uint64(r.Uint32())) + this.NetTxErrors = &v100 } if r.Intn(10) != 0 { - v94 := uint64(uint64(r.Uint32())) - this.NetTxDropped = &v94 + v101 := uint64(uint64(r.Uint32())) + this.NetTxDropped = &v101 } if r.Intn(10) != 0 { - v95 := float64(r.Float64()) + v102 := float64(r.Float64()) if r.Intn(2) == 0 { - v95 *= -1 + v102 *= -1 } - this.NetTcpRttMicrosecsP50 = &v95 + this.NetTcpRttMicrosecsP50 = &v102 } if r.Intn(10) != 0 { - v96 := float64(r.Float64()) + v103 := float64(r.Float64()) if r.Intn(2) == 0 { - v96 *= -1 + v103 *= -1 } - this.NetTcpRttMicrosecsP90 = &v96 + this.NetTcpRttMicrosecsP90 = &v103 } if r.Intn(10) != 0 { - v97 := float64(r.Float64()) + v104 := float64(r.Float64()) if r.Intn(2) == 0 { - v97 *= -1 + v104 *= -1 } - this.NetTcpRttMicrosecsP95 = &v97 + this.NetTcpRttMicrosecsP95 = &v104 } if r.Intn(10) != 0 { - v98 := float64(r.Float64()) + v105 := float64(r.Float64()) if r.Intn(2) == 0 { - v98 *= -1 + v105 *= -1 } - this.NetTcpRttMicrosecsP99 = &v98 + this.NetTcpRttMicrosecsP99 = &v105 } if r.Intn(10) != 0 { - v99 := uint64(uint64(r.Uint32())) - this.DiskLimitBytes = &v99 + v106 := uint64(uint64(r.Uint32())) + this.DiskLimitBytes = &v106 } if r.Intn(10) != 0 { - v100 := uint64(uint64(r.Uint32())) - this.DiskUsedBytes = &v100 + v107 := uint64(uint64(r.Uint32())) + this.DiskUsedBytes = &v107 } if r.Intn(10) != 0 { - v101 := float64(r.Float64()) + v108 := float64(r.Float64()) if r.Intn(2) == 0 { - v101 *= -1 + v108 *= -1 } - this.NetTcpActiveConnections = &v101 + this.NetTcpActiveConnections = &v108 } if r.Intn(10) != 0 { - v102 := float64(r.Float64()) + v109 := float64(r.Float64()) if r.Intn(2) == 0 { - v102 *= -1 + v109 *= -1 } - this.NetTcpTimeWaitConnections = &v102 + this.NetTcpTimeWaitConnections = &v109 } if r.Intn(10) != 0 { - v103 := uint32(r.Uint32()) - this.Processes = &v103 + v110 := uint32(r.Uint32()) + this.Processes = &v110 } if r.Intn(10) != 0 { - v104 := uint32(r.Uint32()) - this.Threads = &v104 + v111 := uint32(r.Uint32()) + this.Threads = &v111 } if r.Intn(10) != 0 { - v105 := uint64(uint64(r.Uint32())) - this.MemLowPressureCounter = &v105 + v112 := uint64(uint64(r.Uint32())) + this.MemLowPressureCounter = &v112 } if r.Intn(10) != 0 { - v106 := uint64(uint64(r.Uint32())) - this.MemMediumPressureCounter = &v106 + v113 := uint64(uint64(r.Uint32())) + this.MemMediumPressureCounter = &v113 } if r.Intn(10) != 0 { - v107 := uint64(uint64(r.Uint32())) - this.MemCriticalPressureCounter = &v107 + v114 := uint64(uint64(r.Uint32())) + this.MemCriticalPressureCounter = &v114 } if r.Intn(10) != 0 { - v108 := r.Intn(10) - this.NetTrafficControlStatistics = make([]*TrafficControlStatistics, v108) - for i := 0; i < v108; i++ { + v115 := r.Intn(10) + this.NetTrafficControlStatistics = make([]*TrafficControlStatistics, v115) + for i := 0; i < v115; i++ { this.NetTrafficControlStatistics[i] = NewPopulatedTrafficControlStatistics(r, easy) } } if r.Intn(10) != 0 { - v109 := uint64(uint64(r.Uint32())) - this.MemTotalBytes = &v109 + v116 := uint64(uint64(r.Uint32())) + this.MemTotalBytes = &v116 } if r.Intn(10) != 0 { - v110 := uint64(uint64(r.Uint32())) - this.MemTotalMemswBytes = &v110 + v117 := uint64(uint64(r.Uint32())) + this.MemTotalMemswBytes = &v117 } if r.Intn(10) != 0 { - v111 := uint64(uint64(r.Uint32())) - this.MemSoftLimitBytes = &v111 + v118 := uint64(uint64(r.Uint32())) + this.MemSoftLimitBytes = &v118 } if r.Intn(10) != 0 { - v112 := uint64(uint64(r.Uint32())) - this.MemCacheBytes = &v112 + v119 := uint64(uint64(r.Uint32())) + this.MemCacheBytes = &v119 } if r.Intn(10) != 0 { - v113 := uint64(uint64(r.Uint32())) - this.MemSwapBytes = &v113 + v120 := uint64(uint64(r.Uint32())) + this.MemSwapBytes = &v120 + } + if r.Intn(10) != 0 { + v121 := uint64(uint64(r.Uint32())) + this.MemUnevictableBytes = &v121 } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 41) + this.XXX_unrecognized = randUnrecognizedMesos(r, 42) } return this } @@ -18137,14 +19195,21 @@ func NewPopulatedResourceStatistics(r randyMesos, easy bool) *ResourceStatistics func NewPopulatedResourceUsage(r randyMesos, easy bool) *ResourceUsage { this := &ResourceUsage{} if r.Intn(10) != 0 { - v114 := r.Intn(10) - this.Executors = make([]*ResourceUsage_Executor, v114) - for i := 0; i < v114; i++ { + v122 := r.Intn(10) + this.Executors = make([]*ResourceUsage_Executor, v122) + for i := 0; i < v122; i++ { this.Executors[i] = NewPopulatedResourceUsage_Executor(r, easy) } } + if r.Intn(10) != 0 { + v123 := r.Intn(10) + this.Total = make([]*Resource, v123) + for i := 0; i < v123; i++ { + this.Total[i] = NewPopulatedResource(r, easy) + } + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 2) + this.XXX_unrecognized = randUnrecognizedMesos(r, 3) } return this } @@ -18153,9 +19218,9 @@ func NewPopulatedResourceUsage_Executor(r randyMesos, easy bool) *ResourceUsage_ this := &ResourceUsage_Executor{} this.ExecutorInfo = NewPopulatedExecutorInfo(r, easy) if r.Intn(10) != 0 { - v115 := r.Intn(10) - this.Allocated = make([]*Resource, v115) - for i := 0; i < v115; i++ { + v124 := r.Intn(10) + this.Allocated = make([]*Resource, v124) + for i := 0; i < v124; i++ { this.Allocated[i] = NewPopulatedResource(r, easy) } } @@ -18170,225 +19235,225 @@ func NewPopulatedResourceUsage_Executor(r randyMesos, easy bool) *ResourceUsage_ func NewPopulatedPerfStatistics(r randyMesos, easy bool) *PerfStatistics { this := &PerfStatistics{} - v116 := float64(r.Float64()) + v125 := float64(r.Float64()) if r.Intn(2) == 0 { - v116 *= -1 + v125 *= -1 } - this.Timestamp = &v116 - v117 := float64(r.Float64()) + this.Timestamp = &v125 + v126 := float64(r.Float64()) if r.Intn(2) == 0 { - v117 *= -1 - } - this.Duration = &v117 - if r.Intn(10) != 0 { - v118 := uint64(uint64(r.Uint32())) - this.Cycles = &v118 - } - if r.Intn(10) != 0 { - v119 := uint64(uint64(r.Uint32())) - this.StalledCyclesFrontend = &v119 - } - if r.Intn(10) != 0 { - v120 := uint64(uint64(r.Uint32())) - this.StalledCyclesBackend = &v120 - } - if r.Intn(10) != 0 { - v121 := uint64(uint64(r.Uint32())) - this.Instructions = &v121 - } - if r.Intn(10) != 0 { - v122 := uint64(uint64(r.Uint32())) - this.CacheReferences = &v122 - } - if r.Intn(10) != 0 { - v123 := uint64(uint64(r.Uint32())) - this.CacheMisses = &v123 - } - if r.Intn(10) != 0 { - v124 := uint64(uint64(r.Uint32())) - this.Branches = &v124 - } - if r.Intn(10) != 0 { - v125 := uint64(uint64(r.Uint32())) - this.BranchMisses = &v125 - } - if r.Intn(10) != 0 { - v126 := uint64(uint64(r.Uint32())) - this.BusCycles = &v126 + v126 *= -1 } + this.Duration = &v126 if r.Intn(10) != 0 { v127 := uint64(uint64(r.Uint32())) - this.RefCycles = &v127 + this.Cycles = &v127 } if r.Intn(10) != 0 { - v128 := float64(r.Float64()) - if r.Intn(2) == 0 { - v128 *= -1 - } - this.CpuClock = &v128 + v128 := uint64(uint64(r.Uint32())) + this.StalledCyclesFrontend = &v128 } if r.Intn(10) != 0 { - v129 := float64(r.Float64()) - if r.Intn(2) == 0 { - v129 *= -1 - } - this.TaskClock = &v129 + v129 := uint64(uint64(r.Uint32())) + this.StalledCyclesBackend = &v129 } if r.Intn(10) != 0 { v130 := uint64(uint64(r.Uint32())) - this.PageFaults = &v130 + this.Instructions = &v130 } if r.Intn(10) != 0 { v131 := uint64(uint64(r.Uint32())) - this.MinorFaults = &v131 + this.CacheReferences = &v131 } if r.Intn(10) != 0 { v132 := uint64(uint64(r.Uint32())) - this.MajorFaults = &v132 + this.CacheMisses = &v132 } if r.Intn(10) != 0 { v133 := uint64(uint64(r.Uint32())) - this.ContextSwitches = &v133 + this.Branches = &v133 } if r.Intn(10) != 0 { v134 := uint64(uint64(r.Uint32())) - this.CpuMigrations = &v134 + this.BranchMisses = &v134 } if r.Intn(10) != 0 { v135 := uint64(uint64(r.Uint32())) - this.AlignmentFaults = &v135 + this.BusCycles = &v135 } if r.Intn(10) != 0 { v136 := uint64(uint64(r.Uint32())) - this.EmulationFaults = &v136 + this.RefCycles = &v136 } if r.Intn(10) != 0 { - v137 := uint64(uint64(r.Uint32())) - this.L1DcacheLoads = &v137 + v137 := float64(r.Float64()) + if r.Intn(2) == 0 { + v137 *= -1 + } + this.CpuClock = &v137 } if r.Intn(10) != 0 { - v138 := uint64(uint64(r.Uint32())) - this.L1DcacheLoadMisses = &v138 + v138 := float64(r.Float64()) + if r.Intn(2) == 0 { + v138 *= -1 + } + this.TaskClock = &v138 } if r.Intn(10) != 0 { v139 := uint64(uint64(r.Uint32())) - this.L1DcacheStores = &v139 + this.PageFaults = &v139 } if r.Intn(10) != 0 { v140 := uint64(uint64(r.Uint32())) - this.L1DcacheStoreMisses = &v140 + this.MinorFaults = &v140 } if r.Intn(10) != 0 { v141 := uint64(uint64(r.Uint32())) - this.L1DcachePrefetches = &v141 + this.MajorFaults = &v141 } if r.Intn(10) != 0 { v142 := uint64(uint64(r.Uint32())) - this.L1DcachePrefetchMisses = &v142 + this.ContextSwitches = &v142 } if r.Intn(10) != 0 { v143 := uint64(uint64(r.Uint32())) - this.L1IcacheLoads = &v143 + this.CpuMigrations = &v143 } if r.Intn(10) != 0 { v144 := uint64(uint64(r.Uint32())) - this.L1IcacheLoadMisses = &v144 + this.AlignmentFaults = &v144 } if r.Intn(10) != 0 { v145 := uint64(uint64(r.Uint32())) - this.L1IcachePrefetches = &v145 + this.EmulationFaults = &v145 } if r.Intn(10) != 0 { v146 := uint64(uint64(r.Uint32())) - this.L1IcachePrefetchMisses = &v146 + this.L1DcacheLoads = &v146 } if r.Intn(10) != 0 { v147 := uint64(uint64(r.Uint32())) - this.LlcLoads = &v147 + this.L1DcacheLoadMisses = &v147 } if r.Intn(10) != 0 { v148 := uint64(uint64(r.Uint32())) - this.LlcLoadMisses = &v148 + this.L1DcacheStores = &v148 } if r.Intn(10) != 0 { v149 := uint64(uint64(r.Uint32())) - this.LlcStores = &v149 + this.L1DcacheStoreMisses = &v149 } if r.Intn(10) != 0 { v150 := uint64(uint64(r.Uint32())) - this.LlcStoreMisses = &v150 + this.L1DcachePrefetches = &v150 } if r.Intn(10) != 0 { v151 := uint64(uint64(r.Uint32())) - this.LlcPrefetches = &v151 + this.L1DcachePrefetchMisses = &v151 } if r.Intn(10) != 0 { v152 := uint64(uint64(r.Uint32())) - this.LlcPrefetchMisses = &v152 + this.L1IcacheLoads = &v152 } if r.Intn(10) != 0 { v153 := uint64(uint64(r.Uint32())) - this.DtlbLoads = &v153 + this.L1IcacheLoadMisses = &v153 } if r.Intn(10) != 0 { v154 := uint64(uint64(r.Uint32())) - this.DtlbLoadMisses = &v154 + this.L1IcachePrefetches = &v154 } if r.Intn(10) != 0 { v155 := uint64(uint64(r.Uint32())) - this.DtlbStores = &v155 + this.L1IcachePrefetchMisses = &v155 } if r.Intn(10) != 0 { v156 := uint64(uint64(r.Uint32())) - this.DtlbStoreMisses = &v156 + this.LlcLoads = &v156 } if r.Intn(10) != 0 { v157 := uint64(uint64(r.Uint32())) - this.DtlbPrefetches = &v157 + this.LlcLoadMisses = &v157 } if r.Intn(10) != 0 { v158 := uint64(uint64(r.Uint32())) - this.DtlbPrefetchMisses = &v158 + this.LlcStores = &v158 } if r.Intn(10) != 0 { v159 := uint64(uint64(r.Uint32())) - this.ItlbLoads = &v159 + this.LlcStoreMisses = &v159 } if r.Intn(10) != 0 { v160 := uint64(uint64(r.Uint32())) - this.ItlbLoadMisses = &v160 + this.LlcPrefetches = &v160 } if r.Intn(10) != 0 { v161 := uint64(uint64(r.Uint32())) - this.BranchLoads = &v161 + this.LlcPrefetchMisses = &v161 } if r.Intn(10) != 0 { v162 := uint64(uint64(r.Uint32())) - this.BranchLoadMisses = &v162 + this.DtlbLoads = &v162 } if r.Intn(10) != 0 { v163 := uint64(uint64(r.Uint32())) - this.NodeLoads = &v163 + this.DtlbLoadMisses = &v163 } if r.Intn(10) != 0 { v164 := uint64(uint64(r.Uint32())) - this.NodeLoadMisses = &v164 + this.DtlbStores = &v164 } if r.Intn(10) != 0 { v165 := uint64(uint64(r.Uint32())) - this.NodeStores = &v165 + this.DtlbStoreMisses = &v165 } if r.Intn(10) != 0 { v166 := uint64(uint64(r.Uint32())) - this.NodeStoreMisses = &v166 + this.DtlbPrefetches = &v166 } if r.Intn(10) != 0 { v167 := uint64(uint64(r.Uint32())) - this.NodePrefetches = &v167 + this.DtlbPrefetchMisses = &v167 } if r.Intn(10) != 0 { v168 := uint64(uint64(r.Uint32())) - this.NodePrefetchMisses = &v168 + this.ItlbLoads = &v168 + } + if r.Intn(10) != 0 { + v169 := uint64(uint64(r.Uint32())) + this.ItlbLoadMisses = &v169 + } + if r.Intn(10) != 0 { + v170 := uint64(uint64(r.Uint32())) + this.BranchLoads = &v170 + } + if r.Intn(10) != 0 { + v171 := uint64(uint64(r.Uint32())) + this.BranchLoadMisses = &v171 + } + if r.Intn(10) != 0 { + v172 := uint64(uint64(r.Uint32())) + this.NodeLoads = &v172 + } + if r.Intn(10) != 0 { + v173 := uint64(uint64(r.Uint32())) + this.NodeLoadMisses = &v173 + } + if r.Intn(10) != 0 { + v174 := uint64(uint64(r.Uint32())) + this.NodeStores = &v174 + } + if r.Intn(10) != 0 { + v175 := uint64(uint64(r.Uint32())) + this.NodeStoreMisses = &v175 + } + if r.Intn(10) != 0 { + v176 := uint64(uint64(r.Uint32())) + this.NodePrefetches = &v176 + } + if r.Intn(10) != 0 { + v177 := uint64(uint64(r.Uint32())) + this.NodePrefetchMisses = &v177 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 54) @@ -18402,9 +19467,9 @@ func NewPopulatedRequest(r randyMesos, easy bool) *Request { this.SlaveId = NewPopulatedSlaveID(r, easy) } if r.Intn(10) != 0 { - v169 := r.Intn(10) - this.Resources = make([]*Resource, v169) - for i := 0; i < v169; i++ { + v178 := r.Intn(10) + this.Resources = make([]*Resource, v178) + for i := 0; i < v178; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } @@ -18419,39 +19484,42 @@ func NewPopulatedOffer(r randyMesos, easy bool) *Offer { this.Id = NewPopulatedOfferID(r, easy) this.FrameworkId = NewPopulatedFrameworkID(r, easy) this.SlaveId = NewPopulatedSlaveID(r, easy) - v170 := randStringMesos(r) - this.Hostname = &v170 + v179 := randStringMesos(r) + this.Hostname = &v179 if r.Intn(10) != 0 { - v171 := r.Intn(10) - this.Resources = make([]*Resource, v171) - for i := 0; i < v171; i++ { + v180 := r.Intn(10) + this.Resources = make([]*Resource, v180) + for i := 0; i < v180; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } if r.Intn(10) != 0 { - v172 := r.Intn(10) - this.ExecutorIds = make([]*ExecutorID, v172) - for i := 0; i < v172; i++ { + v181 := r.Intn(10) + this.ExecutorIds = make([]*ExecutorID, v181) + for i := 0; i < v181; i++ { this.ExecutorIds[i] = NewPopulatedExecutorID(r, easy) } } if r.Intn(10) != 0 { - v173 := r.Intn(10) - this.Attributes = make([]*Attribute, v173) - for i := 0; i < v173; i++ { + v182 := r.Intn(10) + this.Attributes = make([]*Attribute, v182) + for i := 0; i < v182; i++ { this.Attributes[i] = NewPopulatedAttribute(r, easy) } } + if r.Intn(10) != 0 { + this.Url = NewPopulatedURL(r, easy) + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 8) + this.XXX_unrecognized = randUnrecognizedMesos(r, 9) } return this } func NewPopulatedOffer_Operation(r randyMesos, easy bool) *Offer_Operation { this := &Offer_Operation{} - v174 := Offer_Operation_Type([]int32{1, 2, 3, 4, 5}[r.Intn(5)]) - this.Type = &v174 + v183 := Offer_Operation_Type([]int32{1, 2, 3, 4, 5}[r.Intn(5)]) + this.Type = &v183 if r.Intn(10) != 0 { this.Launch = NewPopulatedOffer_Operation_Launch(r, easy) } @@ -18476,9 +19544,9 @@ func NewPopulatedOffer_Operation(r randyMesos, easy bool) *Offer_Operation { func NewPopulatedOffer_Operation_Launch(r randyMesos, easy bool) *Offer_Operation_Launch { this := &Offer_Operation_Launch{} if r.Intn(10) != 0 { - v175 := r.Intn(10) - this.TaskInfos = make([]*TaskInfo, v175) - for i := 0; i < v175; i++ { + v184 := r.Intn(10) + this.TaskInfos = make([]*TaskInfo, v184) + for i := 0; i < v184; i++ { this.TaskInfos[i] = NewPopulatedTaskInfo(r, easy) } } @@ -18491,9 +19559,9 @@ func NewPopulatedOffer_Operation_Launch(r randyMesos, easy bool) *Offer_Operatio func NewPopulatedOffer_Operation_Reserve(r randyMesos, easy bool) *Offer_Operation_Reserve { this := &Offer_Operation_Reserve{} if r.Intn(10) != 0 { - v176 := r.Intn(10) - this.Resources = make([]*Resource, v176) - for i := 0; i < v176; i++ { + v185 := r.Intn(10) + this.Resources = make([]*Resource, v185) + for i := 0; i < v185; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } @@ -18506,9 +19574,9 @@ func NewPopulatedOffer_Operation_Reserve(r randyMesos, easy bool) *Offer_Operati func NewPopulatedOffer_Operation_Unreserve(r randyMesos, easy bool) *Offer_Operation_Unreserve { this := &Offer_Operation_Unreserve{} if r.Intn(10) != 0 { - v177 := r.Intn(10) - this.Resources = make([]*Resource, v177) - for i := 0; i < v177; i++ { + v186 := r.Intn(10) + this.Resources = make([]*Resource, v186) + for i := 0; i < v186; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } @@ -18521,9 +19589,9 @@ func NewPopulatedOffer_Operation_Unreserve(r randyMesos, easy bool) *Offer_Opera func NewPopulatedOffer_Operation_Create(r randyMesos, easy bool) *Offer_Operation_Create { this := &Offer_Operation_Create{} if r.Intn(10) != 0 { - v178 := r.Intn(10) - this.Volumes = make([]*Resource, v178) - for i := 0; i < v178; i++ { + v187 := r.Intn(10) + this.Volumes = make([]*Resource, v187) + for i := 0; i < v187; i++ { this.Volumes[i] = NewPopulatedResource(r, easy) } } @@ -18536,9 +19604,9 @@ func NewPopulatedOffer_Operation_Create(r randyMesos, easy bool) *Offer_Operatio func NewPopulatedOffer_Operation_Destroy(r randyMesos, easy bool) *Offer_Operation_Destroy { this := &Offer_Operation_Destroy{} if r.Intn(10) != 0 { - v179 := r.Intn(10) - this.Volumes = make([]*Resource, v179) - for i := 0; i < v179; i++ { + v188 := r.Intn(10) + this.Volumes = make([]*Resource, v188) + for i := 0; i < v188; i++ { this.Volumes[i] = NewPopulatedResource(r, easy) } } @@ -18550,14 +19618,14 @@ func NewPopulatedOffer_Operation_Destroy(r randyMesos, easy bool) *Offer_Operati func NewPopulatedTaskInfo(r randyMesos, easy bool) *TaskInfo { this := &TaskInfo{} - v180 := randStringMesos(r) - this.Name = &v180 + v189 := randStringMesos(r) + this.Name = &v189 this.TaskId = NewPopulatedTaskID(r, easy) this.SlaveId = NewPopulatedSlaveID(r, easy) if r.Intn(10) != 0 { - v181 := r.Intn(10) - this.Resources = make([]*Resource, v181) - for i := 0; i < v181; i++ { + v190 := r.Intn(10) + this.Resources = make([]*Resource, v190) + for i := 0; i < v190; i++ { this.Resources[i] = NewPopulatedResource(r, easy) } } @@ -18565,9 +19633,9 @@ func NewPopulatedTaskInfo(r randyMesos, easy bool) *TaskInfo { this.Executor = NewPopulatedExecutorInfo(r, easy) } if r.Intn(10) != 0 { - v182 := r.Intn(100) - this.Data = make([]byte, v182) - for i := 0; i < v182; i++ { + v191 := r.Intn(100) + this.Data = make([]byte, v191) + for i := 0; i < v191; i++ { this.Data[i] = byte(r.Intn(256)) } } @@ -18595,53 +19663,56 @@ func NewPopulatedTaskInfo(r randyMesos, easy bool) *TaskInfo { func NewPopulatedTaskStatus(r randyMesos, easy bool) *TaskStatus { this := &TaskStatus{} this.TaskId = NewPopulatedTaskID(r, easy) - v183 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)]) - this.State = &v183 + v192 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)]) + this.State = &v192 if r.Intn(10) != 0 { - v184 := r.Intn(100) - this.Data = make([]byte, v184) - for i := 0; i < v184; i++ { + v193 := r.Intn(100) + this.Data = make([]byte, v193) + for i := 0; i < v193; i++ { this.Data[i] = byte(r.Intn(256)) } } if r.Intn(10) != 0 { - v185 := randStringMesos(r) - this.Message = &v185 + v194 := randStringMesos(r) + this.Message = &v194 } if r.Intn(10) != 0 { this.SlaveId = NewPopulatedSlaveID(r, easy) } if r.Intn(10) != 0 { - v186 := float64(r.Float64()) + v195 := float64(r.Float64()) if r.Intn(2) == 0 { - v186 *= -1 + v195 *= -1 } - this.Timestamp = &v186 + this.Timestamp = &v195 } if r.Intn(10) != 0 { this.ExecutorId = NewPopulatedExecutorID(r, easy) } if r.Intn(10) != 0 { - v187 := bool(bool(r.Intn(2) == 0)) - this.Healthy = &v187 + v196 := bool(bool(r.Intn(2) == 0)) + this.Healthy = &v196 } if r.Intn(10) != 0 { - v188 := TaskStatus_Source([]int32{0, 1, 2}[r.Intn(3)]) - this.Source = &v188 + v197 := TaskStatus_Source([]int32{0, 1, 2}[r.Intn(3)]) + this.Source = &v197 } if r.Intn(10) != 0 { - v189 := TaskStatus_Reason([]int32{0, 17, 1, 2, 3, 4, 5, 6, 7, 8, 9, 18, 10, 11, 12, 13, 14, 15, 16}[r.Intn(19)]) - this.Reason = &v189 + v198 := TaskStatus_Reason([]int32{0, 17, 1, 2, 3, 4, 5, 6, 7, 8, 9, 18, 10, 11, 12, 13, 14, 15, 16}[r.Intn(19)]) + this.Reason = &v198 } if r.Intn(10) != 0 { - v190 := r.Intn(100) - this.Uuid = make([]byte, v190) - for i := 0; i < v190; i++ { + v199 := r.Intn(100) + this.Uuid = make([]byte, v199) + for i := 0; i < v199; i++ { this.Uuid[i] = byte(r.Intn(256)) } } + if r.Intn(10) != 0 { + this.Labels = NewPopulatedLabels(r, easy) + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 12) + this.XXX_unrecognized = randUnrecognizedMesos(r, 13) } return this } @@ -18649,11 +19720,11 @@ func NewPopulatedTaskStatus(r randyMesos, easy bool) *TaskStatus { func NewPopulatedFilters(r randyMesos, easy bool) *Filters { this := &Filters{} if r.Intn(10) != 0 { - v191 := float64(r.Float64()) + v200 := float64(r.Float64()) if r.Intn(2) == 0 { - v191 *= -1 + v200 *= -1 } - this.RefuseSeconds = &v191 + this.RefuseSeconds = &v200 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 2) @@ -18664,9 +19735,9 @@ func NewPopulatedFilters(r randyMesos, easy bool) *Filters { func NewPopulatedEnvironment(r randyMesos, easy bool) *Environment { this := &Environment{} if r.Intn(10) != 0 { - v192 := r.Intn(10) - this.Variables = make([]*Environment_Variable, v192) - for i := 0; i < v192; i++ { + v201 := r.Intn(10) + this.Variables = make([]*Environment_Variable, v201) + for i := 0; i < v201; i++ { this.Variables[i] = NewPopulatedEnvironment_Variable(r, easy) } } @@ -18678,10 +19749,10 @@ func NewPopulatedEnvironment(r randyMesos, easy bool) *Environment { func NewPopulatedEnvironment_Variable(r randyMesos, easy bool) *Environment_Variable { this := &Environment_Variable{} - v193 := randStringMesos(r) - this.Name = &v193 - v194 := randStringMesos(r) - this.Value = &v194 + v202 := randStringMesos(r) + this.Name = &v202 + v203 := randStringMesos(r) + this.Value = &v203 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 3) } @@ -18690,10 +19761,10 @@ func NewPopulatedEnvironment_Variable(r randyMesos, easy bool) *Environment_Vari func NewPopulatedParameter(r randyMesos, easy bool) *Parameter { this := &Parameter{} - v195 := randStringMesos(r) - this.Key = &v195 - v196 := randStringMesos(r) - this.Value = &v196 + v204 := randStringMesos(r) + this.Key = &v204 + v205 := randStringMesos(r) + this.Value = &v205 if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 3) } @@ -18703,9 +19774,9 @@ func NewPopulatedParameter(r randyMesos, easy bool) *Parameter { func NewPopulatedParameters(r randyMesos, easy bool) *Parameters { this := &Parameters{} if r.Intn(10) != 0 { - v197 := r.Intn(10) - this.Parameter = make([]*Parameter, v197) - for i := 0; i < v197; i++ { + v206 := r.Intn(10) + this.Parameter = make([]*Parameter, v206) + for i := 0; i < v206; i++ { this.Parameter[i] = NewPopulatedParameter(r, easy) } } @@ -18717,55 +19788,13 @@ func NewPopulatedParameters(r randyMesos, easy bool) *Parameters { func NewPopulatedCredential(r randyMesos, easy bool) *Credential { this := &Credential{} - v198 := randStringMesos(r) - this.Principal = &v198 - if r.Intn(10) != 0 { - v199 := r.Intn(100) - this.Secret = make([]byte, v199) - for i := 0; i < v199; i++ { - this.Secret[i] = byte(r.Intn(256)) - } - } - if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 3) - } - return this -} - -func NewPopulatedCredentials(r randyMesos, easy bool) *Credentials { - this := &Credentials{} - if r.Intn(10) != 0 { - v200 := r.Intn(10) - this.Credentials = make([]*Credential, v200) - for i := 0; i < v200; i++ { - this.Credentials[i] = NewPopulatedCredential(r, easy) - } - } - if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 2) - } - return this -} - -func NewPopulatedACL(r randyMesos, easy bool) *ACL { - this := &ACL{} - if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 1) - } - return this -} - -func NewPopulatedACL_Entity(r randyMesos, easy bool) *ACL_Entity { - this := &ACL_Entity{} - if r.Intn(10) != 0 { - v201 := ACL_Entity_Type([]int32{0, 1, 2}[r.Intn(3)]) - this.Type = &v201 - } + v207 := randStringMesos(r) + this.Principal = &v207 if r.Intn(10) != 0 { - v202 := r.Intn(10) - this.Values = make([]string, v202) - for i := 0; i < v202; i++ { - this.Values[i] = randStringMesos(r) + v208 := r.Intn(100) + this.Secret = make([]byte, v208) + for i := 0; i < v208; i++ { + this.Secret[i] = byte(r.Intn(256)) } } if !easy && r.Intn(10) != 0 { @@ -18774,83 +19803,77 @@ func NewPopulatedACL_Entity(r randyMesos, easy bool) *ACL_Entity { return this } -func NewPopulatedACL_RegisterFramework(r randyMesos, easy bool) *ACL_RegisterFramework { - this := &ACL_RegisterFramework{} - this.Principals = NewPopulatedACL_Entity(r, easy) - this.Roles = NewPopulatedACL_Entity(r, easy) - if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 3) +func NewPopulatedCredentials(r randyMesos, easy bool) *Credentials { + this := &Credentials{} + if r.Intn(10) != 0 { + v209 := r.Intn(10) + this.Credentials = make([]*Credential, v209) + for i := 0; i < v209; i++ { + this.Credentials[i] = NewPopulatedCredential(r, easy) + } } - return this -} - -func NewPopulatedACL_RunTask(r randyMesos, easy bool) *ACL_RunTask { - this := &ACL_RunTask{} - this.Principals = NewPopulatedACL_Entity(r, easy) - this.Users = NewPopulatedACL_Entity(r, easy) if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 3) + this.XXX_unrecognized = randUnrecognizedMesos(r, 2) } return this } -func NewPopulatedACL_ShutdownFramework(r randyMesos, easy bool) *ACL_ShutdownFramework { - this := &ACL_ShutdownFramework{} - this.Principals = NewPopulatedACL_Entity(r, easy) - this.FrameworkPrincipals = NewPopulatedACL_Entity(r, easy) +func NewPopulatedRateLimit(r randyMesos, easy bool) *RateLimit { + this := &RateLimit{} + if r.Intn(10) != 0 { + v210 := float64(r.Float64()) + if r.Intn(2) == 0 { + v210 *= -1 + } + this.Qps = &v210 + } + v211 := randStringMesos(r) + this.Principal = &v211 + if r.Intn(10) != 0 { + v212 := uint64(uint64(r.Uint32())) + this.Capacity = &v212 + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 3) + this.XXX_unrecognized = randUnrecognizedMesos(r, 4) } return this } -func NewPopulatedACLs(r randyMesos, easy bool) *ACLs { - this := &ACLs{} - if r.Intn(10) != 0 { - v203 := bool(bool(r.Intn(2) == 0)) - this.Permissive = &v203 - } +func NewPopulatedRateLimits(r randyMesos, easy bool) *RateLimits { + this := &RateLimits{} if r.Intn(10) != 0 { - v204 := r.Intn(10) - this.RegisterFrameworks = make([]*ACL_RegisterFramework, v204) - for i := 0; i < v204; i++ { - this.RegisterFrameworks[i] = NewPopulatedACL_RegisterFramework(r, easy) + v213 := r.Intn(10) + this.Limits = make([]*RateLimit, v213) + for i := 0; i < v213; i++ { + this.Limits[i] = NewPopulatedRateLimit(r, easy) } } if r.Intn(10) != 0 { - v205 := r.Intn(10) - this.RunTasks = make([]*ACL_RunTask, v205) - for i := 0; i < v205; i++ { - this.RunTasks[i] = NewPopulatedACL_RunTask(r, easy) + v214 := float64(r.Float64()) + if r.Intn(2) == 0 { + v214 *= -1 } + this.AggregateDefaultQps = &v214 } if r.Intn(10) != 0 { - v206 := r.Intn(10) - this.ShutdownFrameworks = make([]*ACL_ShutdownFramework, v206) - for i := 0; i < v206; i++ { - this.ShutdownFrameworks[i] = NewPopulatedACL_ShutdownFramework(r, easy) - } + v215 := uint64(uint64(r.Uint32())) + this.AggregateDefaultCapacity = &v215 } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 5) + this.XXX_unrecognized = randUnrecognizedMesos(r, 4) } return this } -func NewPopulatedRateLimit(r randyMesos, easy bool) *RateLimit { - this := &RateLimit{} +func NewPopulatedImage(r randyMesos, easy bool) *Image { + this := &Image{} + v216 := Image_Type([]int32{1, 2}[r.Intn(2)]) + this.Type = &v216 if r.Intn(10) != 0 { - v207 := float64(r.Float64()) - if r.Intn(2) == 0 { - v207 *= -1 - } - this.Qps = &v207 + this.Appc = NewPopulatedImage_AppC(r, easy) } - v208 := randStringMesos(r) - this.Principal = &v208 if r.Intn(10) != 0 { - v209 := uint64(uint64(r.Uint32())) - this.Capacity = &v209 + this.Docker = NewPopulatedImage_Docker(r, easy) } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 4) @@ -18858,25 +19881,16 @@ func NewPopulatedRateLimit(r randyMesos, easy bool) *RateLimit { return this } -func NewPopulatedRateLimits(r randyMesos, easy bool) *RateLimits { - this := &RateLimits{} - if r.Intn(10) != 0 { - v210 := r.Intn(10) - this.Limits = make([]*RateLimit, v210) - for i := 0; i < v210; i++ { - this.Limits[i] = NewPopulatedRateLimit(r, easy) - } - } +func NewPopulatedImage_AppC(r randyMesos, easy bool) *Image_AppC { + this := &Image_AppC{} + v217 := randStringMesos(r) + this.Name = &v217 if r.Intn(10) != 0 { - v211 := float64(r.Float64()) - if r.Intn(2) == 0 { - v211 *= -1 - } - this.AggregateDefaultQps = &v211 + v218 := randStringMesos(r) + this.Id = &v218 } if r.Intn(10) != 0 { - v212 := uint64(uint64(r.Uint32())) - this.AggregateDefaultCapacity = &v212 + this.Labels = NewPopulatedLabels(r, easy) } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 4) @@ -18884,30 +19898,43 @@ func NewPopulatedRateLimits(r randyMesos, easy bool) *RateLimits { return this } +func NewPopulatedImage_Docker(r randyMesos, easy bool) *Image_Docker { + this := &Image_Docker{} + v219 := randStringMesos(r) + this.Name = &v219 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 2) + } + return this +} + func NewPopulatedVolume(r randyMesos, easy bool) *Volume { this := &Volume{} - v213 := randStringMesos(r) - this.ContainerPath = &v213 + v220 := randStringMesos(r) + this.ContainerPath = &v220 + if r.Intn(10) != 0 { + v221 := randStringMesos(r) + this.HostPath = &v221 + } + v222 := Volume_Mode([]int32{1, 2}[r.Intn(2)]) + this.Mode = &v222 if r.Intn(10) != 0 { - v214 := randStringMesos(r) - this.HostPath = &v214 + this.Image = NewPopulatedImage(r, easy) } - v215 := Volume_Mode([]int32{1, 2}[r.Intn(2)]) - this.Mode = &v215 if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 4) + this.XXX_unrecognized = randUnrecognizedMesos(r, 5) } return this } func NewPopulatedContainerInfo(r randyMesos, easy bool) *ContainerInfo { this := &ContainerInfo{} - v216 := ContainerInfo_Type([]int32{1, 2}[r.Intn(2)]) - this.Type = &v216 + v223 := ContainerInfo_Type([]int32{1, 2}[r.Intn(2)]) + this.Type = &v223 if r.Intn(10) != 0 { - v217 := r.Intn(10) - this.Volumes = make([]*Volume, v217) - for i := 0; i < v217; i++ { + v224 := r.Intn(10) + this.Volumes = make([]*Volume, v224) + for i := 0; i < v224; i++ { this.Volumes[i] = NewPopulatedVolume(r, easy) } } @@ -18915,44 +19942,47 @@ func NewPopulatedContainerInfo(r randyMesos, easy bool) *ContainerInfo { this.Docker = NewPopulatedContainerInfo_DockerInfo(r, easy) } if r.Intn(10) != 0 { - v218 := randStringMesos(r) - this.Hostname = &v218 + v225 := randStringMesos(r) + this.Hostname = &v225 + } + if r.Intn(10) != 0 { + this.Mesos = NewPopulatedContainerInfo_MesosInfo(r, easy) } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedMesos(r, 5) + this.XXX_unrecognized = randUnrecognizedMesos(r, 6) } return this } func NewPopulatedContainerInfo_DockerInfo(r randyMesos, easy bool) *ContainerInfo_DockerInfo { this := &ContainerInfo_DockerInfo{} - v219 := randStringMesos(r) - this.Image = &v219 + v226 := randStringMesos(r) + this.Image = &v226 if r.Intn(10) != 0 { - v220 := ContainerInfo_DockerInfo_Network([]int32{1, 2, 3}[r.Intn(3)]) - this.Network = &v220 + v227 := ContainerInfo_DockerInfo_Network([]int32{1, 2, 3}[r.Intn(3)]) + this.Network = &v227 } if r.Intn(10) != 0 { - v221 := r.Intn(10) - this.PortMappings = make([]*ContainerInfo_DockerInfo_PortMapping, v221) - for i := 0; i < v221; i++ { + v228 := r.Intn(10) + this.PortMappings = make([]*ContainerInfo_DockerInfo_PortMapping, v228) + for i := 0; i < v228; i++ { this.PortMappings[i] = NewPopulatedContainerInfo_DockerInfo_PortMapping(r, easy) } } if r.Intn(10) != 0 { - v222 := bool(bool(r.Intn(2) == 0)) - this.Privileged = &v222 + v229 := bool(bool(r.Intn(2) == 0)) + this.Privileged = &v229 } if r.Intn(10) != 0 { - v223 := r.Intn(10) - this.Parameters = make([]*Parameter, v223) - for i := 0; i < v223; i++ { + v230 := r.Intn(10) + this.Parameters = make([]*Parameter, v230) + for i := 0; i < v230; i++ { this.Parameters[i] = NewPopulatedParameter(r, easy) } } if r.Intn(10) != 0 { - v224 := bool(bool(r.Intn(2) == 0)) - this.ForcePullImage = &v224 + v231 := bool(bool(r.Intn(2) == 0)) + this.ForcePullImage = &v231 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 7) @@ -18962,13 +19992,13 @@ func NewPopulatedContainerInfo_DockerInfo(r randyMesos, easy bool) *ContainerInf func NewPopulatedContainerInfo_DockerInfo_PortMapping(r randyMesos, easy bool) *ContainerInfo_DockerInfo_PortMapping { this := &ContainerInfo_DockerInfo_PortMapping{} - v225 := uint32(r.Uint32()) - this.HostPort = &v225 - v226 := uint32(r.Uint32()) - this.ContainerPort = &v226 + v232 := uint32(r.Uint32()) + this.HostPort = &v232 + v233 := uint32(r.Uint32()) + this.ContainerPort = &v233 if r.Intn(10) != 0 { - v227 := randStringMesos(r) - this.Protocol = &v227 + v234 := randStringMesos(r) + this.Protocol = &v234 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 4) @@ -18976,12 +20006,23 @@ func NewPopulatedContainerInfo_DockerInfo_PortMapping(r randyMesos, easy bool) * return this } +func NewPopulatedContainerInfo_MesosInfo(r randyMesos, easy bool) *ContainerInfo_MesosInfo { + this := &ContainerInfo_MesosInfo{} + if r.Intn(10) != 0 { + this.Image = NewPopulatedImage(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 2) + } + return this +} + func NewPopulatedLabels(r randyMesos, easy bool) *Labels { this := &Labels{} if r.Intn(10) != 0 { - v228 := r.Intn(10) - this.Labels = make([]*Label, v228) - for i := 0; i < v228; i++ { + v235 := r.Intn(10) + this.Labels = make([]*Label, v235) + for i := 0; i < v235; i++ { this.Labels[i] = NewPopulatedLabel(r, easy) } } @@ -18993,11 +20034,11 @@ func NewPopulatedLabels(r randyMesos, easy bool) *Labels { func NewPopulatedLabel(r randyMesos, easy bool) *Label { this := &Label{} - v229 := randStringMesos(r) - this.Key = &v229 + v236 := randStringMesos(r) + this.Key = &v236 if r.Intn(10) != 0 { - v230 := randStringMesos(r) - this.Value = &v230 + v237 := randStringMesos(r) + this.Value = &v237 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 3) @@ -19007,15 +20048,15 @@ func NewPopulatedLabel(r randyMesos, easy bool) *Label { func NewPopulatedPort(r randyMesos, easy bool) *Port { this := &Port{} - v231 := uint32(r.Uint32()) - this.Number = &v231 + v238 := uint32(r.Uint32()) + this.Number = &v238 if r.Intn(10) != 0 { - v232 := randStringMesos(r) - this.Name = &v232 + v239 := randStringMesos(r) + this.Name = &v239 } if r.Intn(10) != 0 { - v233 := randStringMesos(r) - this.Protocol = &v233 + v240 := randStringMesos(r) + this.Protocol = &v240 } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedMesos(r, 4) @@ -19026,9 +20067,9 @@ func NewPopulatedPort(r randyMesos, easy bool) *Port { func NewPopulatedPorts(r randyMesos, easy bool) *Ports { this := &Ports{} if r.Intn(10) != 0 { - v234 := r.Intn(10) - this.Ports = make([]*Port, v234) - for i := 0; i < v234; i++ { + v241 := r.Intn(10) + this.Ports = make([]*Port, v241) + for i := 0; i < v241; i++ { this.Ports[i] = NewPopulatedPort(r, easy) } } @@ -19040,23 +20081,23 @@ func NewPopulatedPorts(r randyMesos, easy bool) *Ports { func NewPopulatedDiscoveryInfo(r randyMesos, easy bool) *DiscoveryInfo { this := &DiscoveryInfo{} - v235 := DiscoveryInfo_Visibility([]int32{0, 1, 2}[r.Intn(3)]) - this.Visibility = &v235 + v242 := DiscoveryInfo_Visibility([]int32{0, 1, 2}[r.Intn(3)]) + this.Visibility = &v242 if r.Intn(10) != 0 { - v236 := randStringMesos(r) - this.Name = &v236 + v243 := randStringMesos(r) + this.Name = &v243 } if r.Intn(10) != 0 { - v237 := randStringMesos(r) - this.Environment = &v237 + v244 := randStringMesos(r) + this.Environment = &v244 } if r.Intn(10) != 0 { - v238 := randStringMesos(r) - this.Location = &v238 + v245 := randStringMesos(r) + this.Location = &v245 } if r.Intn(10) != 0 { - v239 := randStringMesos(r) - this.Version = &v239 + v246 := randStringMesos(r) + this.Version = &v246 } if r.Intn(10) != 0 { this.Ports = NewPopulatedPorts(r, easy) @@ -19070,6 +20111,58 @@ func NewPopulatedDiscoveryInfo(r randyMesos, easy bool) *DiscoveryInfo { return this } +func NewPopulatedAppcImageManifest(r randyMesos, easy bool) *AppcImageManifest { + this := &AppcImageManifest{} + v247 := randStringMesos(r) + this.AcKind = &v247 + v248 := randStringMesos(r) + this.AcVersion = &v248 + v249 := randStringMesos(r) + this.Name = &v249 + if r.Intn(10) != 0 { + v250 := r.Intn(10) + this.Labels = make([]*AppcImageManifest_Label, v250) + for i := 0; i < v250; i++ { + this.Labels[i] = NewPopulatedAppcImageManifest_Label(r, easy) + } + } + if r.Intn(10) != 0 { + v251 := r.Intn(10) + this.Annotations = make([]*AppcImageManifest_Annotation, v251) + for i := 0; i < v251; i++ { + this.Annotations[i] = NewPopulatedAppcImageManifest_Annotation(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 6) + } + return this +} + +func NewPopulatedAppcImageManifest_Label(r randyMesos, easy bool) *AppcImageManifest_Label { + this := &AppcImageManifest_Label{} + v252 := randStringMesos(r) + this.Name = &v252 + v253 := randStringMesos(r) + this.Value = &v253 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 3) + } + return this +} + +func NewPopulatedAppcImageManifest_Annotation(r randyMesos, easy bool) *AppcImageManifest_Annotation { + this := &AppcImageManifest_Annotation{} + v254 := randStringMesos(r) + this.Name = &v254 + v255 := randStringMesos(r) + this.Value = &v255 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMesos(r, 3) + } + return this +} + type randyMesos interface { Float32() float32 Float64() float64 @@ -19089,9 +20182,9 @@ func randUTF8RuneMesos(r randyMesos) rune { return rune(ru + 61) } func randStringMesos(r randyMesos) string { - v240 := r.Intn(100) - tmps := make([]rune, v240) - for i := 0; i < v240; i++ { + v256 := r.Intn(100) + tmps := make([]rune, v256) + for i := 0; i < v256; i++ { tmps[i] = randUTF8RuneMesos(r) } return string(tmps) @@ -19113,11 +20206,11 @@ func randFieldMesos(data []byte, r randyMesos, fieldNumber int, wire int) []byte switch wire { case 0: data = encodeVarintPopulateMesos(data, uint64(key)) - v241 := r.Int63() + v257 := r.Int63() if r.Intn(2) == 0 { - v241 *= -1 + v257 *= -1 } - data = encodeVarintPopulateMesos(data, uint64(v241)) + data = encodeVarintPopulateMesos(data, uint64(v257)) case 1: data = encodeVarintPopulateMesos(data, uint64(key)) 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))) @@ -19220,6 +20313,57 @@ func (m *ContainerID) Size() (n int) { return n } +func (m *Address) Size() (n int) { + var l int + _ = l + if m.Hostname != nil { + l = len(*m.Hostname) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Ip != nil { + l = len(*m.Ip) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Port != nil { + n += 1 + sovMesos(uint64(*m.Port)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *URL) Size() (n int) { + var l int + _ = l + if m.Scheme != nil { + l = len(*m.Scheme) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovMesos(uint64(l)) + } + if m.Path != nil { + l = len(*m.Path) + n += 1 + l + sovMesos(uint64(l)) + } + if len(m.Query) > 0 { + for _, e := range m.Query { + l = e.Size() + n += 1 + l + sovMesos(uint64(l)) + } + } + if m.Fragment != nil { + l = len(*m.Fragment) + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *FrameworkInfo) Size() (n int) { var l int _ = l @@ -19263,6 +20407,10 @@ func (m *FrameworkInfo) Size() (n int) { n += 1 + l + sovMesos(uint64(l)) } } + if m.Labels != nil { + l = m.Labels.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -19487,6 +20635,10 @@ func (m *MasterInfo) Size() (n int) { l = len(*m.Version) n += 1 + l + sovMesos(uint64(l)) } + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -19921,6 +21073,9 @@ func (m *ResourceStatistics) Size() (n int) { if m.MemSwapBytes != nil { n += 2 + sovMesos(uint64(*m.MemSwapBytes)) } + if m.MemUnevictableBytes != nil { + n += 2 + sovMesos(uint64(*m.MemUnevictableBytes)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -19936,6 +21091,12 @@ func (m *ResourceUsage) Size() (n int) { n += 1 + l + sovMesos(uint64(l)) } } + if len(m.Total) > 0 { + for _, e := range m.Total { + l = e.Size() + n += 1 + l + sovMesos(uint64(l)) + } + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -20189,6 +21350,10 @@ func (m *Offer) Size() (n int) { n += 1 + l + sovMesos(uint64(l)) } } + if m.Url != nil { + l = m.Url.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -20399,6 +21564,10 @@ func (m *TaskStatus) Size() (n int) { l = len(m.Uuid) n += 1 + l + sovMesos(uint64(l)) } + if m.Labels != nil { + l = m.Labels.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -20435,104 +21604,13 @@ func (m *Environment) Size() (n int) { func (m *Environment_Variable) Size() (n int) { var l int _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovMesos(uint64(l)) - } - if m.Value != nil { - l = len(*m.Value) - n += 1 + l + sovMesos(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Parameter) Size() (n int) { - var l int - _ = l - if m.Key != nil { - l = len(*m.Key) - n += 1 + l + sovMesos(uint64(l)) - } - if m.Value != nil { - l = len(*m.Value) - n += 1 + l + sovMesos(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Parameters) Size() (n int) { - var l int - _ = l - if len(m.Parameter) > 0 { - for _, e := range m.Parameter { - l = e.Size() - n += 1 + l + sovMesos(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Credential) Size() (n int) { - var l int - _ = l - if m.Principal != nil { - l = len(*m.Principal) - n += 1 + l + sovMesos(uint64(l)) - } - if m.Secret != nil { - l = len(m.Secret) - n += 1 + l + sovMesos(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Credentials) Size() (n int) { - var l int - _ = l - if len(m.Credentials) > 0 { - for _, e := range m.Credentials { - l = e.Size() - n += 1 + l + sovMesos(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ACL) Size() (n int) { - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ACL_Entity) Size() (n int) { - var l int - _ = l - if m.Type != nil { - n += 1 + sovMesos(uint64(*m.Type)) + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) } - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovMesos(uint64(l)) - } + if m.Value != nil { + l = len(*m.Value) + n += 1 + l + sovMesos(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -20540,15 +21618,15 @@ func (m *ACL_Entity) Size() (n int) { return n } -func (m *ACL_RegisterFramework) Size() (n int) { +func (m *Parameter) Size() (n int) { var l int _ = l - if m.Principals != nil { - l = m.Principals.Size() + if m.Key != nil { + l = len(*m.Key) n += 1 + l + sovMesos(uint64(l)) } - if m.Roles != nil { - l = m.Roles.Size() + if m.Value != nil { + l = len(*m.Value) n += 1 + l + sovMesos(uint64(l)) } if m.XXX_unrecognized != nil { @@ -20557,16 +21635,14 @@ func (m *ACL_RegisterFramework) Size() (n int) { return n } -func (m *ACL_RunTask) Size() (n int) { +func (m *Parameters) Size() (n int) { var l int _ = l - if m.Principals != nil { - l = m.Principals.Size() - n += 1 + l + sovMesos(uint64(l)) - } - if m.Users != nil { - l = m.Users.Size() - n += 1 + l + sovMesos(uint64(l)) + if len(m.Parameter) > 0 { + for _, e := range m.Parameter { + l = e.Size() + n += 1 + l + sovMesos(uint64(l)) + } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -20574,15 +21650,15 @@ func (m *ACL_RunTask) Size() (n int) { return n } -func (m *ACL_ShutdownFramework) Size() (n int) { +func (m *Credential) Size() (n int) { var l int _ = l - if m.Principals != nil { - l = m.Principals.Size() + if m.Principal != nil { + l = len(*m.Principal) n += 1 + l + sovMesos(uint64(l)) } - if m.FrameworkPrincipals != nil { - l = m.FrameworkPrincipals.Size() + if m.Secret != nil { + l = len(m.Secret) n += 1 + l + sovMesos(uint64(l)) } if m.XXX_unrecognized != nil { @@ -20591,26 +21667,11 @@ func (m *ACL_ShutdownFramework) Size() (n int) { return n } -func (m *ACLs) Size() (n int) { +func (m *Credentials) Size() (n int) { var l int _ = l - if m.Permissive != nil { - n += 2 - } - if len(m.RegisterFrameworks) > 0 { - for _, e := range m.RegisterFrameworks { - l = e.Size() - n += 1 + l + sovMesos(uint64(l)) - } - } - if len(m.RunTasks) > 0 { - for _, e := range m.RunTasks { - l = e.Size() - n += 1 + l + sovMesos(uint64(l)) - } - } - if len(m.ShutdownFrameworks) > 0 { - for _, e := range m.ShutdownFrameworks { + if len(m.Credentials) > 0 { + for _, e := range m.Credentials { l = e.Size() n += 1 + l + sovMesos(uint64(l)) } @@ -20661,6 +21722,60 @@ func (m *RateLimits) Size() (n int) { return n } +func (m *Image) Size() (n int) { + var l int + _ = l + if m.Type != nil { + n += 1 + sovMesos(uint64(*m.Type)) + } + if m.Appc != nil { + l = m.Appc.Size() + n += 1 + l + sovMesos(uint64(l)) + } + if m.Docker != nil { + l = m.Docker.Size() + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Image_AppC) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Id != nil { + l = len(*m.Id) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Labels != nil { + l = m.Labels.Size() + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Image_Docker) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *Volume) Size() (n int) { var l int _ = l @@ -20675,6 +21790,10 @@ func (m *Volume) Size() (n int) { if m.Mode != nil { n += 1 + sovMesos(uint64(*m.Mode)) } + if m.Image != nil { + l = m.Image.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -20701,6 +21820,10 @@ func (m *ContainerInfo) Size() (n int) { l = len(*m.Hostname) n += 1 + l + sovMesos(uint64(l)) } + if m.Mesos != nil { + l = m.Mesos.Size() + n += 1 + l + sovMesos(uint64(l)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -20760,6 +21883,19 @@ func (m *ContainerInfo_DockerInfo_PortMapping) Size() (n int) { return n } +func (m *ContainerInfo_MesosInfo) Size() (n int) { + var l int + _ = l + if m.Image != nil { + l = m.Image.Size() + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *Labels) Size() (n int) { var l int _ = l @@ -20863,6 +21999,73 @@ func (m *DiscoveryInfo) Size() (n int) { return n } +func (m *AppcImageManifest) Size() (n int) { + var l int + _ = l + if m.AcKind != nil { + l = len(*m.AcKind) + n += 1 + l + sovMesos(uint64(l)) + } + if m.AcVersion != nil { + l = len(*m.AcVersion) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) + } + if len(m.Labels) > 0 { + for _, e := range m.Labels { + l = e.Size() + n += 1 + l + sovMesos(uint64(l)) + } + } + if len(m.Annotations) > 0 { + for _, e := range m.Annotations { + l = e.Size() + n += 1 + l + sovMesos(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AppcImageManifest_Label) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Value != nil { + l = len(*m.Value) + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *AppcImageManifest_Annotation) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMesos(uint64(l)) + } + if m.Value != nil { + l = len(*m.Value) + n += 1 + l + sovMesos(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func sovMesos(x uint64) (n int) { for { n++ @@ -20942,6 +22145,34 @@ func (this *ContainerID) String() string { }, "") return s } +func (this *Address) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Address{`, + `Hostname:` + valueToStringMesos(this.Hostname) + `,`, + `Ip:` + valueToStringMesos(this.Ip) + `,`, + `Port:` + valueToStringMesos(this.Port) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *URL) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&URL{`, + `Scheme:` + valueToStringMesos(this.Scheme) + `,`, + `Address:` + strings.Replace(fmt.Sprintf("%v", this.Address), "Address", "Address", 1) + `,`, + `Path:` + valueToStringMesos(this.Path) + `,`, + `Query:` + strings.Replace(fmt.Sprintf("%v", this.Query), "Parameter", "Parameter", 1) + `,`, + `Fragment:` + valueToStringMesos(this.Fragment) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} func (this *FrameworkInfo) String() string { if this == nil { return "nil" @@ -20957,6 +22188,7 @@ func (this *FrameworkInfo) String() string { `Principal:` + valueToStringMesos(this.Principal) + `,`, `WebuiUrl:` + valueToStringMesos(this.WebuiUrl) + `,`, `Capabilities:` + strings.Replace(fmt.Sprintf("%v", this.Capabilities), "FrameworkInfo_Capability", "FrameworkInfo_Capability", 1) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21076,6 +22308,7 @@ func (this *MasterInfo) String() string { `Pid:` + valueToStringMesos(this.Pid) + `,`, `Hostname:` + valueToStringMesos(this.Hostname) + `,`, `Version:` + valueToStringMesos(this.Version) + `,`, + `Address:` + strings.Replace(fmt.Sprintf("%v", this.Address), "Address", "Address", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21312,6 +22545,7 @@ func (this *ResourceStatistics) String() string { `MemSoftLimitBytes:` + valueToStringMesos(this.MemSoftLimitBytes) + `,`, `MemCacheBytes:` + valueToStringMesos(this.MemCacheBytes) + `,`, `MemSwapBytes:` + valueToStringMesos(this.MemSwapBytes) + `,`, + `MemUnevictableBytes:` + valueToStringMesos(this.MemUnevictableBytes) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21323,6 +22557,7 @@ func (this *ResourceUsage) String() string { } s := strings.Join([]string{`&ResourceUsage{`, `Executors:` + strings.Replace(fmt.Sprintf("%v", this.Executors), "ResourceUsage_Executor", "ResourceUsage_Executor", 1) + `,`, + `Total:` + strings.Replace(fmt.Sprintf("%v", this.Total), "Resource", "Resource", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21428,6 +22663,7 @@ func (this *Offer) String() string { `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`, `ExecutorIds:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorIds), "ExecutorID", "ExecutorID", 1) + `,`, `Attributes:` + strings.Replace(fmt.Sprintf("%v", this.Attributes), "Attribute", "Attribute", 1) + `,`, + `Url:` + strings.Replace(fmt.Sprintf("%v", this.Url), "URL", "URL", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21541,6 +22777,7 @@ func (this *TaskStatus) String() string { `Source:` + valueToStringMesos(this.Source) + `,`, `Reason:` + valueToStringMesos(this.Reason) + `,`, `Uuid:` + valueToStringMesos(this.Uuid) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") @@ -21580,279 +22817,608 @@ func (this *Environment_Variable) String() string { }, "") return s } -func (this *Parameter) String() string { +func (this *Parameter) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Parameter{`, + `Key:` + valueToStringMesos(this.Key) + `,`, + `Value:` + valueToStringMesos(this.Value) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Parameters) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Parameters{`, + `Parameter:` + strings.Replace(fmt.Sprintf("%v", this.Parameter), "Parameter", "Parameter", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Credential) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Credential{`, + `Principal:` + valueToStringMesos(this.Principal) + `,`, + `Secret:` + valueToStringMesos(this.Secret) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Credentials) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Credentials{`, + `Credentials:` + strings.Replace(fmt.Sprintf("%v", this.Credentials), "Credential", "Credential", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RateLimit) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RateLimit{`, + `Qps:` + valueToStringMesos(this.Qps) + `,`, + `Principal:` + valueToStringMesos(this.Principal) + `,`, + `Capacity:` + valueToStringMesos(this.Capacity) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RateLimits) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RateLimits{`, + `Limits:` + strings.Replace(fmt.Sprintf("%v", this.Limits), "RateLimit", "RateLimit", 1) + `,`, + `AggregateDefaultQps:` + valueToStringMesos(this.AggregateDefaultQps) + `,`, + `AggregateDefaultCapacity:` + valueToStringMesos(this.AggregateDefaultCapacity) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Image) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Parameter{`, - `Key:` + valueToStringMesos(this.Key) + `,`, - `Value:` + valueToStringMesos(this.Value) + `,`, + s := strings.Join([]string{`&Image{`, + `Type:` + valueToStringMesos(this.Type) + `,`, + `Appc:` + strings.Replace(fmt.Sprintf("%v", this.Appc), "Image_AppC", "Image_AppC", 1) + `,`, + `Docker:` + strings.Replace(fmt.Sprintf("%v", this.Docker), "Image_Docker", "Image_Docker", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *Parameters) String() string { +func (this *Image_AppC) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Parameters{`, - `Parameter:` + strings.Replace(fmt.Sprintf("%v", this.Parameter), "Parameter", "Parameter", 1) + `,`, + s := strings.Join([]string{`&Image_AppC{`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Id:` + valueToStringMesos(this.Id) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *Credential) String() string { +func (this *Image_Docker) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Credential{`, - `Principal:` + valueToStringMesos(this.Principal) + `,`, - `Secret:` + valueToStringMesos(this.Secret) + `,`, + s := strings.Join([]string{`&Image_Docker{`, + `Name:` + valueToStringMesos(this.Name) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *Credentials) String() string { +func (this *Volume) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Credentials{`, - `Credentials:` + strings.Replace(fmt.Sprintf("%v", this.Credentials), "Credential", "Credential", 1) + `,`, + s := strings.Join([]string{`&Volume{`, + `ContainerPath:` + valueToStringMesos(this.ContainerPath) + `,`, + `HostPath:` + valueToStringMesos(this.HostPath) + `,`, + `Mode:` + valueToStringMesos(this.Mode) + `,`, + `Image:` + strings.Replace(fmt.Sprintf("%v", this.Image), "Image", "Image", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACL) String() string { +func (this *ContainerInfo) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACL{`, + s := strings.Join([]string{`&ContainerInfo{`, + `Type:` + valueToStringMesos(this.Type) + `,`, + `Volumes:` + strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "Volume", 1) + `,`, + `Docker:` + strings.Replace(fmt.Sprintf("%v", this.Docker), "ContainerInfo_DockerInfo", "ContainerInfo_DockerInfo", 1) + `,`, + `Hostname:` + valueToStringMesos(this.Hostname) + `,`, + `Mesos:` + strings.Replace(fmt.Sprintf("%v", this.Mesos), "ContainerInfo_MesosInfo", "ContainerInfo_MesosInfo", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACL_Entity) String() string { +func (this *ContainerInfo_DockerInfo) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACL_Entity{`, - `Type:` + valueToStringMesos(this.Type) + `,`, - `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + s := strings.Join([]string{`&ContainerInfo_DockerInfo{`, + `Image:` + valueToStringMesos(this.Image) + `,`, + `Network:` + valueToStringMesos(this.Network) + `,`, + `PortMappings:` + strings.Replace(fmt.Sprintf("%v", this.PortMappings), "ContainerInfo_DockerInfo_PortMapping", "ContainerInfo_DockerInfo_PortMapping", 1) + `,`, + `Privileged:` + valueToStringMesos(this.Privileged) + `,`, + `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "Parameter", "Parameter", 1) + `,`, + `ForcePullImage:` + valueToStringMesos(this.ForcePullImage) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACL_RegisterFramework) String() string { +func (this *ContainerInfo_DockerInfo_PortMapping) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACL_RegisterFramework{`, - `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, - `Roles:` + strings.Replace(fmt.Sprintf("%v", this.Roles), "ACL_Entity", "ACL_Entity", 1) + `,`, + s := strings.Join([]string{`&ContainerInfo_DockerInfo_PortMapping{`, + `HostPort:` + valueToStringMesos(this.HostPort) + `,`, + `ContainerPort:` + valueToStringMesos(this.ContainerPort) + `,`, + `Protocol:` + valueToStringMesos(this.Protocol) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACL_RunTask) String() string { +func (this *ContainerInfo_MesosInfo) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACL_RunTask{`, - `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, - `Users:` + strings.Replace(fmt.Sprintf("%v", this.Users), "ACL_Entity", "ACL_Entity", 1) + `,`, + s := strings.Join([]string{`&ContainerInfo_MesosInfo{`, + `Image:` + strings.Replace(fmt.Sprintf("%v", this.Image), "Image", "Image", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACL_ShutdownFramework) String() string { +func (this *Labels) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACL_ShutdownFramework{`, - `Principals:` + strings.Replace(fmt.Sprintf("%v", this.Principals), "ACL_Entity", "ACL_Entity", 1) + `,`, - `FrameworkPrincipals:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkPrincipals), "ACL_Entity", "ACL_Entity", 1) + `,`, + s := strings.Join([]string{`&Labels{`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Label", "Label", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ACLs) String() string { +func (this *Label) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ACLs{`, - `Permissive:` + valueToStringMesos(this.Permissive) + `,`, - `RegisterFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.RegisterFrameworks), "ACL_RegisterFramework", "ACL_RegisterFramework", 1) + `,`, - `RunTasks:` + strings.Replace(fmt.Sprintf("%v", this.RunTasks), "ACL_RunTask", "ACL_RunTask", 1) + `,`, - `ShutdownFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.ShutdownFrameworks), "ACL_ShutdownFramework", "ACL_ShutdownFramework", 1) + `,`, + s := strings.Join([]string{`&Label{`, + `Key:` + valueToStringMesos(this.Key) + `,`, + `Value:` + valueToStringMesos(this.Value) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *RateLimit) String() string { +func (this *Port) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&RateLimit{`, - `Qps:` + valueToStringMesos(this.Qps) + `,`, - `Principal:` + valueToStringMesos(this.Principal) + `,`, - `Capacity:` + valueToStringMesos(this.Capacity) + `,`, + s := strings.Join([]string{`&Port{`, + `Number:` + valueToStringMesos(this.Number) + `,`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Protocol:` + valueToStringMesos(this.Protocol) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *RateLimits) String() string { +func (this *Ports) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&RateLimits{`, - `Limits:` + strings.Replace(fmt.Sprintf("%v", this.Limits), "RateLimit", "RateLimit", 1) + `,`, - `AggregateDefaultQps:` + valueToStringMesos(this.AggregateDefaultQps) + `,`, - `AggregateDefaultCapacity:` + valueToStringMesos(this.AggregateDefaultCapacity) + `,`, + s := strings.Join([]string{`&Ports{`, + `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "Port", "Port", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *Volume) String() string { +func (this *DiscoveryInfo) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&Volume{`, - `ContainerPath:` + valueToStringMesos(this.ContainerPath) + `,`, - `HostPath:` + valueToStringMesos(this.HostPath) + `,`, - `Mode:` + valueToStringMesos(this.Mode) + `,`, + s := strings.Join([]string{`&DiscoveryInfo{`, + `Visibility:` + valueToStringMesos(this.Visibility) + `,`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Environment:` + valueToStringMesos(this.Environment) + `,`, + `Location:` + valueToStringMesos(this.Location) + `,`, + `Version:` + valueToStringMesos(this.Version) + `,`, + `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "Ports", "Ports", 1) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ContainerInfo) String() string { +func (this *AppcImageManifest) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ContainerInfo{`, - `Type:` + valueToStringMesos(this.Type) + `,`, - `Volumes:` + strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "Volume", 1) + `,`, - `Docker:` + strings.Replace(fmt.Sprintf("%v", this.Docker), "ContainerInfo_DockerInfo", "ContainerInfo_DockerInfo", 1) + `,`, - `Hostname:` + valueToStringMesos(this.Hostname) + `,`, + s := strings.Join([]string{`&AppcImageManifest{`, + `AcKind:` + valueToStringMesos(this.AcKind) + `,`, + `AcVersion:` + valueToStringMesos(this.AcVersion) + `,`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "AppcImageManifest_Label", "AppcImageManifest_Label", 1) + `,`, + `Annotations:` + strings.Replace(fmt.Sprintf("%v", this.Annotations), "AppcImageManifest_Annotation", "AppcImageManifest_Annotation", 1) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ContainerInfo_DockerInfo) String() string { +func (this *AppcImageManifest_Label) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ContainerInfo_DockerInfo{`, - `Image:` + valueToStringMesos(this.Image) + `,`, - `Network:` + valueToStringMesos(this.Network) + `,`, - `PortMappings:` + strings.Replace(fmt.Sprintf("%v", this.PortMappings), "ContainerInfo_DockerInfo_PortMapping", "ContainerInfo_DockerInfo_PortMapping", 1) + `,`, - `Privileged:` + valueToStringMesos(this.Privileged) + `,`, - `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "Parameter", "Parameter", 1) + `,`, - `ForcePullImage:` + valueToStringMesos(this.ForcePullImage) + `,`, + s := strings.Join([]string{`&AppcImageManifest_Label{`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Value:` + valueToStringMesos(this.Value) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *ContainerInfo_DockerInfo_PortMapping) String() string { +func (this *AppcImageManifest_Annotation) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&ContainerInfo_DockerInfo_PortMapping{`, - `HostPort:` + valueToStringMesos(this.HostPort) + `,`, - `ContainerPort:` + valueToStringMesos(this.ContainerPort) + `,`, - `Protocol:` + valueToStringMesos(this.Protocol) + `,`, + s := strings.Join([]string{`&AppcImageManifest_Annotation{`, + `Name:` + valueToStringMesos(this.Name) + `,`, + `Value:` + valueToStringMesos(this.Value) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } -func (this *Labels) String() string { - if this == nil { +func valueToStringMesos(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { return "nil" } - s := strings.Join([]string{`&Labels{`, - `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Label", "Label", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *Label) String() string { - if this == nil { - return "nil" + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *FrameworkID) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + } + + return nil +} +func (m *OfferID) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") } - s := strings.Join([]string{`&Label{`, - `Key:` + valueToStringMesos(this.Key) + `,`, - `Value:` + valueToStringMesos(this.Value) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s + + return nil } -func (this *Port) String() string { - if this == nil { - return "nil" +func (m *SlaveID) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } } - s := strings.Join([]string{`&Port{`, - `Number:` + valueToStringMesos(this.Number) + `,`, - `Name:` + valueToStringMesos(this.Name) + `,`, - `Protocol:` + valueToStringMesos(this.Protocol) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func (this *Ports) String() string { - if this == nil { - return "nil" + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") } - s := strings.Join([]string{`&Ports{`, - `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "Port", "Port", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s + + return nil } -func (this *DiscoveryInfo) String() string { - if this == nil { - return "nil" +func (m *TaskID) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } } - s := strings.Join([]string{`&DiscoveryInfo{`, - `Visibility:` + valueToStringMesos(this.Visibility) + `,`, - `Name:` + valueToStringMesos(this.Name) + `,`, - `Environment:` + valueToStringMesos(this.Environment) + `,`, - `Location:` + valueToStringMesos(this.Location) + `,`, - `Version:` + valueToStringMesos(this.Version) + `,`, - `Ports:` + strings.Replace(fmt.Sprintf("%v", this.Ports), "Ports", "Ports", 1) + `,`, - `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, - `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, - `}`, - }, "") - return s -} -func valueToStringMesos(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) + + return nil } -func (m *FrameworkID) Unmarshal(data []byte) error { +func (m *ExecutorID) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -21930,7 +23496,7 @@ func (m *FrameworkID) Unmarshal(data []byte) error { return nil } -func (m *OfferID) Unmarshal(data []byte) error { +func (m *ContainerID) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -22008,7 +23574,7 @@ func (m *OfferID) Unmarshal(data []byte) error { return nil } -func (m *SlaveID) Unmarshal(data []byte) error { +func (m *Address) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -22030,7 +23596,34 @@ func (m *SlaveID) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Hostname = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22053,8 +23646,25 @@ func (m *SlaveID) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Value = &s + m.Ip = &s iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v hasFields[0] |= uint64(0x00000001) default: var sizeOfWire int @@ -22081,12 +23691,12 @@ func (m *SlaveID) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("port") } return nil } -func (m *TaskID) Unmarshal(data []byte) error { +func (m *URL) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -22108,7 +23718,7 @@ func (m *TaskID) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Scheme", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22131,62 +23741,43 @@ func (m *TaskID) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Value = &s + m.Scheme = &s iNdEx = postIndex hasFields[0] |= uint64(0x00000001) - default: - var sizeOfWire int - for { - sizeOfWire++ - wire >>= 7 - if wire == 0 { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { break } } - iNdEx -= sizeOfWire - skippy, err := skipMesos(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") - } - - return nil -} -func (m *ExecutorID) Unmarshal(data []byte) error { - var hasFields [1]uint64 - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Address == nil { + m.Address = &Address{} } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + if err := m.Address.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - switch fieldNum { - case 1: + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22209,62 +23800,39 @@ func (m *ExecutorID) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Value = &s + m.Path = &s iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - default: - var sizeOfWire int - for { - sizeOfWire++ - wire >>= 7 - if wire == 0 { + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { break } } - iNdEx -= sizeOfWire - skippy, err := skipMesos(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") - } - - return nil -} -func (m *ContainerID) Unmarshal(data []byte) error { - var hasFields [1]uint64 - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.Query = append(m.Query, &Parameter{}) + if err := m.Query[len(m.Query)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - switch fieldNum { - case 1: + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22287,9 +23855,8 @@ func (m *ContainerID) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Value = &s + m.Fragment = &s iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) default: var sizeOfWire int for { @@ -22315,7 +23882,10 @@ func (m *ContainerID) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("scheme") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("address") } return nil @@ -22599,6 +24169,36 @@ func (m *FrameworkInfo) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Labels == nil { + m.Labels = &Labels{} + } + if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: var sizeOfWire int for { @@ -23956,6 +25556,36 @@ func (m *MasterInfo) Unmarshal(data []byte) error { s := string(data[iNdEx:postIndex]) m.Version = &s iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &Address{} + } + if err := m.Address.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: var sizeOfWire int for { @@ -26572,6 +28202,23 @@ func (m *ResourceStatistics) Unmarshal(data []byte) error { } } m.MemSwapBytes = &v + case 41: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemUnevictableBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.MemUnevictableBytes = &v default: var sizeOfWire int for { @@ -26623,7 +28270,35 @@ func (m *ResourceUsage) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Executors", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Executors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Executors = append(m.Executors, &ResourceUsage_Executor{}) + if err := m.Executors[len(m.Executors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26644,8 +28319,8 @@ func (m *ResourceUsage) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Executors = append(m.Executors, &ResourceUsage_Executor{}) - if err := m.Executors[len(m.Executors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Total = append(m.Total, &Resource{}) + if err := m.Total[len(m.Total)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28108,6 +29783,36 @@ func (m *Offer) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Url == nil { + m.Url = &URL{} + } + if err := m.Url.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: var sizeOfWire int for { @@ -29391,6 +31096,36 @@ func (m *TaskStatus) Unmarshal(data []byte) error { } m.Uuid = append([]byte{}, data[iNdEx:postIndex]...) iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Labels == nil { + m.Labels = &Labels{} + } + if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: var sizeOfWire int for { @@ -29914,20 +31649,208 @@ func (m *Credential) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Secret = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principal") + } + + return nil +} +func (m *Credentials) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Credentials", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Credentials = append(m.Credentials, &Credential{}) + if err := m.Credentials[len(m.Credentials)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMesos + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *RateLimit) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Qps", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + iNdEx += 8 + v = uint64(data[iNdEx-8]) + v |= uint64(data[iNdEx-7]) << 8 + v |= uint64(data[iNdEx-6]) << 16 + v |= uint64(data[iNdEx-5]) << 24 + v |= uint64(data[iNdEx-4]) << 32 + v |= uint64(data[iNdEx-3]) << 40 + v |= uint64(data[iNdEx-2]) << 48 + v |= uint64(data[iNdEx-1]) << 56 + v2 := float64(math.Float64frombits(v)) + m.Qps = &v2 + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Principal = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = append([]byte{}, data[iNdEx:postIndex]...) - iNdEx = postIndex + m.Capacity = &v default: var sizeOfWire int for { @@ -29958,7 +31881,7 @@ func (m *Credential) Unmarshal(data []byte) error { return nil } -func (m *Credentials) Unmarshal(data []byte) error { +func (m *RateLimits) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -29979,7 +31902,7 @@ func (m *Credentials) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Credentials", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30000,56 +31923,47 @@ func (m *Credentials) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Credentials = append(m.Credentials, &Credential{}) - if err := m.Credentials[len(m.Credentials)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Limits = append(m.Limits, &RateLimit{}) + if err := m.Limits[len(m.Limits)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - var sizeOfWire int - for { - sizeOfWire++ - wire >>= 7 - if wire == 0 { - break - } - } - iNdEx -= sizeOfWire - skippy, err := skipMesos(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMesos + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateDefaultQps", wireType) } - if (iNdEx + skippy) > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - return nil -} -func (m *ACL) Unmarshal(data []byte) error { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF + iNdEx += 8 + v = uint64(data[iNdEx-8]) + v |= uint64(data[iNdEx-7]) << 8 + v |= uint64(data[iNdEx-6]) << 16 + v |= uint64(data[iNdEx-5]) << 24 + v |= uint64(data[iNdEx-4]) << 32 + v |= uint64(data[iNdEx-3]) << 40 + v |= uint64(data[iNdEx-2]) << 48 + v |= uint64(data[iNdEx-1]) << 56 + v2 := float64(math.Float64frombits(v)) + m.AggregateDefaultQps = &v2 + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateDefaultCapacity", wireType) } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + var v uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - switch fieldNum { + m.AggregateDefaultCapacity = &v default: var sizeOfWire int for { @@ -30077,7 +31991,8 @@ func (m *ACL) Unmarshal(data []byte) error { return nil } -func (m *ACL_Entity) Unmarshal(data []byte) error { +func (m *Image) Unmarshal(data []byte) error { + var hasFields [1]uint64 l := len(data) iNdEx := 0 for iNdEx < l { @@ -30100,44 +32015,79 @@ func (m *ACL_Entity) Unmarshal(data []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var v ACL_Entity_Type + var v Image_Type for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (ACL_Entity_Type(b) & 0x7F) << shift + v |= (Image_Type(b) & 0x7F) << shift if b < 0x80 { break } } m.Type = &v + hasFields[0] |= uint64(0x00000001) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Appc", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Appc == nil { + m.Appc = &Image_AppC{} + } + if err := m.Appc.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Docker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Values = append(m.Values, string(data[iNdEx:postIndex])) + if m.Docker == nil { + m.Docker = &Image_Docker{} + } + if err := m.Docker.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: var sizeOfWire int @@ -30163,10 +32113,13 @@ func (m *ACL_Entity) Unmarshal(data []byte) error { iNdEx += skippy } } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } return nil } -func (m *ACL_RegisterFramework) Unmarshal(data []byte) error { +func (m *Image_AppC) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -30188,38 +32141,62 @@ func (m *ACL_RegisterFramework) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - if m.Principals == nil { - m.Principals = &ACL_Entity{} - } - if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + s := string(data[iNdEx:postIndex]) + m.Name = &s iNdEx = postIndex hasFields[0] |= uint64(0x00000001) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30240,14 +32217,13 @@ func (m *ACL_RegisterFramework) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Roles == nil { - m.Roles = &ACL_Entity{} + if m.Labels == nil { + m.Labels = &Labels{} } - if err := m.Roles.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) default: var sizeOfWire int for { @@ -30273,15 +32249,12 @@ func (m *ACL_RegisterFramework) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") - } - if hasFields[0]&uint64(0x00000002) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("roles") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") } return nil } -func (m *ACL_RunTask) Unmarshal(data []byte) error { +func (m *Image_Docker) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -30303,66 +32276,32 @@ func (m *ACL_RunTask) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - if m.Principals == nil { - m.Principals = &ACL_Entity{} - } - if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + s := string(data[iNdEx:postIndex]) + m.Name = &s iNdEx = postIndex hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Users == nil { - m.Users = &ACL_Entity{} - } - if err := m.Users.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) default: var sizeOfWire int for { @@ -30388,15 +32327,12 @@ func (m *ACL_RunTask) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") - } - if hasFields[0]&uint64(0x00000002) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("users") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") } return nil } -func (m *ACL_ShutdownFramework) Unmarshal(data []byte) error { +func (m *Volume) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -30406,50 +32342,92 @@ func (m *ACL_ShutdownFramework) Unmarshal(data []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - switch fieldNum { - case 1: + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.ContainerPath = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Principals", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - if m.Principals == nil { - m.Principals = &ACL_Entity{} + s := string(data[iNdEx:postIndex]) + m.HostPath = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) } - if err := m.Principals.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err + var v Volume_Mode + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (Volume_Mode(b) & 0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: + m.Mode = &v + hasFields[0] |= uint64(0x00000002) + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FrameworkPrincipals", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30470,14 +32448,13 @@ func (m *ACL_ShutdownFramework) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FrameworkPrincipals == nil { - m.FrameworkPrincipals = &ACL_Entity{} + if m.Image == nil { + m.Image = &Image{} } - if err := m.FrameworkPrincipals.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Image.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - hasFields[0] |= uint64(0x00000002) default: var sizeOfWire int for { @@ -30503,15 +32480,16 @@ func (m *ACL_ShutdownFramework) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principals") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_path") } if hasFields[0]&uint64(0x00000002) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_principals") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("mode") } return nil } -func (m *ACLs) Unmarshal(data []byte) error { +func (m *ContainerInfo) Unmarshal(data []byte) error { + var hasFields [1]uint64 l := len(data) iNdEx := 0 for iNdEx < l { @@ -30532,25 +32510,25 @@ func (m *ACLs) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissive", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var v int + var v ContainerInfo_Type for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= (ContainerInfo_Type(b) & 0x7F) << shift if b < 0x80 { break } } - b := bool(v != 0) - m.Permissive = &b + m.Type = &v + hasFields[0] |= uint64(0x00000001) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegisterFrameworks", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30571,14 +32549,14 @@ func (m *ACLs) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RegisterFrameworks = append(m.RegisterFrameworks, &ACL_RegisterFramework{}) - if err := m.RegisterFrameworks[len(m.RegisterFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Volumes = append(m.Volumes, &Volume{}) + if err := m.Volumes[len(m.Volumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunTasks", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Docker", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30599,14 +32577,43 @@ func (m *ACLs) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RunTasks = append(m.RunTasks, &ACL_RunTask{}) - if err := m.RunTasks[len(m.RunTasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if m.Docker == nil { + m.Docker = &ContainerInfo_DockerInfo{} + } + if err := m.Docker.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShutdownFrameworks", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Hostname = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mesos", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30627,8 +32634,10 @@ func (m *ACLs) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ShutdownFrameworks = append(m.ShutdownFrameworks, &ACL_ShutdownFramework{}) - if err := m.ShutdownFrameworks[len(m.ShutdownFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + if m.Mesos == nil { + m.Mesos = &ContainerInfo_MesosInfo{} + } + if err := m.Mesos.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30656,10 +32665,13 @@ func (m *ACLs) Unmarshal(data []byte) error { iNdEx += skippy } } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } return nil } -func (m *RateLimit) Unmarshal(data []byte) error { +func (m *ContainerInfo_DockerInfo) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -30680,27 +32692,8 @@ func (m *RateLimit) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Qps", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 - v2 := float64(math.Float64frombits(v)) - m.Qps = &v2 - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Principal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30723,78 +32716,75 @@ func (m *RateLimit) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Principal = &s + m.Image = &s iNdEx = postIndex hasFields[0] |= uint64(0x00000001) - case 3: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) } - var v uint64 + var v ContainerInfo_DockerInfo_Network for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= (ContainerInfo_DockerInfo_Network(b) & 0x7F) << shift if b < 0x80 { break } } - m.Capacity = &v - default: - var sizeOfWire int - for { - sizeOfWire++ - wire >>= 7 - if wire == 0 { + m.Network = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortMappings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { break } } - iNdEx -= sizeOfWire - skippy, err := skipMesos(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("principal") - } - - return nil -} -func (m *RateLimits) Unmarshal(data []byte) error { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.PortMappings = append(m.PortMappings, &ContainerInfo_DockerInfo_PortMapping{}) + if err := m.PortMappings[len(m.PortMappings)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - switch fieldNum { - case 1: + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Privileged = &b + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30812,50 +32802,32 @@ func (m *RateLimits) Unmarshal(data []byte) error { return ErrInvalidLengthMesos } postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Limits = append(m.Limits, &RateLimit{}) - if err := m.Limits[len(m.Limits)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregateDefaultQps", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 - v2 := float64(math.Float64frombits(v)) - m.AggregateDefaultQps = &v2 - case 3: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, &Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregateDefaultCapacity", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ForcePullImage", wireType) } - var v uint64 + var v int for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - m.AggregateDefaultCapacity = &v + b := bool(v != 0) + m.ForcePullImage = &b default: var sizeOfWire int for { @@ -30880,10 +32852,13 @@ func (m *RateLimits) Unmarshal(data []byte) error { iNdEx += skippy } } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("image") + } return nil } -func (m *Volume) Unmarshal(data []byte) error { +func (m *ContainerInfo_DockerInfo_PortMapping) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -30904,36 +32879,44 @@ func (m *Volume) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) } - var stringLen uint64 + var v uint32 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + v |= (uint32(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(data[iNdEx:postIndex]) - m.ContainerPath = &s - iNdEx = postIndex + m.HostPort = &v hasFields[0] |= uint64(0x00000001) case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ContainerPort = &v + hasFields[0] |= uint64(0x00000002) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30956,26 +32939,8 @@ func (m *Volume) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.HostPath = &s + m.Protocol = &s iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - var v Volume_Mode - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (Volume_Mode(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Mode = &v - hasFields[0] |= uint64(0x00000002) default: var sizeOfWire int for { @@ -31001,16 +32966,15 @@ func (m *Volume) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_path") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("host_port") } if hasFields[0]&uint64(0x00000002) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("mode") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_port") } return nil } -func (m *ContainerInfo) Unmarshal(data []byte) error { - var hasFields [1]uint64 +func (m *ContainerInfo_MesosInfo) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -31030,54 +32994,8 @@ func (m *ContainerInfo) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var v ContainerInfo_Type - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (ContainerInfo_Type(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Type = &v - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, &Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Docker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31098,40 +33016,13 @@ func (m *ContainerInfo) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Docker == nil { - m.Docker = &ContainerInfo_DockerInfo{} + if m.Image == nil { + m.Image = &Image{} } - if err := m.Docker.Unmarshal(data[iNdEx:postIndex]); err != nil { + if err := m.Image.Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(data[iNdEx:postIndex]) - m.Hostname = &s - iNdEx = postIndex default: var sizeOfWire int for { @@ -31156,14 +33047,10 @@ func (m *ContainerInfo) Unmarshal(data []byte) error { iNdEx += skippy } } - if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") - } return nil } -func (m *ContainerInfo_DockerInfo) Unmarshal(data []byte) error { - var hasFields [1]uint64 +func (m *Labels) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -31184,141 +33071,134 @@ func (m *ContainerInfo_DockerInfo) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - s := string(data[iNdEx:postIndex]) - m.Image = &s - iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) + m.Labels = append(m.Labels, &Label{}) + if err := m.Labels[len(m.Labels)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - var v ContainerInfo_DockerInfo_Network - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (ContainerInfo_DockerInfo_Network(b) & 0x7F) << shift - if b < 0x80 { + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { break } } - m.Network = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortMappings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if skippy < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.PortMappings = append(m.PortMappings, &ContainerInfo_DockerInfo_PortMapping{}) - if err := m.PortMappings[len(m.PortMappings)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType) + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Label) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break } - b := bool(v != 0) - m.Privileged = &b - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - m.Parameters = append(m.Parameters, &Parameter{}) - if err := m.Parameters[len(m.Parameters)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + s := string(data[iNdEx:postIndex]) + m.Key = &s iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForcePullImage", wireType) + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - b := bool(v != 0) - m.ForcePullImage = &b + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex default: var sizeOfWire int for { @@ -31344,12 +33224,12 @@ func (m *ContainerInfo_DockerInfo) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("image") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("key") } return nil } -func (m *ContainerInfo_DockerInfo_PortMapping) Unmarshal(data []byte) error { +func (m *Port) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -31371,7 +33251,7 @@ func (m *ContainerInfo_DockerInfo_PortMapping) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) } var v uint32 for shift := uint(0); ; shift += 7 { @@ -31385,26 +33265,35 @@ func (m *ContainerInfo_DockerInfo_PortMapping) Unmarshal(data []byte) error { break } } - m.HostPort = &v + m.Number = &v hasFields[0] |= uint64(0x00000001) case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var v uint32 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - m.ContainerPort = &v - hasFields[0] |= uint64(0x00000002) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) @@ -31457,15 +33346,12 @@ func (m *ContainerInfo_DockerInfo_PortMapping) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("host_port") - } - if hasFields[0]&uint64(0x00000002) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container_port") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("number") } return nil } -func (m *Labels) Unmarshal(data []byte) error { +func (m *Ports) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -31486,7 +33372,7 @@ func (m *Labels) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31507,8 +33393,8 @@ func (m *Labels) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, &Label{}) - if err := m.Labels[len(m.Labels)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Ports = append(m.Ports, &Port{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -31539,7 +33425,7 @@ func (m *Labels) Unmarshal(data []byte) error { return nil } -func (m *Label) Unmarshal(data []byte) error { +func (m *DiscoveryInfo) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -31560,8 +33446,26 @@ func (m *Label) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Visibility", wireType) + } + var v DiscoveryInfo_Visibility + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (DiscoveryInfo_Visibility(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Visibility = &v + hasFields[0] |= uint64(0x00000001) + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31584,12 +33488,11 @@ func (m *Label) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Key = &s + m.Name = &s iNdEx = postIndex - hasFields[0] |= uint64(0x00000001) - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Environment", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31612,7 +33515,121 @@ func (m *Label) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Value = &s + m.Environment = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Location = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Version = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ports == nil { + m.Ports = &Ports{} + } + if err := m.Ports.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Labels == nil { + m.Labels = &Labels{} + } + if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: var sizeOfWire int @@ -31639,12 +33656,12 @@ func (m *Label) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("key") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("visibility") } return nil } -func (m *Port) Unmarshal(data []byte) error { +func (m *AppcImageManifest) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -31665,26 +33682,36 @@ func (m *Port) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AcKind", wireType) } - var v uint32 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - v |= (uint32(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - m.Number = &v + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMesos + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.AcKind = &s + iNdEx = postIndex hasFields[0] |= uint64(0x00000001) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AcVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31707,11 +33734,12 @@ func (m *Port) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Name = &s + m.AcVersion = &s iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31734,60 +33762,40 @@ func (m *Port) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Protocol = &s + m.Name = &s iNdEx = postIndex - default: - var sizeOfWire int - for { - sizeOfWire++ - wire >>= 7 - if wire == 0 { + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { break } } - iNdEx -= sizeOfWire - skippy, err := skipMesos(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthMesos } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("number") - } - - return nil -} -func (m *Ports) Unmarshal(data []byte) error { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.Labels = append(m.Labels, &AppcImageManifest_Label{}) + if err := m.Labels[len(m.Labels)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - switch fieldNum { - case 1: + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31808,8 +33816,8 @@ func (m *Ports) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ports = append(m.Ports, &Port{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + m.Annotations = append(m.Annotations, &AppcImageManifest_Annotation{}) + if err := m.Annotations[len(m.Annotations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -31837,10 +33845,19 @@ func (m *Ports) Unmarshal(data []byte) error { iNdEx += skippy } } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("acKind") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("acVersion") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } return nil } -func (m *DiscoveryInfo) Unmarshal(data []byte) error { +func (m *AppcImageManifest_Label) Unmarshal(data []byte) error { var hasFields [1]uint64 l := len(data) iNdEx := 0 @@ -31861,24 +33878,6 @@ func (m *DiscoveryInfo) Unmarshal(data []byte) error { wireType := int(wire & 0x7) switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Visibility", wireType) - } - var v DiscoveryInfo_Visibility - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (DiscoveryInfo_Visibility(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Visibility = &v - hasFields[0] |= uint64(0x00000001) - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } @@ -31905,9 +33904,10 @@ func (m *DiscoveryInfo) Unmarshal(data []byte) error { s := string(data[iNdEx:postIndex]) m.Name = &s iNdEx = postIndex - case 3: + hasFields[0] |= uint64(0x00000001) + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Environment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31930,38 +33930,65 @@ func (m *DiscoveryInfo) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Environment = &s + m.Value = &s iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + iNdEx -= sizeOfWire + skippy, err := skipMesos(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + intStringLen - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - s := string(data[iNdEx:postIndex]) - m.Location = &s - iNdEx = postIndex - case 5: + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") + } + + return nil +} +func (m *AppcImageManifest_Annotation) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31984,68 +34011,37 @@ func (m *DiscoveryInfo) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } s := string(data[iNdEx:postIndex]) - m.Version = &s - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMesos - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Ports == nil { - m.Ports = &Ports{} - } - if err := m.Ports.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + m.Name = &s iNdEx = postIndex - case 7: + hasFields[0] |= uint64(0x00000001) + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if iNdEx >= l { return io.ErrUnexpectedEOF } b := data[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthMesos } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } - if m.Labels == nil { - m.Labels = &Labels{} - } - if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } + s := string(data[iNdEx:postIndex]) + m.Value = &s iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) default: var sizeOfWire int for { @@ -32071,7 +34067,10 @@ func (m *DiscoveryInfo) Unmarshal(data []byte) error { } } if hasFields[0]&uint64(0x00000001) == 0 { - return github_com_gogo_protobuf_proto.NewRequiredNotSetError("visibility") + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("value") } return nil diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.proto index 2d00b43fdec2..07b5c80968d9 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/mesos.proto @@ -32,7 +32,6 @@ option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; - /** * Status is used to indicate the state of the scheduler and executor * driver after function calls. @@ -104,6 +103,32 @@ message ContainerID { } +/** + * A network address. + * + * TODO(bmahler): Use this more widely. + */ +message Address { + // May contain a hostname, IP address, or both. + optional string hostname = 1; + optional string ip = 2; + + required int32 port = 3; +} + + +/** + * Represents a URL. + */ +message URL { + required string scheme = 1; + required Address address = 2; + optional string path = 3; + repeated Parameter query = 4; + optional string fragment = 5; +} + + /** * Describes a framework. */ @@ -141,7 +166,8 @@ message FrameworkInfo { // Used to indicate the current host from which the scheduler is // registered in the Mesos Web UI. If set to an empty string Mesos - // will automagically set it to the current hostname. + // will automagically set it to the current hostname if one is + // available. optional string hostname = 7; // This field should match the credential's principal the framework @@ -170,6 +196,11 @@ message FrameworkInfo { // capabilities (e.g., ability to receive offers for revocable // resources). repeated Capability capabilities = 10; + + // Labels are free-form key value pairs supplied by the framework + // scheduler (e.g., to describe additional functionality offered by + // the framework). These labels are not interpreted by Mesos itself. + optional Labels labels = 11; } @@ -353,11 +384,35 @@ message ExecutorInfo { */ message MasterInfo { required string id = 1; + + // The IP address (only IPv4) as a packed 4-bytes integer, + // stored in network order. Deprecated, use `address.ip` instead. required uint32 ip = 2; + + // The TCP port the Master is listening on for incoming + // HTTP requests; deprecated, use `address.port` instead. required uint32 port = 3 [default = 5050]; + + // In the default implementation, this will contain information + // about both the IP address, port and Master name; it should really + // not be relied upon by external tooling/frameworks and be + // considered an "internal" implementation field. optional string pid = 4; + + // The server's hostname, if available; it may be unreliable + // in environments where the DNS configuration does not resolve + // internal hostnames (eg, some public cloud providers). + // Deprecated, use `address.hostname` instead. optional string hostname = 5; + + // The running Master version, as a string; taken from the + // generated "master/version.hpp". optional string version = 6; + + // The full IP address (supports both IPv4 and IPv6 formats) + // and supersedes the use of `ip`, `port` and `hostname`. + // Since Mesos 0.24. + optional Address address = 7; } @@ -618,6 +673,7 @@ message ResourceStatistics { optional uint64 mem_mapped_file_bytes = 12; // This is only set if swap is enabled. optional uint64 mem_swap_bytes = 40; + optional uint64 mem_unevictable_bytes = 41; // Number of occurrences of different levels of memory pressure // events reported by memory cgroup. Pressure listening (re)starts @@ -680,7 +736,9 @@ message ResourceUsage { repeated Executor executors = 1; - // TODO(jieyu): Include slave's total resources here. + // Slave's total resources including checkpointed dynamic + // reservations and persistent volumes. + repeated Resource total = 2; } @@ -764,8 +822,6 @@ message PerfStatistics { * to proactively influence the allocator. If 'slave_id' is provided * then this request is assumed to only apply to resources on that * slave. - * - * TODO(vinod): Remove this once the old driver is removed. */ message Request { optional SlaveID slave_id = 1; @@ -782,6 +838,10 @@ message Offer { required FrameworkID framework_id = 2; required SlaveID slave_id = 3; required string hostname = 4; + + // URL for reaching the slave running on the host. + optional URL url = 8; + repeated Resource resources = 5; repeated Attribute attributes = 7; repeated ExecutorID executor_ids = 6; @@ -944,6 +1004,14 @@ message TaskStatus { // (true) or unhealthy (false) according to the HealthCheck field in // the command info. optional bool healthy = 8; + + // Labels are free-form key value pairs which are exposed through + // master and slave endpoints. Labels will not be interpreted or + // acted upon by Mesos itself. As opposed to the data field, labels + // will be kept in memory on master and slave processes. Therefore, + // labels should be used to tag TaskStatus message with light-weight + // meta-data. + optional Labels labels = 12; } @@ -1019,81 +1087,6 @@ message Credentials { } -/** - * ACLs used for authorization. - */ -message ACL { - - // Entity is used to describe a subject(s) or an object(s) of an ACL. - // NOTE: - // To allow everyone access to an Entity set its type to 'ANY'. - // To deny access to an Entity set its type to 'NONE'. - message Entity { - enum Type { - SOME = 0; - ANY = 1; - NONE = 2; - } - optional Type type = 1 [default = SOME]; - repeated string values = 2; // Ignored for ANY/NONE. - } - - // ACLs. - message RegisterFramework { - // Subjects. - required Entity principals = 1; // Framework principals. - - // Objects. - required Entity roles = 2; // Roles for resource offers. - } - - message RunTask { - // Subjects. - required Entity principals = 1; // Framework principals. - - // Objects. - required Entity users = 2; // Users to run the tasks/executors as. - } - - // Which principals are authorized to shutdown frameworks of other - // principals. - message ShutdownFramework { - // Subjects. - required Entity principals = 1; - - // Objects. - required Entity framework_principals = 2; - } -} - - -/** - * Collection of ACL. - * - * Each authorization request is evaluated against the ACLs in the order - * they are defined. - * - * For simplicity, the ACLs for a given action are not aggregated even - * when they have the same subjects or objects. The first ACL that - * matches the request determines whether that request should be - * permitted or not. An ACL matches iff both the subjects - * (e.g., clients, principals) and the objects (e.g., urls, users, - * roles) of the ACL match the request. - * - * If none of the ACLs match the request, the 'permissive' field - * determines whether the request should be permitted or not. - * - * TODO(vinod): Do aggregation of ACLs when possible. - * - */ -message ACLs { - optional bool permissive = 1 [default = true]; - repeated ACL.RegisterFramework register_frameworks = 2; - repeated ACL.RunTask run_tasks = 3; - repeated ACL.ShutdownFramework shutdown_frameworks = 4; -} - - /** * Rate (queries per second, QPS) limit for messages from a framework to master. * Strictly speaking they are the combined rate from all frameworks of the same @@ -1138,24 +1131,76 @@ message RateLimits { } +/** + * Describe an image used by tasks or executors. Note that it's only + * for tasks or executors launched by MesosContainerizer currently. + * TODO(jieyu): This feature not fully supported in 0.24.0. Please do + * not use it until this feature is announced. + */ +message Image { + enum Type { + APPC = 1; + DOCKER = 2; + } + + // Protobuf for specifying an Appc container image. See: + // https://github.com/appc/spec/blob/master/spec/aci.md + message AppC { + // The name of the image. + required string name = 1; + + // An image ID is a string of the format "hash-value", where + // "hash" is the hash algorithm used and "value" is the hex + // encoded string of the digest. Currently the only permitted + // hash algorithm is sha512. + optional string id = 2; + + // Optional labels. Suggested labels: "version", "os", and "arch". + optional Labels labels = 3; + } + + message Docker { + // The name of the image. Expected in format repository[:tag]. + required string name = 1; + } + + required Type type = 1; + + // Only one of the following image messages should be set to match + // the type. + optional AppC appc = 2; + optional Docker docker = 3; +} + + /** * Describes a volume mapping either from host to container or vice * versa. Both paths can either refer to a directory or a file. */ message Volume { - // Absolute path pointing to a directory or file in the container. - required string container_path = 1; - - // Absolute path pointing to a directory or file on the host or a path - // relative to the container work directory. - optional string host_path = 2; - enum Mode { RW = 1; // read-write. RO = 2; // read-only. } required Mode mode = 3; + + // Path pointing to a directory or file in the container. If the + // path is a relative path, it is relative to the container work + // directory. If the path is an absolute path, that path must + // already exist. + required string container_path = 1; + + // The following specifies the source of this volume. At most one of + // the following should be set. + + // Absolute path pointing to a directory or file on the host or a + // path relative to the container work directory. + optional string host_path = 2; + + // The source of the volume is an Image which describes a root + // filesystem which will be provisioned by Mesos. + optional Image image = 4; } @@ -1206,11 +1251,18 @@ message ContainerInfo { optional bool force_pull_image = 6; } + message MesosInfo { + optional Image image = 1; + } + required Type type = 1; repeated Volume volumes = 2; optional string hostname = 4; + // Only one of the following *Info messages should be set to match + // the type. optional DockerInfo docker = 3; + optional MesosInfo mesos = 5; } @@ -1277,3 +1329,36 @@ message DiscoveryInfo { optional Ports ports = 6; optional Labels labels = 7; } + + +/** +* Protobuf for the Appc image manifest JSON schema: +* https://github.com/appc/spec/blob/master/spec/aci.md#image-manifest-schema +* Where possible, any field required in the schema is required in the protobuf +* but some cannot be expressed, e.g., a repeated string that has at least one +* element. Further validation should be performed after parsing the JSON into +* the protobuf. +* This version of Appc protobuf is based on Appc spec version 0.6.1. +* TODO(xujyan): This protobuf currently defines a subset of fields in the spec +* that Mesos makes use of to avoid confusion. New fields are going to be added +* when Mesos starts to support them. +*/ +message AppcImageManifest { + required string acKind = 1; + required string acVersion = 2; + required string name = 3; + + message Label { + required string name = 1; + required string value = 2; + } + + repeated Label labels = 4; + + message Annotation { + required string name = 1; + required string value = 2; + } + + repeated Annotation annotations = 5; +} diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.pb.go index 7b62a9524f11..9dd1bc2fae9d 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.pb.go @@ -10,6 +10,16 @@ import math "math" // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -82,9 +92,8 @@ type Task struct { XXX_unrecognized []byte `json:"-"` } -func (m *Task) Reset() { *m = Task{} } -func (m *Task) String() string { return proto.CompactTextString(m) } -func (*Task) ProtoMessage() {} +func (m *Task) Reset() { *m = Task{} } +func (*Task) ProtoMessage() {} func (m *Task) GetName() string { if m != nil && m.Name != nil { @@ -190,9 +199,8 @@ type StatusUpdate struct { XXX_unrecognized []byte `json:"-"` } -func (m *StatusUpdate) Reset() { *m = StatusUpdate{} } -func (m *StatusUpdate) String() string { return proto.CompactTextString(m) } -func (*StatusUpdate) ProtoMessage() {} +func (m *StatusUpdate) Reset() { *m = StatusUpdate{} } +func (*StatusUpdate) ProtoMessage() {} func (m *StatusUpdate) GetFrameworkId() *FrameworkID { if m != nil { @@ -253,9 +261,8 @@ type StatusUpdateRecord struct { XXX_unrecognized []byte `json:"-"` } -func (m *StatusUpdateRecord) Reset() { *m = StatusUpdateRecord{} } -func (m *StatusUpdateRecord) String() string { return proto.CompactTextString(m) } -func (*StatusUpdateRecord) ProtoMessage() {} +func (m *StatusUpdateRecord) Reset() { *m = StatusUpdateRecord{} } +func (*StatusUpdateRecord) ProtoMessage() {} func (m *StatusUpdateRecord) GetType() StatusUpdateRecord_Type { if m != nil && m.Type != nil { @@ -283,9 +290,8 @@ type SubmitSchedulerRequest struct { XXX_unrecognized []byte `json:"-"` } -func (m *SubmitSchedulerRequest) Reset() { *m = SubmitSchedulerRequest{} } -func (m *SubmitSchedulerRequest) String() string { return proto.CompactTextString(m) } -func (*SubmitSchedulerRequest) ProtoMessage() {} +func (m *SubmitSchedulerRequest) Reset() { *m = SubmitSchedulerRequest{} } +func (*SubmitSchedulerRequest) ProtoMessage() {} func (m *SubmitSchedulerRequest) GetName() string { if m != nil && m.Name != nil { @@ -299,9 +305,8 @@ type SubmitSchedulerResponse struct { XXX_unrecognized []byte `json:"-"` } -func (m *SubmitSchedulerResponse) Reset() { *m = SubmitSchedulerResponse{} } -func (m *SubmitSchedulerResponse) String() string { return proto.CompactTextString(m) } -func (*SubmitSchedulerResponse) ProtoMessage() {} +func (m *SubmitSchedulerResponse) Reset() { *m = SubmitSchedulerResponse{} } +func (*SubmitSchedulerResponse) ProtoMessage() {} func (m *SubmitSchedulerResponse) GetOkay() bool { if m != nil && m.Okay != nil { @@ -318,9 +323,8 @@ type ExecutorToFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ExecutorToFrameworkMessage) Reset() { *m = ExecutorToFrameworkMessage{} } -func (m *ExecutorToFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*ExecutorToFrameworkMessage) ProtoMessage() {} +func (m *ExecutorToFrameworkMessage) Reset() { *m = ExecutorToFrameworkMessage{} } +func (*ExecutorToFrameworkMessage) ProtoMessage() {} func (m *ExecutorToFrameworkMessage) GetSlaveId() *SlaveID { if m != nil { @@ -358,9 +362,8 @@ type FrameworkToExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *FrameworkToExecutorMessage) Reset() { *m = FrameworkToExecutorMessage{} } -func (m *FrameworkToExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*FrameworkToExecutorMessage) ProtoMessage() {} +func (m *FrameworkToExecutorMessage) Reset() { *m = FrameworkToExecutorMessage{} } +func (*FrameworkToExecutorMessage) ProtoMessage() {} func (m *FrameworkToExecutorMessage) GetSlaveId() *SlaveID { if m != nil { @@ -395,9 +398,8 @@ type RegisterFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *RegisterFrameworkMessage) Reset() { *m = RegisterFrameworkMessage{} } -func (m *RegisterFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*RegisterFrameworkMessage) ProtoMessage() {} +func (m *RegisterFrameworkMessage) Reset() { *m = RegisterFrameworkMessage{} } +func (*RegisterFrameworkMessage) ProtoMessage() {} func (m *RegisterFrameworkMessage) GetFramework() *FrameworkInfo { if m != nil { @@ -412,9 +414,8 @@ type ReregisterFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReregisterFrameworkMessage) Reset() { *m = ReregisterFrameworkMessage{} } -func (m *ReregisterFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*ReregisterFrameworkMessage) ProtoMessage() {} +func (m *ReregisterFrameworkMessage) Reset() { *m = ReregisterFrameworkMessage{} } +func (*ReregisterFrameworkMessage) ProtoMessage() {} func (m *ReregisterFrameworkMessage) GetFramework() *FrameworkInfo { if m != nil { @@ -436,9 +437,8 @@ type FrameworkRegisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *FrameworkRegisteredMessage) Reset() { *m = FrameworkRegisteredMessage{} } -func (m *FrameworkRegisteredMessage) String() string { return proto.CompactTextString(m) } -func (*FrameworkRegisteredMessage) ProtoMessage() {} +func (m *FrameworkRegisteredMessage) Reset() { *m = FrameworkRegisteredMessage{} } +func (*FrameworkRegisteredMessage) ProtoMessage() {} func (m *FrameworkRegisteredMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -460,9 +460,8 @@ type FrameworkReregisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *FrameworkReregisteredMessage) Reset() { *m = FrameworkReregisteredMessage{} } -func (m *FrameworkReregisteredMessage) String() string { return proto.CompactTextString(m) } -func (*FrameworkReregisteredMessage) ProtoMessage() {} +func (m *FrameworkReregisteredMessage) Reset() { *m = FrameworkReregisteredMessage{} } +func (*FrameworkReregisteredMessage) ProtoMessage() {} func (m *FrameworkReregisteredMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -483,9 +482,8 @@ type UnregisterFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *UnregisterFrameworkMessage) Reset() { *m = UnregisterFrameworkMessage{} } -func (m *UnregisterFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*UnregisterFrameworkMessage) ProtoMessage() {} +func (m *UnregisterFrameworkMessage) Reset() { *m = UnregisterFrameworkMessage{} } +func (*UnregisterFrameworkMessage) ProtoMessage() {} func (m *UnregisterFrameworkMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -499,9 +497,8 @@ type DeactivateFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *DeactivateFrameworkMessage) Reset() { *m = DeactivateFrameworkMessage{} } -func (m *DeactivateFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*DeactivateFrameworkMessage) ProtoMessage() {} +func (m *DeactivateFrameworkMessage) Reset() { *m = DeactivateFrameworkMessage{} } +func (*DeactivateFrameworkMessage) ProtoMessage() {} func (m *DeactivateFrameworkMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -516,9 +513,8 @@ type ResourceRequestMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ResourceRequestMessage) Reset() { *m = ResourceRequestMessage{} } -func (m *ResourceRequestMessage) String() string { return proto.CompactTextString(m) } -func (*ResourceRequestMessage) ProtoMessage() {} +func (m *ResourceRequestMessage) Reset() { *m = ResourceRequestMessage{} } +func (*ResourceRequestMessage) ProtoMessage() {} func (m *ResourceRequestMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -540,9 +536,8 @@ type ResourceOffersMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ResourceOffersMessage) Reset() { *m = ResourceOffersMessage{} } -func (m *ResourceOffersMessage) String() string { return proto.CompactTextString(m) } -func (*ResourceOffersMessage) ProtoMessage() {} +func (m *ResourceOffersMessage) Reset() { *m = ResourceOffersMessage{} } +func (*ResourceOffersMessage) ProtoMessage() {} func (m *ResourceOffersMessage) GetOffers() []*Offer { if m != nil { @@ -566,9 +561,8 @@ type LaunchTasksMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *LaunchTasksMessage) Reset() { *m = LaunchTasksMessage{} } -func (m *LaunchTasksMessage) String() string { return proto.CompactTextString(m) } -func (*LaunchTasksMessage) ProtoMessage() {} +func (m *LaunchTasksMessage) Reset() { *m = LaunchTasksMessage{} } +func (*LaunchTasksMessage) ProtoMessage() {} func (m *LaunchTasksMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -603,9 +597,8 @@ type RescindResourceOfferMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *RescindResourceOfferMessage) Reset() { *m = RescindResourceOfferMessage{} } -func (m *RescindResourceOfferMessage) String() string { return proto.CompactTextString(m) } -func (*RescindResourceOfferMessage) ProtoMessage() {} +func (m *RescindResourceOfferMessage) Reset() { *m = RescindResourceOfferMessage{} } +func (*RescindResourceOfferMessage) ProtoMessage() {} func (m *RescindResourceOfferMessage) GetOfferId() *OfferID { if m != nil { @@ -619,9 +612,8 @@ type ReviveOffersMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReviveOffersMessage) Reset() { *m = ReviveOffersMessage{} } -func (m *ReviveOffersMessage) String() string { return proto.CompactTextString(m) } -func (*ReviveOffersMessage) ProtoMessage() {} +func (m *ReviveOffersMessage) Reset() { *m = ReviveOffersMessage{} } +func (*ReviveOffersMessage) ProtoMessage() {} func (m *ReviveOffersMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -632,16 +624,21 @@ func (m *ReviveOffersMessage) GetFrameworkId() *FrameworkID { type RunTaskMessage struct { // TODO(karya): Remove framework_id after MESOS-2559 has shipped. - FrameworkId *FrameworkID `protobuf:"bytes,1,opt,name=framework_id" json:"framework_id,omitempty"` - Framework *FrameworkInfo `protobuf:"bytes,2,req,name=framework" json:"framework,omitempty"` - Pid *string `protobuf:"bytes,3,req,name=pid" json:"pid,omitempty"` - Task *TaskInfo `protobuf:"bytes,4,req,name=task" json:"task,omitempty"` - XXX_unrecognized []byte `json:"-"` + FrameworkId *FrameworkID `protobuf:"bytes,1,opt,name=framework_id" json:"framework_id,omitempty"` + Framework *FrameworkInfo `protobuf:"bytes,2,req,name=framework" json:"framework,omitempty"` + Task *TaskInfo `protobuf:"bytes,4,req,name=task" json:"task,omitempty"` + // The pid of the framework. This was moved to 'optional' in + // 0.24.0 to support schedulers using the HTTP API. For now, we + // continue to always set pid since it was required in 0.23.x. + // When 'pid' is unset, or set to empty string, the slave will + // forward executor messages through the master. For schedulers + // still using the driver, this will remain set. + Pid *string `protobuf:"bytes,3,opt,name=pid" json:"pid,omitempty"` + XXX_unrecognized []byte `json:"-"` } -func (m *RunTaskMessage) Reset() { *m = RunTaskMessage{} } -func (m *RunTaskMessage) String() string { return proto.CompactTextString(m) } -func (*RunTaskMessage) ProtoMessage() {} +func (m *RunTaskMessage) Reset() { *m = RunTaskMessage{} } +func (*RunTaskMessage) ProtoMessage() {} func (m *RunTaskMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -657,13 +654,6 @@ func (m *RunTaskMessage) GetFramework() *FrameworkInfo { return nil } -func (m *RunTaskMessage) GetPid() string { - if m != nil && m.Pid != nil { - return *m.Pid - } - return "" -} - func (m *RunTaskMessage) GetTask() *TaskInfo { if m != nil { return m.Task @@ -671,6 +661,13 @@ func (m *RunTaskMessage) GetTask() *TaskInfo { return nil } +func (m *RunTaskMessage) GetPid() string { + if m != nil && m.Pid != nil { + return *m.Pid + } + return "" +} + type KillTaskMessage struct { // TODO(bmahler): Include the SlaveID here to improve the Master's // ability to respond for non-activated slaves. @@ -679,9 +676,8 @@ type KillTaskMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *KillTaskMessage) Reset() { *m = KillTaskMessage{} } -func (m *KillTaskMessage) String() string { return proto.CompactTextString(m) } -func (*KillTaskMessage) ProtoMessage() {} +func (m *KillTaskMessage) Reset() { *m = KillTaskMessage{} } +func (*KillTaskMessage) ProtoMessage() {} func (m *KillTaskMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -705,9 +701,8 @@ type StatusUpdateMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *StatusUpdateMessage) Reset() { *m = StatusUpdateMessage{} } -func (m *StatusUpdateMessage) String() string { return proto.CompactTextString(m) } -func (*StatusUpdateMessage) ProtoMessage() {} +func (m *StatusUpdateMessage) Reset() { *m = StatusUpdateMessage{} } +func (*StatusUpdateMessage) ProtoMessage() {} func (m *StatusUpdateMessage) GetUpdate() *StatusUpdate { if m != nil { @@ -731,9 +726,8 @@ type StatusUpdateAcknowledgementMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *StatusUpdateAcknowledgementMessage) Reset() { *m = StatusUpdateAcknowledgementMessage{} } -func (m *StatusUpdateAcknowledgementMessage) String() string { return proto.CompactTextString(m) } -func (*StatusUpdateAcknowledgementMessage) ProtoMessage() {} +func (m *StatusUpdateAcknowledgementMessage) Reset() { *m = StatusUpdateAcknowledgementMessage{} } +func (*StatusUpdateAcknowledgementMessage) ProtoMessage() {} func (m *StatusUpdateAcknowledgementMessage) GetSlaveId() *SlaveID { if m != nil { @@ -768,9 +762,8 @@ type LostSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *LostSlaveMessage) Reset() { *m = LostSlaveMessage{} } -func (m *LostSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*LostSlaveMessage) ProtoMessage() {} +func (m *LostSlaveMessage) Reset() { *m = LostSlaveMessage{} } +func (*LostSlaveMessage) ProtoMessage() {} func (m *LostSlaveMessage) GetSlaveId() *SlaveID { if m != nil { @@ -791,9 +784,8 @@ type ReconcileTasksMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReconcileTasksMessage) Reset() { *m = ReconcileTasksMessage{} } -func (m *ReconcileTasksMessage) String() string { return proto.CompactTextString(m) } -func (*ReconcileTasksMessage) ProtoMessage() {} +func (m *ReconcileTasksMessage) Reset() { *m = ReconcileTasksMessage{} } +func (*ReconcileTasksMessage) ProtoMessage() {} func (m *ReconcileTasksMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -814,9 +806,8 @@ type FrameworkErrorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *FrameworkErrorMessage) Reset() { *m = FrameworkErrorMessage{} } -func (m *FrameworkErrorMessage) String() string { return proto.CompactTextString(m) } -func (*FrameworkErrorMessage) ProtoMessage() {} +func (m *FrameworkErrorMessage) Reset() { *m = FrameworkErrorMessage{} } +func (*FrameworkErrorMessage) ProtoMessage() {} func (m *FrameworkErrorMessage) GetMessage() string { if m != nil && m.Message != nil { @@ -838,9 +829,8 @@ type RegisterSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *RegisterSlaveMessage) Reset() { *m = RegisterSlaveMessage{} } -func (m *RegisterSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*RegisterSlaveMessage) ProtoMessage() {} +func (m *RegisterSlaveMessage) Reset() { *m = RegisterSlaveMessage{} } +func (*RegisterSlaveMessage) ProtoMessage() {} func (m *RegisterSlaveMessage) GetSlave() *SlaveInfo { if m != nil { @@ -879,9 +869,8 @@ type ReregisterSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReregisterSlaveMessage) Reset() { *m = ReregisterSlaveMessage{} } -func (m *ReregisterSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*ReregisterSlaveMessage) ProtoMessage() {} +func (m *ReregisterSlaveMessage) Reset() { *m = ReregisterSlaveMessage{} } +func (*ReregisterSlaveMessage) ProtoMessage() {} func (m *ReregisterSlaveMessage) GetSlave() *SlaveInfo { if m != nil { @@ -931,9 +920,8 @@ type SlaveRegisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *SlaveRegisteredMessage) Reset() { *m = SlaveRegisteredMessage{} } -func (m *SlaveRegisteredMessage) String() string { return proto.CompactTextString(m) } -func (*SlaveRegisteredMessage) ProtoMessage() {} +func (m *SlaveRegisteredMessage) Reset() { *m = SlaveRegisteredMessage{} } +func (*SlaveRegisteredMessage) ProtoMessage() {} func (m *SlaveRegisteredMessage) GetSlaveId() *SlaveID { if m != nil { @@ -956,9 +944,8 @@ type SlaveReregisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *SlaveReregisteredMessage) Reset() { *m = SlaveReregisteredMessage{} } -func (m *SlaveReregisteredMessage) String() string { return proto.CompactTextString(m) } -func (*SlaveReregisteredMessage) ProtoMessage() {} +func (m *SlaveReregisteredMessage) Reset() { *m = SlaveReregisteredMessage{} } +func (*SlaveReregisteredMessage) ProtoMessage() {} func (m *SlaveReregisteredMessage) GetSlaveId() *SlaveID { if m != nil { @@ -986,9 +973,8 @@ type UnregisterSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *UnregisterSlaveMessage) Reset() { *m = UnregisterSlaveMessage{} } -func (m *UnregisterSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*UnregisterSlaveMessage) ProtoMessage() {} +func (m *UnregisterSlaveMessage) Reset() { *m = UnregisterSlaveMessage{} } +func (*UnregisterSlaveMessage) ProtoMessage() {} func (m *UnregisterSlaveMessage) GetSlaveId() *SlaveID { if m != nil { @@ -1005,9 +991,8 @@ type MasterSlaveConnection struct { XXX_unrecognized []byte `json:"-"` } -func (m *MasterSlaveConnection) Reset() { *m = MasterSlaveConnection{} } -func (m *MasterSlaveConnection) String() string { return proto.CompactTextString(m) } -func (*MasterSlaveConnection) ProtoMessage() {} +func (m *MasterSlaveConnection) Reset() { *m = MasterSlaveConnection{} } +func (*MasterSlaveConnection) ProtoMessage() {} func (m *MasterSlaveConnection) GetTotalPingTimeoutSeconds() float64 { if m != nil && m.TotalPingTimeoutSeconds != nil { @@ -1023,9 +1008,8 @@ type PingSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *PingSlaveMessage) Reset() { *m = PingSlaveMessage{} } -func (m *PingSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*PingSlaveMessage) ProtoMessage() {} +func (m *PingSlaveMessage) Reset() { *m = PingSlaveMessage{} } +func (*PingSlaveMessage) ProtoMessage() {} func (m *PingSlaveMessage) GetConnected() bool { if m != nil && m.Connected != nil { @@ -1040,9 +1024,8 @@ type PongSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *PongSlaveMessage) Reset() { *m = PongSlaveMessage{} } -func (m *PongSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*PongSlaveMessage) ProtoMessage() {} +func (m *PongSlaveMessage) Reset() { *m = PongSlaveMessage{} } +func (*PongSlaveMessage) ProtoMessage() {} // Tells a slave to shut down all executors of the given framework. type ShutdownFrameworkMessage struct { @@ -1050,9 +1033,8 @@ type ShutdownFrameworkMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ShutdownFrameworkMessage) Reset() { *m = ShutdownFrameworkMessage{} } -func (m *ShutdownFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*ShutdownFrameworkMessage) ProtoMessage() {} +func (m *ShutdownFrameworkMessage) Reset() { *m = ShutdownFrameworkMessage{} } +func (*ShutdownFrameworkMessage) ProtoMessage() {} func (m *ShutdownFrameworkMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -1071,9 +1053,8 @@ type ShutdownExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ShutdownExecutorMessage) Reset() { *m = ShutdownExecutorMessage{} } -func (m *ShutdownExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*ShutdownExecutorMessage) ProtoMessage() {} +func (m *ShutdownExecutorMessage) Reset() { *m = ShutdownExecutorMessage{} } +func (*ShutdownExecutorMessage) ProtoMessage() {} func (m *ShutdownExecutorMessage) GetExecutorId() *ExecutorID { if m != nil { @@ -1090,14 +1071,14 @@ func (m *ShutdownExecutorMessage) GetFrameworkId() *FrameworkID { } type UpdateFrameworkMessage struct { - FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"` - Pid *string `protobuf:"bytes,2,req,name=pid" json:"pid,omitempty"` - XXX_unrecognized []byte `json:"-"` + FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"` + // See the comment on RunTaskMessage.pid. + Pid *string `protobuf:"bytes,2,opt,name=pid" json:"pid,omitempty"` + XXX_unrecognized []byte `json:"-"` } -func (m *UpdateFrameworkMessage) Reset() { *m = UpdateFrameworkMessage{} } -func (m *UpdateFrameworkMessage) String() string { return proto.CompactTextString(m) } -func (*UpdateFrameworkMessage) ProtoMessage() {} +func (m *UpdateFrameworkMessage) Reset() { *m = UpdateFrameworkMessage{} } +func (*UpdateFrameworkMessage) ProtoMessage() {} func (m *UpdateFrameworkMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -1121,9 +1102,8 @@ type CheckpointResourcesMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *CheckpointResourcesMessage) Reset() { *m = CheckpointResourcesMessage{} } -func (m *CheckpointResourcesMessage) String() string { return proto.CompactTextString(m) } -func (*CheckpointResourcesMessage) ProtoMessage() {} +func (m *CheckpointResourcesMessage) Reset() { *m = CheckpointResourcesMessage{} } +func (*CheckpointResourcesMessage) ProtoMessage() {} func (m *CheckpointResourcesMessage) GetResources() []*Resource { if m != nil { @@ -1141,9 +1121,8 @@ type UpdateSlaveMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *UpdateSlaveMessage) Reset() { *m = UpdateSlaveMessage{} } -func (m *UpdateSlaveMessage) String() string { return proto.CompactTextString(m) } -func (*UpdateSlaveMessage) ProtoMessage() {} +func (m *UpdateSlaveMessage) Reset() { *m = UpdateSlaveMessage{} } +func (*UpdateSlaveMessage) ProtoMessage() {} func (m *UpdateSlaveMessage) GetSlaveId() *SlaveID { if m != nil { @@ -1165,9 +1144,8 @@ type RegisterExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *RegisterExecutorMessage) Reset() { *m = RegisterExecutorMessage{} } -func (m *RegisterExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*RegisterExecutorMessage) ProtoMessage() {} +func (m *RegisterExecutorMessage) Reset() { *m = RegisterExecutorMessage{} } +func (*RegisterExecutorMessage) ProtoMessage() {} func (m *RegisterExecutorMessage) GetFrameworkId() *FrameworkID { if m != nil { @@ -1192,9 +1170,8 @@ type ExecutorRegisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ExecutorRegisteredMessage) Reset() { *m = ExecutorRegisteredMessage{} } -func (m *ExecutorRegisteredMessage) String() string { return proto.CompactTextString(m) } -func (*ExecutorRegisteredMessage) ProtoMessage() {} +func (m *ExecutorRegisteredMessage) Reset() { *m = ExecutorRegisteredMessage{} } +func (*ExecutorRegisteredMessage) ProtoMessage() {} func (m *ExecutorRegisteredMessage) GetExecutorInfo() *ExecutorInfo { if m != nil { @@ -1237,9 +1214,8 @@ type ExecutorReregisteredMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ExecutorReregisteredMessage) Reset() { *m = ExecutorReregisteredMessage{} } -func (m *ExecutorReregisteredMessage) String() string { return proto.CompactTextString(m) } -func (*ExecutorReregisteredMessage) ProtoMessage() {} +func (m *ExecutorReregisteredMessage) Reset() { *m = ExecutorReregisteredMessage{} } +func (*ExecutorReregisteredMessage) ProtoMessage() {} func (m *ExecutorReregisteredMessage) GetSlaveId() *SlaveID { if m != nil { @@ -1263,9 +1239,8 @@ type ExitedExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ExitedExecutorMessage) Reset() { *m = ExitedExecutorMessage{} } -func (m *ExitedExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*ExitedExecutorMessage) ProtoMessage() {} +func (m *ExitedExecutorMessage) Reset() { *m = ExitedExecutorMessage{} } +func (*ExitedExecutorMessage) ProtoMessage() {} func (m *ExitedExecutorMessage) GetSlaveId() *SlaveID { if m != nil { @@ -1300,9 +1275,8 @@ type ReconnectExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReconnectExecutorMessage) Reset() { *m = ReconnectExecutorMessage{} } -func (m *ReconnectExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*ReconnectExecutorMessage) ProtoMessage() {} +func (m *ReconnectExecutorMessage) Reset() { *m = ReconnectExecutorMessage{} } +func (*ReconnectExecutorMessage) ProtoMessage() {} func (m *ReconnectExecutorMessage) GetSlaveId() *SlaveID { if m != nil { @@ -1319,9 +1293,8 @@ type ReregisterExecutorMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ReregisterExecutorMessage) Reset() { *m = ReregisterExecutorMessage{} } -func (m *ReregisterExecutorMessage) String() string { return proto.CompactTextString(m) } -func (*ReregisterExecutorMessage) ProtoMessage() {} +func (m *ReregisterExecutorMessage) Reset() { *m = ReregisterExecutorMessage{} } +func (*ReregisterExecutorMessage) ProtoMessage() {} func (m *ReregisterExecutorMessage) GetExecutorId() *ExecutorID { if m != nil { @@ -1356,9 +1329,8 @@ type ShutdownMessage struct { XXX_unrecognized []byte `json:"-"` } -func (m *ShutdownMessage) Reset() { *m = ShutdownMessage{} } -func (m *ShutdownMessage) String() string { return proto.CompactTextString(m) } -func (*ShutdownMessage) ProtoMessage() {} +func (m *ShutdownMessage) Reset() { *m = ShutdownMessage{} } +func (*ShutdownMessage) ProtoMessage() {} func (m *ShutdownMessage) GetMessage() string { if m != nil && m.Message != nil { @@ -1374,9 +1346,8 @@ type Archive struct { XXX_unrecognized []byte `json:"-"` } -func (m *Archive) Reset() { *m = Archive{} } -func (m *Archive) String() string { return proto.CompactTextString(m) } -func (*Archive) ProtoMessage() {} +func (m *Archive) Reset() { *m = Archive{} } +func (*Archive) ProtoMessage() {} func (m *Archive) GetFrameworks() []*Archive_Framework { if m != nil { @@ -1392,9 +1363,8 @@ type Archive_Framework struct { XXX_unrecognized []byte `json:"-"` } -func (m *Archive_Framework) Reset() { *m = Archive_Framework{} } -func (m *Archive_Framework) String() string { return proto.CompactTextString(m) } -func (*Archive_Framework) ProtoMessage() {} +func (m *Archive_Framework) Reset() { *m = Archive_Framework{} } +func (*Archive_Framework) ProtoMessage() {} func (m *Archive_Framework) GetFrameworkInfo() *FrameworkInfo { if m != nil { @@ -1434,9 +1404,8 @@ type TaskHealthStatus struct { XXX_unrecognized []byte `json:"-"` } -func (m *TaskHealthStatus) Reset() { *m = TaskHealthStatus{} } -func (m *TaskHealthStatus) String() string { return proto.CompactTextString(m) } -func (*TaskHealthStatus) ProtoMessage() {} +func (m *TaskHealthStatus) Reset() { *m = TaskHealthStatus{} } +func (*TaskHealthStatus) ProtoMessage() {} const Default_TaskHealthStatus_KillTask bool = false @@ -1475,9 +1444,8 @@ type HookExecuted struct { XXX_unrecognized []byte `json:"-"` } -func (m *HookExecuted) Reset() { *m = HookExecuted{} } -func (m *HookExecuted) String() string { return proto.CompactTextString(m) } -func (*HookExecuted) ProtoMessage() {} +func (m *HookExecuted) Reset() { *m = HookExecuted{} } +func (*HookExecuted) ProtoMessage() {} func (m *HookExecuted) GetModule() string { if m != nil && m.Module != nil { @@ -1489,3 +1457,15380 @@ func (m *HookExecuted) GetModule() string { func init() { proto.RegisterEnum("mesosproto.StatusUpdateRecord_Type", StatusUpdateRecord_Type_name, StatusUpdateRecord_Type_value) } +func (this *Task) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Task) + if !ok { + return fmt.Errorf("that is not of type *Task") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Task but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Taskbut is not nil && this == nil") + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) + } + if !this.TaskId.Equal(that1.TaskId) { + return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if this.State != nil && that1.State != nil { + if *this.State != *that1.State { + return fmt.Errorf("State this(%v) Not Equal that(%v)", *this.State, *that1.State) + } + } else if this.State != nil { + return fmt.Errorf("this.State == nil && that.State != nil") + } else if that1.State != nil { + return fmt.Errorf("State this(%v) Not Equal that(%v)", this.State, that1.State) + } + if len(this.Resources) != len(that1.Resources) { + return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources)) + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return fmt.Errorf("Resources this[%v](%v) Not Equal that[%v](%v)", i, this.Resources[i], i, that1.Resources[i]) + } + } + if len(this.Statuses) != len(that1.Statuses) { + return fmt.Errorf("Statuses this(%v) Not Equal that(%v)", len(this.Statuses), len(that1.Statuses)) + } + for i := range this.Statuses { + if !this.Statuses[i].Equal(that1.Statuses[i]) { + return fmt.Errorf("Statuses this[%v](%v) Not Equal that[%v](%v)", i, this.Statuses[i], i, that1.Statuses[i]) + } + } + if this.StatusUpdateState != nil && that1.StatusUpdateState != nil { + if *this.StatusUpdateState != *that1.StatusUpdateState { + return fmt.Errorf("StatusUpdateState this(%v) Not Equal that(%v)", *this.StatusUpdateState, *that1.StatusUpdateState) + } + } else if this.StatusUpdateState != nil { + return fmt.Errorf("this.StatusUpdateState == nil && that.StatusUpdateState != nil") + } else if that1.StatusUpdateState != nil { + return fmt.Errorf("StatusUpdateState this(%v) Not Equal that(%v)", this.StatusUpdateState, that1.StatusUpdateState) + } + if !bytes.Equal(this.StatusUpdateUuid, that1.StatusUpdateUuid) { + return fmt.Errorf("StatusUpdateUuid this(%v) Not Equal that(%v)", this.StatusUpdateUuid, that1.StatusUpdateUuid) + } + if !this.Labels.Equal(that1.Labels) { + return fmt.Errorf("Labels this(%v) Not Equal that(%v)", this.Labels, that1.Labels) + } + if !this.Discovery.Equal(that1.Discovery) { + return fmt.Errorf("Discovery this(%v) Not Equal that(%v)", this.Discovery, that1.Discovery) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Task) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Task) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { + return false + } else if that1.Name != nil { + return false + } + if !this.TaskId.Equal(that1.TaskId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if this.State != nil && that1.State != nil { + if *this.State != *that1.State { + return false + } + } else if this.State != nil { + return false + } else if that1.State != nil { + return false + } + if len(this.Resources) != len(that1.Resources) { + return false + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return false + } + } + if len(this.Statuses) != len(that1.Statuses) { + return false + } + for i := range this.Statuses { + if !this.Statuses[i].Equal(that1.Statuses[i]) { + return false + } + } + if this.StatusUpdateState != nil && that1.StatusUpdateState != nil { + if *this.StatusUpdateState != *that1.StatusUpdateState { + return false + } + } else if this.StatusUpdateState != nil { + return false + } else if that1.StatusUpdateState != nil { + return false + } + if !bytes.Equal(this.StatusUpdateUuid, that1.StatusUpdateUuid) { + return false + } + if !this.Labels.Equal(that1.Labels) { + return false + } + if !this.Discovery.Equal(that1.Discovery) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *StatusUpdate) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*StatusUpdate) + if !ok { + return fmt.Errorf("that is not of type *StatusUpdate") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *StatusUpdate but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *StatusUpdatebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.Status.Equal(that1.Status) { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status) + } + if this.Timestamp != nil && that1.Timestamp != nil { + if *this.Timestamp != *that1.Timestamp { + return fmt.Errorf("Timestamp this(%v) Not Equal that(%v)", *this.Timestamp, *that1.Timestamp) + } + } else if this.Timestamp != nil { + return fmt.Errorf("this.Timestamp == nil && that.Timestamp != nil") + } else if that1.Timestamp != nil { + return fmt.Errorf("Timestamp this(%v) Not Equal that(%v)", this.Timestamp, that1.Timestamp) + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid) + } + if this.LatestState != nil && that1.LatestState != nil { + if *this.LatestState != *that1.LatestState { + return fmt.Errorf("LatestState this(%v) Not Equal that(%v)", *this.LatestState, *that1.LatestState) + } + } else if this.LatestState != nil { + return fmt.Errorf("this.LatestState == nil && that.LatestState != nil") + } else if that1.LatestState != nil { + return fmt.Errorf("LatestState this(%v) Not Equal that(%v)", this.LatestState, that1.LatestState) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *StatusUpdate) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*StatusUpdate) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.Status.Equal(that1.Status) { + return false + } + if this.Timestamp != nil && that1.Timestamp != nil { + if *this.Timestamp != *that1.Timestamp { + return false + } + } else if this.Timestamp != nil { + return false + } else if that1.Timestamp != nil { + return false + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return false + } + if this.LatestState != nil && that1.LatestState != nil { + if *this.LatestState != *that1.LatestState { + return false + } + } else if this.LatestState != nil { + return false + } else if that1.LatestState != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *StatusUpdateRecord) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*StatusUpdateRecord) + if !ok { + return fmt.Errorf("that is not of type *StatusUpdateRecord") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *StatusUpdateRecord but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *StatusUpdateRecordbut is not nil && this == nil") + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + } + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) + } + if !this.Update.Equal(that1.Update) { + return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update) + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return fmt.Errorf("Uuid this(%v) Not Equal that(%v)", this.Uuid, that1.Uuid) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *StatusUpdateRecord) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*StatusUpdateRecord) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return false + } + } else if this.Type != nil { + return false + } else if that1.Type != nil { + return false + } + if !this.Update.Equal(that1.Update) { + return false + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *SubmitSchedulerRequest) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*SubmitSchedulerRequest) + if !ok { + return fmt.Errorf("that is not of type *SubmitSchedulerRequest") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *SubmitSchedulerRequest but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *SubmitSchedulerRequestbut is not nil && this == nil") + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", *this.Name, *that1.Name) + } + } else if this.Name != nil { + return fmt.Errorf("this.Name == nil && that.Name != nil") + } else if that1.Name != nil { + return fmt.Errorf("Name this(%v) Not Equal that(%v)", this.Name, that1.Name) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *SubmitSchedulerRequest) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*SubmitSchedulerRequest) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Name != nil && that1.Name != nil { + if *this.Name != *that1.Name { + return false + } + } else if this.Name != nil { + return false + } else if that1.Name != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *SubmitSchedulerResponse) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*SubmitSchedulerResponse) + if !ok { + return fmt.Errorf("that is not of type *SubmitSchedulerResponse") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *SubmitSchedulerResponse but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *SubmitSchedulerResponsebut is not nil && this == nil") + } + if this.Okay != nil && that1.Okay != nil { + if *this.Okay != *that1.Okay { + return fmt.Errorf("Okay this(%v) Not Equal that(%v)", *this.Okay, *that1.Okay) + } + } else if this.Okay != nil { + return fmt.Errorf("this.Okay == nil && that.Okay != nil") + } else if that1.Okay != nil { + return fmt.Errorf("Okay this(%v) Not Equal that(%v)", this.Okay, that1.Okay) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *SubmitSchedulerResponse) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*SubmitSchedulerResponse) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Okay != nil && that1.Okay != nil { + if *this.Okay != *that1.Okay { + return false + } + } else if this.Okay != nil { + return false + } else if that1.Okay != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ExecutorToFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ExecutorToFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *ExecutorToFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ExecutorToFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ExecutorToFrameworkMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ExecutorToFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ExecutorToFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkToExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkToExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *FrameworkToExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkToExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkToExecutorMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *FrameworkToExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*FrameworkToExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RegisterFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RegisterFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *RegisterFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RegisterFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RegisterFrameworkMessagebut is not nil && this == nil") + } + if !this.Framework.Equal(that1.Framework) { + return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *RegisterFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*RegisterFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Framework.Equal(that1.Framework) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReregisterFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReregisterFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *ReregisterFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReregisterFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReregisterFrameworkMessagebut is not nil && this == nil") + } + if !this.Framework.Equal(that1.Framework) { + return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework) + } + if this.Failover != nil && that1.Failover != nil { + if *this.Failover != *that1.Failover { + return fmt.Errorf("Failover this(%v) Not Equal that(%v)", *this.Failover, *that1.Failover) + } + } else if this.Failover != nil { + return fmt.Errorf("this.Failover == nil && that.Failover != nil") + } else if that1.Failover != nil { + return fmt.Errorf("Failover this(%v) Not Equal that(%v)", this.Failover, that1.Failover) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReregisterFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReregisterFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Framework.Equal(that1.Framework) { + return false + } + if this.Failover != nil && that1.Failover != nil { + if *this.Failover != *that1.Failover { + return false + } + } else if this.Failover != nil { + return false + } else if that1.Failover != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkRegisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkRegisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *FrameworkRegisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkRegisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkRegisteredMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.MasterInfo.Equal(that1.MasterInfo) { + return fmt.Errorf("MasterInfo this(%v) Not Equal that(%v)", this.MasterInfo, that1.MasterInfo) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *FrameworkRegisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*FrameworkRegisteredMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.MasterInfo.Equal(that1.MasterInfo) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkReregisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkReregisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *FrameworkReregisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkReregisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkReregisteredMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.MasterInfo.Equal(that1.MasterInfo) { + return fmt.Errorf("MasterInfo this(%v) Not Equal that(%v)", this.MasterInfo, that1.MasterInfo) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *FrameworkReregisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*FrameworkReregisteredMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.MasterInfo.Equal(that1.MasterInfo) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *UnregisterFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*UnregisterFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *UnregisterFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *UnregisterFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *UnregisterFrameworkMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *UnregisterFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*UnregisterFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *DeactivateFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*DeactivateFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *DeactivateFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *DeactivateFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *DeactivateFrameworkMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *DeactivateFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*DeactivateFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ResourceRequestMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ResourceRequestMessage) + if !ok { + return fmt.Errorf("that is not of type *ResourceRequestMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ResourceRequestMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ResourceRequestMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if len(this.Requests) != len(that1.Requests) { + return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests)) + } + for i := range this.Requests { + if !this.Requests[i].Equal(that1.Requests[i]) { + return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ResourceRequestMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ResourceRequestMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if len(this.Requests) != len(that1.Requests) { + return false + } + for i := range this.Requests { + if !this.Requests[i].Equal(that1.Requests[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ResourceOffersMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ResourceOffersMessage) + if !ok { + return fmt.Errorf("that is not of type *ResourceOffersMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ResourceOffersMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ResourceOffersMessagebut is not nil && this == nil") + } + if len(this.Offers) != len(that1.Offers) { + return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers)) + } + for i := range this.Offers { + if !this.Offers[i].Equal(that1.Offers[i]) { + return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i]) + } + } + if len(this.Pids) != len(that1.Pids) { + return fmt.Errorf("Pids this(%v) Not Equal that(%v)", len(this.Pids), len(that1.Pids)) + } + for i := range this.Pids { + if this.Pids[i] != that1.Pids[i] { + return fmt.Errorf("Pids this[%v](%v) Not Equal that[%v](%v)", i, this.Pids[i], i, that1.Pids[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ResourceOffersMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ResourceOffersMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Offers) != len(that1.Offers) { + return false + } + for i := range this.Offers { + if !this.Offers[i].Equal(that1.Offers[i]) { + return false + } + } + if len(this.Pids) != len(that1.Pids) { + return false + } + for i := range this.Pids { + if this.Pids[i] != that1.Pids[i] { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *LaunchTasksMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*LaunchTasksMessage) + if !ok { + return fmt.Errorf("that is not of type *LaunchTasksMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *LaunchTasksMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *LaunchTasksMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if len(this.Tasks) != len(that1.Tasks) { + return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks)) + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i]) + } + } + if !this.Filters.Equal(that1.Filters) { + return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters) + } + if len(this.OfferIds) != len(that1.OfferIds) { + return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds)) + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *LaunchTasksMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*LaunchTasksMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if !this.Filters.Equal(that1.Filters) { + return false + } + if len(this.OfferIds) != len(that1.OfferIds) { + return false + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RescindResourceOfferMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RescindResourceOfferMessage) + if !ok { + return fmt.Errorf("that is not of type *RescindResourceOfferMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RescindResourceOfferMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RescindResourceOfferMessagebut is not nil && this == nil") + } + if !this.OfferId.Equal(that1.OfferId) { + return fmt.Errorf("OfferId this(%v) Not Equal that(%v)", this.OfferId, that1.OfferId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *RescindResourceOfferMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*RescindResourceOfferMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.OfferId.Equal(that1.OfferId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReviveOffersMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReviveOffersMessage) + if !ok { + return fmt.Errorf("that is not of type *ReviveOffersMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReviveOffersMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReviveOffersMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReviveOffersMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReviveOffersMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RunTaskMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RunTaskMessage) + if !ok { + return fmt.Errorf("that is not of type *RunTaskMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RunTaskMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RunTaskMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.Framework.Equal(that1.Framework) { + return fmt.Errorf("Framework this(%v) Not Equal that(%v)", this.Framework, that1.Framework) + } + if !this.Task.Equal(that1.Task) { + return fmt.Errorf("Task this(%v) Not Equal that(%v)", this.Task, that1.Task) + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid) + } + } else if this.Pid != nil { + return fmt.Errorf("this.Pid == nil && that.Pid != nil") + } else if that1.Pid != nil { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *RunTaskMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*RunTaskMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.Framework.Equal(that1.Framework) { + return false + } + if !this.Task.Equal(that1.Task) { + return false + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return false + } + } else if this.Pid != nil { + return false + } else if that1.Pid != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *KillTaskMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*KillTaskMessage) + if !ok { + return fmt.Errorf("that is not of type *KillTaskMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *KillTaskMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *KillTaskMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.TaskId.Equal(that1.TaskId) { + return fmt.Errorf("TaskId this(%v) Not Equal that(%v)", this.TaskId, that1.TaskId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *KillTaskMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*KillTaskMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.TaskId.Equal(that1.TaskId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *StatusUpdateMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*StatusUpdateMessage) + if !ok { + return fmt.Errorf("that is not of type *StatusUpdateMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *StatusUpdateMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *StatusUpdateMessagebut is not nil && this == nil") + } + if !this.Update.Equal(that1.Update) { + return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update) + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid) + } + } else if this.Pid != nil { + return fmt.Errorf("this.Pid == nil && that.Pid != nil") + } else if that1.Pid != nil { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *StatusUpdateMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*StatusUpdateMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Update.Equal(that1.Update) { + return false + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return false + } + } else if this.Pid != nil { + return false + } else if that1.Pid != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *StatusUpdateAcknowledgementMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*StatusUpdateAcknowledgementMessage) + if !ok { + return fmt.Errorf("that is not of type *StatusUpdateAcknowledgementMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *StatusUpdateAcknowledgementMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *StatusUpdateAcknowledgementMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + 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) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *StatusUpdateAcknowledgementMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*StatusUpdateAcknowledgementMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.TaskId.Equal(that1.TaskId) { + return false + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *LostSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*LostSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *LostSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *LostSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *LostSlaveMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *LostSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*LostSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReconcileTasksMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReconcileTasksMessage) + if !ok { + return fmt.Errorf("that is not of type *ReconcileTasksMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReconcileTasksMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReconcileTasksMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if len(this.Statuses) != len(that1.Statuses) { + return fmt.Errorf("Statuses this(%v) Not Equal that(%v)", len(this.Statuses), len(that1.Statuses)) + } + for i := range this.Statuses { + if !this.Statuses[i].Equal(that1.Statuses[i]) { + return fmt.Errorf("Statuses this[%v](%v) Not Equal that[%v](%v)", i, this.Statuses[i], i, that1.Statuses[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReconcileTasksMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReconcileTasksMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if len(this.Statuses) != len(that1.Statuses) { + return false + } + for i := range this.Statuses { + if !this.Statuses[i].Equal(that1.Statuses[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *FrameworkErrorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*FrameworkErrorMessage) + if !ok { + return fmt.Errorf("that is not of type *FrameworkErrorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *FrameworkErrorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *FrameworkErrorMessagebut is not nil && this == nil") + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message) + } + } else if this.Message != nil { + return fmt.Errorf("this.Message == nil && that.Message != nil") + } else if that1.Message != nil { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *FrameworkErrorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*FrameworkErrorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return false + } + } else if this.Message != nil { + return false + } else if that1.Message != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RegisterSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RegisterSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *RegisterSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RegisterSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RegisterSlaveMessagebut is not nil && this == nil") + } + if !this.Slave.Equal(that1.Slave) { + return fmt.Errorf("Slave this(%v) Not Equal that(%v)", this.Slave, that1.Slave) + } + if len(this.CheckpointedResources) != len(that1.CheckpointedResources) { + return fmt.Errorf("CheckpointedResources this(%v) Not Equal that(%v)", len(this.CheckpointedResources), len(that1.CheckpointedResources)) + } + for i := range this.CheckpointedResources { + if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) { + return fmt.Errorf("CheckpointedResources this[%v](%v) Not Equal that[%v](%v)", i, this.CheckpointedResources[i], i, that1.CheckpointedResources[i]) + } + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version) + } + } else if this.Version != nil { + return fmt.Errorf("this.Version == nil && that.Version != nil") + } else if that1.Version != nil { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *RegisterSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*RegisterSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Slave.Equal(that1.Slave) { + return false + } + if len(this.CheckpointedResources) != len(that1.CheckpointedResources) { + return false + } + for i := range this.CheckpointedResources { + if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) { + return false + } + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return false + } + } else if this.Version != nil { + return false + } else if that1.Version != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReregisterSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReregisterSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *ReregisterSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReregisterSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReregisterSlaveMessagebut is not nil && this == nil") + } + if !this.Slave.Equal(that1.Slave) { + return fmt.Errorf("Slave this(%v) Not Equal that(%v)", this.Slave, that1.Slave) + } + if len(this.CheckpointedResources) != len(that1.CheckpointedResources) { + return fmt.Errorf("CheckpointedResources this(%v) Not Equal that(%v)", len(this.CheckpointedResources), len(that1.CheckpointedResources)) + } + for i := range this.CheckpointedResources { + if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) { + return fmt.Errorf("CheckpointedResources this[%v](%v) Not Equal that[%v](%v)", i, this.CheckpointedResources[i], i, that1.CheckpointedResources[i]) + } + } + if len(this.ExecutorInfos) != len(that1.ExecutorInfos) { + return fmt.Errorf("ExecutorInfos this(%v) Not Equal that(%v)", len(this.ExecutorInfos), len(that1.ExecutorInfos)) + } + for i := range this.ExecutorInfos { + if !this.ExecutorInfos[i].Equal(that1.ExecutorInfos[i]) { + return fmt.Errorf("ExecutorInfos this[%v](%v) Not Equal that[%v](%v)", i, this.ExecutorInfos[i], i, that1.ExecutorInfos[i]) + } + } + if len(this.Tasks) != len(that1.Tasks) { + return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks)) + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i]) + } + } + if len(this.CompletedFrameworks) != len(that1.CompletedFrameworks) { + return fmt.Errorf("CompletedFrameworks this(%v) Not Equal that(%v)", len(this.CompletedFrameworks), len(that1.CompletedFrameworks)) + } + for i := range this.CompletedFrameworks { + if !this.CompletedFrameworks[i].Equal(that1.CompletedFrameworks[i]) { + return fmt.Errorf("CompletedFrameworks this[%v](%v) Not Equal that[%v](%v)", i, this.CompletedFrameworks[i], i, that1.CompletedFrameworks[i]) + } + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", *this.Version, *that1.Version) + } + } else if this.Version != nil { + return fmt.Errorf("this.Version == nil && that.Version != nil") + } else if that1.Version != nil { + return fmt.Errorf("Version this(%v) Not Equal that(%v)", this.Version, that1.Version) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReregisterSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReregisterSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Slave.Equal(that1.Slave) { + return false + } + if len(this.CheckpointedResources) != len(that1.CheckpointedResources) { + return false + } + for i := range this.CheckpointedResources { + if !this.CheckpointedResources[i].Equal(that1.CheckpointedResources[i]) { + return false + } + } + if len(this.ExecutorInfos) != len(that1.ExecutorInfos) { + return false + } + for i := range this.ExecutorInfos { + if !this.ExecutorInfos[i].Equal(that1.ExecutorInfos[i]) { + return false + } + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if len(this.CompletedFrameworks) != len(that1.CompletedFrameworks) { + return false + } + for i := range this.CompletedFrameworks { + if !this.CompletedFrameworks[i].Equal(that1.CompletedFrameworks[i]) { + return false + } + } + if this.Version != nil && that1.Version != nil { + if *this.Version != *that1.Version { + return false + } + } else if this.Version != nil { + return false + } else if that1.Version != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *SlaveRegisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*SlaveRegisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *SlaveRegisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *SlaveRegisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *SlaveRegisteredMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.Connection.Equal(that1.Connection) { + return fmt.Errorf("Connection this(%v) Not Equal that(%v)", this.Connection, that1.Connection) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *SlaveRegisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*SlaveRegisteredMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.Connection.Equal(that1.Connection) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *SlaveReregisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*SlaveReregisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *SlaveReregisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *SlaveReregisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *SlaveReregisteredMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if len(this.Reconciliations) != len(that1.Reconciliations) { + return fmt.Errorf("Reconciliations this(%v) Not Equal that(%v)", len(this.Reconciliations), len(that1.Reconciliations)) + } + for i := range this.Reconciliations { + if !this.Reconciliations[i].Equal(that1.Reconciliations[i]) { + return fmt.Errorf("Reconciliations this[%v](%v) Not Equal that[%v](%v)", i, this.Reconciliations[i], i, that1.Reconciliations[i]) + } + } + if !this.Connection.Equal(that1.Connection) { + return fmt.Errorf("Connection this(%v) Not Equal that(%v)", this.Connection, that1.Connection) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *SlaveReregisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*SlaveReregisteredMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if len(this.Reconciliations) != len(that1.Reconciliations) { + return false + } + for i := range this.Reconciliations { + if !this.Reconciliations[i].Equal(that1.Reconciliations[i]) { + return false + } + } + if !this.Connection.Equal(that1.Connection) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *UnregisterSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*UnregisterSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *UnregisterSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *UnregisterSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *UnregisterSlaveMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *UnregisterSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*UnregisterSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *MasterSlaveConnection) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*MasterSlaveConnection) + if !ok { + return fmt.Errorf("that is not of type *MasterSlaveConnection") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *MasterSlaveConnection but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *MasterSlaveConnectionbut is not nil && this == nil") + } + if this.TotalPingTimeoutSeconds != nil && that1.TotalPingTimeoutSeconds != nil { + if *this.TotalPingTimeoutSeconds != *that1.TotalPingTimeoutSeconds { + return fmt.Errorf("TotalPingTimeoutSeconds this(%v) Not Equal that(%v)", *this.TotalPingTimeoutSeconds, *that1.TotalPingTimeoutSeconds) + } + } else if this.TotalPingTimeoutSeconds != nil { + return fmt.Errorf("this.TotalPingTimeoutSeconds == nil && that.TotalPingTimeoutSeconds != nil") + } else if that1.TotalPingTimeoutSeconds != nil { + return fmt.Errorf("TotalPingTimeoutSeconds this(%v) Not Equal that(%v)", this.TotalPingTimeoutSeconds, that1.TotalPingTimeoutSeconds) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *MasterSlaveConnection) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*MasterSlaveConnection) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.TotalPingTimeoutSeconds != nil && that1.TotalPingTimeoutSeconds != nil { + if *this.TotalPingTimeoutSeconds != *that1.TotalPingTimeoutSeconds { + return false + } + } else if this.TotalPingTimeoutSeconds != nil { + return false + } else if that1.TotalPingTimeoutSeconds != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *PingSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*PingSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *PingSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *PingSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *PingSlaveMessagebut is not nil && this == nil") + } + if this.Connected != nil && that1.Connected != nil { + if *this.Connected != *that1.Connected { + return fmt.Errorf("Connected this(%v) Not Equal that(%v)", *this.Connected, *that1.Connected) + } + } else if this.Connected != nil { + return fmt.Errorf("this.Connected == nil && that.Connected != nil") + } else if that1.Connected != nil { + return fmt.Errorf("Connected this(%v) Not Equal that(%v)", this.Connected, that1.Connected) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *PingSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*PingSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Connected != nil && that1.Connected != nil { + if *this.Connected != *that1.Connected { + return false + } + } else if this.Connected != nil { + return false + } else if that1.Connected != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *PongSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*PongSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *PongSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *PongSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *PongSlaveMessagebut is not nil && this == nil") + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *PongSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*PongSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ShutdownFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ShutdownFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *ShutdownFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ShutdownFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ShutdownFrameworkMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ShutdownFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ShutdownFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ShutdownExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ShutdownExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *ShutdownExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ShutdownExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ShutdownExecutorMessagebut is not nil && this == nil") + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ShutdownExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ShutdownExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *UpdateFrameworkMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*UpdateFrameworkMessage) + if !ok { + return fmt.Errorf("that is not of type *UpdateFrameworkMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *UpdateFrameworkMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *UpdateFrameworkMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid) + } + } else if this.Pid != nil { + return fmt.Errorf("this.Pid == nil && that.Pid != nil") + } else if that1.Pid != nil { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *UpdateFrameworkMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*UpdateFrameworkMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return false + } + } else if this.Pid != nil { + return false + } else if that1.Pid != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *CheckpointResourcesMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*CheckpointResourcesMessage) + if !ok { + return fmt.Errorf("that is not of type *CheckpointResourcesMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *CheckpointResourcesMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *CheckpointResourcesMessagebut is not nil && this == nil") + } + if len(this.Resources) != len(that1.Resources) { + return fmt.Errorf("Resources this(%v) Not Equal that(%v)", len(this.Resources), len(that1.Resources)) + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return fmt.Errorf("Resources this[%v](%v) Not Equal that[%v](%v)", i, this.Resources[i], i, that1.Resources[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *CheckpointResourcesMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*CheckpointResourcesMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Resources) != len(that1.Resources) { + return false + } + for i := range this.Resources { + if !this.Resources[i].Equal(that1.Resources[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *UpdateSlaveMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*UpdateSlaveMessage) + if !ok { + return fmt.Errorf("that is not of type *UpdateSlaveMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *UpdateSlaveMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *UpdateSlaveMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if len(this.OversubscribedResources) != len(that1.OversubscribedResources) { + return fmt.Errorf("OversubscribedResources this(%v) Not Equal that(%v)", len(this.OversubscribedResources), len(that1.OversubscribedResources)) + } + for i := range this.OversubscribedResources { + if !this.OversubscribedResources[i].Equal(that1.OversubscribedResources[i]) { + return fmt.Errorf("OversubscribedResources this[%v](%v) Not Equal that[%v](%v)", i, this.OversubscribedResources[i], i, that1.OversubscribedResources[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *UpdateSlaveMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*UpdateSlaveMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if len(this.OversubscribedResources) != len(that1.OversubscribedResources) { + return false + } + for i := range this.OversubscribedResources { + if !this.OversubscribedResources[i].Equal(that1.OversubscribedResources[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *RegisterExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*RegisterExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *RegisterExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *RegisterExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *RegisterExecutorMessagebut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *RegisterExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*RegisterExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ExecutorRegisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ExecutorRegisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *ExecutorRegisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ExecutorRegisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ExecutorRegisteredMessagebut 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.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo) + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.SlaveInfo.Equal(that1.SlaveInfo) { + return fmt.Errorf("SlaveInfo this(%v) Not Equal that(%v)", this.SlaveInfo, that1.SlaveInfo) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ExecutorRegisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ExecutorRegisteredMessage) + if !ok { + 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.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.SlaveInfo.Equal(that1.SlaveInfo) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ExecutorReregisteredMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ExecutorReregisteredMessage) + if !ok { + return fmt.Errorf("that is not of type *ExecutorReregisteredMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ExecutorReregisteredMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ExecutorReregisteredMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.SlaveInfo.Equal(that1.SlaveInfo) { + return fmt.Errorf("SlaveInfo this(%v) Not Equal that(%v)", this.SlaveInfo, that1.SlaveInfo) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ExecutorReregisteredMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ExecutorReregisteredMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.SlaveInfo.Equal(that1.SlaveInfo) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ExitedExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ExitedExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *ExitedExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ExitedExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ExitedExecutorMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status) + } + } else if this.Status != nil { + return fmt.Errorf("this.Status == nil && that.Status != nil") + } else if that1.Status != nil { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ExitedExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ExitedExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return false + } + } else if this.Status != nil { + return false + } else if that1.Status != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReconnectExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReconnectExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *ReconnectExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReconnectExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReconnectExecutorMessagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReconnectExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReconnectExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ReregisterExecutorMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ReregisterExecutorMessage) + if !ok { + return fmt.Errorf("that is not of type *ReregisterExecutorMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ReregisterExecutorMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ReregisterExecutorMessagebut is not nil && this == nil") + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if len(this.Tasks) != len(that1.Tasks) { + return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks)) + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i]) + } + } + if len(this.Updates) != len(that1.Updates) { + return fmt.Errorf("Updates this(%v) Not Equal that(%v)", len(this.Updates), len(that1.Updates)) + } + for i := range this.Updates { + if !this.Updates[i].Equal(that1.Updates[i]) { + return fmt.Errorf("Updates this[%v](%v) Not Equal that[%v](%v)", i, this.Updates[i], i, that1.Updates[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ReregisterExecutorMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ReregisterExecutorMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if len(this.Updates) != len(that1.Updates) { + return false + } + for i := range this.Updates { + if !this.Updates[i].Equal(that1.Updates[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *ShutdownMessage) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*ShutdownMessage) + if !ok { + return fmt.Errorf("that is not of type *ShutdownMessage") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *ShutdownMessage but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *ShutdownMessagebut is not nil && this == nil") + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message) + } + } else if this.Message != nil { + return fmt.Errorf("this.Message == nil && that.Message != nil") + } else if that1.Message != nil { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *ShutdownMessage) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*ShutdownMessage) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return false + } + } else if this.Message != nil { + return false + } else if that1.Message != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Archive) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Archive) + if !ok { + return fmt.Errorf("that is not of type *Archive") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Archive but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Archivebut is not nil && this == nil") + } + if len(this.Frameworks) != len(that1.Frameworks) { + return fmt.Errorf("Frameworks this(%v) Not Equal that(%v)", len(this.Frameworks), len(that1.Frameworks)) + } + for i := range this.Frameworks { + if !this.Frameworks[i].Equal(that1.Frameworks[i]) { + return fmt.Errorf("Frameworks this[%v](%v) Not Equal that[%v](%v)", i, this.Frameworks[i], i, that1.Frameworks[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Archive) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Archive) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Frameworks) != len(that1.Frameworks) { + return false + } + for i := range this.Frameworks { + if !this.Frameworks[i].Equal(that1.Frameworks[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Archive_Framework) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Archive_Framework) + if !ok { + return fmt.Errorf("that is not of type *Archive_Framework") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Archive_Framework but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Archive_Frameworkbut is not nil && this == nil") + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo) + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid) + } + } else if this.Pid != nil { + return fmt.Errorf("this.Pid == nil && that.Pid != nil") + } else if that1.Pid != nil { + return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid) + } + if len(this.Tasks) != len(that1.Tasks) { + return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks)) + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Archive_Framework) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Archive_Framework) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return false + } + if this.Pid != nil && that1.Pid != nil { + if *this.Pid != *that1.Pid { + return false + } + } else if this.Pid != nil { + return false + } else if that1.Pid != nil { + return false + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *TaskHealthStatus) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*TaskHealthStatus) + if !ok { + return fmt.Errorf("that is not of type *TaskHealthStatus") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *TaskHealthStatus but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *TaskHealthStatusbut 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.Healthy != nil && that1.Healthy != nil { + if *this.Healthy != *that1.Healthy { + return fmt.Errorf("Healthy this(%v) Not Equal that(%v)", *this.Healthy, *that1.Healthy) + } + } else if this.Healthy != nil { + return fmt.Errorf("this.Healthy == nil && that.Healthy != nil") + } else if that1.Healthy != nil { + return fmt.Errorf("Healthy this(%v) Not Equal that(%v)", this.Healthy, that1.Healthy) + } + if this.KillTask != nil && that1.KillTask != nil { + if *this.KillTask != *that1.KillTask { + return fmt.Errorf("KillTask this(%v) Not Equal that(%v)", *this.KillTask, *that1.KillTask) + } + } else if this.KillTask != nil { + return fmt.Errorf("this.KillTask == nil && that.KillTask != nil") + } else if that1.KillTask != nil { + return fmt.Errorf("KillTask this(%v) Not Equal that(%v)", this.KillTask, that1.KillTask) + } + if this.ConsecutiveFailures != nil && that1.ConsecutiveFailures != nil { + if *this.ConsecutiveFailures != *that1.ConsecutiveFailures { + return fmt.Errorf("ConsecutiveFailures this(%v) Not Equal that(%v)", *this.ConsecutiveFailures, *that1.ConsecutiveFailures) + } + } else if this.ConsecutiveFailures != nil { + return fmt.Errorf("this.ConsecutiveFailures == nil && that.ConsecutiveFailures != nil") + } else if that1.ConsecutiveFailures != nil { + return fmt.Errorf("ConsecutiveFailures this(%v) Not Equal that(%v)", this.ConsecutiveFailures, that1.ConsecutiveFailures) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *TaskHealthStatus) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*TaskHealthStatus) + if !ok { + 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.Healthy != nil && that1.Healthy != nil { + if *this.Healthy != *that1.Healthy { + return false + } + } else if this.Healthy != nil { + return false + } else if that1.Healthy != nil { + return false + } + if this.KillTask != nil && that1.KillTask != nil { + if *this.KillTask != *that1.KillTask { + return false + } + } else if this.KillTask != nil { + return false + } else if that1.KillTask != nil { + return false + } + if this.ConsecutiveFailures != nil && that1.ConsecutiveFailures != nil { + if *this.ConsecutiveFailures != *that1.ConsecutiveFailures { + return false + } + } else if this.ConsecutiveFailures != nil { + return false + } else if that1.ConsecutiveFailures != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *HookExecuted) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*HookExecuted) + if !ok { + return fmt.Errorf("that is not of type *HookExecuted") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *HookExecuted but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *HookExecutedbut is not nil && this == nil") + } + if this.Module != nil && that1.Module != nil { + if *this.Module != *that1.Module { + return fmt.Errorf("Module this(%v) Not Equal that(%v)", *this.Module, *that1.Module) + } + } else if this.Module != nil { + return fmt.Errorf("this.Module == nil && that.Module != nil") + } else if that1.Module != nil { + return fmt.Errorf("Module this(%v) Not Equal that(%v)", this.Module, that1.Module) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *HookExecuted) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*HookExecuted) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Module != nil && that1.Module != nil { + if *this.Module != *that1.Module { + return false + } + } else if this.Module != nil { + return false + } else if that1.Module != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Task) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 16) + s = append(s, "&mesosproto.Task{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMessages(this.Name, "string")+",\n") + } + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.State != nil { + s = append(s, "State: "+valueToGoStringMessages(this.State, "mesosproto.TaskState")+",\n") + } + if this.Resources != nil { + s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n") + } + if this.Statuses != nil { + s = append(s, "Statuses: "+fmt.Sprintf("%#v", this.Statuses)+",\n") + } + if this.StatusUpdateState != nil { + s = append(s, "StatusUpdateState: "+valueToGoStringMessages(this.StatusUpdateState, "mesosproto.TaskState")+",\n") + } + if this.StatusUpdateUuid != nil { + s = append(s, "StatusUpdateUuid: "+valueToGoStringMessages(this.StatusUpdateUuid, "byte")+",\n") + } + if this.Labels != nil { + s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + } + if this.Discovery != nil { + s = append(s, "Discovery: "+fmt.Sprintf("%#v", this.Discovery)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *StatusUpdate) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 11) + s = append(s, "&mesosproto.StatusUpdate{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.Status != nil { + s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") + } + if this.Timestamp != nil { + s = append(s, "Timestamp: "+valueToGoStringMessages(this.Timestamp, "float64")+",\n") + } + if this.Uuid != nil { + s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n") + } + if this.LatestState != nil { + s = append(s, "LatestState: "+valueToGoStringMessages(this.LatestState, "mesosproto.TaskState")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *StatusUpdateRecord) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.StatusUpdateRecord{") + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringMessages(this.Type, "mesosproto.StatusUpdateRecord_Type")+",\n") + } + if this.Update != nil { + s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n") + } + if this.Uuid != nil { + s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SubmitSchedulerRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.SubmitSchedulerRequest{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringMessages(this.Name, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SubmitSchedulerResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.SubmitSchedulerResponse{") + if this.Okay != nil { + s = append(s, "Okay: "+valueToGoStringMessages(this.Okay, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExecutorToFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.ExecutorToFrameworkMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringMessages(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FrameworkToExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.FrameworkToExecutorMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringMessages(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RegisterFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.RegisterFrameworkMessage{") + if this.Framework != nil { + s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReregisterFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ReregisterFrameworkMessage{") + if this.Framework != nil { + s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n") + } + if this.Failover != nil { + s = append(s, "Failover: "+valueToGoStringMessages(this.Failover, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FrameworkRegisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.FrameworkRegisteredMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.MasterInfo != nil { + s = append(s, "MasterInfo: "+fmt.Sprintf("%#v", this.MasterInfo)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FrameworkReregisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.FrameworkReregisteredMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.MasterInfo != nil { + s = append(s, "MasterInfo: "+fmt.Sprintf("%#v", this.MasterInfo)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UnregisterFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.UnregisterFrameworkMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeactivateFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.DeactivateFrameworkMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ResourceRequestMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ResourceRequestMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Requests != nil { + s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ResourceOffersMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ResourceOffersMessage{") + if this.Offers != nil { + s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n") + } + if this.Pids != nil { + s = append(s, "Pids: "+fmt.Sprintf("%#v", this.Pids)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *LaunchTasksMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.LaunchTasksMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + if this.Filters != nil { + s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n") + } + if this.OfferIds != nil { + s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RescindResourceOfferMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.RescindResourceOfferMessage{") + if this.OfferId != nil { + s = append(s, "OfferId: "+fmt.Sprintf("%#v", this.OfferId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReviveOffersMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.ReviveOffersMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RunTaskMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.RunTaskMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Framework != nil { + s = append(s, "Framework: "+fmt.Sprintf("%#v", this.Framework)+",\n") + } + if this.Task != nil { + s = append(s, "Task: "+fmt.Sprintf("%#v", this.Task)+",\n") + } + if this.Pid != nil { + s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *KillTaskMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.KillTaskMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *StatusUpdateMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.StatusUpdateMessage{") + if this.Update != nil { + s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n") + } + if this.Pid != nil { + s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *StatusUpdateAcknowledgementMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.StatusUpdateAcknowledgementMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.Uuid != nil { + s = append(s, "Uuid: "+valueToGoStringMessages(this.Uuid, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *LostSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.LostSlaveMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReconcileTasksMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ReconcileTasksMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Statuses != nil { + s = append(s, "Statuses: "+fmt.Sprintf("%#v", this.Statuses)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FrameworkErrorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.FrameworkErrorMessage{") + if this.Message != nil { + s = append(s, "Message: "+valueToGoStringMessages(this.Message, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RegisterSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.RegisterSlaveMessage{") + if this.Slave != nil { + s = append(s, "Slave: "+fmt.Sprintf("%#v", this.Slave)+",\n") + } + if this.CheckpointedResources != nil { + s = append(s, "CheckpointedResources: "+fmt.Sprintf("%#v", this.CheckpointedResources)+",\n") + } + if this.Version != nil { + s = append(s, "Version: "+valueToGoStringMessages(this.Version, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReregisterSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 10) + s = append(s, "&mesosproto.ReregisterSlaveMessage{") + if this.Slave != nil { + s = append(s, "Slave: "+fmt.Sprintf("%#v", this.Slave)+",\n") + } + if this.CheckpointedResources != nil { + s = append(s, "CheckpointedResources: "+fmt.Sprintf("%#v", this.CheckpointedResources)+",\n") + } + if this.ExecutorInfos != nil { + s = append(s, "ExecutorInfos: "+fmt.Sprintf("%#v", this.ExecutorInfos)+",\n") + } + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + if this.CompletedFrameworks != nil { + s = append(s, "CompletedFrameworks: "+fmt.Sprintf("%#v", this.CompletedFrameworks)+",\n") + } + if this.Version != nil { + s = append(s, "Version: "+valueToGoStringMessages(this.Version, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SlaveRegisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.SlaveRegisteredMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.Connection != nil { + s = append(s, "Connection: "+fmt.Sprintf("%#v", this.Connection)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SlaveReregisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.SlaveReregisteredMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.Reconciliations != nil { + s = append(s, "Reconciliations: "+fmt.Sprintf("%#v", this.Reconciliations)+",\n") + } + if this.Connection != nil { + s = append(s, "Connection: "+fmt.Sprintf("%#v", this.Connection)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UnregisterSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.UnregisterSlaveMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *MasterSlaveConnection) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.MasterSlaveConnection{") + if this.TotalPingTimeoutSeconds != nil { + s = append(s, "TotalPingTimeoutSeconds: "+valueToGoStringMessages(this.TotalPingTimeoutSeconds, "float64")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *PingSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.PingSlaveMessage{") + if this.Connected != nil { + s = append(s, "Connected: "+valueToGoStringMessages(this.Connected, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *PongSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&mesosproto.PongSlaveMessage{") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ShutdownFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.ShutdownFrameworkMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ShutdownExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ShutdownExecutorMessage{") + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateFrameworkMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.UpdateFrameworkMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Pid != nil { + s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *CheckpointResourcesMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.CheckpointResourcesMessage{") + if this.Resources != nil { + s = append(s, "Resources: "+fmt.Sprintf("%#v", this.Resources)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateSlaveMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.UpdateSlaveMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.OversubscribedResources != nil { + s = append(s, "OversubscribedResources: "+fmt.Sprintf("%#v", this.OversubscribedResources)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RegisterExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.RegisterExecutorMessage{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExecutorRegisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&mesosproto.ExecutorRegisteredMessage{") + if this.ExecutorInfo != nil { + s = append(s, "ExecutorInfo: "+fmt.Sprintf("%#v", this.ExecutorInfo)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.FrameworkInfo != nil { + s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.SlaveInfo != nil { + s = append(s, "SlaveInfo: "+fmt.Sprintf("%#v", this.SlaveInfo)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExecutorReregisteredMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.ExecutorReregisteredMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.SlaveInfo != nil { + s = append(s, "SlaveInfo: "+fmt.Sprintf("%#v", this.SlaveInfo)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExitedExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.ExitedExecutorMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Status != nil { + s = append(s, "Status: "+valueToGoStringMessages(this.Status, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReconnectExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.ReconnectExecutorMessage{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ReregisterExecutorMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.ReregisterExecutorMessage{") + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + if this.Updates != nil { + s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ShutdownMessage) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.ShutdownMessage{") + if this.Message != nil { + s = append(s, "Message: "+valueToGoStringMessages(this.Message, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Archive) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Archive{") + if this.Frameworks != nil { + s = append(s, "Frameworks: "+fmt.Sprintf("%#v", this.Frameworks)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Archive_Framework) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Archive_Framework{") + if this.FrameworkInfo != nil { + s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n") + } + if this.Pid != nil { + s = append(s, "Pid: "+valueToGoStringMessages(this.Pid, "string")+",\n") + } + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *TaskHealthStatus) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&mesosproto.TaskHealthStatus{") + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.Healthy != nil { + s = append(s, "Healthy: "+valueToGoStringMessages(this.Healthy, "bool")+",\n") + } + if this.KillTask != nil { + s = append(s, "KillTask: "+valueToGoStringMessages(this.KillTask, "bool")+",\n") + } + if this.ConsecutiveFailures != nil { + s = append(s, "ConsecutiveFailures: "+valueToGoStringMessages(this.ConsecutiveFailures, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *HookExecuted) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.HookExecuted{") + if this.Module != nil { + s = append(s, "Module: "+valueToGoStringMessages(this.Module, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringMessages(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringMessages(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *Task) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Task) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) + } + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.TaskId.Size())) + n1, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n2, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.ExecutorId != nil { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n3, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0x2a + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n4, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.State == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("state") + } else { + data[i] = 0x30 + i++ + i = encodeVarintMessages(data, i, uint64(*m.State)) + } + if len(m.Resources) > 0 { + for _, msg := range m.Resources { + data[i] = 0x3a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Statuses) > 0 { + for _, msg := range m.Statuses { + data[i] = 0x42 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.StatusUpdateState != nil { + data[i] = 0x48 + i++ + i = encodeVarintMessages(data, i, uint64(*m.StatusUpdateState)) + } + if m.StatusUpdateUuid != nil { + data[i] = 0x52 + i++ + i = encodeVarintMessages(data, i, uint64(len(m.StatusUpdateUuid))) + i += copy(data[i:], m.StatusUpdateUuid) + } + if m.Labels != nil { + data[i] = 0x5a + i++ + i = encodeVarintMessages(data, i, uint64(m.Labels.Size())) + n5, err := m.Labels.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.Discovery != nil { + data[i] = 0x62 + i++ + i = encodeVarintMessages(data, i, uint64(m.Discovery.Size())) + n6, err := m.Discovery.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *StatusUpdate) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *StatusUpdate) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n7, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.ExecutorId != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n8, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + } + if m.SlaveId != nil { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n9, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + } + if m.Status == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(m.Status.Size())) + n10, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + } + if m.Timestamp == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("timestamp") + } else { + data[i] = 0x29 + i++ + i = encodeFixed64Messages(data, i, uint64(math.Float64bits(*m.Timestamp))) + } + if m.Uuid != nil { + data[i] = 0x32 + i++ + i = encodeVarintMessages(data, i, uint64(len(m.Uuid))) + i += copy(data[i:], m.Uuid) + } + if m.LatestState != nil { + data[i] = 0x38 + i++ + i = encodeVarintMessages(data, i, uint64(*m.LatestState)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *StatusUpdateRecord) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *StatusUpdateRecord) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Type == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } else { + data[i] = 0x8 + i++ + i = encodeVarintMessages(data, i, uint64(*m.Type)) + } + if m.Update != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.Update.Size())) + n11, err := m.Update.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.Uuid != nil { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(len(m.Uuid))) + i += copy(data[i:], m.Uuid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *SubmitSchedulerRequest) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *SubmitSchedulerRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Name))) + i += copy(data[i:], *m.Name) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *SubmitSchedulerResponse) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *SubmitSchedulerResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Okay == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("okay") + } else { + data[i] = 0x8 + i++ + if *m.Okay { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ExecutorToFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ExecutorToFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n12, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n13, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n14, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.Data == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FrameworkToExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *FrameworkToExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n15, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n16, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n16 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n17, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n17 + } + if m.Data == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RegisterFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *RegisterFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Framework == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.Framework.Size())) + n18, err := m.Framework.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n18 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReregisterFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReregisterFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Framework == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.Framework.Size())) + n19, err := m.Framework.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n19 + } + if m.Failover == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("failover") + } else { + data[i] = 0x18 + i++ + if *m.Failover { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FrameworkRegisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *FrameworkRegisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n20, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n20 + } + if m.MasterInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.MasterInfo.Size())) + n21, err := m.MasterInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n21 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FrameworkReregisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *FrameworkReregisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n22, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n22 + } + if m.MasterInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.MasterInfo.Size())) + n23, err := m.MasterInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *UnregisterFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *UnregisterFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n24, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *DeactivateFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *DeactivateFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n25, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n25 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ResourceRequestMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ResourceRequestMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n26, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n26 + } + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ResourceOffersMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ResourceOffersMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Offers) > 0 { + for _, msg := range m.Offers { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Pids) > 0 { + for _, s := range m.Pids { + data[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + data[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + data[i] = uint8(l) + i++ + i += copy(data[i:], s) + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *LaunchTasksMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *LaunchTasksMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n27, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n27 + } + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Filters == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("filters") + } else { + data[i] = 0x2a + i++ + i = encodeVarintMessages(data, i, uint64(m.Filters.Size())) + n28, err := m.Filters.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n28 + } + if len(m.OfferIds) > 0 { + for _, msg := range m.OfferIds { + data[i] = 0x32 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RescindResourceOfferMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *RescindResourceOfferMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.OfferId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.OfferId.Size())) + n29, err := m.OfferId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n29 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReviveOffersMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReviveOffersMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n30, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n30 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RunTaskMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *RunTaskMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId != nil { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n31, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n31 + } + if m.Framework == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.Framework.Size())) + n32, err := m.Framework.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n32 + } + if m.Pid != nil { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Pid))) + i += copy(data[i:], *m.Pid) + } + if m.Task == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(m.Task.Size())) + n33, err := m.Task.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n33 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *KillTaskMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *KillTaskMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n34, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n34 + } + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.TaskId.Size())) + n35, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n35 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *StatusUpdateMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *StatusUpdateMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Update == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("update") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.Update.Size())) + n36, err := m.Update.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n36 + } + if m.Pid != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Pid))) + i += copy(data[i:], *m.Pid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *StatusUpdateAcknowledgementMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *StatusUpdateAcknowledgementMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n37, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n37 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n38, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n38 + } + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.TaskId.Size())) + n39, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n39 + } + if m.Uuid == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(len(m.Uuid))) + i += copy(data[i:], m.Uuid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *LostSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *LostSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n40, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n40 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReconcileTasksMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReconcileTasksMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n41, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n41 + } + if len(m.Statuses) > 0 { + for _, msg := range m.Statuses { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *FrameworkErrorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *FrameworkErrorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Message == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Message))) + i += copy(data[i:], *m.Message) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RegisterSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *RegisterSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Slave == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.Slave.Size())) + n42, err := m.Slave.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n42 + } + if m.Version != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Version))) + i += copy(data[i:], *m.Version) + } + if len(m.CheckpointedResources) > 0 { + for _, msg := range m.CheckpointedResources { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReregisterSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReregisterSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Slave == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.Slave.Size())) + n43, err := m.Slave.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n43 + } + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.ExecutorInfos) > 0 { + for _, msg := range m.ExecutorInfos { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.CompletedFrameworks) > 0 { + for _, msg := range m.CompletedFrameworks { + data[i] = 0x2a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Version != nil { + data[i] = 0x32 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Version))) + i += copy(data[i:], *m.Version) + } + if len(m.CheckpointedResources) > 0 { + for _, msg := range m.CheckpointedResources { + data[i] = 0x3a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *SlaveRegisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *SlaveRegisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n44, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n44 + } + if m.Connection != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.Connection.Size())) + n45, err := m.Connection.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n45 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *SlaveReregisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *SlaveReregisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n46, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n46 + } + if len(m.Reconciliations) > 0 { + for _, msg := range m.Reconciliations { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Connection != nil { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.Connection.Size())) + n47, err := m.Connection.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n47 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *UnregisterSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *UnregisterSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n48, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n48 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *MasterSlaveConnection) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *MasterSlaveConnection) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TotalPingTimeoutSeconds != nil { + data[i] = 0x9 + i++ + i = encodeFixed64Messages(data, i, uint64(math.Float64bits(*m.TotalPingTimeoutSeconds))) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *PingSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *PingSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Connected == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("connected") + } else { + data[i] = 0x8 + i++ + if *m.Connected { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *PongSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *PongSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ShutdownFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ShutdownFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n49, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n49 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ShutdownExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ShutdownExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ExecutorId != nil { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n50, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n50 + } + if m.FrameworkId != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n51, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n51 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *UpdateFrameworkMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *UpdateFrameworkMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n52, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n52 + } + if m.Pid != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Pid))) + i += copy(data[i:], *m.Pid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *CheckpointResourcesMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *CheckpointResourcesMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Resources) > 0 { + for _, msg := range m.Resources { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *UpdateSlaveMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *UpdateSlaveMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n53, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n53 + } + if len(m.OversubscribedResources) > 0 { + for _, msg := range m.OversubscribedResources { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RegisterExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *RegisterExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n54, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n54 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n55, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n55 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ExecutorRegisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ExecutorRegisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ExecutorInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_info") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorInfo.Size())) + n56, err := m.ExecutorInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n56 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n57, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n57 + } + if m.FrameworkInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } else { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkInfo.Size())) + n58, err := m.FrameworkInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n58 + } + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0x2a + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n59, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n59 + } + if m.SlaveInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info") + } else { + data[i] = 0x32 + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveInfo.Size())) + n60, err := m.SlaveInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n60 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ExecutorReregisteredMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ExecutorReregisteredMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n61, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n61 + } + if m.SlaveInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveInfo.Size())) + n62, err := m.SlaveInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n62 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ExitedExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ExitedExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n63, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n63 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n64, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n64 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n65, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n65 + } + if m.Status == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } else { + data[i] = 0x20 + i++ + i = encodeVarintMessages(data, i, uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReconnectExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReconnectExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.SlaveId.Size())) + n66, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n66 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReregisterExecutorMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReregisterExecutorMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.ExecutorId.Size())) + n67, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n67 + } + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkId.Size())) + n68, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n68 + } + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Updates) > 0 { + for _, msg := range m.Updates { + data[i] = 0x22 + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ShutdownMessage) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ShutdownMessage) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Message != nil { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Message))) + i += copy(data[i:], *m.Message) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Archive) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Archive) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Frameworks) > 0 { + for _, msg := range m.Frameworks { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Archive_Framework) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Archive_Framework) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.FrameworkInfo.Size())) + n69, err := m.FrameworkInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n69 + } + if m.Pid != nil { + data[i] = 0x12 + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Pid))) + i += copy(data[i:], *m.Pid) + } + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + data[i] = 0x1a + i++ + i = encodeVarintMessages(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *TaskHealthStatus) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *TaskHealthStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(m.TaskId.Size())) + n70, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n70 + } + if m.Healthy == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("healthy") + } else { + data[i] = 0x10 + i++ + if *m.Healthy { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.KillTask != nil { + data[i] = 0x18 + i++ + if *m.KillTask { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.ConsecutiveFailures != nil { + data[i] = 0x20 + i++ + i = encodeVarintMessages(data, i, uint64(*m.ConsecutiveFailures)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *HookExecuted) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *HookExecuted) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Module != nil { + data[i] = 0xa + i++ + i = encodeVarintMessages(data, i, uint64(len(*m.Module))) + i += copy(data[i:], *m.Module) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Messages(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Messages(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintMessages(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedTask(r randyMessages, easy bool) *Task { + this := &Task{} + v1 := randStringMessages(r) + this.Name = &v1 + this.TaskId = NewPopulatedTaskID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + this.ExecutorId = NewPopulatedExecutorID(r, easy) + } + this.SlaveId = NewPopulatedSlaveID(r, easy) + v2 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)]) + this.State = &v2 + if r.Intn(10) != 0 { + v3 := r.Intn(10) + this.Resources = make([]*Resource, v3) + for i := 0; i < v3; i++ { + this.Resources[i] = NewPopulatedResource(r, easy) + } + } + if r.Intn(10) != 0 { + v4 := r.Intn(10) + this.Statuses = make([]*TaskStatus, v4) + for i := 0; i < v4; i++ { + this.Statuses[i] = NewPopulatedTaskStatus(r, easy) + } + } + if r.Intn(10) != 0 { + v5 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)]) + this.StatusUpdateState = &v5 + } + if r.Intn(10) != 0 { + v6 := r.Intn(100) + this.StatusUpdateUuid = make([]byte, v6) + for i := 0; i < v6; i++ { + this.StatusUpdateUuid[i] = byte(r.Intn(256)) + } + } + if r.Intn(10) != 0 { + this.Labels = NewPopulatedLabels(r, easy) + } + if r.Intn(10) != 0 { + this.Discovery = NewPopulatedDiscoveryInfo(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 13) + } + return this +} + +func NewPopulatedStatusUpdate(r randyMessages, easy bool) *StatusUpdate { + this := &StatusUpdate{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + this.ExecutorId = NewPopulatedExecutorID(r, easy) + } + if r.Intn(10) != 0 { + this.SlaveId = NewPopulatedSlaveID(r, easy) + } + this.Status = NewPopulatedTaskStatus(r, easy) + v7 := float64(r.Float64()) + if r.Intn(2) == 0 { + v7 *= -1 + } + this.Timestamp = &v7 + if r.Intn(10) != 0 { + v8 := r.Intn(100) + this.Uuid = make([]byte, v8) + for i := 0; i < v8; i++ { + this.Uuid[i] = byte(r.Intn(256)) + } + } + if r.Intn(10) != 0 { + v9 := TaskState([]int32{6, 0, 1, 2, 3, 4, 5, 7}[r.Intn(8)]) + this.LatestState = &v9 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 8) + } + return this +} + +func NewPopulatedStatusUpdateRecord(r randyMessages, easy bool) *StatusUpdateRecord { + this := &StatusUpdateRecord{} + v10 := StatusUpdateRecord_Type([]int32{0, 1}[r.Intn(2)]) + this.Type = &v10 + if r.Intn(10) != 0 { + this.Update = NewPopulatedStatusUpdate(r, easy) + } + if r.Intn(10) != 0 { + v11 := r.Intn(100) + this.Uuid = make([]byte, v11) + for i := 0; i < v11; i++ { + this.Uuid[i] = byte(r.Intn(256)) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 4) + } + return this +} + +func NewPopulatedSubmitSchedulerRequest(r randyMessages, easy bool) *SubmitSchedulerRequest { + this := &SubmitSchedulerRequest{} + v12 := randStringMessages(r) + this.Name = &v12 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedSubmitSchedulerResponse(r randyMessages, easy bool) *SubmitSchedulerResponse { + this := &SubmitSchedulerResponse{} + v13 := bool(bool(r.Intn(2) == 0)) + this.Okay = &v13 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedExecutorToFrameworkMessage(r randyMessages, easy bool) *ExecutorToFrameworkMessage { + this := &ExecutorToFrameworkMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + v14 := r.Intn(100) + this.Data = make([]byte, v14) + for i := 0; i < v14; i++ { + this.Data[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedFrameworkToExecutorMessage(r randyMessages, easy bool) *FrameworkToExecutorMessage { + this := &FrameworkToExecutorMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + v15 := r.Intn(100) + this.Data = make([]byte, v15) + for i := 0; i < v15; i++ { + this.Data[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedRegisterFrameworkMessage(r randyMessages, easy bool) *RegisterFrameworkMessage { + this := &RegisterFrameworkMessage{} + this.Framework = NewPopulatedFrameworkInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedReregisterFrameworkMessage(r randyMessages, easy bool) *ReregisterFrameworkMessage { + this := &ReregisterFrameworkMessage{} + this.Framework = NewPopulatedFrameworkInfo(r, easy) + v16 := bool(bool(r.Intn(2) == 0)) + this.Failover = &v16 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 4) + } + return this +} + +func NewPopulatedFrameworkRegisteredMessage(r randyMessages, easy bool) *FrameworkRegisteredMessage { + this := &FrameworkRegisteredMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.MasterInfo = NewPopulatedMasterInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedFrameworkReregisteredMessage(r randyMessages, easy bool) *FrameworkReregisteredMessage { + this := &FrameworkReregisteredMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.MasterInfo = NewPopulatedMasterInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedUnregisterFrameworkMessage(r randyMessages, easy bool) *UnregisterFrameworkMessage { + this := &UnregisterFrameworkMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedDeactivateFrameworkMessage(r randyMessages, easy bool) *DeactivateFrameworkMessage { + this := &DeactivateFrameworkMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedResourceRequestMessage(r randyMessages, easy bool) *ResourceRequestMessage { + this := &ResourceRequestMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v17 := r.Intn(10) + this.Requests = make([]*Request, v17) + for i := 0; i < v17; i++ { + this.Requests[i] = NewPopulatedRequest(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedResourceOffersMessage(r randyMessages, easy bool) *ResourceOffersMessage { + this := &ResourceOffersMessage{} + if r.Intn(10) != 0 { + v18 := r.Intn(10) + this.Offers = make([]*Offer, v18) + for i := 0; i < v18; i++ { + this.Offers[i] = NewPopulatedOffer(r, easy) + } + } + if r.Intn(10) != 0 { + v19 := r.Intn(10) + this.Pids = make([]string, v19) + for i := 0; i < v19; i++ { + this.Pids[i] = randStringMessages(r) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedLaunchTasksMessage(r randyMessages, easy bool) *LaunchTasksMessage { + this := &LaunchTasksMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v20 := r.Intn(10) + this.Tasks = make([]*TaskInfo, v20) + for i := 0; i < v20; i++ { + this.Tasks[i] = NewPopulatedTaskInfo(r, easy) + } + } + this.Filters = NewPopulatedFilters(r, easy) + if r.Intn(10) != 0 { + v21 := r.Intn(10) + this.OfferIds = make([]*OfferID, v21) + for i := 0; i < v21; i++ { + this.OfferIds[i] = NewPopulatedOfferID(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 7) + } + return this +} + +func NewPopulatedRescindResourceOfferMessage(r randyMessages, easy bool) *RescindResourceOfferMessage { + this := &RescindResourceOfferMessage{} + this.OfferId = NewPopulatedOfferID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedReviveOffersMessage(r randyMessages, easy bool) *ReviveOffersMessage { + this := &ReviveOffersMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedRunTaskMessage(r randyMessages, easy bool) *RunTaskMessage { + this := &RunTaskMessage{} + if r.Intn(10) != 0 { + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + } + this.Framework = NewPopulatedFrameworkInfo(r, easy) + if r.Intn(10) != 0 { + v22 := randStringMessages(r) + this.Pid = &v22 + } + this.Task = NewPopulatedTaskInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedKillTaskMessage(r randyMessages, easy bool) *KillTaskMessage { + this := &KillTaskMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.TaskId = NewPopulatedTaskID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedStatusUpdateMessage(r randyMessages, easy bool) *StatusUpdateMessage { + this := &StatusUpdateMessage{} + this.Update = NewPopulatedStatusUpdate(r, easy) + if r.Intn(10) != 0 { + v23 := randStringMessages(r) + this.Pid = &v23 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedStatusUpdateAcknowledgementMessage(r randyMessages, easy bool) *StatusUpdateAcknowledgementMessage { + this := &StatusUpdateAcknowledgementMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.TaskId = NewPopulatedTaskID(r, easy) + v24 := r.Intn(100) + this.Uuid = make([]byte, v24) + for i := 0; i < v24; i++ { + this.Uuid[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedLostSlaveMessage(r randyMessages, easy bool) *LostSlaveMessage { + this := &LostSlaveMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedReconcileTasksMessage(r randyMessages, easy bool) *ReconcileTasksMessage { + this := &ReconcileTasksMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v25 := r.Intn(10) + this.Statuses = make([]*TaskStatus, v25) + for i := 0; i < v25; i++ { + this.Statuses[i] = NewPopulatedTaskStatus(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedFrameworkErrorMessage(r randyMessages, easy bool) *FrameworkErrorMessage { + this := &FrameworkErrorMessage{} + v26 := randStringMessages(r) + this.Message = &v26 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedRegisterSlaveMessage(r randyMessages, easy bool) *RegisterSlaveMessage { + this := &RegisterSlaveMessage{} + this.Slave = NewPopulatedSlaveInfo(r, easy) + if r.Intn(10) != 0 { + v27 := randStringMessages(r) + this.Version = &v27 + } + if r.Intn(10) != 0 { + v28 := r.Intn(10) + this.CheckpointedResources = make([]*Resource, v28) + for i := 0; i < v28; i++ { + this.CheckpointedResources[i] = NewPopulatedResource(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 4) + } + return this +} + +func NewPopulatedReregisterSlaveMessage(r randyMessages, easy bool) *ReregisterSlaveMessage { + this := &ReregisterSlaveMessage{} + this.Slave = NewPopulatedSlaveInfo(r, easy) + if r.Intn(10) != 0 { + v29 := r.Intn(10) + this.Tasks = make([]*Task, v29) + for i := 0; i < v29; i++ { + this.Tasks[i] = NewPopulatedTask(r, easy) + } + } + if r.Intn(10) != 0 { + v30 := r.Intn(10) + this.ExecutorInfos = make([]*ExecutorInfo, v30) + for i := 0; i < v30; i++ { + this.ExecutorInfos[i] = NewPopulatedExecutorInfo(r, easy) + } + } + if r.Intn(10) != 0 { + v31 := r.Intn(10) + this.CompletedFrameworks = make([]*Archive_Framework, v31) + for i := 0; i < v31; i++ { + this.CompletedFrameworks[i] = NewPopulatedArchive_Framework(r, easy) + } + } + if r.Intn(10) != 0 { + v32 := randStringMessages(r) + this.Version = &v32 + } + if r.Intn(10) != 0 { + v33 := r.Intn(10) + this.CheckpointedResources = make([]*Resource, v33) + for i := 0; i < v33; i++ { + this.CheckpointedResources[i] = NewPopulatedResource(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 8) + } + return this +} + +func NewPopulatedSlaveRegisteredMessage(r randyMessages, easy bool) *SlaveRegisteredMessage { + this := &SlaveRegisteredMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if r.Intn(10) != 0 { + this.Connection = NewPopulatedMasterSlaveConnection(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedSlaveReregisteredMessage(r randyMessages, easy bool) *SlaveReregisteredMessage { + this := &SlaveReregisteredMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if r.Intn(10) != 0 { + v34 := r.Intn(10) + this.Reconciliations = make([]*ReconcileTasksMessage, v34) + for i := 0; i < v34; i++ { + this.Reconciliations[i] = NewPopulatedReconcileTasksMessage(r, easy) + } + } + if r.Intn(10) != 0 { + this.Connection = NewPopulatedMasterSlaveConnection(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 4) + } + return this +} + +func NewPopulatedUnregisterSlaveMessage(r randyMessages, easy bool) *UnregisterSlaveMessage { + this := &UnregisterSlaveMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedMasterSlaveConnection(r randyMessages, easy bool) *MasterSlaveConnection { + this := &MasterSlaveConnection{} + if r.Intn(10) != 0 { + v35 := float64(r.Float64()) + if r.Intn(2) == 0 { + v35 *= -1 + } + this.TotalPingTimeoutSeconds = &v35 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedPingSlaveMessage(r randyMessages, easy bool) *PingSlaveMessage { + this := &PingSlaveMessage{} + v36 := bool(bool(r.Intn(2) == 0)) + this.Connected = &v36 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedPongSlaveMessage(r randyMessages, easy bool) *PongSlaveMessage { + this := &PongSlaveMessage{} + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 1) + } + return this +} + +func NewPopulatedShutdownFrameworkMessage(r randyMessages, easy bool) *ShutdownFrameworkMessage { + this := &ShutdownFrameworkMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedShutdownExecutorMessage(r randyMessages, easy bool) *ShutdownExecutorMessage { + this := &ShutdownExecutorMessage{} + if r.Intn(10) != 0 { + this.ExecutorId = NewPopulatedExecutorID(r, easy) + } + if r.Intn(10) != 0 { + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedUpdateFrameworkMessage(r randyMessages, easy bool) *UpdateFrameworkMessage { + this := &UpdateFrameworkMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v37 := randStringMessages(r) + this.Pid = &v37 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedCheckpointResourcesMessage(r randyMessages, easy bool) *CheckpointResourcesMessage { + this := &CheckpointResourcesMessage{} + if r.Intn(10) != 0 { + v38 := r.Intn(10) + this.Resources = make([]*Resource, v38) + for i := 0; i < v38; i++ { + this.Resources[i] = NewPopulatedResource(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedUpdateSlaveMessage(r randyMessages, easy bool) *UpdateSlaveMessage { + this := &UpdateSlaveMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if r.Intn(10) != 0 { + v39 := r.Intn(10) + this.OversubscribedResources = make([]*Resource, v39) + for i := 0; i < v39; i++ { + this.OversubscribedResources[i] = NewPopulatedResource(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedRegisterExecutorMessage(r randyMessages, easy bool) *RegisterExecutorMessage { + this := &RegisterExecutorMessage{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedExecutorRegisteredMessage(r randyMessages, easy bool) *ExecutorRegisteredMessage { + this := &ExecutorRegisteredMessage{} + this.ExecutorInfo = NewPopulatedExecutorInfo(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.FrameworkInfo = NewPopulatedFrameworkInfo(r, easy) + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.SlaveInfo = NewPopulatedSlaveInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 7) + } + return this +} + +func NewPopulatedExecutorReregisteredMessage(r randyMessages, easy bool) *ExecutorReregisteredMessage { + this := &ExecutorReregisteredMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.SlaveInfo = NewPopulatedSlaveInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 3) + } + return this +} + +func NewPopulatedExitedExecutorMessage(r randyMessages, easy bool) *ExitedExecutorMessage { + this := &ExitedExecutorMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + v40 := int32(r.Int31()) + if r.Intn(2) == 0 { + v40 *= -1 + } + this.Status = &v40 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedReconnectExecutorMessage(r randyMessages, easy bool) *ReconnectExecutorMessage { + this := &ReconnectExecutorMessage{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedReregisterExecutorMessage(r randyMessages, easy bool) *ReregisterExecutorMessage { + this := &ReregisterExecutorMessage{} + this.ExecutorId = NewPopulatedExecutorID(r, easy) + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v41 := r.Intn(10) + this.Tasks = make([]*TaskInfo, v41) + for i := 0; i < v41; i++ { + this.Tasks[i] = NewPopulatedTaskInfo(r, easy) + } + } + if r.Intn(10) != 0 { + v42 := r.Intn(10) + this.Updates = make([]*StatusUpdate, v42) + for i := 0; i < v42; i++ { + this.Updates[i] = NewPopulatedStatusUpdate(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedShutdownMessage(r randyMessages, easy bool) *ShutdownMessage { + this := &ShutdownMessage{} + if r.Intn(10) != 0 { + v43 := randStringMessages(r) + this.Message = &v43 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedArchive(r randyMessages, easy bool) *Archive { + this := &Archive{} + if r.Intn(10) != 0 { + v44 := r.Intn(10) + this.Frameworks = make([]*Archive_Framework, v44) + for i := 0; i < v44; i++ { + this.Frameworks[i] = NewPopulatedArchive_Framework(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +func NewPopulatedArchive_Framework(r randyMessages, easy bool) *Archive_Framework { + this := &Archive_Framework{} + this.FrameworkInfo = NewPopulatedFrameworkInfo(r, easy) + if r.Intn(10) != 0 { + v45 := randStringMessages(r) + this.Pid = &v45 + } + if r.Intn(10) != 0 { + v46 := r.Intn(10) + this.Tasks = make([]*Task, v46) + for i := 0; i < v46; i++ { + this.Tasks[i] = NewPopulatedTask(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 4) + } + return this +} + +func NewPopulatedTaskHealthStatus(r randyMessages, easy bool) *TaskHealthStatus { + this := &TaskHealthStatus{} + this.TaskId = NewPopulatedTaskID(r, easy) + v47 := bool(bool(r.Intn(2) == 0)) + this.Healthy = &v47 + if r.Intn(10) != 0 { + v48 := bool(bool(r.Intn(2) == 0)) + this.KillTask = &v48 + } + if r.Intn(10) != 0 { + v49 := int32(r.Int31()) + if r.Intn(2) == 0 { + v49 *= -1 + } + this.ConsecutiveFailures = &v49 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 5) + } + return this +} + +func NewPopulatedHookExecuted(r randyMessages, easy bool) *HookExecuted { + this := &HookExecuted{} + if r.Intn(10) != 0 { + v50 := randStringMessages(r) + this.Module = &v50 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedMessages(r, 2) + } + return this +} + +type randyMessages interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneMessages(r randyMessages) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringMessages(r randyMessages) string { + v51 := r.Intn(100) + tmps := make([]rune, v51) + for i := 0; i < v51; i++ { + tmps[i] = randUTF8RuneMessages(r) + } + return string(tmps) +} +func randUnrecognizedMessages(r randyMessages, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldMessages(data, r, fieldNumber, wire) + } + return data +} +func randFieldMessages(data []byte, r randyMessages, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateMessages(data, uint64(key)) + v52 := r.Int63() + if r.Intn(2) == 0 { + v52 *= -1 + } + data = encodeVarintPopulateMessages(data, uint64(v52)) + case 1: + data = encodeVarintPopulateMessages(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateMessages(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateMessages(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateMessages(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateMessages(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *Task) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMessages(uint64(l)) + } + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.State != nil { + n += 1 + sovMessages(uint64(*m.State)) + } + if len(m.Resources) > 0 { + for _, e := range m.Resources { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if len(m.Statuses) > 0 { + for _, e := range m.Statuses { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.StatusUpdateState != nil { + n += 1 + sovMessages(uint64(*m.StatusUpdateState)) + } + if m.StatusUpdateUuid != nil { + l = len(m.StatusUpdateUuid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.Labels != nil { + l = m.Labels.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Discovery != nil { + l = m.Discovery.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StatusUpdate) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Timestamp != nil { + n += 9 + } + if m.Uuid != nil { + l = len(m.Uuid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.LatestState != nil { + n += 1 + sovMessages(uint64(*m.LatestState)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StatusUpdateRecord) Size() (n int) { + var l int + _ = l + if m.Type != nil { + n += 1 + sovMessages(uint64(*m.Type)) + } + if m.Update != nil { + l = m.Update.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Uuid != nil { + l = len(m.Uuid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubmitSchedulerRequest) Size() (n int) { + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubmitSchedulerResponse) Size() (n int) { + var l int + _ = l + if m.Okay != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ExecutorToFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FrameworkToExecutorMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RegisterFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.Framework != nil { + l = m.Framework.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReregisterFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.Framework != nil { + l = m.Framework.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Failover != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FrameworkRegisteredMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.MasterInfo != nil { + l = m.MasterInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FrameworkReregisteredMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.MasterInfo != nil { + l = m.MasterInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UnregisterFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DeactivateFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ResourceRequestMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ResourceOffersMessage) Size() (n int) { + var l int + _ = l + if len(m.Offers) > 0 { + for _, e := range m.Offers { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if len(m.Pids) > 0 { + for _, s := range m.Pids { + l = len(s) + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LaunchTasksMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.Filters != nil { + l = m.Filters.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.OfferIds) > 0 { + for _, e := range m.OfferIds { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RescindResourceOfferMessage) Size() (n int) { + var l int + _ = l + if m.OfferId != nil { + l = m.OfferId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReviveOffersMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RunTaskMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Framework != nil { + l = m.Framework.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Pid != nil { + l = len(*m.Pid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.Task != nil { + l = m.Task.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *KillTaskMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StatusUpdateMessage) Size() (n int) { + var l int + _ = l + if m.Update != nil { + l = m.Update.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Pid != nil { + l = len(*m.Pid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StatusUpdateAcknowledgementMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Uuid != nil { + l = len(m.Uuid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LostSlaveMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReconcileTasksMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Statuses) > 0 { + for _, e := range m.Statuses { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FrameworkErrorMessage) Size() (n int) { + var l int + _ = l + if m.Message != nil { + l = len(*m.Message) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RegisterSlaveMessage) Size() (n int) { + var l int + _ = l + if m.Slave != nil { + l = m.Slave.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Version != nil { + l = len(*m.Version) + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.CheckpointedResources) > 0 { + for _, e := range m.CheckpointedResources { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReregisterSlaveMessage) Size() (n int) { + var l int + _ = l + if m.Slave != nil { + l = m.Slave.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if len(m.ExecutorInfos) > 0 { + for _, e := range m.ExecutorInfos { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if len(m.CompletedFrameworks) > 0 { + for _, e := range m.CompletedFrameworks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.Version != nil { + l = len(*m.Version) + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.CheckpointedResources) > 0 { + for _, e := range m.CheckpointedResources { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SlaveRegisteredMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Connection != nil { + l = m.Connection.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SlaveReregisteredMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Reconciliations) > 0 { + for _, e := range m.Reconciliations { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.Connection != nil { + l = m.Connection.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UnregisterSlaveMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *MasterSlaveConnection) Size() (n int) { + var l int + _ = l + if m.TotalPingTimeoutSeconds != nil { + n += 9 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PingSlaveMessage) Size() (n int) { + var l int + _ = l + if m.Connected != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PongSlaveMessage) Size() (n int) { + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ShutdownFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ShutdownExecutorMessage) Size() (n int) { + var l int + _ = l + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UpdateFrameworkMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Pid != nil { + l = len(*m.Pid) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CheckpointResourcesMessage) Size() (n int) { + var l int + _ = l + if len(m.Resources) > 0 { + for _, e := range m.Resources { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UpdateSlaveMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.OversubscribedResources) > 0 { + for _, e := range m.OversubscribedResources { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RegisterExecutorMessage) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ExecutorRegisteredMessage) Size() (n int) { + var l int + _ = l + if m.ExecutorInfo != nil { + l = m.ExecutorInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkInfo != nil { + l = m.FrameworkInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.SlaveInfo != nil { + l = m.SlaveInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ExecutorReregisteredMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.SlaveInfo != nil { + l = m.SlaveInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ExitedExecutorMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Status != nil { + n += 1 + sovMessages(uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReconnectExecutorMessage) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ReregisterExecutorMessage) Size() (n int) { + var l int + _ = l + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if len(m.Updates) > 0 { + for _, e := range m.Updates { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ShutdownMessage) Size() (n int) { + var l int + _ = l + if m.Message != nil { + l = len(*m.Message) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Archive) Size() (n int) { + var l int + _ = l + if len(m.Frameworks) > 0 { + for _, e := range m.Frameworks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Archive_Framework) Size() (n int) { + var l int + _ = l + if m.FrameworkInfo != nil { + l = m.FrameworkInfo.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Pid != nil { + l = len(*m.Pid) + n += 1 + l + sovMessages(uint64(l)) + } + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovMessages(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TaskHealthStatus) Size() (n int) { + var l int + _ = l + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Healthy != nil { + n += 2 + } + if m.KillTask != nil { + n += 2 + } + if m.ConsecutiveFailures != nil { + n += 1 + sovMessages(uint64(*m.ConsecutiveFailures)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *HookExecuted) Size() (n int) { + var l int + _ = l + if m.Module != nil { + l = len(*m.Module) + n += 1 + l + sovMessages(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovMessages(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozMessages(x uint64) (n int) { + return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Task) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Task{`, + `Name:` + valueToStringMessages(this.Name) + `,`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `State:` + valueToStringMessages(this.State) + `,`, + `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`, + `Statuses:` + strings.Replace(fmt.Sprintf("%v", this.Statuses), "TaskStatus", "TaskStatus", 1) + `,`, + `StatusUpdateState:` + valueToStringMessages(this.StatusUpdateState) + `,`, + `StatusUpdateUuid:` + valueToStringMessages(this.StatusUpdateUuid) + `,`, + `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "Labels", "Labels", 1) + `,`, + `Discovery:` + strings.Replace(fmt.Sprintf("%v", this.Discovery), "DiscoveryInfo", "DiscoveryInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatusUpdate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusUpdate{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "TaskStatus", "TaskStatus", 1) + `,`, + `Timestamp:` + valueToStringMessages(this.Timestamp) + `,`, + `Uuid:` + valueToStringMessages(this.Uuid) + `,`, + `LatestState:` + valueToStringMessages(this.LatestState) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatusUpdateRecord) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusUpdateRecord{`, + `Type:` + valueToStringMessages(this.Type) + `,`, + `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "StatusUpdate", "StatusUpdate", 1) + `,`, + `Uuid:` + valueToStringMessages(this.Uuid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SubmitSchedulerRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SubmitSchedulerRequest{`, + `Name:` + valueToStringMessages(this.Name) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SubmitSchedulerResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SubmitSchedulerResponse{`, + `Okay:` + valueToStringMessages(this.Okay) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ExecutorToFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecutorToFrameworkMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Data:` + valueToStringMessages(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *FrameworkToExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FrameworkToExecutorMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Data:` + valueToStringMessages(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RegisterFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RegisterFrameworkMessage{`, + `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReregisterFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReregisterFrameworkMessage{`, + `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `Failover:` + valueToStringMessages(this.Failover) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *FrameworkRegisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FrameworkRegisteredMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `MasterInfo:` + strings.Replace(fmt.Sprintf("%v", this.MasterInfo), "MasterInfo", "MasterInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *FrameworkReregisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FrameworkReregisteredMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `MasterInfo:` + strings.Replace(fmt.Sprintf("%v", this.MasterInfo), "MasterInfo", "MasterInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UnregisterFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UnregisterFrameworkMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *DeactivateFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeactivateFrameworkMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceRequestMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceRequestMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Requests:` + strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "Request", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceOffersMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceOffersMessage{`, + `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "Offer", 1) + `,`, + `Pids:` + fmt.Sprintf("%v", this.Pids) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LaunchTasksMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LaunchTasksMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "TaskInfo", "TaskInfo", 1) + `,`, + `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "Filters", 1) + `,`, + `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "OfferID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RescindResourceOfferMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RescindResourceOfferMessage{`, + `OfferId:` + strings.Replace(fmt.Sprintf("%v", this.OfferId), "OfferID", "OfferID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReviveOffersMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReviveOffersMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RunTaskMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RunTaskMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Framework:` + strings.Replace(fmt.Sprintf("%v", this.Framework), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `Pid:` + valueToStringMessages(this.Pid) + `,`, + `Task:` + strings.Replace(fmt.Sprintf("%v", this.Task), "TaskInfo", "TaskInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *KillTaskMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&KillTaskMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatusUpdateMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusUpdateMessage{`, + `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "StatusUpdate", "StatusUpdate", 1) + `,`, + `Pid:` + valueToStringMessages(this.Pid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *StatusUpdateAcknowledgementMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&StatusUpdateAcknowledgementMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `Uuid:` + valueToStringMessages(this.Uuid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *LostSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LostSlaveMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReconcileTasksMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReconcileTasksMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Statuses:` + strings.Replace(fmt.Sprintf("%v", this.Statuses), "TaskStatus", "TaskStatus", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *FrameworkErrorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FrameworkErrorMessage{`, + `Message:` + valueToStringMessages(this.Message) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RegisterSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RegisterSlaveMessage{`, + `Slave:` + strings.Replace(fmt.Sprintf("%v", this.Slave), "SlaveInfo", "SlaveInfo", 1) + `,`, + `Version:` + valueToStringMessages(this.Version) + `,`, + `CheckpointedResources:` + strings.Replace(fmt.Sprintf("%v", this.CheckpointedResources), "Resource", "Resource", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReregisterSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReregisterSlaveMessage{`, + `Slave:` + strings.Replace(fmt.Sprintf("%v", this.Slave), "SlaveInfo", "SlaveInfo", 1) + `,`, + `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Task", "Task", 1) + `,`, + `ExecutorInfos:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorInfos), "ExecutorInfo", "ExecutorInfo", 1) + `,`, + `CompletedFrameworks:` + strings.Replace(fmt.Sprintf("%v", this.CompletedFrameworks), "Archive_Framework", "Archive_Framework", 1) + `,`, + `Version:` + valueToStringMessages(this.Version) + `,`, + `CheckpointedResources:` + strings.Replace(fmt.Sprintf("%v", this.CheckpointedResources), "Resource", "Resource", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SlaveRegisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SlaveRegisteredMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `Connection:` + strings.Replace(fmt.Sprintf("%v", this.Connection), "MasterSlaveConnection", "MasterSlaveConnection", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *SlaveReregisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SlaveReregisteredMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `Reconciliations:` + strings.Replace(fmt.Sprintf("%v", this.Reconciliations), "ReconcileTasksMessage", "ReconcileTasksMessage", 1) + `,`, + `Connection:` + strings.Replace(fmt.Sprintf("%v", this.Connection), "MasterSlaveConnection", "MasterSlaveConnection", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UnregisterSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UnregisterSlaveMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *MasterSlaveConnection) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&MasterSlaveConnection{`, + `TotalPingTimeoutSeconds:` + valueToStringMessages(this.TotalPingTimeoutSeconds) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *PingSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PingSlaveMessage{`, + `Connected:` + valueToStringMessages(this.Connected) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *PongSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PongSlaveMessage{`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ShutdownFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ShutdownFrameworkMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ShutdownExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ShutdownExecutorMessage{`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateFrameworkMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateFrameworkMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Pid:` + valueToStringMessages(this.Pid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *CheckpointResourcesMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CheckpointResourcesMessage{`, + `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Resource", "Resource", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateSlaveMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateSlaveMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `OversubscribedResources:` + strings.Replace(fmt.Sprintf("%v", this.OversubscribedResources), "Resource", "Resource", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *RegisterExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RegisterExecutorMessage{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ExecutorRegisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecutorRegisteredMessage{`, + `ExecutorInfo:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorInfo), "ExecutorInfo", "ExecutorInfo", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `SlaveInfo:` + strings.Replace(fmt.Sprintf("%v", this.SlaveInfo), "SlaveInfo", "SlaveInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ExecutorReregisteredMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecutorReregisteredMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `SlaveInfo:` + strings.Replace(fmt.Sprintf("%v", this.SlaveInfo), "SlaveInfo", "SlaveInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ExitedExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExitedExecutorMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Status:` + valueToStringMessages(this.Status) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReconnectExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReconnectExecutorMessage{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ReregisterExecutorMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReregisterExecutorMessage{`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "TaskInfo", "TaskInfo", 1) + `,`, + `Updates:` + strings.Replace(fmt.Sprintf("%v", this.Updates), "StatusUpdate", "StatusUpdate", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *ShutdownMessage) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ShutdownMessage{`, + `Message:` + valueToStringMessages(this.Message) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Archive) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Archive{`, + `Frameworks:` + strings.Replace(fmt.Sprintf("%v", this.Frameworks), "Archive_Framework", "Archive_Framework", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Archive_Framework) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Archive_Framework{`, + `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `Pid:` + valueToStringMessages(this.Pid) + `,`, + `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Task", "Task", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *TaskHealthStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskHealthStatus{`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `Healthy:` + valueToStringMessages(this.Healthy) + `,`, + `KillTask:` + valueToStringMessages(this.KillTask) + `,`, + `ConsecutiveFailures:` + valueToStringMessages(this.ConsecutiveFailures) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *HookExecuted) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HookExecuted{`, + `Module:` + valueToStringMessages(this.Module) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringMessages(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Task) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000008) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var v TaskState + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (TaskState(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.State = &v + hasFields[0] |= uint64(0x00000010) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Resources = append(m.Resources, &Resource{}) + if err := m.Resources[len(m.Resources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statuses = append(m.Statuses, &TaskStatus{}) + if err := m.Statuses[len(m.Statuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusUpdateState", wireType) + } + var v TaskState + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (TaskState(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusUpdateState = &v + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusUpdateUuid", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusUpdateUuid = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Labels == nil { + m.Labels = &Labels{} + } + if err := m.Labels.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Discovery", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Discovery == nil { + m.Discovery = &DiscoveryInfo{} + } + if err := m.Discovery.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000010) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("state") + } + + return nil +} +func (m *StatusUpdate) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &TaskStatus{} + } + if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + iNdEx += 8 + v = uint64(data[iNdEx-8]) + v |= uint64(data[iNdEx-7]) << 8 + v |= uint64(data[iNdEx-6]) << 16 + v |= uint64(data[iNdEx-5]) << 24 + v |= uint64(data[iNdEx-4]) << 32 + v |= uint64(data[iNdEx-3]) << 40 + v |= uint64(data[iNdEx-2]) << 48 + v |= uint64(data[iNdEx-1]) << 56 + v2 := float64(math.Float64frombits(v)) + m.Timestamp = &v2 + hasFields[0] |= uint64(0x00000004) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestState", wireType) + } + var v TaskState + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (TaskState(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.LatestState = &v + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("timestamp") + } + + return nil +} +func (m *StatusUpdateRecord) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v StatusUpdateRecord_Type + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (StatusUpdateRecord_Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Update == nil { + m.Update = &StatusUpdate{} + } + if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } + + return nil +} +func (m *SubmitSchedulerRequest) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + + return nil +} +func (m *SubmitSchedulerResponse) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Okay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Okay = &b + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("okay") + } + + return nil +} +func (m *ExecutorToFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000008) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } + + return nil +} +func (m *FrameworkToExecutorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000008) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } + + return nil +} +func (m *RegisterFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Framework == nil { + m.Framework = &FrameworkInfo{} + } + if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } + + return nil +} +func (m *ReregisterFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Framework == nil { + m.Framework = &FrameworkInfo{} + } + if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failover", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Failover = &b + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("failover") + } + + return nil +} +func (m *FrameworkRegisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MasterInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MasterInfo == nil { + m.MasterInfo = &MasterInfo{} + } + if err := m.MasterInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info") + } + + return nil +} +func (m *FrameworkReregisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MasterInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MasterInfo == nil { + m.MasterInfo = &MasterInfo{} + } + if err := m.MasterInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("master_info") + } + + return nil +} +func (m *UnregisterFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *DeactivateFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *ResourceRequestMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &Request{}) + if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *ResourceOffersMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Offers = append(m.Offers, &Offer{}) + if err := m.Offers[len(m.Offers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pids = append(m.Pids, string(data[iNdEx:postIndex])) + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *LaunchTasksMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &TaskInfo{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Filters == nil { + m.Filters = &Filters{} + } + if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfferIds = append(m.OfferIds, &OfferID{}) + if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("filters") + } + + return nil +} +func (m *RescindResourceOfferMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OfferId == nil { + m.OfferId = &OfferID{} + } + if err := m.OfferId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id") + } + + return nil +} +func (m *ReviveOffersMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *RunTaskMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Framework", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Framework == nil { + m.Framework = &FrameworkInfo{} + } + if err := m.Framework.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Pid = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Task == nil { + m.Task = &TaskInfo{} + } + if err := m.Task.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task") + } + + return nil +} +func (m *KillTaskMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + + return nil +} +func (m *StatusUpdateMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Update == nil { + m.Update = &StatusUpdate{} + } + if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Pid = &s + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("update") + } + + return nil +} +func (m *StatusUpdateAcknowledgementMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000008) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid") + } + + return nil +} +func (m *LostSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *ReconcileTasksMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Statuses = append(m.Statuses, &TaskStatus{}) + if err := m.Statuses[len(m.Statuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *FrameworkErrorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } + + return nil +} +func (m *RegisterSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Slave", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Slave == nil { + m.Slave = &SlaveInfo{} + } + if err := m.Slave.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Version = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CheckpointedResources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CheckpointedResources = append(m.CheckpointedResources, &Resource{}) + if err := m.CheckpointedResources[len(m.CheckpointedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave") + } + + return nil +} +func (m *ReregisterSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Slave", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Slave == nil { + m.Slave = &SlaveInfo{} + } + if err := m.Slave.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &Task{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorInfos = append(m.ExecutorInfos, &ExecutorInfo{}) + if err := m.ExecutorInfos[len(m.ExecutorInfos)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompletedFrameworks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CompletedFrameworks = append(m.CompletedFrameworks, &Archive_Framework{}) + if err := m.CompletedFrameworks[len(m.CompletedFrameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Version = &s + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CheckpointedResources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CheckpointedResources = append(m.CheckpointedResources, &Resource{}) + if err := m.CheckpointedResources[len(m.CheckpointedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave") + } + + return nil +} +func (m *SlaveRegisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Connection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Connection == nil { + m.Connection = &MasterSlaveConnection{} + } + if err := m.Connection.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *SlaveReregisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reconciliations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reconciliations = append(m.Reconciliations, &ReconcileTasksMessage{}) + if err := m.Reconciliations[len(m.Reconciliations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Connection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Connection == nil { + m.Connection = &MasterSlaveConnection{} + } + if err := m.Connection.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *UnregisterSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *MasterSlaveConnection) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPingTimeoutSeconds", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + iNdEx += 8 + v = uint64(data[iNdEx-8]) + v |= uint64(data[iNdEx-7]) << 8 + v |= uint64(data[iNdEx-6]) << 16 + v |= uint64(data[iNdEx-5]) << 24 + v |= uint64(data[iNdEx-4]) << 32 + v |= uint64(data[iNdEx-3]) << 40 + v |= uint64(data[iNdEx-2]) << 48 + v |= uint64(data[iNdEx-1]) << 56 + v2 := float64(math.Float64frombits(v)) + m.TotalPingTimeoutSeconds = &v2 + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *PingSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Connected", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Connected = &b + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("connected") + } + + return nil +} +func (m *PongSlaveMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + switch fieldNum { + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *ShutdownFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *ShutdownExecutorMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *UpdateFrameworkMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Pid = &s + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *CheckpointResourcesMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Resources = append(m.Resources, &Resource{}) + if err := m.Resources[len(m.Resources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *UpdateSlaveMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OversubscribedResources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OversubscribedResources = append(m.OversubscribedResources, &Resource{}) + if err := m.OversubscribedResources[len(m.OversubscribedResources)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *RegisterExecutorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + + return nil +} +func (m *ExecutorRegisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorInfo == nil { + m.ExecutorInfo = &ExecutorInfo{} + } + if err := m.ExecutorInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkInfo == nil { + m.FrameworkInfo = &FrameworkInfo{} + } + if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000008) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveInfo == nil { + m.SlaveInfo = &SlaveInfo{} + } + if err := m.SlaveInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000010) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_info") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000010) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info") + } + + return nil +} +func (m *ExecutorReregisteredMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveInfo == nil { + m.SlaveInfo = &SlaveInfo{} + } + if err := m.SlaveInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_info") + } + + return nil +} +func (m *ExitedExecutorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Status = &v + hasFields[0] |= uint64(0x00000008) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } + + return nil +} +func (m *ReconnectExecutorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *ReregisterExecutorMessage) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &TaskInfo{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Updates = append(m.Updates, &StatusUpdate{}) + if err := m.Updates[len(m.Updates)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *ShutdownMessage) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Archive) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Frameworks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Frameworks = append(m.Frameworks, &Archive_Framework{}) + if err := m.Frameworks[len(m.Frameworks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Archive_Framework) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkInfo == nil { + m.FrameworkInfo = &FrameworkInfo{} + } + if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Pid = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &Task{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } + + return nil +} +func (m *TaskHealthStatus) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Healthy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Healthy = &b + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KillTask", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.KillTask = &b + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveFailures", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsecutiveFailures = &v + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("healthy") + } + + return nil +} +func (m *HookExecuted) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Module", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Module = &s + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipMessages(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipMessages(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthMessages + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipMessages(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.proto index d58c99e9da16..49c57ccba479 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/messages.proto @@ -21,10 +21,22 @@ package mesosproto; import "mesos.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; + // TODO(benh): Provide comments for each of these messages. Also, // consider splitting these messages into different "packages" which // represent which messages get handled by which components (e.g., the -// "mesos.internal.executor" package includes messages that the +// "mesos.executor" package includes messages that the // executor handles). @@ -194,8 +206,15 @@ message RunTaskMessage { // TODO(karya): Remove framework_id after MESOS-2559 has shipped. optional FrameworkID framework_id = 1 [deprecated = true]; required FrameworkInfo framework = 2; - required string pid = 3; required TaskInfo task = 4; + + // The pid of the framework. This was moved to 'optional' in + // 0.24.0 to support schedulers using the HTTP API. For now, we + // continue to always set pid since it was required in 0.23.x. + // When 'pid' is unset, or set to empty string, the slave will + // forward executor messages through the master. For schedulers + // still using the driver, this will remain set. + optional string pid = 3; } @@ -336,7 +355,9 @@ message ShutdownExecutorMessage { message UpdateFrameworkMessage { required FrameworkID framework_id = 1; - required string pid = 2; + + // See the comment on RunTaskMessage.pid. + optional string pid = 2; } diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.pb.go index 0157ec37670c..c0a60c796b02 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.pb.go @@ -10,6 +10,16 @@ import math "math" // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -23,9 +33,8 @@ type Registry struct { XXX_unrecognized []byte `json:"-"` } -func (m *Registry) Reset() { *m = Registry{} } -func (m *Registry) String() string { return proto.CompactTextString(m) } -func (*Registry) ProtoMessage() {} +func (m *Registry) Reset() { *m = Registry{} } +func (*Registry) ProtoMessage() {} func (m *Registry) GetMaster() *Registry_Master { if m != nil { @@ -46,9 +55,8 @@ type Registry_Master struct { XXX_unrecognized []byte `json:"-"` } -func (m *Registry_Master) Reset() { *m = Registry_Master{} } -func (m *Registry_Master) String() string { return proto.CompactTextString(m) } -func (*Registry_Master) ProtoMessage() {} +func (m *Registry_Master) Reset() { *m = Registry_Master{} } +func (*Registry_Master) ProtoMessage() {} func (m *Registry_Master) GetInfo() *MasterInfo { if m != nil { @@ -62,9 +70,8 @@ type Registry_Slave struct { XXX_unrecognized []byte `json:"-"` } -func (m *Registry_Slave) Reset() { *m = Registry_Slave{} } -func (m *Registry_Slave) String() string { return proto.CompactTextString(m) } -func (*Registry_Slave) ProtoMessage() {} +func (m *Registry_Slave) Reset() { *m = Registry_Slave{} } +func (*Registry_Slave) ProtoMessage() {} func (m *Registry_Slave) GetInfo() *SlaveInfo { if m != nil { @@ -78,9 +85,8 @@ type Registry_Slaves struct { XXX_unrecognized []byte `json:"-"` } -func (m *Registry_Slaves) Reset() { *m = Registry_Slaves{} } -func (m *Registry_Slaves) String() string { return proto.CompactTextString(m) } -func (*Registry_Slaves) ProtoMessage() {} +func (m *Registry_Slaves) Reset() { *m = Registry_Slaves{} } +func (*Registry_Slaves) ProtoMessage() {} func (m *Registry_Slaves) GetSlaves() []*Registry_Slave { if m != nil { @@ -88,3 +94,1175 @@ func (m *Registry_Slaves) GetSlaves() []*Registry_Slave { } return nil } + +func (this *Registry) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Registry) + if !ok { + return fmt.Errorf("that is not of type *Registry") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Registry but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Registrybut is not nil && this == nil") + } + if !this.Master.Equal(that1.Master) { + return fmt.Errorf("Master this(%v) Not Equal that(%v)", this.Master, that1.Master) + } + if !this.Slaves.Equal(that1.Slaves) { + return fmt.Errorf("Slaves this(%v) Not Equal that(%v)", this.Slaves, that1.Slaves) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Registry) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Registry) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Master.Equal(that1.Master) { + return false + } + if !this.Slaves.Equal(that1.Slaves) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Registry_Master) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Registry_Master) + if !ok { + return fmt.Errorf("that is not of type *Registry_Master") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Registry_Master but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Registry_Masterbut is not nil && this == nil") + } + if !this.Info.Equal(that1.Info) { + return fmt.Errorf("Info this(%v) Not Equal that(%v)", this.Info, that1.Info) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Registry_Master) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Registry_Master) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Info.Equal(that1.Info) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Registry_Slave) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Registry_Slave) + if !ok { + return fmt.Errorf("that is not of type *Registry_Slave") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Registry_Slave but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Registry_Slavebut is not nil && this == nil") + } + if !this.Info.Equal(that1.Info) { + return fmt.Errorf("Info this(%v) Not Equal that(%v)", this.Info, that1.Info) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Registry_Slave) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Registry_Slave) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Info.Equal(that1.Info) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Registry_Slaves) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Registry_Slaves) + if !ok { + return fmt.Errorf("that is not of type *Registry_Slaves") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Registry_Slaves but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Registry_Slavesbut is not nil && this == nil") + } + if len(this.Slaves) != len(that1.Slaves) { + return fmt.Errorf("Slaves this(%v) Not Equal that(%v)", len(this.Slaves), len(that1.Slaves)) + } + for i := range this.Slaves { + if !this.Slaves[i].Equal(that1.Slaves[i]) { + return fmt.Errorf("Slaves this[%v](%v) Not Equal that[%v](%v)", i, this.Slaves[i], i, that1.Slaves[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Registry_Slaves) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Registry_Slaves) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Slaves) != len(that1.Slaves) { + return false + } + for i := range this.Slaves { + if !this.Slaves[i].Equal(that1.Slaves[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Registry) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Registry{") + if this.Master != nil { + s = append(s, "Master: "+fmt.Sprintf("%#v", this.Master)+",\n") + } + if this.Slaves != nil { + s = append(s, "Slaves: "+fmt.Sprintf("%#v", this.Slaves)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Registry_Master) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Registry_Master{") + if this.Info != nil { + s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Registry_Slave) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Registry_Slave{") + if this.Info != nil { + s = append(s, "Info: "+fmt.Sprintf("%#v", this.Info)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Registry_Slaves) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Registry_Slaves{") + if this.Slaves != nil { + s = append(s, "Slaves: "+fmt.Sprintf("%#v", this.Slaves)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringRegistry(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringRegistry(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *Registry) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Registry) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Master != nil { + data[i] = 0xa + i++ + i = encodeVarintRegistry(data, i, uint64(m.Master.Size())) + n1, err := m.Master.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.Slaves != nil { + data[i] = 0x12 + i++ + i = encodeVarintRegistry(data, i, uint64(m.Slaves.Size())) + n2, err := m.Slaves.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Registry_Master) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Registry_Master) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Info == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("info") + } else { + data[i] = 0xa + i++ + i = encodeVarintRegistry(data, i, uint64(m.Info.Size())) + n3, err := m.Info.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Registry_Slave) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Registry_Slave) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Info == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("info") + } else { + data[i] = 0xa + i++ + i = encodeVarintRegistry(data, i, uint64(m.Info.Size())) + n4, err := m.Info.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Registry_Slaves) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Registry_Slaves) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Slaves) > 0 { + for _, msg := range m.Slaves { + data[i] = 0xa + i++ + i = encodeVarintRegistry(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Registry(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Registry(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintRegistry(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedRegistry(r randyRegistry, easy bool) *Registry { + this := &Registry{} + if r.Intn(10) != 0 { + this.Master = NewPopulatedRegistry_Master(r, easy) + } + if r.Intn(10) != 0 { + this.Slaves = NewPopulatedRegistry_Slaves(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedRegistry(r, 3) + } + return this +} + +func NewPopulatedRegistry_Master(r randyRegistry, easy bool) *Registry_Master { + this := &Registry_Master{} + this.Info = NewPopulatedMasterInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedRegistry(r, 2) + } + return this +} + +func NewPopulatedRegistry_Slave(r randyRegistry, easy bool) *Registry_Slave { + this := &Registry_Slave{} + this.Info = NewPopulatedSlaveInfo(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedRegistry(r, 2) + } + return this +} + +func NewPopulatedRegistry_Slaves(r randyRegistry, easy bool) *Registry_Slaves { + this := &Registry_Slaves{} + if r.Intn(10) != 0 { + v1 := r.Intn(10) + this.Slaves = make([]*Registry_Slave, v1) + for i := 0; i < v1; i++ { + this.Slaves[i] = NewPopulatedRegistry_Slave(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedRegistry(r, 2) + } + return this +} + +type randyRegistry interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneRegistry(r randyRegistry) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringRegistry(r randyRegistry) string { + v2 := r.Intn(100) + tmps := make([]rune, v2) + for i := 0; i < v2; i++ { + tmps[i] = randUTF8RuneRegistry(r) + } + return string(tmps) +} +func randUnrecognizedRegistry(r randyRegistry, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldRegistry(data, r, fieldNumber, wire) + } + return data +} +func randFieldRegistry(data []byte, r randyRegistry, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateRegistry(data, uint64(key)) + v3 := r.Int63() + if r.Intn(2) == 0 { + v3 *= -1 + } + data = encodeVarintPopulateRegistry(data, uint64(v3)) + case 1: + data = encodeVarintPopulateRegistry(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateRegistry(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateRegistry(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateRegistry(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateRegistry(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *Registry) Size() (n int) { + var l int + _ = l + if m.Master != nil { + l = m.Master.Size() + n += 1 + l + sovRegistry(uint64(l)) + } + if m.Slaves != nil { + l = m.Slaves.Size() + n += 1 + l + sovRegistry(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Registry_Master) Size() (n int) { + var l int + _ = l + if m.Info != nil { + l = m.Info.Size() + n += 1 + l + sovRegistry(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Registry_Slave) Size() (n int) { + var l int + _ = l + if m.Info != nil { + l = m.Info.Size() + n += 1 + l + sovRegistry(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Registry_Slaves) Size() (n int) { + var l int + _ = l + if len(m.Slaves) > 0 { + for _, e := range m.Slaves { + l = e.Size() + n += 1 + l + sovRegistry(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRegistry(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozRegistry(x uint64) (n int) { + return sovRegistry(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Registry) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Registry{`, + `Master:` + strings.Replace(fmt.Sprintf("%v", this.Master), "Registry_Master", "Registry_Master", 1) + `,`, + `Slaves:` + strings.Replace(fmt.Sprintf("%v", this.Slaves), "Registry_Slaves", "Registry_Slaves", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Registry_Master) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Registry_Master{`, + `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "MasterInfo", "MasterInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Registry_Slave) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Registry_Slave{`, + `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "SlaveInfo", "SlaveInfo", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Registry_Slaves) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Registry_Slaves{`, + `Slaves:` + strings.Replace(fmt.Sprintf("%v", this.Slaves), "Registry_Slave", "Registry_Slave", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringRegistry(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Registry) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Master", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRegistry + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Master == nil { + m.Master = &Registry_Master{} + } + if err := m.Master.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Slaves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRegistry + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Slaves == nil { + m.Slaves = &Registry_Slaves{} + } + if err := m.Slaves.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipRegistry(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRegistry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Registry_Master) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRegistry + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Info == nil { + m.Info = &MasterInfo{} + } + if err := m.Info.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipRegistry(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRegistry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("info") + } + + return nil +} +func (m *Registry_Slave) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRegistry + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Info == nil { + m.Info = &SlaveInfo{} + } + if err := m.Info.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipRegistry(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRegistry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("info") + } + + return nil +} +func (m *Registry_Slaves) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Slaves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRegistry + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Slaves = append(m.Slaves, &Registry_Slave{}) + if err := m.Slaves[len(m.Slaves)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipRegistry(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRegistry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipRegistry(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthRegistry + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipRegistry(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthRegistry = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.proto index 751e6a314dcd..e9bc34b18067 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/registry.proto @@ -21,6 +21,18 @@ package mesosproto; import "mesos.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; + message Registry { message Master { required MasterInfo info = 1; diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.pb.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.pb.go index 29a56ce181ae..067183466996 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.pb.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.pb.go @@ -10,6 +10,16 @@ import math "math" // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto" +import bytes "bytes" + +import strings "strings" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import sort "sort" +import strconv "strconv" +import reflect "reflect" + +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -27,6 +37,14 @@ const ( Event_MESSAGE Event_Type = 5 Event_FAILURE Event_Type = 6 Event_ERROR Event_Type = 7 + // Periodic message sent by the Mesos master according to + // 'Subscribed.heartbeat_interval_seconds'. If the scheduler does + // not receive any events (including heartbeats) for an extended + // period of time (e.g., 5 x heartbeat_interval_seconds), there is + // likely a network partition. In such a case the scheduler should + // close the existing subscription connection and resubscribe + // using a backoff strategy. + Event_HEARTBEAT Event_Type = 8 ) var Event_Type_name = map[int32]string{ @@ -37,6 +55,7 @@ var Event_Type_name = map[int32]string{ 5: "MESSAGE", 6: "FAILURE", 7: "ERROR", + 8: "HEARTBEAT", } var Event_Type_value = map[string]int32{ "SUBSCRIBED": 1, @@ -46,6 +65,7 @@ var Event_Type_value = map[string]int32{ "MESSAGE": 5, "FAILURE": 6, "ERROR": 7, + "HEARTBEAT": 8, } func (x Event_Type) Enum() *Event_Type { @@ -80,6 +100,7 @@ const ( Call_ACKNOWLEDGE Call_Type = 8 Call_RECONCILE Call_Type = 9 Call_MESSAGE Call_Type = 10 + Call_REQUEST Call_Type = 11 ) var Call_Type_name = map[int32]string{ @@ -93,6 +114,7 @@ var Call_Type_name = map[int32]string{ 8: "ACKNOWLEDGE", 9: "RECONCILE", 10: "MESSAGE", + 11: "REQUEST", } var Call_Type_value = map[string]int32{ "SUBSCRIBE": 1, @@ -105,6 +127,7 @@ var Call_Type_value = map[string]int32{ "ACKNOWLEDGE": 8, "RECONCILE": 9, "MESSAGE": 10, + "REQUEST": 11, } func (x Call_Type) Enum() *Call_Type { @@ -144,9 +167,8 @@ type Event struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} +func (m *Event) Reset() { *m = Event{} } +func (*Event) ProtoMessage() {} func (m *Event) GetType() Event_Type { if m != nil && m.Type != nil { @@ -206,13 +228,17 @@ func (m *Event) GetError() *Event_Error { // First event received when the scheduler subscribes. type Event_Subscribed struct { - FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"` - XXX_unrecognized []byte `json:"-"` + FrameworkId *FrameworkID `protobuf:"bytes,1,req,name=framework_id" json:"framework_id,omitempty"` + // This value will be set if the master is sending heartbeats. See + // the comment above on 'HEARTBEAT' for more details. + // TODO(vinod): Implement heartbeats in the master once the master + // can send HTTP events. + HeartbeatIntervalSeconds *float64 `protobuf:"fixed64,2,opt,name=heartbeat_interval_seconds" json:"heartbeat_interval_seconds,omitempty"` + XXX_unrecognized []byte `json:"-"` } -func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} } -func (m *Event_Subscribed) String() string { return proto.CompactTextString(m) } -func (*Event_Subscribed) ProtoMessage() {} +func (m *Event_Subscribed) Reset() { *m = Event_Subscribed{} } +func (*Event_Subscribed) ProtoMessage() {} func (m *Event_Subscribed) GetFrameworkId() *FrameworkID { if m != nil { @@ -221,6 +247,13 @@ func (m *Event_Subscribed) GetFrameworkId() *FrameworkID { return nil } +func (m *Event_Subscribed) GetHeartbeatIntervalSeconds() float64 { + if m != nil && m.HeartbeatIntervalSeconds != nil { + return *m.HeartbeatIntervalSeconds + } + return 0 +} + // Received whenever there are new resources that are offered to the // scheduler. Each offer corresponds to a set of resources on a // slave. Until the scheduler accepts or declines an offer the @@ -230,9 +263,8 @@ type Event_Offers struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Offers) Reset() { *m = Event_Offers{} } -func (m *Event_Offers) String() string { return proto.CompactTextString(m) } -func (*Event_Offers) ProtoMessage() {} +func (m *Event_Offers) Reset() { *m = Event_Offers{} } +func (*Event_Offers) ProtoMessage() {} func (m *Event_Offers) GetOffers() []*Offer { if m != nil { @@ -250,9 +282,8 @@ type Event_Rescind struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Rescind) Reset() { *m = Event_Rescind{} } -func (m *Event_Rescind) String() string { return proto.CompactTextString(m) } -func (*Event_Rescind) ProtoMessage() {} +func (m *Event_Rescind) Reset() { *m = Event_Rescind{} } +func (*Event_Rescind) ProtoMessage() {} func (m *Event_Rescind) GetOfferId() *OfferID { if m != nil { @@ -275,9 +306,8 @@ type Event_Update struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Update) Reset() { *m = Event_Update{} } -func (m *Event_Update) String() string { return proto.CompactTextString(m) } -func (*Event_Update) ProtoMessage() {} +func (m *Event_Update) Reset() { *m = Event_Update{} } +func (*Event_Update) ProtoMessage() {} func (m *Event_Update) GetStatus() *TaskStatus { if m != nil { @@ -298,9 +328,8 @@ type Event_Message struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Message) Reset() { *m = Event_Message{} } -func (m *Event_Message) String() string { return proto.CompactTextString(m) } -func (*Event_Message) ProtoMessage() {} +func (m *Event_Message) Reset() { *m = Event_Message{} } +func (*Event_Message) ProtoMessage() {} func (m *Event_Message) GetSlaveId() *SlaveID { if m != nil { @@ -343,9 +372,8 @@ type Event_Failure struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Failure) Reset() { *m = Event_Failure{} } -func (m *Event_Failure) String() string { return proto.CompactTextString(m) } -func (*Event_Failure) ProtoMessage() {} +func (m *Event_Failure) Reset() { *m = Event_Failure{} } +func (*Event_Failure) ProtoMessage() {} func (m *Event_Failure) GetSlaveId() *SlaveID { if m != nil { @@ -380,9 +408,8 @@ type Event_Error struct { XXX_unrecognized []byte `json:"-"` } -func (m *Event_Error) Reset() { *m = Event_Error{} } -func (m *Event_Error) String() string { return proto.CompactTextString(m) } -func (*Event_Error) ProtoMessage() {} +func (m *Event_Error) Reset() { *m = Event_Error{} } +func (*Event_Error) ProtoMessage() {} func (m *Event_Error) GetMessage() string { if m != nil && m.Message != nil { @@ -415,12 +442,12 @@ type Call struct { Acknowledge *Call_Acknowledge `protobuf:"bytes,8,opt,name=acknowledge" json:"acknowledge,omitempty"` Reconcile *Call_Reconcile `protobuf:"bytes,9,opt,name=reconcile" json:"reconcile,omitempty"` Message *Call_Message `protobuf:"bytes,10,opt,name=message" json:"message,omitempty"` + Request *Call_Request `protobuf:"bytes,11,opt,name=request" json:"request,omitempty"` XXX_unrecognized []byte `json:"-"` } -func (m *Call) Reset() { *m = Call{} } -func (m *Call) String() string { return proto.CompactTextString(m) } -func (*Call) ProtoMessage() {} +func (m *Call) Reset() { *m = Call{} } +func (*Call) ProtoMessage() {} func (m *Call) GetFrameworkId() *FrameworkID { if m != nil { @@ -492,6 +519,13 @@ func (m *Call) GetMessage() *Call_Message { return nil } +func (m *Call) GetRequest() *Call_Request { + if m != nil { + return m.Request + } + return nil +} + // Subscribes the scheduler with the master to receive events. A // scheduler must send other calls only after it has received the // SUBCRIBED event. @@ -516,9 +550,8 @@ type Call_Subscribe struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} } -func (m *Call_Subscribe) String() string { return proto.CompactTextString(m) } -func (*Call_Subscribe) ProtoMessage() {} +func (m *Call_Subscribe) Reset() { *m = Call_Subscribe{} } +func (*Call_Subscribe) ProtoMessage() {} func (m *Call_Subscribe) GetFrameworkInfo() *FrameworkInfo { if m != nil { @@ -562,9 +595,8 @@ type Call_Accept struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Accept) Reset() { *m = Call_Accept{} } -func (m *Call_Accept) String() string { return proto.CompactTextString(m) } -func (*Call_Accept) ProtoMessage() {} +func (m *Call_Accept) Reset() { *m = Call_Accept{} } +func (*Call_Accept) ProtoMessage() {} func (m *Call_Accept) GetOfferIds() []*OfferID { if m != nil { @@ -597,9 +629,8 @@ type Call_Decline struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Decline) Reset() { *m = Call_Decline{} } -func (m *Call_Decline) String() string { return proto.CompactTextString(m) } -func (*Call_Decline) ProtoMessage() {} +func (m *Call_Decline) Reset() { *m = Call_Decline{} } +func (*Call_Decline) ProtoMessage() {} func (m *Call_Decline) GetOfferIds() []*OfferID { if m != nil { @@ -628,9 +659,8 @@ type Call_Kill struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Kill) Reset() { *m = Call_Kill{} } -func (m *Call_Kill) String() string { return proto.CompactTextString(m) } -func (*Call_Kill) ProtoMessage() {} +func (m *Call_Kill) Reset() { *m = Call_Kill{} } +func (*Call_Kill) ProtoMessage() {} func (m *Call_Kill) GetTaskId() *TaskID { if m != nil { @@ -659,9 +689,8 @@ type Call_Shutdown struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Shutdown) Reset() { *m = Call_Shutdown{} } -func (m *Call_Shutdown) String() string { return proto.CompactTextString(m) } -func (*Call_Shutdown) ProtoMessage() {} +func (m *Call_Shutdown) Reset() { *m = Call_Shutdown{} } +func (*Call_Shutdown) ProtoMessage() {} func (m *Call_Shutdown) GetExecutorId() *ExecutorID { if m != nil { @@ -689,9 +718,8 @@ type Call_Acknowledge struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Acknowledge) Reset() { *m = Call_Acknowledge{} } -func (m *Call_Acknowledge) String() string { return proto.CompactTextString(m) } -func (*Call_Acknowledge) ProtoMessage() {} +func (m *Call_Acknowledge) Reset() { *m = Call_Acknowledge{} } +func (*Call_Acknowledge) ProtoMessage() {} func (m *Call_Acknowledge) GetSlaveId() *SlaveID { if m != nil { @@ -725,9 +753,8 @@ type Call_Reconcile struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Reconcile) Reset() { *m = Call_Reconcile{} } -func (m *Call_Reconcile) String() string { return proto.CompactTextString(m) } -func (*Call_Reconcile) ProtoMessage() {} +func (m *Call_Reconcile) Reset() { *m = Call_Reconcile{} } +func (*Call_Reconcile) ProtoMessage() {} func (m *Call_Reconcile) GetTasks() []*Call_Reconcile_Task { if m != nil { @@ -743,9 +770,8 @@ type Call_Reconcile_Task struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Reconcile_Task) Reset() { *m = Call_Reconcile_Task{} } -func (m *Call_Reconcile_Task) String() string { return proto.CompactTextString(m) } -func (*Call_Reconcile_Task) ProtoMessage() {} +func (m *Call_Reconcile_Task) Reset() { *m = Call_Reconcile_Task{} } +func (*Call_Reconcile_Task) ProtoMessage() {} func (m *Call_Reconcile_Task) GetTaskId() *TaskID { if m != nil { @@ -771,9 +797,8 @@ type Call_Message struct { XXX_unrecognized []byte `json:"-"` } -func (m *Call_Message) Reset() { *m = Call_Message{} } -func (m *Call_Message) String() string { return proto.CompactTextString(m) } -func (*Call_Message) ProtoMessage() {} +func (m *Call_Message) Reset() { *m = Call_Message{} } +func (*Call_Message) ProtoMessage() {} func (m *Call_Message) GetSlaveId() *SlaveID { if m != nil { @@ -796,7 +821,6356 @@ func (m *Call_Message) GetData() []byte { return nil } +// Requests a specific set of resources from Mesos's allocator. If +// the allocator has support for this, corresponding offers will be +// sent asynchronously via the OFFERS event(s). +// +// NOTE: The built-in hierarchical allocator doesn't have support +// for this call and hence simply ignores it. +type Call_Request struct { + Requests []*Request `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *Call_Request) Reset() { *m = Call_Request{} } +func (*Call_Request) ProtoMessage() {} + +func (m *Call_Request) GetRequests() []*Request { + if m != nil { + return m.Requests + } + return nil +} + func init() { proto.RegisterEnum("mesosproto.Event_Type", Event_Type_name, Event_Type_value) proto.RegisterEnum("mesosproto.Call_Type", Call_Type_name, Call_Type_value) } +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 { + 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 *Eventbut is not nil && this == nil") + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + } + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + 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.Offers.Equal(that1.Offers) { + return fmt.Errorf("Offers this(%v) Not Equal that(%v)", this.Offers, that1.Offers) + } + if !this.Rescind.Equal(that1.Rescind) { + return fmt.Errorf("Rescind this(%v) Not Equal that(%v)", this.Rescind, that1.Rescind) + } + if !this.Update.Equal(that1.Update) { + return fmt.Errorf("Update this(%v) Not Equal that(%v)", this.Update, that1.Update) + } + if !this.Message.Equal(that1.Message) { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if !this.Failure.Equal(that1.Failure) { + return fmt.Errorf("Failure this(%v) Not Equal that(%v)", this.Failure, that1.Failure) + } + if !this.Error.Equal(that1.Error) { + return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + 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 { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return false + } + } else if this.Type != nil { + return false + } else if that1.Type != nil { + return false + } + if !this.Subscribed.Equal(that1.Subscribed) { + return false + } + if !this.Offers.Equal(that1.Offers) { + return false + } + if !this.Rescind.Equal(that1.Rescind) { + return false + } + if !this.Update.Equal(that1.Update) { + return false + } + if !this.Message.Equal(that1.Message) { + return false + } + if !this.Failure.Equal(that1.Failure) { + return false + } + if !this.Error.Equal(that1.Error) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + 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 { + 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_Subscribedbut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil { + if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds { + return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", *this.HeartbeatIntervalSeconds, *that1.HeartbeatIntervalSeconds) + } + } else if this.HeartbeatIntervalSeconds != nil { + return fmt.Errorf("this.HeartbeatIntervalSeconds == nil && that.HeartbeatIntervalSeconds != nil") + } else if that1.HeartbeatIntervalSeconds != nil { + return fmt.Errorf("HeartbeatIntervalSeconds this(%v) Not Equal that(%v)", this.HeartbeatIntervalSeconds, that1.HeartbeatIntervalSeconds) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + 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 { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if this.HeartbeatIntervalSeconds != nil && that1.HeartbeatIntervalSeconds != nil { + if *this.HeartbeatIntervalSeconds != *that1.HeartbeatIntervalSeconds { + return false + } + } else if this.HeartbeatIntervalSeconds != nil { + return false + } else if that1.HeartbeatIntervalSeconds != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Offers) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Offers) + if !ok { + return fmt.Errorf("that is not of type *Event_Offers") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Offers but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Offersbut is not nil && this == nil") + } + if len(this.Offers) != len(that1.Offers) { + return fmt.Errorf("Offers this(%v) Not Equal that(%v)", len(this.Offers), len(that1.Offers)) + } + for i := range this.Offers { + if !this.Offers[i].Equal(that1.Offers[i]) { + return fmt.Errorf("Offers this[%v](%v) Not Equal that[%v](%v)", i, this.Offers[i], i, that1.Offers[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Offers) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Offers) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Offers) != len(that1.Offers) { + return false + } + for i := range this.Offers { + if !this.Offers[i].Equal(that1.Offers[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Rescind) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Rescind) + if !ok { + return fmt.Errorf("that is not of type *Event_Rescind") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Rescind but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Rescindbut is not nil && this == nil") + } + if !this.OfferId.Equal(that1.OfferId) { + return fmt.Errorf("OfferId this(%v) Not Equal that(%v)", this.OfferId, that1.OfferId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Rescind) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Rescind) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.OfferId.Equal(that1.OfferId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Update) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Update) + if !ok { + return fmt.Errorf("that is not of type *Event_Update") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Update but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Updatebut is not nil && this == nil") + } + if !this.Status.Equal(that1.Status) { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Update) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Update) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.Status.Equal(that1.Status) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Message) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Message) + if !ok { + return fmt.Errorf("that is not of type *Event_Message") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Message but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Messagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Message) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Message) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Failure) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Failure) + if !ok { + return fmt.Errorf("that is not of type *Event_Failure") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Failure but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Failurebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", *this.Status, *that1.Status) + } + } else if this.Status != nil { + return fmt.Errorf("this.Status == nil && that.Status != nil") + } else if that1.Status != nil { + return fmt.Errorf("Status this(%v) Not Equal that(%v)", this.Status, that1.Status) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Failure) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Failure) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if this.Status != nil && that1.Status != nil { + if *this.Status != *that1.Status { + return false + } + } else if this.Status != nil { + return false + } else if that1.Status != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event_Error) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Event_Error) + if !ok { + return fmt.Errorf("that is not of type *Event_Error") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Event_Error but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Event_Errorbut is not nil && this == nil") + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", *this.Message, *that1.Message) + } + } else if this.Message != nil { + return fmt.Errorf("this.Message == nil && that.Message != nil") + } else if that1.Message != nil { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Event_Error) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Event_Error) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if this.Message != nil && that1.Message != nil { + if *this.Message != *that1.Message { + return false + } + } else if this.Message != nil { + return false + } else if that1.Message != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call) + if !ok { + return fmt.Errorf("that is not of type *Call") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Callbut is not nil && this == nil") + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return fmt.Errorf("FrameworkId this(%v) Not Equal that(%v)", this.FrameworkId, that1.FrameworkId) + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", *this.Type, *that1.Type) + } + } else if this.Type != nil { + return fmt.Errorf("this.Type == nil && that.Type != nil") + } else if that1.Type != nil { + return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type) + } + if !this.Subscribe.Equal(that1.Subscribe) { + return fmt.Errorf("Subscribe this(%v) Not Equal that(%v)", this.Subscribe, that1.Subscribe) + } + if !this.Accept.Equal(that1.Accept) { + return fmt.Errorf("Accept this(%v) Not Equal that(%v)", this.Accept, that1.Accept) + } + if !this.Decline.Equal(that1.Decline) { + return fmt.Errorf("Decline this(%v) Not Equal that(%v)", this.Decline, that1.Decline) + } + if !this.Kill.Equal(that1.Kill) { + return fmt.Errorf("Kill this(%v) Not Equal that(%v)", this.Kill, that1.Kill) + } + if !this.Shutdown.Equal(that1.Shutdown) { + return fmt.Errorf("Shutdown this(%v) Not Equal that(%v)", this.Shutdown, that1.Shutdown) + } + if !this.Acknowledge.Equal(that1.Acknowledge) { + return fmt.Errorf("Acknowledge this(%v) Not Equal that(%v)", this.Acknowledge, that1.Acknowledge) + } + if !this.Reconcile.Equal(that1.Reconcile) { + return fmt.Errorf("Reconcile this(%v) Not Equal that(%v)", this.Reconcile, that1.Reconcile) + } + if !this.Message.Equal(that1.Message) { + return fmt.Errorf("Message this(%v) Not Equal that(%v)", this.Message, that1.Message) + } + if !this.Request.Equal(that1.Request) { + return fmt.Errorf("Request this(%v) Not Equal that(%v)", this.Request, that1.Request) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkId.Equal(that1.FrameworkId) { + return false + } + if this.Type != nil && that1.Type != nil { + if *this.Type != *that1.Type { + return false + } + } else if this.Type != nil { + return false + } else if that1.Type != nil { + return false + } + if !this.Subscribe.Equal(that1.Subscribe) { + return false + } + if !this.Accept.Equal(that1.Accept) { + return false + } + if !this.Decline.Equal(that1.Decline) { + return false + } + if !this.Kill.Equal(that1.Kill) { + return false + } + if !this.Shutdown.Equal(that1.Shutdown) { + return false + } + if !this.Acknowledge.Equal(that1.Acknowledge) { + return false + } + if !this.Reconcile.Equal(that1.Reconcile) { + return false + } + if !this.Message.Equal(that1.Message) { + return false + } + if !this.Request.Equal(that1.Request) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Subscribe) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Subscribe) + if !ok { + return fmt.Errorf("that is not of type *Call_Subscribe") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Subscribe but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Subscribebut is not nil && this == nil") + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return fmt.Errorf("FrameworkInfo this(%v) Not Equal that(%v)", this.FrameworkInfo, that1.FrameworkInfo) + } + if this.Force != nil && that1.Force != nil { + if *this.Force != *that1.Force { + return fmt.Errorf("Force this(%v) Not Equal that(%v)", *this.Force, *that1.Force) + } + } else if this.Force != nil { + return fmt.Errorf("this.Force == nil && that.Force != nil") + } else if that1.Force != nil { + return fmt.Errorf("Force this(%v) Not Equal that(%v)", this.Force, that1.Force) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Subscribe) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Subscribe) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.FrameworkInfo.Equal(that1.FrameworkInfo) { + return false + } + if this.Force != nil && that1.Force != nil { + if *this.Force != *that1.Force { + return false + } + } else if this.Force != nil { + return false + } else if that1.Force != nil { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Accept) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Accept) + if !ok { + return fmt.Errorf("that is not of type *Call_Accept") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Accept but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Acceptbut is not nil && this == nil") + } + if len(this.OfferIds) != len(that1.OfferIds) { + return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds)) + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i]) + } + } + if len(this.Operations) != len(that1.Operations) { + return fmt.Errorf("Operations this(%v) Not Equal that(%v)", len(this.Operations), len(that1.Operations)) + } + for i := range this.Operations { + if !this.Operations[i].Equal(that1.Operations[i]) { + return fmt.Errorf("Operations this[%v](%v) Not Equal that[%v](%v)", i, this.Operations[i], i, that1.Operations[i]) + } + } + if !this.Filters.Equal(that1.Filters) { + return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Accept) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Accept) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.OfferIds) != len(that1.OfferIds) { + return false + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return false + } + } + if len(this.Operations) != len(that1.Operations) { + return false + } + for i := range this.Operations { + if !this.Operations[i].Equal(that1.Operations[i]) { + return false + } + } + if !this.Filters.Equal(that1.Filters) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Decline) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Decline) + if !ok { + return fmt.Errorf("that is not of type *Call_Decline") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Decline but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Declinebut is not nil && this == nil") + } + if len(this.OfferIds) != len(that1.OfferIds) { + return fmt.Errorf("OfferIds this(%v) Not Equal that(%v)", len(this.OfferIds), len(that1.OfferIds)) + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return fmt.Errorf("OfferIds this[%v](%v) Not Equal that[%v](%v)", i, this.OfferIds[i], i, that1.OfferIds[i]) + } + } + if !this.Filters.Equal(that1.Filters) { + return fmt.Errorf("Filters this(%v) Not Equal that(%v)", this.Filters, that1.Filters) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Decline) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Decline) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.OfferIds) != len(that1.OfferIds) { + return false + } + for i := range this.OfferIds { + if !this.OfferIds[i].Equal(that1.OfferIds[i]) { + return false + } + } + if !this.Filters.Equal(that1.Filters) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Kill) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Kill) + if !ok { + return fmt.Errorf("that is not of type *Call_Kill") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Kill but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Killbut 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.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Kill) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Kill) + if !ok { + 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.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Shutdown) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Shutdown) + if !ok { + return fmt.Errorf("that is not of type *Call_Shutdown") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Shutdown but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Shutdownbut is not nil && this == nil") + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Shutdown) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Shutdown) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Acknowledge) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Acknowledge) + if !ok { + return fmt.Errorf("that is not of type *Call_Acknowledge") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Acknowledge but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Acknowledgebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + 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) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Acknowledge) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Acknowledge) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.TaskId.Equal(that1.TaskId) { + return false + } + if !bytes.Equal(this.Uuid, that1.Uuid) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Reconcile) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Reconcile) + if !ok { + return fmt.Errorf("that is not of type *Call_Reconcile") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Reconcile but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Reconcilebut is not nil && this == nil") + } + if len(this.Tasks) != len(that1.Tasks) { + return fmt.Errorf("Tasks this(%v) Not Equal that(%v)", len(this.Tasks), len(that1.Tasks)) + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return fmt.Errorf("Tasks this[%v](%v) Not Equal that[%v](%v)", i, this.Tasks[i], i, that1.Tasks[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Reconcile) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Reconcile) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Tasks) != len(that1.Tasks) { + return false + } + for i := range this.Tasks { + if !this.Tasks[i].Equal(that1.Tasks[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Reconcile_Task) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Reconcile_Task) + if !ok { + return fmt.Errorf("that is not of type *Call_Reconcile_Task") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Reconcile_Task but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Reconcile_Taskbut 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.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Reconcile_Task) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Reconcile_Task) + if !ok { + 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.SlaveId.Equal(that1.SlaveId) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Message) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Message) + if !ok { + return fmt.Errorf("that is not of type *Call_Message") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Message but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Messagebut is not nil && this == nil") + } + if !this.SlaveId.Equal(that1.SlaveId) { + return fmt.Errorf("SlaveId this(%v) Not Equal that(%v)", this.SlaveId, that1.SlaveId) + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return fmt.Errorf("ExecutorId this(%v) Not Equal that(%v)", this.ExecutorId, that1.ExecutorId) + } + if !bytes.Equal(this.Data, that1.Data) { + return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data) + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Message) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Message) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if !this.SlaveId.Equal(that1.SlaveId) { + return false + } + if !this.ExecutorId.Equal(that1.ExecutorId) { + return false + } + if !bytes.Equal(this.Data, that1.Data) { + return false + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Call_Request) VerboseEqual(that interface{}) error { + if that == nil { + if this == nil { + return nil + } + return fmt.Errorf("that == nil && this != nil") + } + + that1, ok := that.(*Call_Request) + if !ok { + return fmt.Errorf("that is not of type *Call_Request") + } + if that1 == nil { + if this == nil { + return nil + } + return fmt.Errorf("that is type *Call_Request but is nil && this != nil") + } else if this == nil { + return fmt.Errorf("that is type *Call_Requestbut is not nil && this == nil") + } + if len(this.Requests) != len(that1.Requests) { + return fmt.Errorf("Requests this(%v) Not Equal that(%v)", len(this.Requests), len(that1.Requests)) + } + for i := range this.Requests { + if !this.Requests[i].Equal(that1.Requests[i]) { + return fmt.Errorf("Requests this[%v](%v) Not Equal that[%v](%v)", i, this.Requests[i], i, that1.Requests[i]) + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) + } + return nil +} +func (this *Call_Request) Equal(that interface{}) bool { + if that == nil { + if this == nil { + return true + } + return false + } + + that1, ok := that.(*Call_Request) + if !ok { + return false + } + if that1 == nil { + if this == nil { + return true + } + return false + } else if this == nil { + return false + } + if len(this.Requests) != len(that1.Requests) { + return false + } + for i := range this.Requests { + if !this.Requests[i].Equal(that1.Requests[i]) { + return false + } + } + if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { + return false + } + return true +} +func (this *Event) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 12) + s = append(s, "&mesosproto.Event{") + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "mesosproto.Event_Type")+",\n") + } + if this.Subscribed != nil { + s = append(s, "Subscribed: "+fmt.Sprintf("%#v", this.Subscribed)+",\n") + } + if this.Offers != nil { + s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n") + } + if this.Rescind != nil { + s = append(s, "Rescind: "+fmt.Sprintf("%#v", this.Rescind)+",\n") + } + if this.Update != nil { + s = append(s, "Update: "+fmt.Sprintf("%#v", this.Update)+",\n") + } + if this.Message != nil { + s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n") + } + if this.Failure != nil { + s = append(s, "Failure: "+fmt.Sprintf("%#v", this.Failure)+",\n") + } + if this.Error != nil { + s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Subscribed) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Event_Subscribed{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.HeartbeatIntervalSeconds != nil { + s = append(s, "HeartbeatIntervalSeconds: "+valueToGoStringScheduler(this.HeartbeatIntervalSeconds, "float64")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Offers) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Event_Offers{") + if this.Offers != nil { + s = append(s, "Offers: "+fmt.Sprintf("%#v", this.Offers)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Rescind) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Event_Rescind{") + if this.OfferId != nil { + s = append(s, "OfferId: "+fmt.Sprintf("%#v", this.OfferId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Update) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Event_Update{") + if this.Status != nil { + s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Message) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Event_Message{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Failure) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Event_Failure{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Status != nil { + s = append(s, "Status: "+valueToGoStringScheduler(this.Status, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Event_Error) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Event_Error{") + if this.Message != nil { + s = append(s, "Message: "+valueToGoStringScheduler(this.Message, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 15) + s = append(s, "&mesosproto.Call{") + if this.FrameworkId != nil { + s = append(s, "FrameworkId: "+fmt.Sprintf("%#v", this.FrameworkId)+",\n") + } + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringScheduler(this.Type, "mesosproto.Call_Type")+",\n") + } + if this.Subscribe != nil { + s = append(s, "Subscribe: "+fmt.Sprintf("%#v", this.Subscribe)+",\n") + } + if this.Accept != nil { + s = append(s, "Accept: "+fmt.Sprintf("%#v", this.Accept)+",\n") + } + if this.Decline != nil { + s = append(s, "Decline: "+fmt.Sprintf("%#v", this.Decline)+",\n") + } + if this.Kill != nil { + s = append(s, "Kill: "+fmt.Sprintf("%#v", this.Kill)+",\n") + } + if this.Shutdown != nil { + s = append(s, "Shutdown: "+fmt.Sprintf("%#v", this.Shutdown)+",\n") + } + if this.Acknowledge != nil { + s = append(s, "Acknowledge: "+fmt.Sprintf("%#v", this.Acknowledge)+",\n") + } + if this.Reconcile != nil { + s = append(s, "Reconcile: "+fmt.Sprintf("%#v", this.Reconcile)+",\n") + } + if this.Message != nil { + s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n") + } + if this.Request != nil { + s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Subscribe) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Call_Subscribe{") + if this.FrameworkInfo != nil { + s = append(s, "FrameworkInfo: "+fmt.Sprintf("%#v", this.FrameworkInfo)+",\n") + } + if this.Force != nil { + s = append(s, "Force: "+valueToGoStringScheduler(this.Force, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Accept) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Call_Accept{") + if this.OfferIds != nil { + s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n") + } + if this.Operations != nil { + s = append(s, "Operations: "+fmt.Sprintf("%#v", this.Operations)+",\n") + } + if this.Filters != nil { + s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Decline) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Call_Decline{") + if this.OfferIds != nil { + s = append(s, "OfferIds: "+fmt.Sprintf("%#v", this.OfferIds)+",\n") + } + if this.Filters != nil { + s = append(s, "Filters: "+fmt.Sprintf("%#v", this.Filters)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Kill) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Call_Kill{") + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Shutdown) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Call_Shutdown{") + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Acknowledge) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Call_Acknowledge{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.Uuid != nil { + s = append(s, "Uuid: "+valueToGoStringScheduler(this.Uuid, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Reconcile) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Call_Reconcile{") + if this.Tasks != nil { + s = append(s, "Tasks: "+fmt.Sprintf("%#v", this.Tasks)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Reconcile_Task) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&mesosproto.Call_Reconcile_Task{") + if this.TaskId != nil { + s = append(s, "TaskId: "+fmt.Sprintf("%#v", this.TaskId)+",\n") + } + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Message) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&mesosproto.Call_Message{") + if this.SlaveId != nil { + s = append(s, "SlaveId: "+fmt.Sprintf("%#v", this.SlaveId)+",\n") + } + if this.ExecutorId != nil { + s = append(s, "ExecutorId: "+fmt.Sprintf("%#v", this.ExecutorId)+",\n") + } + if this.Data != nil { + s = append(s, "Data: "+valueToGoStringScheduler(this.Data, "byte")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Call_Request) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&mesosproto.Call_Request{") + if this.Requests != nil { + s = append(s, "Requests: "+fmt.Sprintf("%#v", this.Requests)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringScheduler(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringScheduler(e map[int32]github_com_gogo_protobuf_proto.Extension) string { + if e == nil { + return "nil" + } + s := "map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "}" + return s +} +func (m *Event) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Type == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } else { + data[i] = 0x8 + i++ + i = encodeVarintScheduler(data, i, uint64(*m.Type)) + } + if m.Subscribed != nil { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Subscribed.Size())) + n1, err := m.Subscribed.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.Offers != nil { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Offers.Size())) + n2, err := m.Offers.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.Rescind != nil { + data[i] = 0x22 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Rescind.Size())) + n3, err := m.Rescind.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Update != nil { + data[i] = 0x2a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Update.Size())) + n4, err := m.Update.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.Message != nil { + data[i] = 0x32 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Message.Size())) + n5, err := m.Message.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.Failure != nil { + data[i] = 0x3a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Failure.Size())) + n6, err := m.Failure.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.Error != nil { + data[i] = 0x42 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Error.Size())) + n7, err := m.Error.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Subscribed) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Subscribed) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size())) + n8, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + } + if m.HeartbeatIntervalSeconds != nil { + data[i] = 0x11 + i++ + i = encodeFixed64Scheduler(data, i, uint64(math.Float64bits(*m.HeartbeatIntervalSeconds))) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Offers) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Offers) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Offers) > 0 { + for _, msg := range m.Offers { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Rescind) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Rescind) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.OfferId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.OfferId.Size())) + n9, err := m.OfferId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Update) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Update) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Status == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.Status.Size())) + n10, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n10 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Message) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Message) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n11, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size())) + n12, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.Data == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } else { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Failure) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Failure) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId != nil { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n13, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.ExecutorId != nil { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size())) + n14, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.Status != nil { + data[i] = 0x18 + i++ + i = encodeVarintScheduler(data, i, uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Event_Error) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Event_Error) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Message == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(len(*m.Message))) + i += copy(data[i:], *m.Message) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkId != nil { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.FrameworkId.Size())) + n15, err := m.FrameworkId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if m.Type == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } else { + data[i] = 0x10 + i++ + i = encodeVarintScheduler(data, i, uint64(*m.Type)) + } + if m.Subscribe != nil { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Subscribe.Size())) + n16, err := m.Subscribe.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n16 + } + if m.Accept != nil { + data[i] = 0x22 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Accept.Size())) + n17, err := m.Accept.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n17 + } + if m.Decline != nil { + data[i] = 0x2a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Decline.Size())) + n18, err := m.Decline.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n18 + } + if m.Kill != nil { + data[i] = 0x32 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Kill.Size())) + n19, err := m.Kill.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n19 + } + if m.Shutdown != nil { + data[i] = 0x3a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Shutdown.Size())) + n20, err := m.Shutdown.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n20 + } + if m.Acknowledge != nil { + data[i] = 0x42 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Acknowledge.Size())) + n21, err := m.Acknowledge.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n21 + } + if m.Reconcile != nil { + data[i] = 0x4a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Reconcile.Size())) + n22, err := m.Reconcile.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n22 + } + if m.Message != nil { + data[i] = 0x52 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Message.Size())) + n23, err := m.Message.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + } + if m.Request != nil { + data[i] = 0x5a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Request.Size())) + n24, err := m.Request.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Subscribe) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Subscribe) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.FrameworkInfo == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.FrameworkInfo.Size())) + n25, err := m.FrameworkInfo.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n25 + } + if m.Force != nil { + data[i] = 0x10 + i++ + if *m.Force { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Accept) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Accept) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.OfferIds) > 0 { + for _, msg := range m.OfferIds { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Operations) > 0 { + for _, msg := range m.Operations { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Filters != nil { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(m.Filters.Size())) + n26, err := m.Filters.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n26 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Decline) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Decline) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.OfferIds) > 0 { + for _, msg := range m.OfferIds { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Filters != nil { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.Filters.Size())) + n27, err := m.Filters.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n27 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Kill) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Kill) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size())) + n28, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n28 + } + if m.SlaveId != nil { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n29, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n29 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Shutdown) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Shutdown) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size())) + n30, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n30 + } + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n31, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n31 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Acknowledge) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Acknowledge) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n32, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n32 + } + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size())) + n33, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n33 + } + if m.Uuid == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid") + } else { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(len(m.Uuid))) + i += copy(data[i:], m.Uuid) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Reconcile) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Reconcile) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Tasks) > 0 { + for _, msg := range m.Tasks { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Reconcile_Task) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Reconcile_Task) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TaskId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.TaskId.Size())) + n34, err := m.TaskId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n34 + } + if m.SlaveId != nil { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n35, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n35 + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Message) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Message) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SlaveId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } else { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(m.SlaveId.Size())) + n36, err := m.SlaveId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n36 + } + if m.ExecutorId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } else { + data[i] = 0x12 + i++ + i = encodeVarintScheduler(data, i, uint64(m.ExecutorId.Size())) + n37, err := m.ExecutorId.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n37 + } + if m.Data == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } else { + data[i] = 0x1a + i++ + i = encodeVarintScheduler(data, i, uint64(len(m.Data))) + i += copy(data[i:], m.Data) + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *Call_Request) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Call_Request) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Requests) > 0 { + for _, msg := range m.Requests { + data[i] = 0xa + i++ + i = encodeVarintScheduler(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.XXX_unrecognized != nil { + i += copy(data[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeFixed64Scheduler(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Scheduler(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintScheduler(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func NewPopulatedEvent(r randyScheduler, easy bool) *Event { + this := &Event{} + v1 := Event_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8}[r.Intn(8)]) + this.Type = &v1 + if r.Intn(10) != 0 { + this.Subscribed = NewPopulatedEvent_Subscribed(r, easy) + } + if r.Intn(10) != 0 { + this.Offers = NewPopulatedEvent_Offers(r, easy) + } + if r.Intn(10) != 0 { + this.Rescind = NewPopulatedEvent_Rescind(r, easy) + } + if r.Intn(10) != 0 { + this.Update = NewPopulatedEvent_Update(r, easy) + } + if r.Intn(10) != 0 { + this.Message = NewPopulatedEvent_Message(r, easy) + } + if r.Intn(10) != 0 { + this.Failure = NewPopulatedEvent_Failure(r, easy) + } + if r.Intn(10) != 0 { + this.Error = NewPopulatedEvent_Error(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 9) + } + return this +} + +func NewPopulatedEvent_Subscribed(r randyScheduler, easy bool) *Event_Subscribed { + this := &Event_Subscribed{} + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + if r.Intn(10) != 0 { + v2 := float64(r.Float64()) + if r.Intn(2) == 0 { + v2 *= -1 + } + this.HeartbeatIntervalSeconds = &v2 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedEvent_Offers(r randyScheduler, easy bool) *Event_Offers { + this := &Event_Offers{} + if r.Intn(10) != 0 { + v3 := r.Intn(10) + this.Offers = make([]*Offer, v3) + for i := 0; i < v3; i++ { + this.Offers[i] = NewPopulatedOffer(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +func NewPopulatedEvent_Rescind(r randyScheduler, easy bool) *Event_Rescind { + this := &Event_Rescind{} + this.OfferId = NewPopulatedOfferID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +func NewPopulatedEvent_Update(r randyScheduler, easy bool) *Event_Update { + this := &Event_Update{} + this.Status = NewPopulatedTaskStatus(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +func NewPopulatedEvent_Message(r randyScheduler, easy bool) *Event_Message { + this := &Event_Message{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + v4 := r.Intn(100) + this.Data = make([]byte, v4) + for i := 0; i < v4; i++ { + this.Data[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 4) + } + return this +} + +func NewPopulatedEvent_Failure(r randyScheduler, easy bool) *Event_Failure { + this := &Event_Failure{} + if r.Intn(10) != 0 { + this.SlaveId = NewPopulatedSlaveID(r, easy) + } + if r.Intn(10) != 0 { + this.ExecutorId = NewPopulatedExecutorID(r, easy) + } + if r.Intn(10) != 0 { + v5 := int32(r.Int31()) + if r.Intn(2) == 0 { + v5 *= -1 + } + this.Status = &v5 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 4) + } + return this +} + +func NewPopulatedEvent_Error(r randyScheduler, easy bool) *Event_Error { + this := &Event_Error{} + v6 := randStringScheduler(r) + this.Message = &v6 + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +func NewPopulatedCall(r randyScheduler, easy bool) *Call { + this := &Call{} + if r.Intn(10) != 0 { + this.FrameworkId = NewPopulatedFrameworkID(r, easy) + } + v7 := Call_Type([]int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}[r.Intn(11)]) + this.Type = &v7 + if r.Intn(10) != 0 { + this.Subscribe = NewPopulatedCall_Subscribe(r, easy) + } + if r.Intn(10) != 0 { + this.Accept = NewPopulatedCall_Accept(r, easy) + } + if r.Intn(10) != 0 { + this.Decline = NewPopulatedCall_Decline(r, easy) + } + if r.Intn(10) != 0 { + this.Kill = NewPopulatedCall_Kill(r, easy) + } + if r.Intn(10) != 0 { + this.Shutdown = NewPopulatedCall_Shutdown(r, easy) + } + if r.Intn(10) != 0 { + this.Acknowledge = NewPopulatedCall_Acknowledge(r, easy) + } + if r.Intn(10) != 0 { + this.Reconcile = NewPopulatedCall_Reconcile(r, easy) + } + if r.Intn(10) != 0 { + this.Message = NewPopulatedCall_Message(r, easy) + } + if r.Intn(10) != 0 { + this.Request = NewPopulatedCall_Request(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 12) + } + return this +} + +func NewPopulatedCall_Subscribe(r randyScheduler, easy bool) *Call_Subscribe { + this := &Call_Subscribe{} + this.FrameworkInfo = NewPopulatedFrameworkInfo(r, easy) + if r.Intn(10) != 0 { + v8 := bool(bool(r.Intn(2) == 0)) + this.Force = &v8 + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedCall_Accept(r randyScheduler, easy bool) *Call_Accept { + this := &Call_Accept{} + if r.Intn(10) != 0 { + v9 := r.Intn(10) + this.OfferIds = make([]*OfferID, v9) + for i := 0; i < v9; i++ { + this.OfferIds[i] = NewPopulatedOfferID(r, easy) + } + } + if r.Intn(10) != 0 { + v10 := r.Intn(10) + this.Operations = make([]*Offer_Operation, v10) + for i := 0; i < v10; i++ { + this.Operations[i] = NewPopulatedOffer_Operation(r, easy) + } + } + if r.Intn(10) != 0 { + this.Filters = NewPopulatedFilters(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 4) + } + return this +} + +func NewPopulatedCall_Decline(r randyScheduler, easy bool) *Call_Decline { + this := &Call_Decline{} + if r.Intn(10) != 0 { + v11 := r.Intn(10) + this.OfferIds = make([]*OfferID, v11) + for i := 0; i < v11; i++ { + this.OfferIds[i] = NewPopulatedOfferID(r, easy) + } + } + if r.Intn(10) != 0 { + this.Filters = NewPopulatedFilters(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedCall_Kill(r randyScheduler, easy bool) *Call_Kill { + this := &Call_Kill{} + this.TaskId = NewPopulatedTaskID(r, easy) + if r.Intn(10) != 0 { + this.SlaveId = NewPopulatedSlaveID(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedCall_Shutdown(r randyScheduler, easy bool) *Call_Shutdown { + this := &Call_Shutdown{} + this.ExecutorId = NewPopulatedExecutorID(r, easy) + this.SlaveId = NewPopulatedSlaveID(r, easy) + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedCall_Acknowledge(r randyScheduler, easy bool) *Call_Acknowledge { + this := &Call_Acknowledge{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.TaskId = NewPopulatedTaskID(r, easy) + v12 := r.Intn(100) + this.Uuid = make([]byte, v12) + for i := 0; i < v12; i++ { + this.Uuid[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 4) + } + return this +} + +func NewPopulatedCall_Reconcile(r randyScheduler, easy bool) *Call_Reconcile { + this := &Call_Reconcile{} + if r.Intn(10) != 0 { + v13 := r.Intn(10) + this.Tasks = make([]*Call_Reconcile_Task, v13) + for i := 0; i < v13; i++ { + this.Tasks[i] = NewPopulatedCall_Reconcile_Task(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +func NewPopulatedCall_Reconcile_Task(r randyScheduler, easy bool) *Call_Reconcile_Task { + this := &Call_Reconcile_Task{} + this.TaskId = NewPopulatedTaskID(r, easy) + if r.Intn(10) != 0 { + this.SlaveId = NewPopulatedSlaveID(r, easy) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 3) + } + return this +} + +func NewPopulatedCall_Message(r randyScheduler, easy bool) *Call_Message { + this := &Call_Message{} + this.SlaveId = NewPopulatedSlaveID(r, easy) + this.ExecutorId = NewPopulatedExecutorID(r, easy) + v14 := r.Intn(100) + this.Data = make([]byte, v14) + for i := 0; i < v14; i++ { + this.Data[i] = byte(r.Intn(256)) + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 4) + } + return this +} + +func NewPopulatedCall_Request(r randyScheduler, easy bool) *Call_Request { + this := &Call_Request{} + if r.Intn(10) != 0 { + v15 := r.Intn(10) + this.Requests = make([]*Request, v15) + for i := 0; i < v15; i++ { + this.Requests[i] = NewPopulatedRequest(r, easy) + } + } + if !easy && r.Intn(10) != 0 { + this.XXX_unrecognized = randUnrecognizedScheduler(r, 2) + } + return this +} + +type randyScheduler interface { + Float32() float32 + Float64() float64 + Int63() int64 + Int31() int32 + Uint32() uint32 + Intn(n int) int +} + +func randUTF8RuneScheduler(r randyScheduler) rune { + ru := r.Intn(62) + if ru < 10 { + return rune(ru + 48) + } else if ru < 36 { + return rune(ru + 55) + } + return rune(ru + 61) +} +func randStringScheduler(r randyScheduler) string { + v16 := r.Intn(100) + tmps := make([]rune, v16) + for i := 0; i < v16; i++ { + tmps[i] = randUTF8RuneScheduler(r) + } + return string(tmps) +} +func randUnrecognizedScheduler(r randyScheduler, maxFieldNumber int) (data []byte) { + l := r.Intn(5) + for i := 0; i < l; i++ { + wire := r.Intn(4) + if wire == 3 { + wire = 5 + } + fieldNumber := maxFieldNumber + r.Intn(100) + data = randFieldScheduler(data, r, fieldNumber, wire) + } + return data +} +func randFieldScheduler(data []byte, r randyScheduler, fieldNumber int, wire int) []byte { + key := uint32(fieldNumber)<<3 | uint32(wire) + switch wire { + case 0: + data = encodeVarintPopulateScheduler(data, uint64(key)) + v17 := r.Int63() + if r.Intn(2) == 0 { + v17 *= -1 + } + data = encodeVarintPopulateScheduler(data, uint64(v17)) + case 1: + data = encodeVarintPopulateScheduler(data, uint64(key)) + 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))) + case 2: + data = encodeVarintPopulateScheduler(data, uint64(key)) + ll := r.Intn(100) + data = encodeVarintPopulateScheduler(data, uint64(ll)) + for j := 0; j < ll; j++ { + data = append(data, byte(r.Intn(256))) + } + default: + data = encodeVarintPopulateScheduler(data, uint64(key)) + data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) + } + return data +} +func encodeVarintPopulateScheduler(data []byte, v uint64) []byte { + for v >= 1<<7 { + data = append(data, uint8(uint64(v)&0x7f|0x80)) + v >>= 7 + } + data = append(data, uint8(v)) + return data +} +func (m *Event) Size() (n int) { + var l int + _ = l + if m.Type != nil { + n += 1 + sovScheduler(uint64(*m.Type)) + } + if m.Subscribed != nil { + l = m.Subscribed.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Offers != nil { + l = m.Offers.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Rescind != nil { + l = m.Rescind.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Update != nil { + l = m.Update.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Message != nil { + l = m.Message.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Failure != nil { + l = m.Failure.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Subscribed) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.HeartbeatIntervalSeconds != nil { + n += 9 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Offers) Size() (n int) { + var l int + _ = l + if len(m.Offers) > 0 { + for _, e := range m.Offers { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Rescind) Size() (n int) { + var l int + _ = l + if m.OfferId != nil { + l = m.OfferId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Update) Size() (n int) { + var l int + _ = l + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Message) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Failure) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Status != nil { + n += 1 + sovScheduler(uint64(*m.Status)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Event_Error) Size() (n int) { + var l int + _ = l + if m.Message != nil { + l = len(*m.Message) + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call) Size() (n int) { + var l int + _ = l + if m.FrameworkId != nil { + l = m.FrameworkId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Type != nil { + n += 1 + sovScheduler(uint64(*m.Type)) + } + if m.Subscribe != nil { + l = m.Subscribe.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Accept != nil { + l = m.Accept.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Decline != nil { + l = m.Decline.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Kill != nil { + l = m.Kill.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Shutdown != nil { + l = m.Shutdown.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Acknowledge != nil { + l = m.Acknowledge.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Reconcile != nil { + l = m.Reconcile.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Message != nil { + l = m.Message.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Subscribe) Size() (n int) { + var l int + _ = l + if m.FrameworkInfo != nil { + l = m.FrameworkInfo.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Force != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Accept) Size() (n int) { + var l int + _ = l + if len(m.OfferIds) > 0 { + for _, e := range m.OfferIds { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if len(m.Operations) > 0 { + for _, e := range m.Operations { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if m.Filters != nil { + l = m.Filters.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Decline) Size() (n int) { + var l int + _ = l + if len(m.OfferIds) > 0 { + for _, e := range m.OfferIds { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if m.Filters != nil { + l = m.Filters.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Kill) Size() (n int) { + var l int + _ = l + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Shutdown) Size() (n int) { + var l int + _ = l + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Acknowledge) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Uuid != nil { + l = len(m.Uuid) + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Reconcile) Size() (n int) { + var l int + _ = l + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Reconcile_Task) Size() (n int) { + var l int + _ = l + if m.TaskId != nil { + l = m.TaskId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Message) Size() (n int) { + var l int + _ = l + if m.SlaveId != nil { + l = m.SlaveId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.ExecutorId != nil { + l = m.ExecutorId.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + if m.Data != nil { + l = len(m.Data) + n += 1 + l + sovScheduler(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Call_Request) Size() (n int) { + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.Size() + n += 1 + l + sovScheduler(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovScheduler(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozScheduler(x uint64) (n int) { + return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Event) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event{`, + `Type:` + valueToStringScheduler(this.Type) + `,`, + `Subscribed:` + strings.Replace(fmt.Sprintf("%v", this.Subscribed), "Event_Subscribed", "Event_Subscribed", 1) + `,`, + `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Event_Offers", "Event_Offers", 1) + `,`, + `Rescind:` + strings.Replace(fmt.Sprintf("%v", this.Rescind), "Event_Rescind", "Event_Rescind", 1) + `,`, + `Update:` + strings.Replace(fmt.Sprintf("%v", this.Update), "Event_Update", "Event_Update", 1) + `,`, + `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Event_Message", "Event_Message", 1) + `,`, + `Failure:` + strings.Replace(fmt.Sprintf("%v", this.Failure), "Event_Failure", "Event_Failure", 1) + `,`, + `Error:` + strings.Replace(fmt.Sprintf("%v", this.Error), "Event_Error", "Event_Error", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Subscribed) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Subscribed{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `HeartbeatIntervalSeconds:` + valueToStringScheduler(this.HeartbeatIntervalSeconds) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Offers) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Offers{`, + `Offers:` + strings.Replace(fmt.Sprintf("%v", this.Offers), "Offer", "Offer", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Rescind) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Rescind{`, + `OfferId:` + strings.Replace(fmt.Sprintf("%v", this.OfferId), "OfferID", "OfferID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Update) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Update{`, + `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "TaskStatus", "TaskStatus", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Message) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Message{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Data:` + valueToStringScheduler(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Failure) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Failure{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Status:` + valueToStringScheduler(this.Status) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Event_Error) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Event_Error{`, + `Message:` + valueToStringScheduler(this.Message) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call{`, + `FrameworkId:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkId), "FrameworkID", "FrameworkID", 1) + `,`, + `Type:` + valueToStringScheduler(this.Type) + `,`, + `Subscribe:` + strings.Replace(fmt.Sprintf("%v", this.Subscribe), "Call_Subscribe", "Call_Subscribe", 1) + `,`, + `Accept:` + strings.Replace(fmt.Sprintf("%v", this.Accept), "Call_Accept", "Call_Accept", 1) + `,`, + `Decline:` + strings.Replace(fmt.Sprintf("%v", this.Decline), "Call_Decline", "Call_Decline", 1) + `,`, + `Kill:` + strings.Replace(fmt.Sprintf("%v", this.Kill), "Call_Kill", "Call_Kill", 1) + `,`, + `Shutdown:` + strings.Replace(fmt.Sprintf("%v", this.Shutdown), "Call_Shutdown", "Call_Shutdown", 1) + `,`, + `Acknowledge:` + strings.Replace(fmt.Sprintf("%v", this.Acknowledge), "Call_Acknowledge", "Call_Acknowledge", 1) + `,`, + `Reconcile:` + strings.Replace(fmt.Sprintf("%v", this.Reconcile), "Call_Reconcile", "Call_Reconcile", 1) + `,`, + `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Call_Message", "Call_Message", 1) + `,`, + `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "Call_Request", "Call_Request", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Subscribe) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Subscribe{`, + `FrameworkInfo:` + strings.Replace(fmt.Sprintf("%v", this.FrameworkInfo), "FrameworkInfo", "FrameworkInfo", 1) + `,`, + `Force:` + valueToStringScheduler(this.Force) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Accept) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Accept{`, + `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "OfferID", 1) + `,`, + `Operations:` + strings.Replace(fmt.Sprintf("%v", this.Operations), "Offer_Operation", "Offer_Operation", 1) + `,`, + `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "Filters", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Decline) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Decline{`, + `OfferIds:` + strings.Replace(fmt.Sprintf("%v", this.OfferIds), "OfferID", "OfferID", 1) + `,`, + `Filters:` + strings.Replace(fmt.Sprintf("%v", this.Filters), "Filters", "Filters", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Kill) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Kill{`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Shutdown) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Shutdown{`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Acknowledge) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Acknowledge{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `Uuid:` + valueToStringScheduler(this.Uuid) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Reconcile) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Reconcile{`, + `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Call_Reconcile_Task", "Call_Reconcile_Task", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Reconcile_Task) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Reconcile_Task{`, + `TaskId:` + strings.Replace(fmt.Sprintf("%v", this.TaskId), "TaskID", "TaskID", 1) + `,`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Message) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Message{`, + `SlaveId:` + strings.Replace(fmt.Sprintf("%v", this.SlaveId), "SlaveID", "SlaveID", 1) + `,`, + `ExecutorId:` + strings.Replace(fmt.Sprintf("%v", this.ExecutorId), "ExecutorID", "ExecutorID", 1) + `,`, + `Data:` + valueToStringScheduler(this.Data) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func (this *Call_Request) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Call_Request{`, + `Requests:` + strings.Replace(fmt.Sprintf("%v", this.Requests), "Request", "Request", 1) + `,`, + `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, + `}`, + }, "") + return s +} +func valueToStringScheduler(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Event) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v Event_Type + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (Event_Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscribed", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subscribed == nil { + m.Subscribed = &Event_Subscribed{} + } + if err := m.Subscribed.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Offers == nil { + m.Offers = &Event_Offers{} + } + if err := m.Offers.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rescind", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rescind == nil { + m.Rescind = &Event_Rescind{} + } + if err := m.Rescind.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Update == nil { + m.Update = &Event_Update{} + } + if err := m.Update.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Message == nil { + m.Message = &Event_Message{} + } + if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Failure == nil { + m.Failure = &Event_Failure{} + } + if err := m.Failure.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Event_Error{} + } + if err := m.Error.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } + + return nil +} +func (m *Event_Subscribed) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatIntervalSeconds", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + iNdEx += 8 + v = uint64(data[iNdEx-8]) + v |= uint64(data[iNdEx-7]) << 8 + v |= uint64(data[iNdEx-6]) << 16 + v |= uint64(data[iNdEx-5]) << 24 + v |= uint64(data[iNdEx-4]) << 32 + v |= uint64(data[iNdEx-3]) << 40 + v |= uint64(data[iNdEx-2]) << 48 + v |= uint64(data[iNdEx-1]) << 56 + v2 := float64(math.Float64frombits(v)) + m.HeartbeatIntervalSeconds = &v2 + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_id") + } + + return nil +} +func (m *Event_Offers) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Offers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Offers = append(m.Offers, &Offer{}) + if err := m.Offers[len(m.Offers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Event_Rescind) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OfferId == nil { + m.OfferId = &OfferID{} + } + if err := m.OfferId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("offer_id") + } + + return nil +} +func (m *Event_Update) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = &TaskStatus{} + } + if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("status") + } + + return nil +} +func (m *Event_Message) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } + + return nil +} +func (m *Event_Failure) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Status = &v + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Event_Error) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("message") + } + + return nil +} +func (m *Call) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkId == nil { + m.FrameworkId = &FrameworkID{} + } + if err := m.FrameworkId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v Call_Type + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (Call_Type(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subscribe == nil { + m.Subscribe = &Call_Subscribe{} + } + if err := m.Subscribe.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accept", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Accept == nil { + m.Accept = &Call_Accept{} + } + if err := m.Accept.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Decline", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Decline == nil { + m.Decline = &Call_Decline{} + } + if err := m.Decline.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kill", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Kill == nil { + m.Kill = &Call_Kill{} + } + if err := m.Kill.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Shutdown", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Shutdown == nil { + m.Shutdown = &Call_Shutdown{} + } + if err := m.Shutdown.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Acknowledge", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Acknowledge == nil { + m.Acknowledge = &Call_Acknowledge{} + } + if err := m.Acknowledge.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reconcile", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Reconcile == nil { + m.Reconcile = &Call_Reconcile{} + } + if err := m.Reconcile.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Message == nil { + m.Message = &Call_Message{} + } + if err := m.Message.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &Call_Request{} + } + if err := m.Request.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("type") + } + + return nil +} +func (m *Call_Subscribe) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameworkInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FrameworkInfo == nil { + m.FrameworkInfo = &FrameworkInfo{} + } + if err := m.FrameworkInfo.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Force = &b + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("framework_info") + } + + return nil +} +func (m *Call_Accept) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfferIds = append(m.OfferIds, &OfferID{}) + if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operations = append(m.Operations, &Offer_Operation{}) + if err := m.Operations[len(m.Operations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Filters == nil { + m.Filters = &Filters{} + } + if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Call_Decline) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfferIds = append(m.OfferIds, &OfferID{}) + if err := m.OfferIds[len(m.OfferIds)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Filters == nil { + m.Filters = &Filters{} + } + if err := m.Filters.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Call_Kill) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + + return nil +} +func (m *Call_Shutdown) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + + return nil +} +func (m *Call_Acknowledge) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uuid = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("uuid") + } + + return nil +} +func (m *Call_Reconcile) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, &Call_Reconcile_Task{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func (m *Call_Reconcile_Task) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskId == nil { + m.TaskId = &TaskID{} + } + if err := m.TaskId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("task_id") + } + + return nil +} +func (m *Call_Message) Unmarshal(data []byte) error { + var hasFields [1]uint64 + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SlaveId == nil { + m.SlaveId = &SlaveID{} + } + if err := m.SlaveId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExecutorId == nil { + m.ExecutorId = &ExecutorID{} + } + if err := m.ExecutorId.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append([]byte{}, data[iNdEx:postIndex]...) + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("slave_id") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("executor_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data") + } + + return nil +} +func (m *Call_Request) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthScheduler + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &Request{}) + if err := m.Requests[len(m.Requests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipScheduler(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthScheduler + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + return nil +} +func skipScheduler(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthScheduler + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipScheduler(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling") +) diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.proto index dfa20500f976..6f9a07e07ebd 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/scheduler.proto @@ -21,6 +21,17 @@ package mesosproto; import "mesos.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +option (gogoproto.gostring_all) = true; +option (gogoproto.equal_all) = true; +option (gogoproto.verbose_equal_all) = true; +option (gogoproto.goproto_stringer_all) = false; +option (gogoproto.stringer_all) = true; +option (gogoproto.populate_all) = true; +option (gogoproto.testgen_all) = true; +option (gogoproto.benchgen_all) = true; +option (gogoproto.marshaler_all) = true; +option (gogoproto.sizer_all) = true; +option (gogoproto.unmarshaler_all) = true; /** * Scheduler event API. @@ -40,11 +51,26 @@ message Event { MESSAGE = 5; // See 'Message' below. FAILURE = 6; // See 'Failure' below. ERROR = 7; // See 'Error' below. + + // Periodic message sent by the Mesos master according to + // 'Subscribed.heartbeat_interval_seconds'. If the scheduler does + // not receive any events (including heartbeats) for an extended + // period of time (e.g., 5 x heartbeat_interval_seconds), there is + // likely a network partition. In such a case the scheduler should + // close the existing subscription connection and resubscribe + // using a backoff strategy. + HEARTBEAT = 8; } // First event received when the scheduler subscribes. message Subscribed { required FrameworkID framework_id = 1; + + // This value will be set if the master is sending heartbeats. See + // the comment above on 'HEARTBEAT' for more details. + // TODO(vinod): Implement heartbeats in the master once the master + // can send HTTP events. + optional double heartbeat_interval_seconds = 2; } // Received whenever there are new resources that are offered to the @@ -152,6 +178,7 @@ message Call { ACKNOWLEDGE = 8; // See 'Acknowledge' below. RECONCILE = 9; // See 'Reconcile' below. MESSAGE = 10; // See 'Message' below. + REQUEST = 11; // See 'Request' below. // TODO(benh): Consider adding an 'ACTIVATE' and 'DEACTIVATE' for // already subscribed frameworks as a way of stopping offers from @@ -282,6 +309,16 @@ message Call { required bytes data = 3; } + // Requests a specific set of resources from Mesos's allocator. If + // the allocator has support for this, corresponding offers will be + // sent asynchronously via the OFFERS event(s). + // + // NOTE: The built-in hierarchical allocator doesn't have support + // for this call and hence simply ignores it. + message Request { + repeated mesosproto.Request requests = 1; + } + // Identifies who generated this call. Master assigns a framework id // when a new scheduler subscribes for the first time. Once assigned, // the scheduler must set the 'framework_id' here and within its @@ -302,4 +339,5 @@ message Call { optional Acknowledge acknowledge = 8; optional Reconcile reconcile = 9; optional Message message = 10; + optional Request request = 11; } diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/state.proto b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/state.proto index cecac1722a93..69641859bccc 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/state.proto +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/mesosproto/state.proto @@ -32,7 +32,6 @@ option (gogoproto.marshaler_all) = true; option (gogoproto.sizer_all) = true; option (gogoproto.unmarshaler_all) = true; - // Describes a state entry, a versioned (via a UUID) key/value pair. message Entry { required string name = 1; diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/decoder.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/decoder.go index 50c1f413e4a5..afed18a208de 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/decoder.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/decoder.go @@ -22,6 +22,12 @@ import ( const ( DefaultReadTimeout = 5 * time.Second DefaultWriteTimeout = 5 * time.Second + + // writeFlushPeriod is the amount of time we're willing to wait for a single + // response buffer to be fully written to the underlying TCP connection; after + // this amount of time the remaining bytes of the response are discarded. see + // responseWriter(). + writeFlushPeriod = 30 * time.Second ) type decoderID int32 @@ -75,9 +81,9 @@ type httpDecoder struct { cancelGuard sync.Mutex readTimeout time.Duration writeTimeout time.Duration - idtag string // useful for debugging - sendError func(err error) // abstraction for error handling - outCh chan *bytes.Buffer + idtag string // useful for debugging + sendError func(err error) // abstraction for error handling + outCh chan *bytes.Buffer // chan of responses to be written to the connection } // DecodeHTTP hijacks an HTTP server connection and generates mesos libprocess HTTP @@ -135,27 +141,13 @@ func (d *httpDecoder) Cancel(graceful bool) { func (d *httpDecoder) run(res http.ResponseWriter) { defer func() { - close(d.outCh) + close(d.outCh) // we're finished generating response objects log.V(2).Infoln(d.idtag + "run: terminating") }() - go func() { - for buf := range d.outCh { - select { - case <-d.forceQuit: - return - default: - } - //TODO(jdef) I worry about this busy-looping - for buf.Len() > 0 { - d.tryFlushResponse(buf) - } - } - }() - - var next httpState - for state := d.bootstrapState(res); state != nil; state = next { - next = state(d) + for state := d.bootstrapState(res); state != nil; { + next := state(d) + state = next } } @@ -358,6 +350,7 @@ func limit(r *bufio.Reader, limit int64) *io.LimitedReader { // is ready to be hijacked at this point. func (d *httpDecoder) bootstrapState(res http.ResponseWriter) httpState { log.V(2).Infoln(d.idtag + "bootstrap-state") + d.updateForRequest() // hijack @@ -373,11 +366,44 @@ func (d *httpDecoder) bootstrapState(res http.ResponseWriter) httpState { d.sendError(errHijackFailed) return terminateState } + d.rw = rw d.con = c + + go d.responseWriter() return d.readBodyContent() } +func (d *httpDecoder) responseWriter() { + defer func() { + log.V(3).Infoln(d.idtag + "response-writer: closing connection") + d.con.Close() + }() + for buf := range d.outCh { + //TODO(jdef) I worry about this busy-looping + + // write & flush the buffer until there's nothing left in it, or else + // we exceed the write/flush period. + now := time.Now() + for buf.Len() > 0 && time.Since(now) < writeFlushPeriod { + select { + case <-d.forceQuit: + return + default: + } + d.tryFlushResponse(buf) + } + if buf.Len() > 0 { + //TODO(jdef) should we abort the entire connection instead? a partially written + // response doesn't do anyone any good. That said, real libprocess agents don't + // really care about the response channel anyway - the entire system is fire and + // forget. So I've decided to err on the side that we might lose response bytes + // in favor of completely reading the connection request stream before we terminate. + log.Errorln(d.idtag + "failed to fully flush output buffer within write-flush period") + } + } +} + type body struct { *bytes.Buffer } diff --git a/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go b/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go index b356bed531b9..6a28e107d6dc 100644 --- a/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go +++ b/Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go @@ -44,6 +44,18 @@ var ( errNotStarted = errors.New("HTTP transport has not been started") errTerminal = errors.New("HTTP transport is terminated") errAlreadyRunning = errors.New("HTTP transport is already running") + + httpTransport, httpClient = &http.Transport{ + Dial: (&net.Dialer{ + Timeout: 10 * time.Second, + KeepAlive: 30 * time.Second, + }).Dial, + TLSHandshakeTimeout: 10 * time.Second, + }, + &http.Client{ + Transport: httpTransport, + Timeout: DefaultReadTimeout, + } ) // httpTransporter is a subset of the Transporter interface @@ -114,7 +126,7 @@ type HTTPTransporter struct { listener net.Listener // TODO(yifan): Change to TCPListener. mux *http.ServeMux tr *http.Transport - client *http.Client // TODO(yifan): Set read/write deadline. + client *http.Client messageQueue chan *Message address net.IP // optional binding address shouldQuit chan struct{} @@ -124,13 +136,12 @@ type HTTPTransporter struct { // NewHTTPTransporter creates a new http transporter with an optional binding address. func NewHTTPTransporter(upid upid.UPID, address net.IP) *HTTPTransporter { - tr := &http.Transport{} result := &HTTPTransporter{ upid: upid, messageQueue: make(chan *Message, defaultQueueSize), mux: http.NewServeMux(), - client: &http.Client{Transport: tr}, - tr: tr, + client: httpClient, + tr: httpTransport, address: address, shouldQuit: make(chan struct{}), } diff --git a/cluster/mesos/docker/docker-compose.yml b/cluster/mesos/docker/docker-compose.yml index bd7606122d2e..2a722b43c56c 100644 --- a/cluster/mesos/docker/docker-compose.yml +++ b/cluster/mesos/docker/docker-compose.yml @@ -30,6 +30,7 @@ mesosslave: hostname: mesosslave privileged: true image: mesosphere/mesos-slave-dind:mesos-0.24.0_dind-0.2_docker-1.8.2_ubuntu-14.04.3 + ports: [ "10248","10249" ] entrypoint: - bash - -xc diff --git a/contrib/mesos/pkg/minion/tasks/task.go b/contrib/mesos/pkg/minion/tasks/task.go index 1203bdcba904..726df086fc72 100644 --- a/contrib/mesos/pkg/minion/tasks/task.go +++ b/contrib/mesos/pkg/minion/tasks/task.go @@ -19,6 +19,7 @@ package tasks import ( "fmt" "io" + "io/ioutil" "os/exec" "sync" "sync/atomic" @@ -218,10 +219,15 @@ func notStartedTask(t *Task) taskStateFn { // create command cmd := exec.Command(t.bin, t.args...) - if _, err := cmd.StdoutPipe(); err != nil { + stdout, err := cmd.StdoutPipe() + if err != nil { t.tryError(fmt.Errorf("error getting stdout of %v: %v", t.name, err)) return taskShouldRestart } + go func() { + defer stdout.Close() + io.Copy(ioutil.Discard, stdout) // TODO(jdef) we might want to save this at some point + }() stderrLogs, err := cmd.StderrPipe() if err != nil { t.tryError(fmt.Errorf("error getting stderr of %v: %v", t.name, err)) diff --git a/contrib/mesos/pkg/scheduler/service/service.go b/contrib/mesos/pkg/scheduler/service/service.go index c4c84a9e794f..ab51c91ca106 100644 --- a/contrib/mesos/pkg/scheduler/service/service.go +++ b/contrib/mesos/pkg/scheduler/service/service.go @@ -382,6 +382,7 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E ci.Arguments = append(ci.Arguments, fmt.Sprintf("--cadvisor-port=%v", s.KubeletCadvisorPort)) ci.Arguments = append(ci.Arguments, fmt.Sprintf("--sync-frequency=%v", s.KubeletSyncFrequency)) ci.Arguments = append(ci.Arguments, fmt.Sprintf("--contain-pod-resources=%t", s.ContainPodResources)) + ci.Arguments = append(ci.Arguments, fmt.Sprintf("--enable-debugging-handlers=%t", s.EnableProfiling)) if s.AuthPath != "" { //TODO(jdef) should probably support non-local files, e.g. hdfs:///some/config/file diff --git a/pkg/cloudprovider/providers/mesos/client.go b/pkg/cloudprovider/providers/mesos/client.go index 4b01f0c43ccc..c9f1ac222f34 100644 --- a/pkg/cloudprovider/providers/mesos/client.go +++ b/pkg/cloudprovider/providers/mesos/client.go @@ -32,6 +32,7 @@ import ( "golang.org/x/net/context" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/resource" + "k8s.io/kubernetes/pkg/util" ) const defaultClusterName = "mesos" @@ -102,7 +103,7 @@ func newMesosClient( md detector.Master, mesosHttpClientTimeout, stateCacheTTL time.Duration) (*mesosClient, error) { - tr := &http.Transport{} + tr := util.SetTransportDefaults(&http.Transport{}) httpClient := &http.Client{ Transport: tr, Timeout: mesosHttpClientTimeout,