gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/store/service/proto/store.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: micro/go-micro/store/service/proto/store.proto 3 4 package go_micro_store 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 type Record struct { 24 // key of the record 25 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 26 // value in the record 27 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 28 // timestamp in unix seconds 29 Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` 30 XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 XXX_unrecognized []byte `json:"-"` 32 XXX_sizecache int32 `json:"-"` 33 } 34 35 func (m *Record) Reset() { *m = Record{} } 36 func (m *Record) String() string { return proto.CompactTextString(m) } 37 func (*Record) ProtoMessage() {} 38 func (*Record) Descriptor() ([]byte, []int) { 39 return fileDescriptor_f84ccc98e143ed3e, []int{0} 40 } 41 42 func (m *Record) XXX_Unmarshal(b []byte) error { 43 return xxx_messageInfo_Record.Unmarshal(m, b) 44 } 45 func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 return xxx_messageInfo_Record.Marshal(b, m, deterministic) 47 } 48 func (m *Record) XXX_Merge(src proto.Message) { 49 xxx_messageInfo_Record.Merge(m, src) 50 } 51 func (m *Record) XXX_Size() int { 52 return xxx_messageInfo_Record.Size(m) 53 } 54 func (m *Record) XXX_DiscardUnknown() { 55 xxx_messageInfo_Record.DiscardUnknown(m) 56 } 57 58 var xxx_messageInfo_Record proto.InternalMessageInfo 59 60 func (m *Record) GetKey() string { 61 if m != nil { 62 return m.Key 63 } 64 return "" 65 } 66 67 func (m *Record) GetValue() []byte { 68 if m != nil { 69 return m.Value 70 } 71 return nil 72 } 73 74 func (m *Record) GetExpiry() int64 { 75 if m != nil { 76 return m.Expiry 77 } 78 return 0 79 } 80 81 type ReadRequest struct { 82 Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` 83 XXX_NoUnkeyedLiteral struct{} `json:"-"` 84 XXX_unrecognized []byte `json:"-"` 85 XXX_sizecache int32 `json:"-"` 86 } 87 88 func (m *ReadRequest) Reset() { *m = ReadRequest{} } 89 func (m *ReadRequest) String() string { return proto.CompactTextString(m) } 90 func (*ReadRequest) ProtoMessage() {} 91 func (*ReadRequest) Descriptor() ([]byte, []int) { 92 return fileDescriptor_f84ccc98e143ed3e, []int{1} 93 } 94 95 func (m *ReadRequest) XXX_Unmarshal(b []byte) error { 96 return xxx_messageInfo_ReadRequest.Unmarshal(m, b) 97 } 98 func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 99 return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) 100 } 101 func (m *ReadRequest) XXX_Merge(src proto.Message) { 102 xxx_messageInfo_ReadRequest.Merge(m, src) 103 } 104 func (m *ReadRequest) XXX_Size() int { 105 return xxx_messageInfo_ReadRequest.Size(m) 106 } 107 func (m *ReadRequest) XXX_DiscardUnknown() { 108 xxx_messageInfo_ReadRequest.DiscardUnknown(m) 109 } 110 111 var xxx_messageInfo_ReadRequest proto.InternalMessageInfo 112 113 func (m *ReadRequest) GetKeys() []string { 114 if m != nil { 115 return m.Keys 116 } 117 return nil 118 } 119 120 type ReadResponse struct { 121 Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` 122 XXX_NoUnkeyedLiteral struct{} `json:"-"` 123 XXX_unrecognized []byte `json:"-"` 124 XXX_sizecache int32 `json:"-"` 125 } 126 127 func (m *ReadResponse) Reset() { *m = ReadResponse{} } 128 func (m *ReadResponse) String() string { return proto.CompactTextString(m) } 129 func (*ReadResponse) ProtoMessage() {} 130 func (*ReadResponse) Descriptor() ([]byte, []int) { 131 return fileDescriptor_f84ccc98e143ed3e, []int{2} 132 } 133 134 func (m *ReadResponse) XXX_Unmarshal(b []byte) error { 135 return xxx_messageInfo_ReadResponse.Unmarshal(m, b) 136 } 137 func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 138 return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) 139 } 140 func (m *ReadResponse) XXX_Merge(src proto.Message) { 141 xxx_messageInfo_ReadResponse.Merge(m, src) 142 } 143 func (m *ReadResponse) XXX_Size() int { 144 return xxx_messageInfo_ReadResponse.Size(m) 145 } 146 func (m *ReadResponse) XXX_DiscardUnknown() { 147 xxx_messageInfo_ReadResponse.DiscardUnknown(m) 148 } 149 150 var xxx_messageInfo_ReadResponse proto.InternalMessageInfo 151 152 func (m *ReadResponse) GetRecords() []*Record { 153 if m != nil { 154 return m.Records 155 } 156 return nil 157 } 158 159 type WriteRequest struct { 160 Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` 161 XXX_NoUnkeyedLiteral struct{} `json:"-"` 162 XXX_unrecognized []byte `json:"-"` 163 XXX_sizecache int32 `json:"-"` 164 } 165 166 func (m *WriteRequest) Reset() { *m = WriteRequest{} } 167 func (m *WriteRequest) String() string { return proto.CompactTextString(m) } 168 func (*WriteRequest) ProtoMessage() {} 169 func (*WriteRequest) Descriptor() ([]byte, []int) { 170 return fileDescriptor_f84ccc98e143ed3e, []int{3} 171 } 172 173 func (m *WriteRequest) XXX_Unmarshal(b []byte) error { 174 return xxx_messageInfo_WriteRequest.Unmarshal(m, b) 175 } 176 func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 177 return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic) 178 } 179 func (m *WriteRequest) XXX_Merge(src proto.Message) { 180 xxx_messageInfo_WriteRequest.Merge(m, src) 181 } 182 func (m *WriteRequest) XXX_Size() int { 183 return xxx_messageInfo_WriteRequest.Size(m) 184 } 185 func (m *WriteRequest) XXX_DiscardUnknown() { 186 xxx_messageInfo_WriteRequest.DiscardUnknown(m) 187 } 188 189 var xxx_messageInfo_WriteRequest proto.InternalMessageInfo 190 191 func (m *WriteRequest) GetRecords() []*Record { 192 if m != nil { 193 return m.Records 194 } 195 return nil 196 } 197 198 type WriteResponse struct { 199 XXX_NoUnkeyedLiteral struct{} `json:"-"` 200 XXX_unrecognized []byte `json:"-"` 201 XXX_sizecache int32 `json:"-"` 202 } 203 204 func (m *WriteResponse) Reset() { *m = WriteResponse{} } 205 func (m *WriteResponse) String() string { return proto.CompactTextString(m) } 206 func (*WriteResponse) ProtoMessage() {} 207 func (*WriteResponse) Descriptor() ([]byte, []int) { 208 return fileDescriptor_f84ccc98e143ed3e, []int{4} 209 } 210 211 func (m *WriteResponse) XXX_Unmarshal(b []byte) error { 212 return xxx_messageInfo_WriteResponse.Unmarshal(m, b) 213 } 214 func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 215 return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic) 216 } 217 func (m *WriteResponse) XXX_Merge(src proto.Message) { 218 xxx_messageInfo_WriteResponse.Merge(m, src) 219 } 220 func (m *WriteResponse) XXX_Size() int { 221 return xxx_messageInfo_WriteResponse.Size(m) 222 } 223 func (m *WriteResponse) XXX_DiscardUnknown() { 224 xxx_messageInfo_WriteResponse.DiscardUnknown(m) 225 } 226 227 var xxx_messageInfo_WriteResponse proto.InternalMessageInfo 228 229 type DeleteRequest struct { 230 Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` 231 XXX_NoUnkeyedLiteral struct{} `json:"-"` 232 XXX_unrecognized []byte `json:"-"` 233 XXX_sizecache int32 `json:"-"` 234 } 235 236 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 237 func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } 238 func (*DeleteRequest) ProtoMessage() {} 239 func (*DeleteRequest) Descriptor() ([]byte, []int) { 240 return fileDescriptor_f84ccc98e143ed3e, []int{5} 241 } 242 243 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 244 return xxx_messageInfo_DeleteRequest.Unmarshal(m, b) 245 } 246 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 247 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 248 } 249 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 250 xxx_messageInfo_DeleteRequest.Merge(m, src) 251 } 252 func (m *DeleteRequest) XXX_Size() int { 253 return xxx_messageInfo_DeleteRequest.Size(m) 254 } 255 func (m *DeleteRequest) XXX_DiscardUnknown() { 256 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 257 } 258 259 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 260 261 func (m *DeleteRequest) GetKeys() []string { 262 if m != nil { 263 return m.Keys 264 } 265 return nil 266 } 267 268 type DeleteResponse struct { 269 XXX_NoUnkeyedLiteral struct{} `json:"-"` 270 XXX_unrecognized []byte `json:"-"` 271 XXX_sizecache int32 `json:"-"` 272 } 273 274 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 275 func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } 276 func (*DeleteResponse) ProtoMessage() {} 277 func (*DeleteResponse) Descriptor() ([]byte, []int) { 278 return fileDescriptor_f84ccc98e143ed3e, []int{6} 279 } 280 281 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 282 return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) 283 } 284 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 285 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 286 } 287 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 288 xxx_messageInfo_DeleteResponse.Merge(m, src) 289 } 290 func (m *DeleteResponse) XXX_Size() int { 291 return xxx_messageInfo_DeleteResponse.Size(m) 292 } 293 func (m *DeleteResponse) XXX_DiscardUnknown() { 294 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 295 } 296 297 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 298 299 type ListRequest struct { 300 // optional key 301 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 302 XXX_NoUnkeyedLiteral struct{} `json:"-"` 303 XXX_unrecognized []byte `json:"-"` 304 XXX_sizecache int32 `json:"-"` 305 } 306 307 func (m *ListRequest) Reset() { *m = ListRequest{} } 308 func (m *ListRequest) String() string { return proto.CompactTextString(m) } 309 func (*ListRequest) ProtoMessage() {} 310 func (*ListRequest) Descriptor() ([]byte, []int) { 311 return fileDescriptor_f84ccc98e143ed3e, []int{7} 312 } 313 314 func (m *ListRequest) XXX_Unmarshal(b []byte) error { 315 return xxx_messageInfo_ListRequest.Unmarshal(m, b) 316 } 317 func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 318 return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) 319 } 320 func (m *ListRequest) XXX_Merge(src proto.Message) { 321 xxx_messageInfo_ListRequest.Merge(m, src) 322 } 323 func (m *ListRequest) XXX_Size() int { 324 return xxx_messageInfo_ListRequest.Size(m) 325 } 326 func (m *ListRequest) XXX_DiscardUnknown() { 327 xxx_messageInfo_ListRequest.DiscardUnknown(m) 328 } 329 330 var xxx_messageInfo_ListRequest proto.InternalMessageInfo 331 332 func (m *ListRequest) GetKey() string { 333 if m != nil { 334 return m.Key 335 } 336 return "" 337 } 338 339 type ListResponse struct { 340 Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` 341 XXX_NoUnkeyedLiteral struct{} `json:"-"` 342 XXX_unrecognized []byte `json:"-"` 343 XXX_sizecache int32 `json:"-"` 344 } 345 346 func (m *ListResponse) Reset() { *m = ListResponse{} } 347 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 348 func (*ListResponse) ProtoMessage() {} 349 func (*ListResponse) Descriptor() ([]byte, []int) { 350 return fileDescriptor_f84ccc98e143ed3e, []int{8} 351 } 352 353 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 354 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 355 } 356 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 357 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 358 } 359 func (m *ListResponse) XXX_Merge(src proto.Message) { 360 xxx_messageInfo_ListResponse.Merge(m, src) 361 } 362 func (m *ListResponse) XXX_Size() int { 363 return xxx_messageInfo_ListResponse.Size(m) 364 } 365 func (m *ListResponse) XXX_DiscardUnknown() { 366 xxx_messageInfo_ListResponse.DiscardUnknown(m) 367 } 368 369 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 370 371 func (m *ListResponse) GetRecords() []*Record { 372 if m != nil { 373 return m.Records 374 } 375 return nil 376 } 377 378 func init() { 379 proto.RegisterType((*Record)(nil), "go.micro.store.Record") 380 proto.RegisterType((*ReadRequest)(nil), "go.micro.store.ReadRequest") 381 proto.RegisterType((*ReadResponse)(nil), "go.micro.store.ReadResponse") 382 proto.RegisterType((*WriteRequest)(nil), "go.micro.store.WriteRequest") 383 proto.RegisterType((*WriteResponse)(nil), "go.micro.store.WriteResponse") 384 proto.RegisterType((*DeleteRequest)(nil), "go.micro.store.DeleteRequest") 385 proto.RegisterType((*DeleteResponse)(nil), "go.micro.store.DeleteResponse") 386 proto.RegisterType((*ListRequest)(nil), "go.micro.store.ListRequest") 387 proto.RegisterType((*ListResponse)(nil), "go.micro.store.ListResponse") 388 } 389 390 func init() { 391 proto.RegisterFile("micro/go-micro/store/service/proto/store.proto", fileDescriptor_f84ccc98e143ed3e) 392 } 393 394 var fileDescriptor_f84ccc98e143ed3e = []byte{ 395 // 333 bytes of a gzipped FileDescriptorProto 396 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4d, 0x4f, 0xc2, 0x40, 397 0x10, 0x86, 0x59, 0x0a, 0x35, 0x0c, 0x1f, 0x92, 0x89, 0x21, 0x0d, 0x7e, 0xd5, 0x7a, 0xe9, 0xc5, 398 0x42, 0xf0, 0x0f, 0x98, 0xf8, 0x11, 0x4d, 0x3c, 0xad, 0x07, 0xcf, 0x08, 0x13, 0xd2, 0x80, 0x2e, 399 0xee, 0x16, 0x62, 0xff, 0x90, 0xbf, 0xd3, 0xec, 0x6e, 0xab, 0xc5, 0x42, 0x62, 0xbc, 0xcd, 0xee, 400 0xbc, 0xf3, 0xec, 0xdb, 0x79, 0x0b, 0xd1, 0x6b, 0x3c, 0x91, 0x62, 0x30, 0x13, 0x17, 0xb6, 0x50, 401 0x89, 0x90, 0x34, 0x50, 0x24, 0xd7, 0xf1, 0x84, 0x06, 0x4b, 0x29, 0x92, 0xec, 0x2e, 0x32, 0x35, 402 0x76, 0x66, 0xc2, 0x8e, 0x44, 0xe6, 0x36, 0xb8, 0x07, 0x97, 0xd3, 0x44, 0xc8, 0x29, 0x76, 0xc1, 403 0x99, 0x53, 0xea, 0x31, 0x9f, 0x85, 0x0d, 0xae, 0x4b, 0x3c, 0x80, 0xfa, 0x7a, 0xbc, 0x58, 0x91, 404 0x57, 0xf5, 0x59, 0xd8, 0xe2, 0xf6, 0x80, 0x3d, 0x70, 0xe9, 0x63, 0x19, 0xcb, 0xd4, 0x73, 0x7c, 405 0x16, 0x3a, 0x3c, 0x3b, 0x05, 0x67, 0xd0, 0xe4, 0x34, 0x9e, 0x72, 0x7a, 0x5f, 0x91, 0x4a, 0x10, 406 0xa1, 0x36, 0xa7, 0x54, 0x79, 0xcc, 0x77, 0xc2, 0x06, 0x37, 0x75, 0x70, 0x05, 0x2d, 0x2b, 0x51, 407 0x4b, 0xf1, 0xa6, 0x08, 0x87, 0xb0, 0x27, 0xcd, 0xe3, 0x56, 0xd6, 0x1c, 0xf5, 0xa2, 0x4d, 0x7b, 408 0x91, 0xf5, 0xc6, 0x73, 0x99, 0x26, 0x3c, 0xcb, 0x38, 0xa1, 0xfc, 0x95, 0x02, 0xa1, 0xfa, 0x37, 409 0xc2, 0x3e, 0xb4, 0x33, 0x82, 0x35, 0x11, 0x9c, 0x43, 0xfb, 0x86, 0x16, 0xf4, 0xc3, 0xdc, 0xe6, 410 0xbc, 0x0b, 0x9d, 0x5c, 0x94, 0x8d, 0x9d, 0x42, 0xf3, 0x31, 0x56, 0x49, 0x3e, 0x54, 0xda, 0x9e, 411 0xb6, 0x6a, 0x05, 0xff, 0xfd, 0xd8, 0xd1, 0x67, 0x15, 0xea, 0x4f, 0xba, 0x83, 0xb7, 0x50, 0xd3, 412 0x2c, 0x3c, 0xfc, 0x3d, 0x52, 0xb0, 0xd0, 0x3f, 0xda, 0xde, 0xcc, 0xfc, 0x56, 0x86, 0x0c, 0xaf, 413 0xa1, 0xa6, 0xf7, 0x5f, 0xc6, 0x14, 0x82, 0x2b, 0x63, 0x8a, 0x91, 0x05, 0x15, 0xbc, 0x83, 0xba, 414 0x59, 0x20, 0x96, 0x84, 0xc5, 0x64, 0xfa, 0xc7, 0x3b, 0xba, 0xdf, 0x9c, 0x07, 0x70, 0xed, 0x4a, 415 0xb1, 0x24, 0xdd, 0xc8, 0xa3, 0x7f, 0xb2, 0xab, 0x9d, 0xa3, 0x5e, 0x5c, 0xf3, 0x6f, 0x5f, 0x7e, 416 0x05, 0x00, 0x00, 0xff, 0xff, 0x30, 0x48, 0x25, 0x2d, 0x0d, 0x03, 0x00, 0x00, 417 }