github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/wasm/watcher/msg.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.21.4 5 // source: watcher/msg.proto 6 7 package watcher 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 WatchMessage struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 29 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 30 IsDelete bool `protobuf:"varint,3,opt,name=isDelete,proto3" json:"isDelete,omitempty"` 31 } 32 33 func (x *WatchMessage) Reset() { 34 *x = WatchMessage{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_watcher_msg_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *WatchMessage) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*WatchMessage) ProtoMessage() {} 47 48 func (x *WatchMessage) ProtoReflect() protoreflect.Message { 49 mi := &file_watcher_msg_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use WatchMessage.ProtoReflect.Descriptor instead. 61 func (*WatchMessage) Descriptor() ([]byte, []int) { 62 return file_watcher_msg_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *WatchMessage) GetKey() []byte { 66 if x != nil { 67 return x.Key 68 } 69 return nil 70 } 71 72 func (x *WatchMessage) GetValue() []byte { 73 if x != nil { 74 return x.Value 75 } 76 return nil 77 } 78 79 func (x *WatchMessage) GetIsDelete() bool { 80 if x != nil { 81 return x.IsDelete 82 } 83 return false 84 } 85 86 type WatchData struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 Messages []*WatchMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` 92 } 93 94 func (x *WatchData) Reset() { 95 *x = WatchData{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_watcher_msg_proto_msgTypes[1] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *WatchData) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*WatchData) ProtoMessage() {} 108 109 func (x *WatchData) ProtoReflect() protoreflect.Message { 110 mi := &file_watcher_msg_proto_msgTypes[1] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use WatchData.ProtoReflect.Descriptor instead. 122 func (*WatchData) Descriptor() ([]byte, []int) { 123 return file_watcher_msg_proto_rawDescGZIP(), []int{1} 124 } 125 126 func (x *WatchData) GetMessages() []*WatchMessage { 127 if x != nil { 128 return x.Messages 129 } 130 return nil 131 } 132 133 var File_watcher_msg_proto protoreflect.FileDescriptor 134 135 var file_watcher_msg_proto_rawDesc = []byte{ 136 0x0a, 0x11, 0x77, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 137 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x77, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x22, 0x52, 0x0a, 0x0c, 138 0x77, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 139 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 140 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 141 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 142 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 143 0x22, 0x3e, 0x0a, 0x09, 0x77, 0x61, 0x74, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 144 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 145 0x15, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x4d, 146 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 147 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x62, 0x06, 0x70, 148 0x72, 0x6f, 0x74, 0x6f, 0x33, 149 } 150 151 var ( 152 file_watcher_msg_proto_rawDescOnce sync.Once 153 file_watcher_msg_proto_rawDescData = file_watcher_msg_proto_rawDesc 154 ) 155 156 func file_watcher_msg_proto_rawDescGZIP() []byte { 157 file_watcher_msg_proto_rawDescOnce.Do(func() { 158 file_watcher_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_watcher_msg_proto_rawDescData) 159 }) 160 return file_watcher_msg_proto_rawDescData 161 } 162 163 var file_watcher_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 164 var file_watcher_msg_proto_goTypes = []interface{}{ 165 (*WatchMessage)(nil), // 0: watcher.watchMessage 166 (*WatchData)(nil), // 1: watcher.watchData 167 } 168 var file_watcher_msg_proto_depIdxs = []int32{ 169 0, // 0: watcher.watchData.messages:type_name -> watcher.watchMessage 170 1, // [1:1] is the sub-list for method output_type 171 1, // [1:1] is the sub-list for method input_type 172 1, // [1:1] is the sub-list for extension type_name 173 1, // [1:1] is the sub-list for extension extendee 174 0, // [0:1] is the sub-list for field type_name 175 } 176 177 func init() { file_watcher_msg_proto_init() } 178 func file_watcher_msg_proto_init() { 179 if File_watcher_msg_proto != nil { 180 return 181 } 182 if !protoimpl.UnsafeEnabled { 183 file_watcher_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 184 switch v := v.(*WatchMessage); i { 185 case 0: 186 return &v.state 187 case 1: 188 return &v.sizeCache 189 case 2: 190 return &v.unknownFields 191 default: 192 return nil 193 } 194 } 195 file_watcher_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 196 switch v := v.(*WatchData); i { 197 case 0: 198 return &v.state 199 case 1: 200 return &v.sizeCache 201 case 2: 202 return &v.unknownFields 203 default: 204 return nil 205 } 206 } 207 } 208 type x struct{} 209 out := protoimpl.TypeBuilder{ 210 File: protoimpl.DescBuilder{ 211 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 212 RawDescriptor: file_watcher_msg_proto_rawDesc, 213 NumEnums: 0, 214 NumMessages: 2, 215 NumExtensions: 0, 216 NumServices: 0, 217 }, 218 GoTypes: file_watcher_msg_proto_goTypes, 219 DependencyIndexes: file_watcher_msg_proto_depIdxs, 220 MessageInfos: file_watcher_msg_proto_msgTypes, 221 }.Build() 222 File_watcher_msg_proto = out.File 223 file_watcher_msg_proto_rawDesc = nil 224 file_watcher_msg_proto_goTypes = nil 225 file_watcher_msg_proto_depIdxs = nil 226 }