github.com/epsagon/epsagon-go@v1.39.0/protocol/event.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: event.proto 3 4 package protocol 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 22 23 type Resource struct { 24 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 25 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 26 Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"` 27 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 28 XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 XXX_unrecognized []byte `json:"-"` 30 XXX_sizecache int32 `json:"-"` 31 } 32 33 func (m *Resource) Reset() { *m = Resource{} } 34 func (m *Resource) String() string { return proto.CompactTextString(m) } 35 func (*Resource) ProtoMessage() {} 36 func (*Resource) Descriptor() ([]byte, []int) { 37 return fileDescriptor_2d17a9d3f0ddf27e, []int{0} 38 } 39 40 func (m *Resource) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_Resource.Unmarshal(m, b) 42 } 43 func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_Resource.Marshal(b, m, deterministic) 45 } 46 func (m *Resource) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_Resource.Merge(m, src) 48 } 49 func (m *Resource) XXX_Size() int { 50 return xxx_messageInfo_Resource.Size(m) 51 } 52 func (m *Resource) XXX_DiscardUnknown() { 53 xxx_messageInfo_Resource.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_Resource proto.InternalMessageInfo 57 58 func (m *Resource) GetName() string { 59 if m != nil { 60 return m.Name 61 } 62 return "" 63 } 64 65 func (m *Resource) GetType() string { 66 if m != nil { 67 return m.Type 68 } 69 return "" 70 } 71 72 func (m *Resource) GetOperation() string { 73 if m != nil { 74 return m.Operation 75 } 76 return "" 77 } 78 79 func (m *Resource) GetMetadata() map[string]string { 80 if m != nil { 81 return m.Metadata 82 } 83 return nil 84 } 85 86 type Event struct { 87 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 88 StartTime float64 `protobuf:"fixed64,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 89 Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` 90 Origin string `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"` 91 Duration float64 `protobuf:"fixed64,5,opt,name=duration,proto3" json:"duration,omitempty"` 92 ErrorCode ErrorCode `protobuf:"varint,6,opt,name=error_code,json=errorCode,proto3,enum=protocol.ErrorCode" json:"error_code,omitempty"` 93 Exception *Exception `protobuf:"bytes,7,opt,name=exception,proto3" json:"exception,omitempty"` 94 XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 XXX_unrecognized []byte `json:"-"` 96 XXX_sizecache int32 `json:"-"` 97 } 98 99 func (m *Event) Reset() { *m = Event{} } 100 func (m *Event) String() string { return proto.CompactTextString(m) } 101 func (*Event) ProtoMessage() {} 102 func (*Event) Descriptor() ([]byte, []int) { 103 return fileDescriptor_2d17a9d3f0ddf27e, []int{1} 104 } 105 106 func (m *Event) XXX_Unmarshal(b []byte) error { 107 return xxx_messageInfo_Event.Unmarshal(m, b) 108 } 109 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 111 } 112 func (m *Event) XXX_Merge(src proto.Message) { 113 xxx_messageInfo_Event.Merge(m, src) 114 } 115 func (m *Event) XXX_Size() int { 116 return xxx_messageInfo_Event.Size(m) 117 } 118 func (m *Event) XXX_DiscardUnknown() { 119 xxx_messageInfo_Event.DiscardUnknown(m) 120 } 121 122 var xxx_messageInfo_Event proto.InternalMessageInfo 123 124 func (m *Event) GetId() string { 125 if m != nil { 126 return m.Id 127 } 128 return "" 129 } 130 131 func (m *Event) GetStartTime() float64 { 132 if m != nil { 133 return m.StartTime 134 } 135 return 0 136 } 137 138 func (m *Event) GetResource() *Resource { 139 if m != nil { 140 return m.Resource 141 } 142 return nil 143 } 144 145 func (m *Event) GetOrigin() string { 146 if m != nil { 147 return m.Origin 148 } 149 return "" 150 } 151 152 func (m *Event) GetDuration() float64 { 153 if m != nil { 154 return m.Duration 155 } 156 return 0 157 } 158 159 func (m *Event) GetErrorCode() ErrorCode { 160 if m != nil { 161 return m.ErrorCode 162 } 163 return ErrorCode_OK 164 } 165 166 func (m *Event) GetException() *Exception { 167 if m != nil { 168 return m.Exception 169 } 170 return nil 171 } 172 173 func init() { 174 proto.RegisterType((*Resource)(nil), "protocol.Resource") 175 proto.RegisterMapType((map[string]string)(nil), "protocol.Resource.MetadataEntry") 176 proto.RegisterType((*Event)(nil), "protocol.Event") 177 } 178 179 func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } 180 181 var fileDescriptor_2d17a9d3f0ddf27e = []byte{ 182 // 317 bytes of a gzipped FileDescriptorProto 183 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x51, 0x4f, 0x4b, 0xfc, 0x30, 184 0x14, 0xa4, 0xdd, 0x3f, 0xbf, 0xf6, 0x2d, 0xbf, 0x75, 0x79, 0x8a, 0x84, 0xa2, 0x50, 0xf6, 0xb4, 185 0xa7, 0x82, 0xf5, 0x22, 0xea, 0x4d, 0xf6, 0xe8, 0x25, 0x78, 0x5f, 0x62, 0xfb, 0x90, 0xe0, 0xb6, 186 0x29, 0xd9, 0xec, 0x62, 0x8f, 0x7e, 0x3e, 0xbf, 0x94, 0x24, 0x4d, 0x5b, 0xc5, 0x53, 0xe7, 0xcd, 187 0xbc, 0xe9, 0x4c, 0x12, 0x58, 0xd0, 0x89, 0x6a, 0x93, 0x35, 0x5a, 0x19, 0x85, 0x91, 0xfb, 0x14, 188 0x6a, 0x9f, 0xac, 0x48, 0x6b, 0xa5, 0x77, 0x85, 0x2a, 0xa9, 0xd3, 0x92, 0x33, 0xfa, 0x28, 0xa8, 189 0x31, 0x52, 0xd5, 0x1d, 0xb1, 0xfe, 0x0a, 0x20, 0xe2, 0x74, 0x50, 0x47, 0x5d, 0x10, 0x22, 0x4c, 190 0x6b, 0x51, 0x11, 0x0b, 0xd2, 0x60, 0x13, 0x73, 0x87, 0x2d, 0x67, 0xda, 0x86, 0x58, 0xd8, 0x71, 191 0x16, 0xe3, 0x15, 0xc4, 0xaa, 0x21, 0x2d, 0xec, 0x7f, 0xd8, 0xc4, 0x09, 0x23, 0x81, 0x8f, 0x10, 192 0x55, 0x64, 0x44, 0x29, 0x8c, 0x60, 0xd3, 0x74, 0xb2, 0x59, 0xe4, 0x69, 0xd6, 0x57, 0xca, 0xfa, 193 0xac, 0xec, 0xd9, 0xaf, 0x6c, 0x6b, 0xa3, 0x5b, 0x3e, 0x38, 0x92, 0x07, 0xf8, 0xff, 0x4b, 0xc2, 194 0x15, 0x4c, 0xde, 0xa9, 0xf5, 0x9d, 0x2c, 0xc4, 0x0b, 0x98, 0x9d, 0xc4, 0xfe, 0xd8, 0x77, 0xea, 195 0x86, 0xfb, 0xf0, 0x2e, 0x58, 0x7f, 0x86, 0x30, 0xdb, 0xda, 0xab, 0xc0, 0x25, 0x84, 0xb2, 0xf4, 196 0xa6, 0x50, 0x96, 0x78, 0x0d, 0x70, 0x30, 0x42, 0x9b, 0x9d, 0x91, 0x55, 0x67, 0x0c, 0x78, 0xec, 197 0x98, 0x17, 0x59, 0x11, 0x66, 0x10, 0x69, 0xdf, 0xcc, 0x1d, 0x68, 0x91, 0xe3, 0xdf, 0xce, 0x7c, 198 0xd8, 0xc1, 0x4b, 0x98, 0x2b, 0x2d, 0xdf, 0x64, 0xcd, 0xa6, 0x2e, 0xc2, 0x4f, 0x98, 0x40, 0x54, 199 0x1e, 0xfd, 0xc5, 0xcc, 0x5c, 0xc8, 0x30, 0x63, 0x0e, 0x30, 0xbe, 0x07, 0x9b, 0xa7, 0xc1, 0x66, 200 0x99, 0x9f, 0x8f, 0x29, 0x5b, 0xab, 0x3d, 0xa9, 0x92, 0x78, 0x4c, 0x3d, 0xc4, 0x1b, 0x88, 0x87, 201 0x17, 0x63, 0xff, 0x5c, 0xb1, 0x9f, 0x96, 0x5e, 0xe2, 0xe3, 0xd6, 0xeb, 0xdc, 0xc9, 0xb7, 0xdf, 202 0x01, 0x00, 0x00, 0xff, 0xff, 0xad, 0xfc, 0xcc, 0x8a, 0x14, 0x02, 0x00, 0x00, 203 }