123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.32.0
- // protoc v3.21.12
- // source: flatspan.proto
- package pb
- import (
- v11 "go.opentelemetry.io/proto/otlp/common/v1"
- v12 "go.opentelemetry.io/proto/otlp/resource/v1"
- v1 "go.opentelemetry.io/proto/otlp/trace/v1"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type FlatSpan struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Span *v1.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
- Scope *v11.InstrumentationScope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
- Resource *v12.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
- }
- func (x *FlatSpan) Reset() {
- *x = FlatSpan{}
- if protoimpl.UnsafeEnabled {
- mi := &file_flatspan_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FlatSpan) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FlatSpan) ProtoMessage() {}
- func (x *FlatSpan) ProtoReflect() protoreflect.Message {
- mi := &file_flatspan_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FlatSpan.ProtoReflect.Descriptor instead.
- func (*FlatSpan) Descriptor() ([]byte, []int) {
- return file_flatspan_proto_rawDescGZIP(), []int{0}
- }
- func (x *FlatSpan) GetSpan() *v1.Span {
- if x != nil {
- return x.Span
- }
- return nil
- }
- func (x *FlatSpan) GetScope() *v11.InstrumentationScope {
- if x != nil {
- return x.Scope
- }
- return nil
- }
- func (x *FlatSpan) GetResource() *v12.Resource {
- if x != nil {
- return x.Resource
- }
- return nil
- }
- type FlatSpanNode struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- FlatSpan *FlatSpan `protobuf:"bytes,1,opt,name=flat_span,json=flatSpan,proto3" json:"flat_span,omitempty"`
- Children []*FlatSpan `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
- }
- func (x *FlatSpanNode) Reset() {
- *x = FlatSpanNode{}
- if protoimpl.UnsafeEnabled {
- mi := &file_flatspan_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FlatSpanNode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FlatSpanNode) ProtoMessage() {}
- func (x *FlatSpanNode) ProtoReflect() protoreflect.Message {
- mi := &file_flatspan_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FlatSpanNode.ProtoReflect.Descriptor instead.
- func (*FlatSpanNode) Descriptor() ([]byte, []int) {
- return file_flatspan_proto_rawDescGZIP(), []int{1}
- }
- func (x *FlatSpanNode) GetFlatSpan() *FlatSpan {
- if x != nil {
- return x.FlatSpan
- }
- return nil
- }
- func (x *FlatSpanNode) GetChildren() []*FlatSpan {
- if x != nil {
- return x.Children
- }
- return nil
- }
- type FlatTrace struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
- FlatSpans []*FlatSpan `protobuf:"bytes,2,rep,name=flat_spans,json=flatSpans,proto3" json:"flat_spans,omitempty"`
- }
- func (x *FlatTrace) Reset() {
- *x = FlatTrace{}
- if protoimpl.UnsafeEnabled {
- mi := &file_flatspan_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FlatTrace) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FlatTrace) ProtoMessage() {}
- func (x *FlatTrace) ProtoReflect() protoreflect.Message {
- mi := &file_flatspan_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FlatTrace.ProtoReflect.Descriptor instead.
- func (*FlatTrace) Descriptor() ([]byte, []int) {
- return file_flatspan_proto_rawDescGZIP(), []int{2}
- }
- func (x *FlatTrace) GetTraceId() []byte {
- if x != nil {
- return x.TraceId
- }
- return nil
- }
- func (x *FlatTrace) GetFlatSpans() []*FlatSpan {
- if x != nil {
- return x.FlatSpans
- }
- return nil
- }
- var File_flatspan_proto protoreflect.FileDescriptor
- var file_flatspan_proto_rawDesc = []byte{
- 0x0a, 0x0e, 0x66, 0x6c, 0x61, 0x74, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x12, 0x06, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
- 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
- 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
- 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
- 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f,
- 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4,
- 0x01, 0x0a, 0x08, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x73,
- 0x70, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65, 0x6e,
- 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
- 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x04, 0x73,
- 0x70, 0x61, 0x6e, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
- 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
- 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x45,
- 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x6b, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61,
- 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x73, 0x70,
- 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70,
- 0x62, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x08, 0x66, 0x6c, 0x61, 0x74,
- 0x53, 0x70, 0x61, 0x6e, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e,
- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x2e,
- 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72,
- 0x65, 0x6e, 0x22, 0x57, 0x0a, 0x09, 0x46, 0x6c, 0x61, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12,
- 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0c, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x0a, 0x66, 0x6c,
- 0x61, 0x74, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
- 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e,
- 0x52, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x42, 0x81, 0x01, 0x0a, 0x1f,
- 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42,
- 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67,
- 0x69, 0x74, 0x2e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63,
- 0x6e, 0x2f, 0x63, 0x65, 0x63, 0x66, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x74, 0x72, 0x65,
- 0x61, 0x6d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62,
- 0xaa, 0x02, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
- 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_flatspan_proto_rawDescOnce sync.Once
- file_flatspan_proto_rawDescData = file_flatspan_proto_rawDesc
- )
- func file_flatspan_proto_rawDescGZIP() []byte {
- file_flatspan_proto_rawDescOnce.Do(func() {
- file_flatspan_proto_rawDescData = protoimpl.X.CompressGZIP(file_flatspan_proto_rawDescData)
- })
- return file_flatspan_proto_rawDescData
- }
- var file_flatspan_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_flatspan_proto_goTypes = []interface{}{
- (*FlatSpan)(nil), // 0: pkg.pb.FlatSpan
- (*FlatSpanNode)(nil), // 1: pkg.pb.FlatSpanNode
- (*FlatTrace)(nil), // 2: pkg.pb.FlatTrace
- (*v1.Span)(nil), // 3: opentelemetry.proto.trace.v1.Span
- (*v11.InstrumentationScope)(nil), // 4: opentelemetry.proto.common.v1.InstrumentationScope
- (*v12.Resource)(nil), // 5: opentelemetry.proto.resource.v1.Resource
- }
- var file_flatspan_proto_depIdxs = []int32{
- 3, // 0: pkg.pb.FlatSpan.span:type_name -> opentelemetry.proto.trace.v1.Span
- 4, // 1: pkg.pb.FlatSpan.scope:type_name -> opentelemetry.proto.common.v1.InstrumentationScope
- 5, // 2: pkg.pb.FlatSpan.resource:type_name -> opentelemetry.proto.resource.v1.Resource
- 0, // 3: pkg.pb.FlatSpanNode.flat_span:type_name -> pkg.pb.FlatSpan
- 0, // 4: pkg.pb.FlatSpanNode.children:type_name -> pkg.pb.FlatSpan
- 0, // 5: pkg.pb.FlatTrace.flat_spans:type_name -> pkg.pb.FlatSpan
- 6, // [6:6] is the sub-list for method output_type
- 6, // [6:6] is the sub-list for method input_type
- 6, // [6:6] is the sub-list for extension type_name
- 6, // [6:6] is the sub-list for extension extendee
- 0, // [0:6] is the sub-list for field type_name
- }
- func init() { file_flatspan_proto_init() }
- func file_flatspan_proto_init() {
- if File_flatspan_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_flatspan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FlatSpan); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_flatspan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FlatSpanNode); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_flatspan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FlatTrace); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_flatspan_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_flatspan_proto_goTypes,
- DependencyIndexes: file_flatspan_proto_depIdxs,
- MessageInfos: file_flatspan_proto_msgTypes,
- }.Build()
- File_flatspan_proto = out.File
- file_flatspan_proto_rawDesc = nil
- file_flatspan_proto_goTypes = nil
- file_flatspan_proto_depIdxs = nil
- }
|