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

package pb

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	any "github.com/golang/protobuf/ptypes/any"
	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 Message_Type int32

const (
	Message_PING                          Message_Type = 0
	Message_PONG                          Message_Type = 1
	Message_THREAD_ENVELOPE               Message_Type = 10
	Message_THREAD_ENVELOPE_ACK           Message_Type = 11
	Message_CAFE_CHALLENGE                Message_Type = 50
	Message_CAFE_NONCE                    Message_Type = 51
	Message_CAFE_REGISTRATION             Message_Type = 52
	Message_CAFE_DEREGISTRATION           Message_Type = 72
	Message_CAFE_DEREGISTRATION_ACK       Message_Type = 73
	Message_CAFE_SESSION                  Message_Type = 53
	Message_CAFE_REFRESH_SESSION          Message_Type = 54
	Message_CAFE_STORE                    Message_Type = 55
	Message_CAFE_STORE_ACK                Message_Type = 59
	Message_CAFE_UNSTORE                  Message_Type = 74
	Message_CAFE_UNSTORE_ACK              Message_Type = 75
	Message_CAFE_OBJECT                   Message_Type = 56
	Message_CAFE_OBJECT_LIST              Message_Type = 57
	Message_CAFE_STORE_THREAD             Message_Type = 58
	Message_CAFE_STORE_THREAD_ACK         Message_Type = 76
	Message_CAFE_UNSTORE_THREAD           Message_Type = 77
	Message_CAFE_UNSTORE_THREAD_ACK       Message_Type = 78
	Message_CAFE_DELIVER_MESSAGE          Message_Type = 60
	Message_CAFE_CHECK_MESSAGES           Message_Type = 61
	Message_CAFE_MESSAGES                 Message_Type = 62
	Message_CAFE_DELETE_MESSAGES          Message_Type = 63
	Message_CAFE_DELETE_MESSAGES_ACK      Message_Type = 64
	Message_CAFE_YOU_HAVE_MAIL            Message_Type = 65
	Message_CAFE_PUBLISH_PEER             Message_Type = 66
	Message_CAFE_PUBLISH_PEER_ACK         Message_Type = 67
	Message_CAFE_QUERY                    Message_Type = 70
	Message_CAFE_QUERY_RES                Message_Type = 71
	Message_CAFE_PUBSUB_QUERY             Message_Type = 102
	Message_CAFE_PUBSUB_QUERY_RES         Message_Type = 103
	Message_ERROR                         Message_Type = 500
	Message_CAFE_CONTACT_QUERY            Message_Type = 68  // Deprecated: Do not use.
	Message_CAFE_CONTACT_QUERY_RES        Message_Type = 69  // Deprecated: Do not use.
	Message_CAFE_PUBSUB_CONTACT_QUERY     Message_Type = 100 // Deprecated: Do not use.
	Message_CAFE_PUBSUB_CONTACT_QUERY_RES Message_Type = 101 // Deprecated: Do not use.
)

var Message_Type_name = map[int32]string{
	0:   "PING",
	1:   "PONG",
	10:  "THREAD_ENVELOPE",
	11:  "THREAD_ENVELOPE_ACK",
	50:  "CAFE_CHALLENGE",
	51:  "CAFE_NONCE",
	52:  "CAFE_REGISTRATION",
	72:  "CAFE_DEREGISTRATION",
	73:  "CAFE_DEREGISTRATION_ACK",
	53:  "CAFE_SESSION",
	54:  "CAFE_REFRESH_SESSION",
	55:  "CAFE_STORE",
	59:  "CAFE_STORE_ACK",
	74:  "CAFE_UNSTORE",
	75:  "CAFE_UNSTORE_ACK",
	56:  "CAFE_OBJECT",
	57:  "CAFE_OBJECT_LIST",
	58:  "CAFE_STORE_THREAD",
	76:  "CAFE_STORE_THREAD_ACK",
	77:  "CAFE_UNSTORE_THREAD",
	78:  "CAFE_UNSTORE_THREAD_ACK",
	60:  "CAFE_DELIVER_MESSAGE",
	61:  "CAFE_CHECK_MESSAGES",
	62:  "CAFE_MESSAGES",
	63:  "CAFE_DELETE_MESSAGES",
	64:  "CAFE_DELETE_MESSAGES_ACK",
	65:  "CAFE_YOU_HAVE_MAIL",
	66:  "CAFE_PUBLISH_PEER",
	67:  "CAFE_PUBLISH_PEER_ACK",
	70:  "CAFE_QUERY",
	71:  "CAFE_QUERY_RES",
	102: "CAFE_PUBSUB_QUERY",
	103: "CAFE_PUBSUB_QUERY_RES",
	500: "ERROR",
	68:  "CAFE_CONTACT_QUERY",
	69:  "CAFE_CONTACT_QUERY_RES",
	100: "CAFE_PUBSUB_CONTACT_QUERY",
	101: "CAFE_PUBSUB_CONTACT_QUERY_RES",
}

var Message_Type_value = map[string]int32{
	"PING":                          0,
	"PONG":                          1,
	"THREAD_ENVELOPE":               10,
	"THREAD_ENVELOPE_ACK":           11,
	"CAFE_CHALLENGE":                50,
	"CAFE_NONCE":                    51,
	"CAFE_REGISTRATION":             52,
	"CAFE_DEREGISTRATION":           72,
	"CAFE_DEREGISTRATION_ACK":       73,
	"CAFE_SESSION":                  53,
	"CAFE_REFRESH_SESSION":          54,
	"CAFE_STORE":                    55,
	"CAFE_STORE_ACK":                59,
	"CAFE_UNSTORE":                  74,
	"CAFE_UNSTORE_ACK":              75,
	"CAFE_OBJECT":                   56,
	"CAFE_OBJECT_LIST":              57,
	"CAFE_STORE_THREAD":             58,
	"CAFE_STORE_THREAD_ACK":         76,
	"CAFE_UNSTORE_THREAD":           77,
	"CAFE_UNSTORE_THREAD_ACK":       78,
	"CAFE_DELIVER_MESSAGE":          60,
	"CAFE_CHECK_MESSAGES":           61,
	"CAFE_MESSAGES":                 62,
	"CAFE_DELETE_MESSAGES":          63,
	"CAFE_DELETE_MESSAGES_ACK":      64,
	"CAFE_YOU_HAVE_MAIL":            65,
	"CAFE_PUBLISH_PEER":             66,
	"CAFE_PUBLISH_PEER_ACK":         67,
	"CAFE_QUERY":                    70,
	"CAFE_QUERY_RES":                71,
	"CAFE_PUBSUB_QUERY":             102,
	"CAFE_PUBSUB_QUERY_RES":         103,
	"ERROR":                         500,
	"CAFE_CONTACT_QUERY":            68,
	"CAFE_CONTACT_QUERY_RES":        69,
	"CAFE_PUBSUB_CONTACT_QUERY":     100,
	"CAFE_PUBSUB_CONTACT_QUERY_RES": 101,
}

func (x Message_Type) String() string {
	return proto.EnumName(Message_Type_name, int32(x))
}

func (Message_Type) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_33c57e4bae7b9afd, []int{0, 0}
}

type Message struct {
	Type                 Message_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Message_Type" json:"type,omitempty"`
	Payload              *any.Any     `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	Request              int32        `protobuf:"varint,3,opt,name=request,proto3" json:"request,omitempty"`
	Response             bool         `protobuf:"varint,4,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

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

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

var xxx_messageInfo_Message proto.InternalMessageInfo

func (m *Message) GetType() Message_Type {
	if m != nil {
		return m.Type
	}
	return Message_PING
}

func (m *Message) GetPayload() *any.Any {
	if m != nil {
		return m.Payload
	}
	return nil
}

func (m *Message) GetRequest() int32 {
	if m != nil {
		return m.Request
	}
	return 0
}

func (m *Message) GetResponse() bool {
	if m != nil {
		return m.Response
	}
	return false
}

type Envelope struct {
	Message              *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Sig                  []byte   `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_Envelope proto.InternalMessageInfo

func (m *Envelope) GetMessage() *Message {
	if m != nil {
		return m.Message
	}
	return nil
}

func (m *Envelope) GetSig() []byte {
	if m != nil {
		return m.Sig
	}
	return nil
}

type Error struct {
	Code                 uint32   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_Error proto.InternalMessageInfo

func (m *Error) GetCode() uint32 {
	if m != nil {
		return m.Code
	}
	return 0
}

func (m *Error) GetMessage() string {
	if m != nil {
		return m.Message
	}
	return ""
}

func init() {
	proto.RegisterEnum("Message_Type", Message_Type_name, Message_Type_value)
	proto.RegisterType((*Message)(nil), "Message")
	proto.RegisterType((*Envelope)(nil), "Envelope")
	proto.RegisterType((*Error)(nil), "Error")
}

func init() { proto.RegisterFile("message.proto", fileDescriptor_33c57e4bae7b9afd) }

var fileDescriptor_33c57e4bae7b9afd = []byte{
	// 645 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x94, 0xdb, 0x4e, 0xdb, 0x4e,
	0x10, 0xc6, 0xff, 0x81, 0x40, 0xf2, 0x9f, 0x10, 0x58, 0x96, 0x53, 0x48, 0x5b, 0x14, 0x22, 0x55,
	0xca, 0x4d, 0x8d, 0x14, 0x4a, 0xcf, 0x07, 0x1c, 0x67, 0x88, 0x0d, 0x8e, 0x9d, 0xae, 0x1d, 0x24,
	0x7a, 0x63, 0x25, 0xc5, 0x44, 0x48, 0x34, 0x76, 0x93, 0x50, 0x35, 0x0f, 0xd0, 0xf7, 0xed, 0x45,
	0x1f, 0xa0, 0xf2, 0xd8, 0x5e, 0x99, 0x42, 0xef, 0x3c, 0xdf, 0xf7, 0xcd, 0x6f, 0x76, 0xd7, 0xd2,
	0x40, 0xf9, 0xab, 0x3f, 0x9d, 0x0e, 0x46, 0xbe, 0x12, 0x4e, 0x82, 0x59, 0x50, 0xdd, 0x1d, 0x05,
	0xc1, 0xe8, 0xc6, 0x3f, 0xa0, 0x6a, 0x78, 0x7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