github.com/status-im/status-go@v1.1.0/protocol/protobuf/anon_metrics.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.20.3 5 // source: anon_metrics.proto 6 7 package protobuf 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // AnonymousMetric represents a single metric data point 25 type AnonymousMetric struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // id is the unique id of the metric message 31 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 32 // event is the app metric event type 33 Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` 34 // value is a filtered and validated raw json payload attached to the event 35 Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 36 // app_version is the version of the `status-mobile` app that the metric came from 37 AppVersion string `protobuf:"bytes,4,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` 38 // os is the operating system of the device the application is installed on 39 Os string `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"` 40 // session_id is the id of the session the metric was recorded in 41 SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` 42 // created_at is the datetime at which the metric was stored in the local db 43 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` 44 } 45 46 func (x *AnonymousMetric) Reset() { 47 *x = AnonymousMetric{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_anon_metrics_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *AnonymousMetric) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*AnonymousMetric) ProtoMessage() {} 60 61 func (x *AnonymousMetric) ProtoReflect() protoreflect.Message { 62 mi := &file_anon_metrics_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use AnonymousMetric.ProtoReflect.Descriptor instead. 74 func (*AnonymousMetric) Descriptor() ([]byte, []int) { 75 return file_anon_metrics_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *AnonymousMetric) GetId() string { 79 if x != nil { 80 return x.Id 81 } 82 return "" 83 } 84 85 func (x *AnonymousMetric) GetEvent() string { 86 if x != nil { 87 return x.Event 88 } 89 return "" 90 } 91 92 func (x *AnonymousMetric) GetValue() []byte { 93 if x != nil { 94 return x.Value 95 } 96 return nil 97 } 98 99 func (x *AnonymousMetric) GetAppVersion() string { 100 if x != nil { 101 return x.AppVersion 102 } 103 return "" 104 } 105 106 func (x *AnonymousMetric) GetOs() string { 107 if x != nil { 108 return x.Os 109 } 110 return "" 111 } 112 113 func (x *AnonymousMetric) GetSessionId() string { 114 if x != nil { 115 return x.SessionId 116 } 117 return "" 118 } 119 120 func (x *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { 121 if x != nil { 122 return x.CreatedAt 123 } 124 return nil 125 } 126 127 // AnonymousMetricBatch represents a batch of AnonymousMetrics allowing broadcast of AnonymousMetrics with fewer messages 128 type AnonymousMetricBatch struct { 129 state protoimpl.MessageState 130 sizeCache protoimpl.SizeCache 131 unknownFields protoimpl.UnknownFields 132 133 // metrics is an array of AnonymousMetric metrics 134 Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` 135 } 136 137 func (x *AnonymousMetricBatch) Reset() { 138 *x = AnonymousMetricBatch{} 139 if protoimpl.UnsafeEnabled { 140 mi := &file_anon_metrics_proto_msgTypes[1] 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 ms.StoreMessageInfo(mi) 143 } 144 } 145 146 func (x *AnonymousMetricBatch) String() string { 147 return protoimpl.X.MessageStringOf(x) 148 } 149 150 func (*AnonymousMetricBatch) ProtoMessage() {} 151 152 func (x *AnonymousMetricBatch) ProtoReflect() protoreflect.Message { 153 mi := &file_anon_metrics_proto_msgTypes[1] 154 if protoimpl.UnsafeEnabled && x != nil { 155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 156 if ms.LoadMessageInfo() == nil { 157 ms.StoreMessageInfo(mi) 158 } 159 return ms 160 } 161 return mi.MessageOf(x) 162 } 163 164 // Deprecated: Use AnonymousMetricBatch.ProtoReflect.Descriptor instead. 165 func (*AnonymousMetricBatch) Descriptor() ([]byte, []int) { 166 return file_anon_metrics_proto_rawDescGZIP(), []int{1} 167 } 168 169 func (x *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { 170 if x != nil { 171 return x.Metrics 172 } 173 return nil 174 } 175 176 var File_anon_metrics_proto protoreflect.FileDescriptor 177 178 var file_anon_metrics_proto_rawDesc = []byte{ 179 0x0a, 0x12, 0x61, 0x6e, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 180 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 181 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 182 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 183 0xd8, 0x01, 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 184 0x72, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 185 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 186 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 187 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 188 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 189 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 190 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 191 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 192 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 193 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 194 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 195 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 196 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x4b, 0x0a, 0x14, 0x41, 0x6e, 197 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x61, 0x74, 198 0x63, 0x68, 0x12, 0x33, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 199 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 200 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 201 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 202 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 203 } 204 205 var ( 206 file_anon_metrics_proto_rawDescOnce sync.Once 207 file_anon_metrics_proto_rawDescData = file_anon_metrics_proto_rawDesc 208 ) 209 210 func file_anon_metrics_proto_rawDescGZIP() []byte { 211 file_anon_metrics_proto_rawDescOnce.Do(func() { 212 file_anon_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_anon_metrics_proto_rawDescData) 213 }) 214 return file_anon_metrics_proto_rawDescData 215 } 216 217 var file_anon_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 218 var file_anon_metrics_proto_goTypes = []interface{}{ 219 (*AnonymousMetric)(nil), // 0: protobuf.AnonymousMetric 220 (*AnonymousMetricBatch)(nil), // 1: protobuf.AnonymousMetricBatch 221 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 222 } 223 var file_anon_metrics_proto_depIdxs = []int32{ 224 2, // 0: protobuf.AnonymousMetric.created_at:type_name -> google.protobuf.Timestamp 225 0, // 1: protobuf.AnonymousMetricBatch.metrics:type_name -> protobuf.AnonymousMetric 226 2, // [2:2] is the sub-list for method output_type 227 2, // [2:2] is the sub-list for method input_type 228 2, // [2:2] is the sub-list for extension type_name 229 2, // [2:2] is the sub-list for extension extendee 230 0, // [0:2] is the sub-list for field type_name 231 } 232 233 func init() { file_anon_metrics_proto_init() } 234 func file_anon_metrics_proto_init() { 235 if File_anon_metrics_proto != nil { 236 return 237 } 238 if !protoimpl.UnsafeEnabled { 239 file_anon_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 240 switch v := v.(*AnonymousMetric); i { 241 case 0: 242 return &v.state 243 case 1: 244 return &v.sizeCache 245 case 2: 246 return &v.unknownFields 247 default: 248 return nil 249 } 250 } 251 file_anon_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 252 switch v := v.(*AnonymousMetricBatch); i { 253 case 0: 254 return &v.state 255 case 1: 256 return &v.sizeCache 257 case 2: 258 return &v.unknownFields 259 default: 260 return nil 261 } 262 } 263 } 264 type x struct{} 265 out := protoimpl.TypeBuilder{ 266 File: protoimpl.DescBuilder{ 267 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 268 RawDescriptor: file_anon_metrics_proto_rawDesc, 269 NumEnums: 0, 270 NumMessages: 2, 271 NumExtensions: 0, 272 NumServices: 0, 273 }, 274 GoTypes: file_anon_metrics_proto_goTypes, 275 DependencyIndexes: file_anon_metrics_proto_depIdxs, 276 MessageInfos: file_anon_metrics_proto_msgTypes, 277 }.Build() 278 File_anon_metrics_proto = out.File 279 file_anon_metrics_proto_rawDesc = nil 280 file_anon_metrics_proto_goTypes = nil 281 file_anon_metrics_proto_depIdxs = nil 282 }