github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/alert/alert.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.15.6
     5  // source: alert.proto
     6  
     7  package alert
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Event is inspired by Google Analytics events
    24  // https://developers.google.com/analytics/devguides/collection/analyticsjs/events
    25  type Event struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	// id is not required for inserts
    31  	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    32  	Category string            `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
    33  	Action   string            `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
    34  	Label    string            `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
    35  	Value    uint64            `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
    36  	Metadata map[string]string `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    37  }
    38  
    39  func (x *Event) Reset() {
    40  	*x = Event{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_alert_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Event) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Event) ProtoMessage() {}
    53  
    54  func (x *Event) ProtoReflect() protoreflect.Message {
    55  	mi := &file_alert_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Event.ProtoReflect.Descriptor instead.
    67  func (*Event) Descriptor() ([]byte, []int) {
    68  	return file_alert_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Event) GetId() string {
    72  	if x != nil {
    73  		return x.Id
    74  	}
    75  	return ""
    76  }
    77  
    78  func (x *Event) GetCategory() string {
    79  	if x != nil {
    80  		return x.Category
    81  	}
    82  	return ""
    83  }
    84  
    85  func (x *Event) GetAction() string {
    86  	if x != nil {
    87  		return x.Action
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Event) GetLabel() string {
    93  	if x != nil {
    94  		return x.Label
    95  	}
    96  	return ""
    97  }
    98  
    99  func (x *Event) GetValue() uint64 {
   100  	if x != nil {
   101  		return x.Value
   102  	}
   103  	return 0
   104  }
   105  
   106  func (x *Event) GetMetadata() map[string]string {
   107  	if x != nil {
   108  		return x.Metadata
   109  	}
   110  	return nil
   111  }
   112  
   113  type ReportEventRequest struct {
   114  	state         protoimpl.MessageState
   115  	sizeCache     protoimpl.SizeCache
   116  	unknownFields protoimpl.UnknownFields
   117  
   118  	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
   119  }
   120  
   121  func (x *ReportEventRequest) Reset() {
   122  	*x = ReportEventRequest{}
   123  	if protoimpl.UnsafeEnabled {
   124  		mi := &file_alert_proto_msgTypes[1]
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		ms.StoreMessageInfo(mi)
   127  	}
   128  }
   129  
   130  func (x *ReportEventRequest) String() string {
   131  	return protoimpl.X.MessageStringOf(x)
   132  }
   133  
   134  func (*ReportEventRequest) ProtoMessage() {}
   135  
   136  func (x *ReportEventRequest) ProtoReflect() protoreflect.Message {
   137  	mi := &file_alert_proto_msgTypes[1]
   138  	if protoimpl.UnsafeEnabled && x != nil {
   139  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   140  		if ms.LoadMessageInfo() == nil {
   141  			ms.StoreMessageInfo(mi)
   142  		}
   143  		return ms
   144  	}
   145  	return mi.MessageOf(x)
   146  }
   147  
   148  // Deprecated: Use ReportEventRequest.ProtoReflect.Descriptor instead.
   149  func (*ReportEventRequest) Descriptor() ([]byte, []int) {
   150  	return file_alert_proto_rawDescGZIP(), []int{1}
   151  }
   152  
   153  func (x *ReportEventRequest) GetEvent() *Event {
   154  	if x != nil {
   155  		return x.Event
   156  	}
   157  	return nil
   158  }
   159  
   160  type ReportEventResponse struct {
   161  	state         protoimpl.MessageState
   162  	sizeCache     protoimpl.SizeCache
   163  	unknownFields protoimpl.UnknownFields
   164  }
   165  
   166  func (x *ReportEventResponse) Reset() {
   167  	*x = ReportEventResponse{}
   168  	if protoimpl.UnsafeEnabled {
   169  		mi := &file_alert_proto_msgTypes[2]
   170  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   171  		ms.StoreMessageInfo(mi)
   172  	}
   173  }
   174  
   175  func (x *ReportEventResponse) String() string {
   176  	return protoimpl.X.MessageStringOf(x)
   177  }
   178  
   179  func (*ReportEventResponse) ProtoMessage() {}
   180  
   181  func (x *ReportEventResponse) ProtoReflect() protoreflect.Message {
   182  	mi := &file_alert_proto_msgTypes[2]
   183  	if protoimpl.UnsafeEnabled && x != nil {
   184  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   185  		if ms.LoadMessageInfo() == nil {
   186  			ms.StoreMessageInfo(mi)
   187  		}
   188  		return ms
   189  	}
   190  	return mi.MessageOf(x)
   191  }
   192  
   193  // Deprecated: Use ReportEventResponse.ProtoReflect.Descriptor instead.
   194  func (*ReportEventResponse) Descriptor() ([]byte, []int) {
   195  	return file_alert_proto_rawDescGZIP(), []int{2}
   196  }
   197  
   198  var File_alert_proto protoreflect.FileDescriptor
   199  
   200  var file_alert_proto_rawDesc = []byte{
   201  	0x0a, 0x0b, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x61,
   202  	0x6c, 0x65, 0x72, 0x74, 0x22, 0xec, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e,
   203  	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a,
   204  	0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   205  	0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63,
   206  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69,
   207  	0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
   208  	0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   209  	0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36,
   210  	0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
   211  	0x32, 0x1a, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4d,
   212  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65,
   213  	0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
   214  	0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
   215  	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
   216  	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
   217  	0x02, 0x38, 0x01, 0x22, 0x38, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x65,
   218  	0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x76, 0x65,
   219  	0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74,
   220  	0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x15, 0x0a,
   221  	0x13, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
   222  	0x6f, 0x6e, 0x73, 0x65, 0x32, 0x4f, 0x0a, 0x05, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x46, 0x0a,
   223  	0x0b, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x61,
   224  	0x6c, 0x65, 0x72, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74,
   225  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e,
   226  	0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
   227  	0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   228  	0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2f,
   229  	0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x3b, 0x61,
   230  	0x6c, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   231  }
   232  
   233  var (
   234  	file_alert_proto_rawDescOnce sync.Once
   235  	file_alert_proto_rawDescData = file_alert_proto_rawDesc
   236  )
   237  
   238  func file_alert_proto_rawDescGZIP() []byte {
   239  	file_alert_proto_rawDescOnce.Do(func() {
   240  		file_alert_proto_rawDescData = protoimpl.X.CompressGZIP(file_alert_proto_rawDescData)
   241  	})
   242  	return file_alert_proto_rawDescData
   243  }
   244  
   245  var file_alert_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   246  var file_alert_proto_goTypes = []interface{}{
   247  	(*Event)(nil),               // 0: alert.Event
   248  	(*ReportEventRequest)(nil),  // 1: alert.ReportEventRequest
   249  	(*ReportEventResponse)(nil), // 2: alert.ReportEventResponse
   250  	nil,                         // 3: alert.Event.MetadataEntry
   251  }
   252  var file_alert_proto_depIdxs = []int32{
   253  	3, // 0: alert.Event.metadata:type_name -> alert.Event.MetadataEntry
   254  	0, // 1: alert.ReportEventRequest.event:type_name -> alert.Event
   255  	1, // 2: alert.Alert.ReportEvent:input_type -> alert.ReportEventRequest
   256  	2, // 3: alert.Alert.ReportEvent:output_type -> alert.ReportEventResponse
   257  	3, // [3:4] is the sub-list for method output_type
   258  	2, // [2:3] is the sub-list for method input_type
   259  	2, // [2:2] is the sub-list for extension type_name
   260  	2, // [2:2] is the sub-list for extension extendee
   261  	0, // [0:2] is the sub-list for field type_name
   262  }
   263  
   264  func init() { file_alert_proto_init() }
   265  func file_alert_proto_init() {
   266  	if File_alert_proto != nil {
   267  		return
   268  	}
   269  	if !protoimpl.UnsafeEnabled {
   270  		file_alert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   271  			switch v := v.(*Event); i {
   272  			case 0:
   273  				return &v.state
   274  			case 1:
   275  				return &v.sizeCache
   276  			case 2:
   277  				return &v.unknownFields
   278  			default:
   279  				return nil
   280  			}
   281  		}
   282  		file_alert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   283  			switch v := v.(*ReportEventRequest); i {
   284  			case 0:
   285  				return &v.state
   286  			case 1:
   287  				return &v.sizeCache
   288  			case 2:
   289  				return &v.unknownFields
   290  			default:
   291  				return nil
   292  			}
   293  		}
   294  		file_alert_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   295  			switch v := v.(*ReportEventResponse); i {
   296  			case 0:
   297  				return &v.state
   298  			case 1:
   299  				return &v.sizeCache
   300  			case 2:
   301  				return &v.unknownFields
   302  			default:
   303  				return nil
   304  			}
   305  		}
   306  	}
   307  	type x struct{}
   308  	out := protoimpl.TypeBuilder{
   309  		File: protoimpl.DescBuilder{
   310  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   311  			RawDescriptor: file_alert_proto_rawDesc,
   312  			NumEnums:      0,
   313  			NumMessages:   4,
   314  			NumExtensions: 0,
   315  			NumServices:   1,
   316  		},
   317  		GoTypes:           file_alert_proto_goTypes,
   318  		DependencyIndexes: file_alert_proto_depIdxs,
   319  		MessageInfos:      file_alert_proto_msgTypes,
   320  	}.Build()
   321  	File_alert_proto = out.File
   322  	file_alert_proto_rawDesc = nil
   323  	file_alert_proto_goTypes = nil
   324  	file_alert_proto_depIdxs = nil
   325  }