github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/protocol/eventpb/event.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.17.3 5 // source: event.proto 6 7 package eventpb 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 Header struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` // event type 29 PubId string `protobuf:"bytes,2,opt,name=pub_id,json=pubId,proto3" json:"pub_id,omitempty"` // the unique identifier for publisher 30 Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // for validation message 31 PubTime int64 `protobuf:"varint,4,opt,name=pub_time,json=pubTime,proto3" json:"pub_time,omitempty"` // event pub timestamp 32 EventId string `protobuf:"bytes,5,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` // event id for tracing 33 } 34 35 func (x *Header) Reset() { 36 *x = Header{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_event_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Header) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Header) ProtoMessage() {} 49 50 func (x *Header) ProtoReflect() protoreflect.Message { 51 mi := &file_event_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Header.ProtoReflect.Descriptor instead. 63 func (*Header) Descriptor() ([]byte, []int) { 64 return file_event_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Header) GetEventType() string { 68 if x != nil { 69 return x.EventType 70 } 71 return "" 72 } 73 74 func (x *Header) GetPubId() string { 75 if x != nil { 76 return x.PubId 77 } 78 return "" 79 } 80 81 func (x *Header) GetToken() string { 82 if x != nil { 83 return x.Token 84 } 85 return "" 86 } 87 88 func (x *Header) GetPubTime() int64 { 89 if x != nil { 90 return x.PubTime 91 } 92 return 0 93 } 94 95 func (x *Header) GetEventId() string { 96 if x != nil { 97 return x.EventId 98 } 99 return "" 100 } 101 102 type Event struct { 103 state protoimpl.MessageState 104 sizeCache protoimpl.SizeCache 105 unknownFields protoimpl.UnknownFields 106 107 Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` 108 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 109 } 110 111 func (x *Event) Reset() { 112 *x = Event{} 113 if protoimpl.UnsafeEnabled { 114 mi := &file_event_proto_msgTypes[1] 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 ms.StoreMessageInfo(mi) 117 } 118 } 119 120 func (x *Event) String() string { 121 return protoimpl.X.MessageStringOf(x) 122 } 123 124 func (*Event) ProtoMessage() {} 125 126 func (x *Event) ProtoReflect() protoreflect.Message { 127 mi := &file_event_proto_msgTypes[1] 128 if protoimpl.UnsafeEnabled && x != nil { 129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 130 if ms.LoadMessageInfo() == nil { 131 ms.StoreMessageInfo(mi) 132 } 133 return ms 134 } 135 return mi.MessageOf(x) 136 } 137 138 // Deprecated: Use Event.ProtoReflect.Descriptor instead. 139 func (*Event) Descriptor() ([]byte, []int) { 140 return file_event_proto_rawDescGZIP(), []int{1} 141 } 142 143 func (x *Event) GetHeader() *Header { 144 if x != nil { 145 return x.Header 146 } 147 return nil 148 } 149 150 func (x *Event) GetPayload() []byte { 151 if x != nil { 152 return x.Payload 153 } 154 return nil 155 } 156 157 var File_event_proto protoreflect.FileDescriptor 158 159 var file_event_proto_rawDesc = []byte{ 160 0x0a, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x65, 161 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x22, 0x8a, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 162 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 163 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 164 0x12, 0x15, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 165 0x52, 0x05, 0x70, 0x75, 0x62, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 166 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 167 0x08, 0x70, 0x75, 0x62, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 168 0x07, 0x70, 0x75, 0x62, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 169 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 170 0x74, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x06, 171 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x65, 172 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 173 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 174 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 175 0x0c, 0x5a, 0x0a, 0x2e, 0x2f, 0x3b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 176 0x72, 0x6f, 0x74, 0x6f, 0x33, 177 } 178 179 var ( 180 file_event_proto_rawDescOnce sync.Once 181 file_event_proto_rawDescData = file_event_proto_rawDesc 182 ) 183 184 func file_event_proto_rawDescGZIP() []byte { 185 file_event_proto_rawDescOnce.Do(func() { 186 file_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_event_proto_rawDescData) 187 }) 188 return file_event_proto_rawDescData 189 } 190 191 var file_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 192 var file_event_proto_goTypes = []interface{}{ 193 (*Header)(nil), // 0: eventpb.Header 194 (*Event)(nil), // 1: eventpb.Event 195 } 196 var file_event_proto_depIdxs = []int32{ 197 0, // 0: eventpb.Event.header:type_name -> eventpb.Header 198 1, // [1:1] is the sub-list for method output_type 199 1, // [1:1] is the sub-list for method input_type 200 1, // [1:1] is the sub-list for extension type_name 201 1, // [1:1] is the sub-list for extension extendee 202 0, // [0:1] is the sub-list for field type_name 203 } 204 205 func init() { file_event_proto_init() } 206 func file_event_proto_init() { 207 if File_event_proto != nil { 208 return 209 } 210 if !protoimpl.UnsafeEnabled { 211 file_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 212 switch v := v.(*Header); i { 213 case 0: 214 return &v.state 215 case 1: 216 return &v.sizeCache 217 case 2: 218 return &v.unknownFields 219 default: 220 return nil 221 } 222 } 223 file_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 224 switch v := v.(*Event); i { 225 case 0: 226 return &v.state 227 case 1: 228 return &v.sizeCache 229 case 2: 230 return &v.unknownFields 231 default: 232 return nil 233 } 234 } 235 } 236 type x struct{} 237 out := protoimpl.TypeBuilder{ 238 File: protoimpl.DescBuilder{ 239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 240 RawDescriptor: file_event_proto_rawDesc, 241 NumEnums: 0, 242 NumMessages: 2, 243 NumExtensions: 0, 244 NumServices: 0, 245 }, 246 GoTypes: file_event_proto_goTypes, 247 DependencyIndexes: file_event_proto_depIdxs, 248 MessageInfos: file_event_proto_msgTypes, 249 }.Build() 250 File_event_proto = out.File 251 file_event_proto_rawDesc = nil 252 file_event_proto_goTypes = nil 253 file_event_proto_depIdxs = nil 254 }