// Code generated by protoc-gen-go.
// source: code.justin.tv/rhys/nursery/serialize/tal.proto
// DO NOT EDIT!

/*
Package serialize is a generated protocol buffer package.

It is generated from these files:
	code.justin.tv/rhys/nursery/serialize/tal.proto

It has these top-level messages:
	Msg
	MsgLite
*/
package serialize

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.
const _ = proto.ProtoPackageIsVersion1

type Msg_Kind int32

const (
	Msg_Admin     Msg_Kind = 0
	Msg_Connect   Msg_Kind = 1
	Msg_Event     Msg_Kind = 2
	Msg_TranStart Msg_Kind = 3
	Msg_TranEnd   Msg_Kind = 4
	Msg_CallStart Msg_Kind = 5
	Msg_CallEnd   Msg_Kind = 6
)

var Msg_Kind_name = map[int32]string{
	0: "Admin",
	1: "Connect",
	2: "Event",
	3: "TranStart",
	4: "TranEnd",
	5: "CallStart",
	6: "CallEnd",
}
var Msg_Kind_value = map[string]int32{
	"Admin":     0,
	"Connect":   1,
	"Event":     2,
	"TranStart": 3,
	"TranEnd":   4,
	"CallStart": 5,
	"CallEnd":   6,
}

func (x Msg_Kind) Enum() *Msg_Kind {
	p := new(Msg_Kind)
	*p = x
	return p
}
func (x Msg_Kind) String() string {
	return proto.EnumName(Msg_Kind_name, int32(x))
}
func (x *Msg_Kind) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Msg_Kind_value, data, "Msg_Kind")
	if err != nil {
		return err
	}
	*x = Msg_Kind(value)
	return nil
}
func (Msg_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }

type Msg struct {
	Kind             *Msg_Kind   `protobuf:"varint,1,opt,name=kind,enum=serialize.Msg_Kind" json:"kind,omitempty"`
	Time             *uint64     `protobuf:"fixed64,2,opt,name=time" json:"time,omitempty"`
	Service          *string     `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
	Machine          *string     `protobuf:"bytes,4,opt,name=machine" json:"machine,omitempty"`
	Pid              *int32      `protobuf:"varint,5,opt,name=pid" json:"pid,omitempty"`
	Traceid          *uint64     `protobuf:"fixed64,6,opt,name=traceid" json:"traceid,omitempty"`
	Subtraceid       *string     `protobuf:"bytes,7,opt,name=subtraceid" json:"subtraceid,omitempty"`
	Desc             []*Msg_Desc `protobuf:"bytes,8,rep,name=desc" json:"desc,omitempty"`
	XXX_unrecognized []byte      `json:"-"`
}

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

func (m *Msg) GetKind() Msg_Kind {
	if m != nil && m.Kind != nil {
		return *m.Kind
	}
	return Msg_Admin
}

func (m *Msg) GetTime() uint64 {
	if m != nil && m.Time != nil {
		return *m.Time
	}
	return 0
}

func (m *Msg) GetService() string {
	if m != nil && m.Service != nil {
		return *m.Service
	}
	return ""
}

func (m *Msg) GetMachine() string {
	if m != nil && m.Machine != nil {
		return *m.Machine
	}
	return ""
}

func (m *Msg) GetPid() int32 {
	if m != nil && m.Pid != nil {
		return *m.Pid
	}
	return 0
}

func (m *Msg) GetTraceid() uint64 {
	if m != nil && m.Traceid != nil {
		return *m.Traceid
	}
	return 0
}

func (m *Msg) GetSubtraceid() string {
	if m != nil && m.Subtraceid != nil {
		return *m.Subtraceid
	}
	return ""
}

func (m *Msg) GetDesc() []*Msg_Desc {
	if m != nil {
		return m.Desc
	}
	return nil
}

type Msg_Desc struct {
	Key              *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Val              *string `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

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

func (m *Msg_Desc) GetKey() string {
	if m != nil && m.Key != nil {
		return *m.Key
	}
	return ""
}

func (m *Msg_Desc) GetVal() string {
	if m != nil && m.Val != nil {
		return *m.Val
	}
	return ""
}

type MsgLite struct {
	// only include this single field, for faster searching
	Traceid          *uint64 `protobuf:"fixed64,6,opt,name=traceid" json:"traceid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

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

func (m *MsgLite) GetTraceid() uint64 {
	if m != nil && m.Traceid != nil {
		return *m.Traceid
	}
	return 0
}

func init() {
	proto.RegisterType((*Msg)(nil), "serialize.Msg")
	proto.RegisterType((*Msg_Desc)(nil), "serialize.Msg.Desc")
	proto.RegisterType((*MsgLite)(nil), "serialize.MsgLite")
	proto.RegisterEnum("serialize.Msg_Kind", Msg_Kind_name, Msg_Kind_value)
}

var fileDescriptor0 = []byte{
	// 286 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x8f, 0x4d, 0x4e, 0xc3, 0x30,
	0x10, 0x85, 0x69, 0xe3, 0x34, 0x64, 0xca, 0x4f, 0x64, 0x36, 0x56, 0x57, 0xa5, 0xab, 0xae, 0x1c,
	0x89, 0x1b, 0xa0, 0xd2, 0x15, 0xb0, 0x82, 0x0b, 0x18, 0x7b, 0x44, 0x4d, 0x53, 0xa7, 0xb2, 0xdd,
	0x48, 0xe5, 0x58, 0x9c, 0x90, 0xb1, 0x11, 0xdd, 0x74, 0x93, 0x68, 0xbe, 0xef, 0xcd, 0xe4, 0x05,
	0x5a, 0xdd, 0x1b, 0x94, 0x5f, 0x87, 0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