github.com/Goboolean/common@v0.0.0-20231130153141-cb54596b217d/deprecated/kafka/event.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v3.21.12
     5  // source: event.proto
     6  
     7  package kafka
     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  type SimEvent struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	EventId   int64   `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
    29  	UserId    int64   `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
    30  	Status    int64   `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
    31  	ModelId   int64   `protobuf:"varint,4,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
    32  	Stock     string  `protobuf:"bytes,5,opt,name=stock,proto3" json:"stock,omitempty"`
    33  	Parameter []int64 `protobuf:"varint,6,rep,packed,name=parameter,proto3" json:"parameter,omitempty"`
    34  }
    35  
    36  func (x *SimEvent) Reset() {
    37  	*x = SimEvent{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_event_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *SimEvent) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*SimEvent) ProtoMessage() {}
    50  
    51  func (x *SimEvent) ProtoReflect() protoreflect.Message {
    52  	mi := &file_event_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use SimEvent.ProtoReflect.Descriptor instead.
    64  func (*SimEvent) Descriptor() ([]byte, []int) {
    65  	return file_event_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *SimEvent) GetEventId() int64 {
    69  	if x != nil {
    70  		return x.EventId
    71  	}
    72  	return 0
    73  }
    74  
    75  func (x *SimEvent) GetUserId() int64 {
    76  	if x != nil {
    77  		return x.UserId
    78  	}
    79  	return 0
    80  }
    81  
    82  func (x *SimEvent) GetStatus() int64 {
    83  	if x != nil {
    84  		return x.Status
    85  	}
    86  	return 0
    87  }
    88  
    89  func (x *SimEvent) GetModelId() int64 {
    90  	if x != nil {
    91  		return x.ModelId
    92  	}
    93  	return 0
    94  }
    95  
    96  func (x *SimEvent) GetStock() string {
    97  	if x != nil {
    98  		return x.Stock
    99  	}
   100  	return ""
   101  }
   102  
   103  func (x *SimEvent) GetParameter() []int64 {
   104  	if x != nil {
   105  		return x.Parameter
   106  	}
   107  	return nil
   108  }
   109  
   110  type RealEvent struct {
   111  	state         protoimpl.MessageState
   112  	sizeCache     protoimpl.SizeCache
   113  	unknownFields protoimpl.UnknownFields
   114  
   115  	EventId int64  `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
   116  	Status  int64  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
   117  	ModelId int64  `protobuf:"varint,3,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
   118  	Stock   string `protobuf:"bytes,4,opt,name=stock,proto3" json:"stock,omitempty"`
   119  }
   120  
   121  func (x *RealEvent) Reset() {
   122  	*x = RealEvent{}
   123  	if protoimpl.UnsafeEnabled {
   124  		mi := &file_event_proto_msgTypes[1]
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		ms.StoreMessageInfo(mi)
   127  	}
   128  }
   129  
   130  func (x *RealEvent) String() string {
   131  	return protoimpl.X.MessageStringOf(x)
   132  }
   133  
   134  func (*RealEvent) ProtoMessage() {}
   135  
   136  func (x *RealEvent) ProtoReflect() protoreflect.Message {
   137  	mi := &file_event_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 RealEvent.ProtoReflect.Descriptor instead.
   149  func (*RealEvent) Descriptor() ([]byte, []int) {
   150  	return file_event_proto_rawDescGZIP(), []int{1}
   151  }
   152  
   153  func (x *RealEvent) GetEventId() int64 {
   154  	if x != nil {
   155  		return x.EventId
   156  	}
   157  	return 0
   158  }
   159  
   160  func (x *RealEvent) GetStatus() int64 {
   161  	if x != nil {
   162  		return x.Status
   163  	}
   164  	return 0
   165  }
   166  
   167  func (x *RealEvent) GetModelId() int64 {
   168  	if x != nil {
   169  		return x.ModelId
   170  	}
   171  	return 0
   172  }
   173  
   174  func (x *RealEvent) GetStock() string {
   175  	if x != nil {
   176  		return x.Stock
   177  	}
   178  	return ""
   179  }
   180  
   181  type PreSimEvent struct {
   182  	state         protoimpl.MessageState
   183  	sizeCache     protoimpl.SizeCache
   184  	unknownFields protoimpl.UnknownFields
   185  
   186  	EventId int64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
   187  	UserId  int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
   188  	Status  int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
   189  	ModelId int64 `protobuf:"varint,4,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
   190  }
   191  
   192  func (x *PreSimEvent) Reset() {
   193  	*x = PreSimEvent{}
   194  	if protoimpl.UnsafeEnabled {
   195  		mi := &file_event_proto_msgTypes[2]
   196  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   197  		ms.StoreMessageInfo(mi)
   198  	}
   199  }
   200  
   201  func (x *PreSimEvent) String() string {
   202  	return protoimpl.X.MessageStringOf(x)
   203  }
   204  
   205  func (*PreSimEvent) ProtoMessage() {}
   206  
   207  func (x *PreSimEvent) ProtoReflect() protoreflect.Message {
   208  	mi := &file_event_proto_msgTypes[2]
   209  	if protoimpl.UnsafeEnabled && x != nil {
   210  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   211  		if ms.LoadMessageInfo() == nil {
   212  			ms.StoreMessageInfo(mi)
   213  		}
   214  		return ms
   215  	}
   216  	return mi.MessageOf(x)
   217  }
   218  
   219  // Deprecated: Use PreSimEvent.ProtoReflect.Descriptor instead.
   220  func (*PreSimEvent) Descriptor() ([]byte, []int) {
   221  	return file_event_proto_rawDescGZIP(), []int{2}
   222  }
   223  
   224  func (x *PreSimEvent) GetEventId() int64 {
   225  	if x != nil {
   226  		return x.EventId
   227  	}
   228  	return 0
   229  }
   230  
   231  func (x *PreSimEvent) GetUserId() int64 {
   232  	if x != nil {
   233  		return x.UserId
   234  	}
   235  	return 0
   236  }
   237  
   238  func (x *PreSimEvent) GetStatus() int64 {
   239  	if x != nil {
   240  		return x.Status
   241  	}
   242  	return 0
   243  }
   244  
   245  func (x *PreSimEvent) GetModelId() int64 {
   246  	if x != nil {
   247  		return x.ModelId
   248  	}
   249  	return 0
   250  }
   251  
   252  var File_event_proto protoreflect.FileDescriptor
   253  
   254  var file_event_proto_rawDesc = []byte{
   255  	0x0a, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61,
   256  	0x70, 0x69, 0x22, 0xa5, 0x01, 0x0a, 0x08, 0x53, 0x69, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
   257  	0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   258  	0x03, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
   259  	0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
   260  	0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20,
   261  	0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d,
   262  	0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
   263  	0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x18,
   264  	0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09,
   265  	0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52,
   266  	0x09, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x22, 0x6f, 0x0a, 0x09, 0x52, 0x65,
   267  	0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74,
   268  	0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74,
   269  	0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
   270  	0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f,
   271  	0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x6f,
   272  	0x64, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x18, 0x04,
   273  	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x22, 0x74, 0x0a, 0x0b, 0x50,
   274  	0x72, 0x65, 0x53, 0x69, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76,
   275  	0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x76,
   276  	0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
   277  	0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16,
   278  	0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
   279  	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
   280  	0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49,
   281  	0x64, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   282  	0x47, 0x6f, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
   283  	0x2d, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6b, 0x61,
   284  	0x66, 0x6b, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   285  }
   286  
   287  var (
   288  	file_event_proto_rawDescOnce sync.Once
   289  	file_event_proto_rawDescData = file_event_proto_rawDesc
   290  )
   291  
   292  func file_event_proto_rawDescGZIP() []byte {
   293  	file_event_proto_rawDescOnce.Do(func() {
   294  		file_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_event_proto_rawDescData)
   295  	})
   296  	return file_event_proto_rawDescData
   297  }
   298  
   299  var file_event_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   300  var file_event_proto_goTypes = []interface{}{
   301  	(*SimEvent)(nil),    // 0: api.SimEvent
   302  	(*RealEvent)(nil),   // 1: api.RealEvent
   303  	(*PreSimEvent)(nil), // 2: api.PreSimEvent
   304  }
   305  var file_event_proto_depIdxs = []int32{
   306  	0, // [0:0] is the sub-list for method output_type
   307  	0, // [0:0] is the sub-list for method input_type
   308  	0, // [0:0] is the sub-list for extension type_name
   309  	0, // [0:0] is the sub-list for extension extendee
   310  	0, // [0:0] is the sub-list for field type_name
   311  }
   312  
   313  func init() { file_event_proto_init() }
   314  func file_event_proto_init() {
   315  	if File_event_proto != nil {
   316  		return
   317  	}
   318  	if !protoimpl.UnsafeEnabled {
   319  		file_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   320  			switch v := v.(*SimEvent); i {
   321  			case 0:
   322  				return &v.state
   323  			case 1:
   324  				return &v.sizeCache
   325  			case 2:
   326  				return &v.unknownFields
   327  			default:
   328  				return nil
   329  			}
   330  		}
   331  		file_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   332  			switch v := v.(*RealEvent); i {
   333  			case 0:
   334  				return &v.state
   335  			case 1:
   336  				return &v.sizeCache
   337  			case 2:
   338  				return &v.unknownFields
   339  			default:
   340  				return nil
   341  			}
   342  		}
   343  		file_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   344  			switch v := v.(*PreSimEvent); i {
   345  			case 0:
   346  				return &v.state
   347  			case 1:
   348  				return &v.sizeCache
   349  			case 2:
   350  				return &v.unknownFields
   351  			default:
   352  				return nil
   353  			}
   354  		}
   355  	}
   356  	type x struct{}
   357  	out := protoimpl.TypeBuilder{
   358  		File: protoimpl.DescBuilder{
   359  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   360  			RawDescriptor: file_event_proto_rawDesc,
   361  			NumEnums:      0,
   362  			NumMessages:   3,
   363  			NumExtensions: 0,
   364  			NumServices:   0,
   365  		},
   366  		GoTypes:           file_event_proto_goTypes,
   367  		DependencyIndexes: file_event_proto_depIdxs,
   368  		MessageInfos:      file_event_proto_msgTypes,
   369  	}.Build()
   370  	File_event_proto = out.File
   371  	file_event_proto_rawDesc = nil
   372  	file_event_proto_goTypes = nil
   373  	file_event_proto_depIdxs = nil
   374  }