flatspan.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.32.0
  4. // protoc v3.21.12
  5. // source: flatspan.proto
  6. package pb
  7. import (
  8. v11 "go.opentelemetry.io/proto/otlp/common/v1"
  9. v12 "go.opentelemetry.io/proto/otlp/resource/v1"
  10. v1 "go.opentelemetry.io/proto/otlp/trace/v1"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type FlatSpan struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Span *v1.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
  27. Scope *v11.InstrumentationScope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
  28. Resource *v12.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
  29. }
  30. func (x *FlatSpan) Reset() {
  31. *x = FlatSpan{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_flatspan_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *FlatSpan) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*FlatSpan) ProtoMessage() {}
  42. func (x *FlatSpan) ProtoReflect() protoreflect.Message {
  43. mi := &file_flatspan_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use FlatSpan.ProtoReflect.Descriptor instead.
  54. func (*FlatSpan) Descriptor() ([]byte, []int) {
  55. return file_flatspan_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *FlatSpan) GetSpan() *v1.Span {
  58. if x != nil {
  59. return x.Span
  60. }
  61. return nil
  62. }
  63. func (x *FlatSpan) GetScope() *v11.InstrumentationScope {
  64. if x != nil {
  65. return x.Scope
  66. }
  67. return nil
  68. }
  69. func (x *FlatSpan) GetResource() *v12.Resource {
  70. if x != nil {
  71. return x.Resource
  72. }
  73. return nil
  74. }
  75. type FlatSpanNode struct {
  76. state protoimpl.MessageState
  77. sizeCache protoimpl.SizeCache
  78. unknownFields protoimpl.UnknownFields
  79. FlatSpan *FlatSpan `protobuf:"bytes,1,opt,name=flat_span,json=flatSpan,proto3" json:"flat_span,omitempty"`
  80. Children []*FlatSpan `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
  81. }
  82. func (x *FlatSpanNode) Reset() {
  83. *x = FlatSpanNode{}
  84. if protoimpl.UnsafeEnabled {
  85. mi := &file_flatspan_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. }
  90. func (x *FlatSpanNode) String() string {
  91. return protoimpl.X.MessageStringOf(x)
  92. }
  93. func (*FlatSpanNode) ProtoMessage() {}
  94. func (x *FlatSpanNode) ProtoReflect() protoreflect.Message {
  95. mi := &file_flatspan_proto_msgTypes[1]
  96. if protoimpl.UnsafeEnabled && x != nil {
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. if ms.LoadMessageInfo() == nil {
  99. ms.StoreMessageInfo(mi)
  100. }
  101. return ms
  102. }
  103. return mi.MessageOf(x)
  104. }
  105. // Deprecated: Use FlatSpanNode.ProtoReflect.Descriptor instead.
  106. func (*FlatSpanNode) Descriptor() ([]byte, []int) {
  107. return file_flatspan_proto_rawDescGZIP(), []int{1}
  108. }
  109. func (x *FlatSpanNode) GetFlatSpan() *FlatSpan {
  110. if x != nil {
  111. return x.FlatSpan
  112. }
  113. return nil
  114. }
  115. func (x *FlatSpanNode) GetChildren() []*FlatSpan {
  116. if x != nil {
  117. return x.Children
  118. }
  119. return nil
  120. }
  121. type FlatTrace struct {
  122. state protoimpl.MessageState
  123. sizeCache protoimpl.SizeCache
  124. unknownFields protoimpl.UnknownFields
  125. TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
  126. FlatSpans []*FlatSpan `protobuf:"bytes,2,rep,name=flat_spans,json=flatSpans,proto3" json:"flat_spans,omitempty"`
  127. }
  128. func (x *FlatTrace) Reset() {
  129. *x = FlatTrace{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_flatspan_proto_msgTypes[2]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *FlatTrace) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*FlatTrace) ProtoMessage() {}
  140. func (x *FlatTrace) ProtoReflect() protoreflect.Message {
  141. mi := &file_flatspan_proto_msgTypes[2]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use FlatTrace.ProtoReflect.Descriptor instead.
  152. func (*FlatTrace) Descriptor() ([]byte, []int) {
  153. return file_flatspan_proto_rawDescGZIP(), []int{2}
  154. }
  155. func (x *FlatTrace) GetTraceId() []byte {
  156. if x != nil {
  157. return x.TraceId
  158. }
  159. return nil
  160. }
  161. func (x *FlatTrace) GetFlatSpans() []*FlatSpan {
  162. if x != nil {
  163. return x.FlatSpans
  164. }
  165. return nil
  166. }
  167. var File_flatspan_proto protoreflect.FileDescriptor
  168. var file_flatspan_proto_rawDesc = []byte{
  169. 0x0a, 0x0e, 0x66, 0x6c, 0x61, 0x74, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  170. 0x12, 0x06, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
  171. 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
  172. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  173. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
  174. 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  175. 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
  176. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
  177. 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f,
  178. 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4,
  179. 0x01, 0x0a, 0x08, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x73,
  180. 0x70, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65, 0x6e,
  181. 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  182. 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x04, 0x73,
  183. 0x70, 0x61, 0x6e, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
  184. 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
  185. 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  186. 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69,
  187. 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x45,
  188. 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  189. 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
  190. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
  191. 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73,
  192. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x6b, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61,
  193. 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x73, 0x70,
  194. 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70,
  195. 0x62, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x08, 0x66, 0x6c, 0x61, 0x74,
  196. 0x53, 0x70, 0x61, 0x6e, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e,
  197. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x2e,
  198. 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72,
  199. 0x65, 0x6e, 0x22, 0x57, 0x0a, 0x09, 0x46, 0x6c, 0x61, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12,
  200. 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  201. 0x0c, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x0a, 0x66, 0x6c,
  202. 0x61, 0x74, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
  203. 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e,
  204. 0x52, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x42, 0x81, 0x01, 0x0a, 0x1f,
  205. 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
  206. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42,
  207. 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67,
  208. 0x69, 0x74, 0x2e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
  209. 0x6e, 0x2f, 0x63, 0x65, 0x63, 0x66, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x74, 0x72, 0x65,
  210. 0x61, 0x6d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62,
  211. 0xaa, 0x02, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
  212. 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62,
  213. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  214. }
  215. var (
  216. file_flatspan_proto_rawDescOnce sync.Once
  217. file_flatspan_proto_rawDescData = file_flatspan_proto_rawDesc
  218. )
  219. func file_flatspan_proto_rawDescGZIP() []byte {
  220. file_flatspan_proto_rawDescOnce.Do(func() {
  221. file_flatspan_proto_rawDescData = protoimpl.X.CompressGZIP(file_flatspan_proto_rawDescData)
  222. })
  223. return file_flatspan_proto_rawDescData
  224. }
  225. var file_flatspan_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  226. var file_flatspan_proto_goTypes = []interface{}{
  227. (*FlatSpan)(nil), // 0: pkg.pb.FlatSpan
  228. (*FlatSpanNode)(nil), // 1: pkg.pb.FlatSpanNode
  229. (*FlatTrace)(nil), // 2: pkg.pb.FlatTrace
  230. (*v1.Span)(nil), // 3: opentelemetry.proto.trace.v1.Span
  231. (*v11.InstrumentationScope)(nil), // 4: opentelemetry.proto.common.v1.InstrumentationScope
  232. (*v12.Resource)(nil), // 5: opentelemetry.proto.resource.v1.Resource
  233. }
  234. var file_flatspan_proto_depIdxs = []int32{
  235. 3, // 0: pkg.pb.FlatSpan.span:type_name -> opentelemetry.proto.trace.v1.Span
  236. 4, // 1: pkg.pb.FlatSpan.scope:type_name -> opentelemetry.proto.common.v1.InstrumentationScope
  237. 5, // 2: pkg.pb.FlatSpan.resource:type_name -> opentelemetry.proto.resource.v1.Resource
  238. 0, // 3: pkg.pb.FlatSpanNode.flat_span:type_name -> pkg.pb.FlatSpan
  239. 0, // 4: pkg.pb.FlatSpanNode.children:type_name -> pkg.pb.FlatSpan
  240. 0, // 5: pkg.pb.FlatTrace.flat_spans:type_name -> pkg.pb.FlatSpan
  241. 6, // [6:6] is the sub-list for method output_type
  242. 6, // [6:6] is the sub-list for method input_type
  243. 6, // [6:6] is the sub-list for extension type_name
  244. 6, // [6:6] is the sub-list for extension extendee
  245. 0, // [0:6] is the sub-list for field type_name
  246. }
  247. func init() { file_flatspan_proto_init() }
  248. func file_flatspan_proto_init() {
  249. if File_flatspan_proto != nil {
  250. return
  251. }
  252. if !protoimpl.UnsafeEnabled {
  253. file_flatspan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  254. switch v := v.(*FlatSpan); i {
  255. case 0:
  256. return &v.state
  257. case 1:
  258. return &v.sizeCache
  259. case 2:
  260. return &v.unknownFields
  261. default:
  262. return nil
  263. }
  264. }
  265. file_flatspan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  266. switch v := v.(*FlatSpanNode); i {
  267. case 0:
  268. return &v.state
  269. case 1:
  270. return &v.sizeCache
  271. case 2:
  272. return &v.unknownFields
  273. default:
  274. return nil
  275. }
  276. }
  277. file_flatspan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  278. switch v := v.(*FlatTrace); i {
  279. case 0:
  280. return &v.state
  281. case 1:
  282. return &v.sizeCache
  283. case 2:
  284. return &v.unknownFields
  285. default:
  286. return nil
  287. }
  288. }
  289. }
  290. type x struct{}
  291. out := protoimpl.TypeBuilder{
  292. File: protoimpl.DescBuilder{
  293. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  294. RawDescriptor: file_flatspan_proto_rawDesc,
  295. NumEnums: 0,
  296. NumMessages: 3,
  297. NumExtensions: 0,
  298. NumServices: 0,
  299. },
  300. GoTypes: file_flatspan_proto_goTypes,
  301. DependencyIndexes: file_flatspan_proto_depIdxs,
  302. MessageInfos: file_flatspan_proto_msgTypes,
  303. }.Build()
  304. File_flatspan_proto = out.File
  305. file_flatspan_proto_rawDesc = nil
  306. file_flatspan_proto_goTypes = nil
  307. file_flatspan_proto_depIdxs = nil
  308. }