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

/*
Package protobuf is a generated protocol buffer package.

It is generated from these files:
	tal.proto

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

import proto "github.com/golang/protobuf/proto"
import math "math"

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

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
}

type Msg struct {
	Kind             *Msg_Kind   `protobuf:"varint,1,opt,name=kind,enum=protobuf.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 (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 (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 (m *MsgLite) GetTraceid() uint64 {
	if m != nil && m.Traceid != nil {
		return *m.Traceid
	}
	return 0
}

func init() {
	proto.RegisterEnum("protobuf.Msg_Kind", Msg_Kind_name, Msg_Kind_value)
}
