| OLD | NEW |
| (Empty) | |
| 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/common/eventlog/proto/log_request_lite.proto |
| 3 // DO NOT EDIT! |
| 4 |
| 5 package eventlog |
| 6 |
| 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" |
| 9 import math "math" |
| 10 |
| 11 // Reference imports to suppress errors if they are not otherwise used. |
| 12 var _ = proto.Marshal |
| 13 var _ = fmt.Errorf |
| 14 var _ = math.Inf |
| 15 |
| 16 // Stripped-down version of LogRequest, for use on public systems. |
| 17 type LogRequestLite struct { |
| 18 // "Now", in milliseconds, according to the same clock that was used to
set |
| 19 // 'event_time_ms' values in the LogEventLite protos below. |
| 20 RequestTimeMs *int64 `protobuf:"varint,4,opt,name=request_time_ms,json=r
equestTimeMs" json:"request_time_ms,omitempty"` |
| 21 // The name of a LogRequest.LogSource enum value. The server converts it
to |
| 22 // a proper enum value. |
| 23 LogSourceName *string `protobuf:"bytes,6,opt,n
ame=log_source_name,json=logSourceName" json:"log_source_name,omitempty"` |
| 24 LogEvent []*LogRequestLite_LogEventLite `protobuf:"bytes,3,rep,n
ame=log_event,json=logEvent" json:"log_event,omitempty"` |
| 25 XXX_unrecognized []byte `json:"-"` |
| 26 } |
| 27 |
| 28 func (m *LogRequestLite) Reset() { *m = LogRequestLite{} } |
| 29 func (m *LogRequestLite) String() string { return proto.CompactTextSt
ring(m) } |
| 30 func (*LogRequestLite) ProtoMessage() {} |
| 31 func (*LogRequestLite) Descriptor() ([]byte, []int) { return fileDescriptor2, []
int{0} } |
| 32 |
| 33 func (m *LogRequestLite) GetRequestTimeMs() int64 { |
| 34 if m != nil && m.RequestTimeMs != nil { |
| 35 return *m.RequestTimeMs |
| 36 } |
| 37 return 0 |
| 38 } |
| 39 |
| 40 func (m *LogRequestLite) GetLogSourceName() string { |
| 41 if m != nil && m.LogSourceName != nil { |
| 42 return *m.LogSourceName |
| 43 } |
| 44 return "" |
| 45 } |
| 46 |
| 47 func (m *LogRequestLite) GetLogEvent() []*LogRequestLite_LogEventLite { |
| 48 if m != nil { |
| 49 return m.LogEvent |
| 50 } |
| 51 return nil |
| 52 } |
| 53 |
| 54 type LogRequestLite_LogEventLite struct { |
| 55 // Epoch time in milliseconds. |
| 56 EventTimeMs *int64 `protobuf:"varint,1,opt,name=event_time_ms,json=event
TimeMs" json:"event_time_ms,omitempty"` |
| 57 // Type of event. Different kinds of events inside a client app should h
ave |
| 58 // different values of 'event_code'. Different client apps may have |
| 59 // overlapping sets of 'event_code' values; these values are only meant
to |
| 60 // make sense within the context of a single client app, as identified b
y |
| 61 // the 'log_source_name' field of LogRequestLite. |
| 62 // |
| 63 // This enum type should be annotated with a LogEventRoutingConfig proto
. |
| 64 EventCode *int32 `protobuf:"varint,11,opt,name=event_code,json=eventCode
" json:"event_code,omitempty"` |
| 65 // Identifies a group of events that belong to the same flow or session
of |
| 66 // user interaction, which is a client-specific concept. |
| 67 // |
| 68 // These IDs are used in the pipeline for computing latencies between pa
irs |
| 69 // of events, where it is necessary to ensure that both events belong to
the |
| 70 // same flow. |
| 71 EventFlowId *int32 `protobuf:"varint,12,opt,name=event_flow_id,json=even
tFlowId" json:"event_flow_id,omitempty"` |
| 72 // A source specific extension (typically a serialized proto). The type
of |
| 73 // this data is determined by the log_source of the enclosing LogRequest
Lite. |
| 74 // The proto is derived by calling the ParseFromString method. |
| 75 SourceExtension []byte `protobuf:"bytes,6,opt,name=source_extension,jso
n=sourceExtension" json:"source_extension,omitempty"` |
| 76 XXX_unrecognized []byte `json:"-"` |
| 77 } |
| 78 |
| 79 func (m *LogRequestLite_LogEventLite) Reset() { *m = LogReque
stLite_LogEventLite{} } |
| 80 func (m *LogRequestLite_LogEventLite) String() string { return proto.
CompactTextString(m) } |
| 81 func (*LogRequestLite_LogEventLite) ProtoMessage() {} |
| 82 func (*LogRequestLite_LogEventLite) Descriptor() ([]byte, []int) { return fileDe
scriptor2, []int{0, 0} } |
| 83 |
| 84 func (m *LogRequestLite_LogEventLite) GetEventTimeMs() int64 { |
| 85 if m != nil && m.EventTimeMs != nil { |
| 86 return *m.EventTimeMs |
| 87 } |
| 88 return 0 |
| 89 } |
| 90 |
| 91 func (m *LogRequestLite_LogEventLite) GetEventCode() int32 { |
| 92 if m != nil && m.EventCode != nil { |
| 93 return *m.EventCode |
| 94 } |
| 95 return 0 |
| 96 } |
| 97 |
| 98 func (m *LogRequestLite_LogEventLite) GetEventFlowId() int32 { |
| 99 if m != nil && m.EventFlowId != nil { |
| 100 return *m.EventFlowId |
| 101 } |
| 102 return 0 |
| 103 } |
| 104 |
| 105 func (m *LogRequestLite_LogEventLite) GetSourceExtension() []byte { |
| 106 if m != nil { |
| 107 return m.SourceExtension |
| 108 } |
| 109 return nil |
| 110 } |
| 111 |
| 112 func init() { |
| 113 proto.RegisterType((*LogRequestLite)(nil), "eventlog.LogRequestLite") |
| 114 proto.RegisterType((*LogRequestLite_LogEventLite)(nil), "eventlog.LogReq
uestLite.LogEventLite") |
| 115 } |
| 116 |
| 117 func init() { |
| 118 proto.RegisterFile("github.com/luci/luci-go/common/eventlog/proto/log_re
quest_lite.proto", fileDescriptor2) |
| 119 } |
| 120 |
| 121 var fileDescriptor2 = []byte{ |
| 122 // 275 bytes of a gzipped FileDescriptorProto |
| 123 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x8f,
0xdf, 0x4a, 0x84, 0x40, |
| 124 0x14, 0xc6, 0x31, 0x2b, 0xd6, 0x51, 0xdb, 0xf0, 0x4a, 0x82, 0x60, 0x59,
0x28, 0xb6, 0x8b, 0x14, |
| 125 0x7a, 0x84, 0x6a, 0x83, 0x60, 0xeb, 0x62, 0xea, 0x5e, 0x4a, 0x4f, 0x36,
0xa0, 0x73, 0xca, 0x19, |
| 126 0xab, 0xc7, 0xe9, 0x6d, 0x7a, 0xad, 0xce, 0x1c, 0xb5, 0x3f, 0x37, 0xe2,
0xf9, 0xcd, 0x6f, 0xbe, |
| 127 0xf9, 0x8e, 0xb8, 0xac, 0x95, 0x7d, 0xee, 0x1f, 0xb3, 0x12, 0xdb, 0xbc,
0xe9, 0x4b, 0xc5, 0x9f, |
| 128 0xd3, 0x1a, 0x73, 0x02, 0x2d, 0xea, 0x1c, 0xde, 0x40, 0xdb, 0x06, 0xeb,
0xfc, 0xa5, 0x43, 0x8b, |
| 129 0x39, 0xfd, 0x15, 0x1d, 0xbc, 0xf6, 0x60, 0x6c, 0xd1, 0x28, 0x0b, 0x19,
0xe3, 0x64, 0x36, 0x69, |
| 130 0xcb, 0xaf, 0x2d, 0xb1, 0xb7, 0xc1, 0x5a, 0x0e, 0xce, 0x86, 0x94, 0xe4,
0x58, 0xcc, 0xa7, 0x2b, |
| 131 0x56, 0xb5, 0x50, 0xb4, 0x26, 0xdd, 0x5e, 0x78, 0x2b, 0x5f, 0xc6, 0x23,
0xbe, 0x27, 0x7a, 0x63, |
| 132 0x9c, 0xe7, 0xe2, 0x0d, 0xf6, 0x5d, 0x09, 0x85, 0x7e, 0x68, 0x21, 0xdd,
0x25, 0x2f, 0x90, 0x31, |
| 133 0xe1, 0x3b, 0xa6, 0xb7, 0x04, 0x93, 0x73, 0x11, 0x38, 0x8f, 0x9f, 0x4c,
0xfd, 0x85, 0xbf, 0x0a, |
| 134 0xcf, 0x8e, 0xb2, 0xa9, 0x40, 0xf6, 0xff, 0x71, 0x37, 0xae, 0xdd, 0x91,
0x1b, 0xe4, 0xac, 0x19, |
| 135 0xa7, 0x83, 0x4f, 0x4f, 0x44, 0x7f, 0x8f, 0x92, 0xa5, 0x88, 0x39, 0xe2,
0xa7, 0xa2, 0xc7, 0x15, |
| 136 0x43, 0x86, 0x63, 0xc1, 0x43, 0x21, 0x06, 0xa7, 0xc4, 0x0a, 0xd2, 0x90,
0x84, 0x1d, 0x19, 0x30, |
| 137 0xb9, 0x20, 0xf0, 0x1b, 0xf1, 0xd4, 0xe0, 0x7b, 0xa1, 0xaa, 0x34, 0x62,
0x63, 0x88, 0xb8, 0x22, |
| 138 0x76, 0x5d, 0x25, 0x27, 0x62, 0x7f, 0xdc, 0x0f, 0x3e, 0x2c, 0x68, 0xa3,
0x50, 0xf3, 0x92, 0x91, |
| 139 0x9c, 0x0f, 0x7c, 0x3d, 0xe1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xee,
0x6a, 0xf6, 0x9b, 0x9a, |
| 140 0x01, 0x00, 0x00, |
| 141 } |
| OLD | NEW |