github.com/Goboolean/common@v0.0.0-20231130153141-cb54596b217d/api/kafka/model.v1/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: api/model.v1/event.proto 6 7 package model_v1 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 Event struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 EventUuid string `protobuf:"bytes,1,opt,name=event_uuid,json=eventUuid,proto3" json:"event_uuid,omitempty"` 29 EventType string `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` 30 StockId string `protobuf:"bytes,3,opt,name=stock_id,json=stockId,proto3" json:"stock_id,omitempty"` 31 ModelName string `protobuf:"bytes,4,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` 32 } 33 34 func (x *Event) Reset() { 35 *x = Event{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_api_model_v1_event_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *Event) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*Event) ProtoMessage() {} 48 49 func (x *Event) ProtoReflect() protoreflect.Message { 50 mi := &file_api_model_v1_event_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use Event.ProtoReflect.Descriptor instead. 62 func (*Event) Descriptor() ([]byte, []int) { 63 return file_api_model_v1_event_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *Event) GetEventUuid() string { 67 if x != nil { 68 return x.EventUuid 69 } 70 return "" 71 } 72 73 func (x *Event) GetEventType() string { 74 if x != nil { 75 return x.EventType 76 } 77 return "" 78 } 79 80 func (x *Event) GetStockId() string { 81 if x != nil { 82 return x.StockId 83 } 84 return "" 85 } 86 87 func (x *Event) GetModelName() string { 88 if x != nil { 89 return x.ModelName 90 } 91 return "" 92 } 93 94 type EventMinimal struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 EventUuid string `protobuf:"bytes,1,opt,name=event_uuid,json=eventUuid,proto3" json:"event_uuid,omitempty"` 100 EventType string `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` 101 } 102 103 func (x *EventMinimal) Reset() { 104 *x = EventMinimal{} 105 if protoimpl.UnsafeEnabled { 106 mi := &file_api_model_v1_event_proto_msgTypes[1] 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 ms.StoreMessageInfo(mi) 109 } 110 } 111 112 func (x *EventMinimal) String() string { 113 return protoimpl.X.MessageStringOf(x) 114 } 115 116 func (*EventMinimal) ProtoMessage() {} 117 118 func (x *EventMinimal) ProtoReflect() protoreflect.Message { 119 mi := &file_api_model_v1_event_proto_msgTypes[1] 120 if protoimpl.UnsafeEnabled && x != nil { 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 if ms.LoadMessageInfo() == nil { 123 ms.StoreMessageInfo(mi) 124 } 125 return ms 126 } 127 return mi.MessageOf(x) 128 } 129 130 // Deprecated: Use EventMinimal.ProtoReflect.Descriptor instead. 131 func (*EventMinimal) Descriptor() ([]byte, []int) { 132 return file_api_model_v1_event_proto_rawDescGZIP(), []int{1} 133 } 134 135 func (x *EventMinimal) GetEventUuid() string { 136 if x != nil { 137 return x.EventUuid 138 } 139 return "" 140 } 141 142 func (x *EventMinimal) GetEventType() string { 143 if x != nil { 144 return x.EventType 145 } 146 return "" 147 } 148 149 var File_api_model_v1_event_proto protoreflect.FileDescriptor 150 151 var file_api_model_v1_event_proto_rawDesc = []byte{ 152 0x0a, 0x18, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2f, 0x65, 153 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6d, 0x6f, 0x64, 0x65, 154 0x6c, 0x2e, 0x76, 0x31, 0x22, 0x7f, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 155 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 156 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 157 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 158 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 159 0x74, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 160 0x74, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 161 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 162 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4c, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x69, 163 0x6e, 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x75, 164 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 165 0x55, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 166 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 167 0x79, 0x70, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 168 0x6d, 0x2f, 0x47, 0x6f, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x2f, 0x63, 0x6f, 0x72, 0x65, 169 0x2d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2f, 0x61, 170 0x70, 0x69, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 171 0x74, 0x6f, 0x33, 172 } 173 174 var ( 175 file_api_model_v1_event_proto_rawDescOnce sync.Once 176 file_api_model_v1_event_proto_rawDescData = file_api_model_v1_event_proto_rawDesc 177 ) 178 179 func file_api_model_v1_event_proto_rawDescGZIP() []byte { 180 file_api_model_v1_event_proto_rawDescOnce.Do(func() { 181 file_api_model_v1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_model_v1_event_proto_rawDescData) 182 }) 183 return file_api_model_v1_event_proto_rawDescData 184 } 185 186 var file_api_model_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 187 var file_api_model_v1_event_proto_goTypes = []interface{}{ 188 (*Event)(nil), // 0: model.v1.Event 189 (*EventMinimal)(nil), // 1: model.v1.EventMinimal 190 } 191 var file_api_model_v1_event_proto_depIdxs = []int32{ 192 0, // [0:0] is the sub-list for method output_type 193 0, // [0:0] is the sub-list for method input_type 194 0, // [0:0] is the sub-list for extension type_name 195 0, // [0:0] is the sub-list for extension extendee 196 0, // [0:0] is the sub-list for field type_name 197 } 198 199 func init() { file_api_model_v1_event_proto_init() } 200 func file_api_model_v1_event_proto_init() { 201 if File_api_model_v1_event_proto != nil { 202 return 203 } 204 if !protoimpl.UnsafeEnabled { 205 file_api_model_v1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 206 switch v := v.(*Event); i { 207 case 0: 208 return &v.state 209 case 1: 210 return &v.sizeCache 211 case 2: 212 return &v.unknownFields 213 default: 214 return nil 215 } 216 } 217 file_api_model_v1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 218 switch v := v.(*EventMinimal); i { 219 case 0: 220 return &v.state 221 case 1: 222 return &v.sizeCache 223 case 2: 224 return &v.unknownFields 225 default: 226 return nil 227 } 228 } 229 } 230 type x struct{} 231 out := protoimpl.TypeBuilder{ 232 File: protoimpl.DescBuilder{ 233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 234 RawDescriptor: file_api_model_v1_event_proto_rawDesc, 235 NumEnums: 0, 236 NumMessages: 2, 237 NumExtensions: 0, 238 NumServices: 0, 239 }, 240 GoTypes: file_api_model_v1_event_proto_goTypes, 241 DependencyIndexes: file_api_model_v1_event_proto_depIdxs, 242 MessageInfos: file_api_model_v1_event_proto_msgTypes, 243 }.Build() 244 File_api_model_v1_event_proto = out.File 245 file_api_model_v1_event_proto_rawDesc = nil 246 file_api_model_v1_event_proto_goTypes = nil 247 file_api_model_v1_event_proto_depIdxs = nil 248 }