// Code generated by protoc-gen-go. DO NOT EDIT.
// source: clustermessage.proto

package clustermessage

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

type CommandType int32

const (
	CommandType_Reserved        CommandType = 0
	CommandType_ClusterRegist   CommandType = 1
	CommandType_ClusterUnregist CommandType = 2
	CommandType_NeighborRoute   CommandType = 3
	CommandType_SubTreeRoute    CommandType = 4
	CommandType_DeployReq       CommandType = 5
	CommandType_DeployResp      CommandType = 6
	CommandType_ControlReq      CommandType = 7
	CommandType_ControlResp     CommandType = 8
	CommandType_EdgeReport      CommandType = 9
	CommandType_ControlMultiReq CommandType = 10
)

var CommandType_name = map[int32]string{
	0:  "Reserved",
	1:  "ClusterRegist",
	2:  "ClusterUnregist",
	3:  "NeighborRoute",
	4:  "SubTreeRoute",
	5:  "DeployReq",
	6:  "DeployResp",
	7:  "ControlReq",
	8:  "ControlResp",
	9:  "EdgeReport",
	10: "ControlMultiReq",
}

var CommandType_value = map[string]int32{
	"Reserved":        0,
	"ClusterRegist":   1,
	"ClusterUnregist": 2,
	"NeighborRoute":   3,
	"SubTreeRoute":    4,
	"DeployReq":       5,
	"DeployResp":      6,
	"ControlReq":      7,
	"ControlResp":     8,
	"EdgeReport":      9,
	"ControlMultiReq": 10,
}

func (x CommandType) String() string {
	return proto.EnumName(CommandType_name, int32(x))
}

func (CommandType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{0}
}

// ClusterMessage is the message between cluster controllers and maybe cc and cluster shim.
type ClusterMessage struct {
	Head                 *MessageHead `protobuf:"bytes,1,opt,name=Head,proto3" json:"Head,omitempty"`
	Body                 []byte       `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (m *ClusterMessage) Reset()         { *m = ClusterMessage{} }
func (m *ClusterMessage) String() string { return proto.CompactTextString(m) }
func (*ClusterMessage) ProtoMessage()    {}
func (*ClusterMessage) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{0}
}

func (m *ClusterMessage) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ClusterMessage.Unmarshal(m, b)
}
func (m *ClusterMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ClusterMessage.Marshal(b, m, deterministic)
}
func (m *ClusterMessage) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClusterMessage.Merge(m, src)
}
func (m *ClusterMessage) XXX_Size() int {
	return xxx_messageInfo_ClusterMessage.Size(m)
}
func (m *ClusterMessage) XXX_DiscardUnknown() {
	xxx_messageInfo_ClusterMessage.DiscardUnknown(m)
}

var xxx_messageInfo_ClusterMessage proto.InternalMessageInfo

func (m *ClusterMessage) GetHead() *MessageHead {
	if m != nil {
		return m.Head
	}
	return nil
}

func (m *ClusterMessage) GetBody() []byte {
	if m != nil {
		return m.Body
	}
	return nil
}

type MessageHead struct {
	// MessageID is the uuid of a cluster message.
	// if the message comes from a crd, the messageid is the name of the crd.
	MessageID            string      `protobuf:"bytes,1,opt,name=MessageID,proto3" json:"MessageID,omitempty"`
	Command              CommandType `protobuf:"varint,2,opt,name=Command,proto3,enum=clustermessage.CommandType" json:"Command,omitempty"`
	ClusterSelector      string      `protobuf:"bytes,3,opt,name=ClusterSelector,proto3" json:"ClusterSelector,omitempty"`
	ClusterName          string      `protobuf:"bytes,4,opt,name=ClusterName,proto3" json:"ClusterName,omitempty"`
	ParentClusterName    string      `protobuf:"bytes,5,opt,name=ParentClusterName,proto3" json:"ParentClusterName,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (m *MessageHead) Reset()         { *m = MessageHead{} }
func (m *MessageHead) String() string { return proto.CompactTextString(m) }
func (*MessageHead) ProtoMessage()    {}
func (*MessageHead) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{1}
}

func (m *MessageHead) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_MessageHead.Unmarshal(m, b)
}
func (m *MessageHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_MessageHead.Marshal(b, m, deterministic)
}
func (m *MessageHead) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MessageHead.Merge(m, src)
}
func (m *MessageHead) XXX_Size() int {
	return xxx_messageInfo_MessageHead.Size(m)
}
func (m *MessageHead) XXX_DiscardUnknown() {
	xxx_messageInfo_MessageHead.DiscardUnknown(m)
}

var xxx_messageInfo_MessageHead proto.InternalMessageInfo

func (m *MessageHead) GetMessageID() string {
	if m != nil {
		return m.MessageID
	}
	return ""
}

func (m *MessageHead) GetCommand() CommandType {
	if m != nil {
		return m.Command
	}
	return CommandType_Reserved
}

func (m *MessageHead) GetClusterSelector() string {
	if m != nil {
		return m.ClusterSelector
	}
	return ""
}

func (m *MessageHead) GetClusterName() string {
	if m != nil {
		return m.ClusterName
	}
	return ""
}

func (m *MessageHead) GetParentClusterName() string {
	if m != nil {
		return m.ParentClusterName
	}
	return ""
}

type ControllerTask struct {
	Destination          string   `protobuf:"bytes,1,opt,name=Destination,proto3" json:"Destination,omitempty"`
	Method               string   `protobuf:"bytes,2,opt,name=Method,proto3" json:"Method,omitempty"`
	URI                  string   `protobuf:"bytes,3,opt,name=URI,proto3" json:"URI,omitempty"`
	Body                 []byte   `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ControllerTask) Reset()         { *m = ControllerTask{} }
func (m *ControllerTask) String() string { return proto.CompactTextString(m) }
func (*ControllerTask) ProtoMessage()    {}
func (*ControllerTask) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{2}
}

func (m *ControllerTask) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ControllerTask.Unmarshal(m, b)
}
func (m *ControllerTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ControllerTask.Marshal(b, m, deterministic)
}
func (m *ControllerTask) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ControllerTask.Merge(m, src)
}
func (m *ControllerTask) XXX_Size() int {
	return xxx_messageInfo_ControllerTask.Size(m)
}
func (m *ControllerTask) XXX_DiscardUnknown() {
	xxx_messageInfo_ControllerTask.DiscardUnknown(m)
}

var xxx_messageInfo_ControllerTask proto.InternalMessageInfo

func (m *ControllerTask) GetDestination() string {
	if m != nil {
		return m.Destination
	}
	return ""
}

func (m *ControllerTask) GetMethod() string {
	if m != nil {
		return m.Method
	}
	return ""
}

func (m *ControllerTask) GetURI() string {
	if m != nil {
		return m.URI
	}
	return ""
}

func (m *ControllerTask) GetBody() []byte {
	if m != nil {
		return m.Body
	}
	return nil
}

type ControllerTaskResponse struct {
	Timestamp            int64    `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	StatusCode           int32    `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	Body                 []byte   `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ControllerTaskResponse) Reset()         { *m = ControllerTaskResponse{} }
func (m *ControllerTaskResponse) String() string { return proto.CompactTextString(m) }
func (*ControllerTaskResponse) ProtoMessage()    {}
func (*ControllerTaskResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{3}
}

func (m *ControllerTaskResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ControllerTaskResponse.Unmarshal(m, b)
}
func (m *ControllerTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ControllerTaskResponse.Marshal(b, m, deterministic)
}
func (m *ControllerTaskResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ControllerTaskResponse.Merge(m, src)
}
func (m *ControllerTaskResponse) XXX_Size() int {
	return xxx_messageInfo_ControllerTaskResponse.Size(m)
}
func (m *ControllerTaskResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ControllerTaskResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ControllerTaskResponse proto.InternalMessageInfo

func (m *ControllerTaskResponse) GetTimestamp() int64 {
	if m != nil {
		return m.Timestamp
	}
	return 0
}

func (m *ControllerTaskResponse) GetStatusCode() int32 {
	if m != nil {
		return m.StatusCode
	}
	return 0
}

func (m *ControllerTaskResponse) GetBody() []byte {
	if m != nil {
		return m.Body
	}
	return nil
}

type DeployTask struct {
	Replicas             int32             `protobuf:"varint,1,opt,name=Replicas,proto3" json:"Replicas,omitempty"`
	PodParams            map[string]string `protobuf:"bytes,2,rep,name=PodParams,proto3" json:"PodParams,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	Status               string            `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (m *DeployTask) Reset()         { *m = DeployTask{} }
func (m *DeployTask) String() string { return proto.CompactTextString(m) }
func (*DeployTask) ProtoMessage()    {}
func (*DeployTask) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{4}
}

func (m *DeployTask) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_DeployTask.Unmarshal(m, b)
}
func (m *DeployTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_DeployTask.Marshal(b, m, deterministic)
}
func (m *DeployTask) XXX_Merge(src proto.Message) {
	xxx_messageInfo_DeployTask.Merge(m, src)
}
func (m *DeployTask) XXX_Size() int {
	return xxx_messageInfo_DeployTask.Size(m)
}
func (m *DeployTask) XXX_DiscardUnknown() {
	xxx_messageInfo_DeployTask.DiscardUnknown(m)
}

var xxx_messageInfo_DeployTask proto.InternalMessageInfo

func (m *DeployTask) GetReplicas() int32 {
	if m != nil {
		return m.Replicas
	}
	return 0
}

func (m *DeployTask) GetPodParams() map[string]string {
	if m != nil {
		return m.PodParams
	}
	return nil
}

func (m *DeployTask) GetStatus() string {
	if m != nil {
		return m.Status
	}
	return ""
}

type ControlMultiTask struct {
	Destination          string   `protobuf:"bytes,1,opt,name=Destination,proto3" json:"Destination,omitempty"`
	Method               string   `protobuf:"bytes,2,opt,name=Method,proto3" json:"Method,omitempty"`
	URI                  string   `protobuf:"bytes,3,opt,name=URI,proto3" json:"URI,omitempty"`
	Body                 [][]byte `protobuf:"bytes,4,rep,name=Body,proto3" json:"Body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ControlMultiTask) Reset()         { *m = ControlMultiTask{} }
func (m *ControlMultiTask) String() string { return proto.CompactTextString(m) }
func (*ControlMultiTask) ProtoMessage()    {}
func (*ControlMultiTask) Descriptor() ([]byte, []int) {
	return fileDescriptor_cb5c8b0b58767cdb, []int{5}
}

func (m *ControlMultiTask) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ControlMultiTask.Unmarshal(m, b)
}
func (m *ControlMultiTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ControlMultiTask.Marshal(b, m, deterministic)
}
func (m *ControlMultiTask) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ControlMultiTask.Merge(m, src)
}
func (m *ControlMultiTask) XXX_Size() int {
	return xxx_messageInfo_ControlMultiTask.Size(m)
}
func (m *ControlMultiTask) XXX_DiscardUnknown() {
	xxx_messageInfo_ControlMultiTask.DiscardUnknown(m)
}

var xxx_messageInfo_ControlMultiTask proto.InternalMessageInfo

func (m *ControlMultiTask) GetDestination() string {
	if m != nil {
		return m.Destination
	}
	return ""
}

func (m *ControlMultiTask) GetMethod() string {
	if m != nil {
		return m.Method
	}
	return ""
}

func (m *ControlMultiTask) GetURI() string {
	if m != nil {
		return m.URI
	}
	return ""
}

func (m *ControlMultiTask) GetBody() [][]byte {
	if m != nil {
		return m.Body
	}
	return nil
}

func init() {
	proto.RegisterEnum("clustermessage.CommandType", CommandType_name, CommandType_value)
	proto.RegisterType((*ClusterMessage)(nil), "clustermessage.ClusterMessage")
	proto.RegisterType((*MessageHead)(nil), "clustermessage.MessageHead")
	proto.RegisterType((*ControllerTask)(nil), "clustermessage.ControllerTask")
	proto.RegisterType((*ControllerTaskResponse)(nil), "clustermessage.ControllerTaskResponse")
	proto.RegisterType((*DeployTask)(nil), "clustermessage.DeployTask")
	proto.RegisterMapType((map[string]string)(nil), "clustermessage.DeployTask.PodParamsEntry")
	proto.RegisterType((*ControlMultiTask)(nil), "clustermessage.ControlMultiTask")
}

func init() { proto.RegisterFile("clustermessage.proto", fileDescriptor_cb5c8b0b58767cdb) }

var fileDescriptor_cb5c8b0b58767cdb = []byte{
	// 530 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xc1, 0x6e, 0xda, 0x40,
	0x10, 0xad, 0x31, 0x24, 0xf1, 0x90, 0x38, 0xce, 0x34, 0x8a, 0x50, 0x5a, 0x55, 0x88, 0x13, 0xad,
	0x2a, 0x2a, 0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