trace-common.pb.go 7.7 KB
Newer Older
H
heyanlong 已提交
1 2 3
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/trace-common.proto

4
package v2
H
heyanlong 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

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

何延龙 已提交
23
type SpanTypeV2 int32
H
heyanlong 已提交
24 25

const (
何延龙 已提交
26 27 28
	SpanTypeV2_Entry SpanTypeV2 = 0
	SpanTypeV2_Exit  SpanTypeV2 = 1
	SpanTypeV2_Local SpanTypeV2 = 2
H
heyanlong 已提交
29 30
)

何延龙 已提交
31
var SpanTypeV2_name = map[int32]string{
H
heyanlong 已提交
32 33 34 35 36
	0: "Entry",
	1: "Exit",
	2: "Local",
}

何延龙 已提交
37
var SpanTypeV2_value = map[string]int32{
H
heyanlong 已提交
38 39 40 41 42
	"Entry": 0,
	"Exit":  1,
	"Local": 2,
}

何延龙 已提交
43 44
func (x SpanTypeV2) String() string {
	return proto.EnumName(SpanTypeV2_name, int32(x))
H
heyanlong 已提交
45 46
}

何延龙 已提交
47
func (SpanTypeV2) EnumDescriptor() ([]byte, []int) {
H
heyanlong 已提交
48 49 50
	return fileDescriptor_f5d7d2e503402948, []int{0}
}

何延龙 已提交
51
type RefTypeV2 int32
H
heyanlong 已提交
52 53

const (
何延龙 已提交
54 55
	RefTypeV2_CrossProcess RefTypeV2 = 0
	RefTypeV2_CrossThread  RefTypeV2 = 1
H
heyanlong 已提交
56 57
)

何延龙 已提交
58
var RefTypeV2_name = map[int32]string{
H
heyanlong 已提交
59 60 61 62
	0: "CrossProcess",
	1: "CrossThread",
}

何延龙 已提交
63
var RefTypeV2_value = map[string]int32{
H
heyanlong 已提交
64 65 66 67
	"CrossProcess": 0,
	"CrossThread":  1,
}

何延龙 已提交
68 69
func (x RefTypeV2) String() string {
	return proto.EnumName(RefTypeV2_name, int32(x))
H
heyanlong 已提交
70 71
}

何延龙 已提交
72
func (RefTypeV2) EnumDescriptor() ([]byte, []int) {
H
heyanlong 已提交
73 74 75
	return fileDescriptor_f5d7d2e503402948, []int{1}
}

何延龙 已提交
76
type SpanLayerV2 int32
H
heyanlong 已提交
77 78

const (
何延龙 已提交
79 80 81 82 83 84
	SpanLayerV2_Unknown      SpanLayerV2 = 0
	SpanLayerV2_Database     SpanLayerV2 = 1
	SpanLayerV2_RPCFramework SpanLayerV2 = 2
	SpanLayerV2_Http         SpanLayerV2 = 3
	SpanLayerV2_MQ           SpanLayerV2 = 4
	SpanLayerV2_Cache        SpanLayerV2 = 5
H
heyanlong 已提交
85 86
)

何延龙 已提交
87
var SpanLayerV2_name = map[int32]string{
H
heyanlong 已提交
88 89 90 91 92 93 94 95
	0: "Unknown",
	1: "Database",
	2: "RPCFramework",
	3: "Http",
	4: "MQ",
	5: "Cache",
}

何延龙 已提交
96
var SpanLayerV2_value = map[string]int32{
H
heyanlong 已提交
97 98 99 100 101 102 103 104
	"Unknown":      0,
	"Database":     1,
	"RPCFramework": 2,
	"Http":         3,
	"MQ":           4,
	"Cache":        5,
}

何延龙 已提交
105 106
func (x SpanLayerV2) String() string {
	return proto.EnumName(SpanLayerV2_name, int32(x))
H
heyanlong 已提交
107 108
}

何延龙 已提交
109
func (SpanLayerV2) EnumDescriptor() ([]byte, []int) {
H
heyanlong 已提交
110 111 112
	return fileDescriptor_f5d7d2e503402948, []int{2}
}

何延龙 已提交
113 114 115 116 117 118
type UpstreamSegmentV2 struct {
	GlobalTraceIds       []*UniqueIdV2 `protobuf:"bytes,1,rep,name=globalTraceIds,proto3" json:"globalTraceIds,omitempty"`
	Segment              []byte        `protobuf:"bytes,2,opt,name=segment,proto3" json:"segment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
H
heyanlong 已提交
119 120
}

何延龙 已提交
121 122 123 124
func (m *UpstreamSegmentV2) Reset()         { *m = UpstreamSegmentV2{} }
func (m *UpstreamSegmentV2) String() string { return proto.CompactTextString(m) }
func (*UpstreamSegmentV2) ProtoMessage()    {}
func (*UpstreamSegmentV2) Descriptor() ([]byte, []int) {
H
heyanlong 已提交
125 126 127
	return fileDescriptor_f5d7d2e503402948, []int{0}
}

何延龙 已提交
128 129
func (m *UpstreamSegmentV2) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UpstreamSegmentV2.Unmarshal(m, b)
H
heyanlong 已提交
130
}
何延龙 已提交
131 132
func (m *UpstreamSegmentV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UpstreamSegmentV2.Marshal(b, m, deterministic)
H
heyanlong 已提交
133
}
何延龙 已提交
134 135
func (m *UpstreamSegmentV2) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UpstreamSegmentV2.Merge(m, src)
H
heyanlong 已提交
136
}
何延龙 已提交
137 138
func (m *UpstreamSegmentV2) XXX_Size() int {
	return xxx_messageInfo_UpstreamSegmentV2.Size(m)
H
heyanlong 已提交
139
}
何延龙 已提交
140 141
func (m *UpstreamSegmentV2) XXX_DiscardUnknown() {
	xxx_messageInfo_UpstreamSegmentV2.DiscardUnknown(m)
H
heyanlong 已提交
142 143
}

何延龙 已提交
144
var xxx_messageInfo_UpstreamSegmentV2 proto.InternalMessageInfo
H
heyanlong 已提交
145

何延龙 已提交
146
func (m *UpstreamSegmentV2) GetGlobalTraceIds() []*UniqueIdV2 {
H
heyanlong 已提交
147 148 149 150 151 152
	if m != nil {
		return m.GlobalTraceIds
	}
	return nil
}

何延龙 已提交
153
func (m *UpstreamSegmentV2) GetSegment() []byte {
H
heyanlong 已提交
154 155 156 157 158 159
	if m != nil {
		return m.Segment
	}
	return nil
}

何延龙 已提交
160
type UniqueIdV2 struct {
H
heyanlong 已提交
161 162 163 164 165 166
	IdParts              []int64  `protobuf:"varint,1,rep,packed,name=idParts,proto3" json:"idParts,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

何延龙 已提交
167 168 169 170
func (m *UniqueIdV2) Reset()         { *m = UniqueIdV2{} }
func (m *UniqueIdV2) String() string { return proto.CompactTextString(m) }
func (*UniqueIdV2) ProtoMessage()    {}
func (*UniqueIdV2) Descriptor() ([]byte, []int) {
H
heyanlong 已提交
171 172 173
	return fileDescriptor_f5d7d2e503402948, []int{1}
}

何延龙 已提交
174 175
func (m *UniqueIdV2) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_UniqueIdV2.Unmarshal(m, b)
H
heyanlong 已提交
176
}
何延龙 已提交
177 178
func (m *UniqueIdV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_UniqueIdV2.Marshal(b, m, deterministic)
H
heyanlong 已提交
179
}
何延龙 已提交
180 181
func (m *UniqueIdV2) XXX_Merge(src proto.Message) {
	xxx_messageInfo_UniqueIdV2.Merge(m, src)
H
heyanlong 已提交
182
}
何延龙 已提交
183 184
func (m *UniqueIdV2) XXX_Size() int {
	return xxx_messageInfo_UniqueIdV2.Size(m)
H
heyanlong 已提交
185
}
何延龙 已提交
186 187
func (m *UniqueIdV2) XXX_DiscardUnknown() {
	xxx_messageInfo_UniqueIdV2.DiscardUnknown(m)
H
heyanlong 已提交
188 189
}

何延龙 已提交
190
var xxx_messageInfo_UniqueIdV2 proto.InternalMessageInfo
H
heyanlong 已提交
191

何延龙 已提交
192
func (m *UniqueIdV2) GetIdParts() []int64 {
H
heyanlong 已提交
193 194 195 196 197 198 199
	if m != nil {
		return m.IdParts
	}
	return nil
}

func init() {
何延龙 已提交
200 201 202 203 204
	proto.RegisterEnum("SpanTypeV2", SpanTypeV2_name, SpanTypeV2_value)
	proto.RegisterEnum("RefTypeV2", RefTypeV2_name, RefTypeV2_value)
	proto.RegisterEnum("SpanLayerV2", SpanLayerV2_name, SpanLayerV2_value)
	proto.RegisterType((*UpstreamSegmentV2)(nil), "UpstreamSegmentV2")
	proto.RegisterType((*UniqueIdV2)(nil), "UniqueIdV2")
H
heyanlong 已提交
205 206 207 208 209
}

func init() { proto.RegisterFile("common/trace-common.proto", fileDescriptor_f5d7d2e503402948) }

var fileDescriptor_f5d7d2e503402948 = []byte{
何延龙 已提交
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
	// 360 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xdf, 0x8a, 0xd3, 0x40,
	0x14, 0xc6, 0x9b, 0x74, 0xff, 0x9e, 0x14, 0x1d, 0xe7, 0xaa, 0x7a, 0xb5, 0x2c, 0x22, 0x4b, 0xd1,
	0x89, 0x64, 0xdf, 0xc0, 0xba, 0xe2, 0xc2, 0x2a, 0x31, 0x6d, 0xb3, 0xe0, 0xdd, 0x49, 0x72, 0xcc,
	0x86, 0x24, 0x33, 0x71, 0x66, 0x6a, 0xcc, 0x2b, 0xf9, 0x94, 0x32, 0x4d, 0x4b, 0x61, 0x2f, 0xbf,
	0x8f, 0xdf, 0xf9, 0x71, 0xe0, 0x83, 0xd7, 0xb9, 0x6a, 0x5b, 0x25, 0x43, 0xab, 0x31, 0xa7, 0x0f,
	0x63, 0x10, 0x9d, 0x56, 0x56, 0x5d, 0x67, 0xf0, 0x6a, 0xd3, 0x19, 0xab, 0x09, 0xdb, 0x15, 0x95,
	0x2d, 0x49, 0x9b, 0x46, 0xfc, 0x16, 0x5e, 0x94, 0x8d, 0xca, 0xb0, 0x59, 0xbb, 0x83, 0xfb, 0xc2,
	0xcc, 0xbd, 0xab, 0x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