// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.29.1 // protoc v3.20.3 // source: anon_metrics.proto package protobuf import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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) ) // AnonymousMetric represents a single metric data point type AnonymousMetric struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // id is the unique id of the metric message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // event is the app metric event type Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // value is a filtered and validated raw json payload attached to the event Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // app_version is the version of the `status-mobile` app that the metric came from AppVersion string `protobuf:"bytes,4,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` // os is the operating system of the device the application is installed on Os string `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"` // session_id is the id of the session the metric was recorded in SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // created_at is the datetime at which the metric was stored in the local db CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } func (x *AnonymousMetric) Reset() { *x = AnonymousMetric{} if protoimpl.UnsafeEnabled { mi := &file_anon_metrics_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AnonymousMetric) String() string { return protoimpl.X.MessageStringOf(x) } func (*AnonymousMetric) ProtoMessage() {} func (x *AnonymousMetric) ProtoReflect() protoreflect.Message { mi := &file_anon_metrics_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 AnonymousMetric.ProtoReflect.Descriptor instead. func (*AnonymousMetric) Descriptor() ([]byte, []int) { return file_anon_metrics_proto_rawDescGZIP(), []int{0} } func (x *AnonymousMetric) GetId() string { if x != nil { return x.Id } return "" } func (x *AnonymousMetric) GetEvent() string { if x != nil { return x.Event } return "" } func (x *AnonymousMetric) GetValue() []byte { if x != nil { return x.Value } return nil } func (x *AnonymousMetric) GetAppVersion() string { if x != nil { return x.AppVersion } return "" } func (x *AnonymousMetric) GetOs() string { if x != nil { return x.Os } return "" } func (x *AnonymousMetric) GetSessionId() string { if x != nil { return x.SessionId } return "" } func (x *AnonymousMetric) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } // AnonymousMetricBatch represents a batch of AnonymousMetrics allowing broadcast of AnonymousMetrics with fewer messages type AnonymousMetricBatch struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // metrics is an array of AnonymousMetric metrics Metrics []*AnonymousMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` } func (x *AnonymousMetricBatch) Reset() { *x = AnonymousMetricBatch{} if protoimpl.UnsafeEnabled { mi := &file_anon_metrics_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AnonymousMetricBatch) String() string { return protoimpl.X.MessageStringOf(x) } func (*AnonymousMetricBatch) ProtoMessage() {} func (x *AnonymousMetricBatch) ProtoReflect() protoreflect.Message { mi := &file_anon_metrics_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 AnonymousMetricBatch.ProtoReflect.Descriptor instead. func (*AnonymousMetricBatch) Descriptor() ([]byte, []int) { return file_anon_metrics_proto_rawDescGZIP(), []int{1} } func (x *AnonymousMetricBatch) GetMetrics() []*AnonymousMetric { if x != nil { return x.Metrics } return nil } var File_anon_metrics_proto protoreflect.FileDescriptor var file_anon_metrics_proto_rawDesc = []byte{ 0x0a, 0x12, 0x61, 0x6e, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x01, 0x0a, 0x0f, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x4b, 0x0a, 0x14, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x33, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_anon_metrics_proto_rawDescOnce sync.Once file_anon_metrics_proto_rawDescData = file_anon_metrics_proto_rawDesc ) func file_anon_metrics_proto_rawDescGZIP() []byte { file_anon_metrics_proto_rawDescOnce.Do(func() { file_anon_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_anon_metrics_proto_rawDescData) }) return file_anon_metrics_proto_rawDescData } var file_anon_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_anon_metrics_proto_goTypes = []interface{}{ (*AnonymousMetric)(nil), // 0: protobuf.AnonymousMetric (*AnonymousMetricBatch)(nil), // 1: protobuf.AnonymousMetricBatch (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_anon_metrics_proto_depIdxs = []int32{ 2, // 0: protobuf.AnonymousMetric.created_at:type_name -> google.protobuf.Timestamp 0, // 1: protobuf.AnonymousMetricBatch.metrics:type_name -> protobuf.AnonymousMetric 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_anon_metrics_proto_init() } func file_anon_metrics_proto_init() { if File_anon_metrics_proto != nil { return } if !protoimpl.UnsafeEnabled { file_anon_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnonymousMetric); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_anon_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnonymousMetricBatch); 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_anon_metrics_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_anon_metrics_proto_goTypes, DependencyIndexes: file_anon_metrics_proto_depIdxs, MessageInfos: file_anon_metrics_proto_msgTypes, }.Build() File_anon_metrics_proto = out.File file_anon_metrics_proto_rawDesc = nil file_anon_metrics_proto_goTypes = nil file_anon_metrics_proto_depIdxs = nil }