github.com/Tri-stone/burrow@v0.25.0/execution/names/names.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: names.proto 3 4 package names 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/proto" 13 golang_proto "github.com/golang/protobuf/proto" 14 github_com_hyperledger_burrow_crypto "github.com/hyperledger/burrow/crypto" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = golang_proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 28 29 // NameReg provides a global key value store based on Name, Data pairs that are subject to expiry and ownership by an 30 // account. 31 type Entry struct { 32 // registered name for the entry 33 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` 34 // address that created the entry 35 Owner github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,2,opt,name=Owner,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Owner"` 36 // data to store under this name 37 Data string `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` 38 // block at which this entry expires 39 Expires uint64 `protobuf:"varint,4,opt,name=Expires,proto3" json:"Expires,omitempty"` 40 XXX_NoUnkeyedLiteral struct{} `json:"-"` 41 XXX_unrecognized []byte `json:"-"` 42 XXX_sizecache int32 `json:"-"` 43 } 44 45 func (m *Entry) Reset() { *m = Entry{} } 46 func (*Entry) ProtoMessage() {} 47 func (*Entry) Descriptor() ([]byte, []int) { 48 return fileDescriptor_f4268625867c617c, []int{0} 49 } 50 func (m *Entry) XXX_Unmarshal(b []byte) error { 51 return m.Unmarshal(b) 52 } 53 func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 54 if deterministic { 55 return xxx_messageInfo_Entry.Marshal(b, m, deterministic) 56 } else { 57 b = b[:cap(b)] 58 n, err := m.MarshalTo(b) 59 if err != nil { 60 return nil, err 61 } 62 return b[:n], nil 63 } 64 } 65 func (m *Entry) XXX_Merge(src proto.Message) { 66 xxx_messageInfo_Entry.Merge(m, src) 67 } 68 func (m *Entry) XXX_Size() int { 69 return m.Size() 70 } 71 func (m *Entry) XXX_DiscardUnknown() { 72 xxx_messageInfo_Entry.DiscardUnknown(m) 73 } 74 75 var xxx_messageInfo_Entry proto.InternalMessageInfo 76 77 func (m *Entry) GetName() string { 78 if m != nil { 79 return m.Name 80 } 81 return "" 82 } 83 84 func (m *Entry) GetData() string { 85 if m != nil { 86 return m.Data 87 } 88 return "" 89 } 90 91 func (m *Entry) GetExpires() uint64 { 92 if m != nil { 93 return m.Expires 94 } 95 return 0 96 } 97 98 func (*Entry) XXX_MessageName() string { 99 return "names.Entry" 100 } 101 func init() { 102 proto.RegisterType((*Entry)(nil), "names.Entry") 103 golang_proto.RegisterType((*Entry)(nil), "names.Entry") 104 } 105 106 func init() { proto.RegisterFile("names.proto", fileDescriptor_f4268625867c617c) } 107 func init() { golang_proto.RegisterFile("names.proto", fileDescriptor_f4268625867c617c) } 108 109 var fileDescriptor_f4268625867c617c = []byte{ 110 // 245 bytes of a gzipped FileDescriptorProto 111 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xce, 0x4b, 0xcc, 0x4d, 112 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x73, 0xa4, 0x74, 0xd3, 0x33, 0x4b, 113 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1, 0xb2, 0x49, 114 0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0x74, 0x29, 0xcd, 0x66, 0xe4, 0x62, 0x75, 0xcd, 115 0x2b, 0x29, 0xaa, 0x14, 0x12, 0xe2, 0x62, 0xf1, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, 116 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0xbc, 0xb8, 0x58, 0xfd, 0xcb, 0xf3, 0x52, 0x8b, 0x24, 0x98, 0x14, 117 0x18, 0x35, 0x78, 0x9c, 0x4c, 0x4e, 0xdc, 0x93, 0x67, 0xb8, 0x75, 0x4f, 0x5e, 0x07, 0xc9, 0x8e, 118 0x8c, 0xca, 0x82, 0xd4, 0xa2, 0x9c, 0xd4, 0x94, 0xf4, 0xd4, 0x22, 0xfd, 0xa4, 0xd2, 0xa2, 0xa2, 119 0xfc, 0x72, 0xfd, 0xe4, 0xa2, 0xca, 0x82, 0x92, 0x7c, 0x3d, 0xc7, 0x94, 0x94, 0xa2, 0xd4, 0xe2, 120 0xe2, 0x20, 0x88, 0x11, 0x20, 0xf3, 0x5d, 0x12, 0x4b, 0x12, 0x25, 0x98, 0x21, 0xe6, 0x83, 0xd8, 121 0x42, 0x12, 0x5c, 0xec, 0xae, 0x15, 0x05, 0x99, 0x45, 0xa9, 0xc5, 0x12, 0x2c, 0x0a, 0x8c, 0x1a, 122 0x2c, 0x41, 0x30, 0xae, 0x15, 0xcb, 0x8c, 0x05, 0xf2, 0x0c, 0x4e, 0xce, 0x27, 0x1e, 0xc9, 0x31, 123 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x81, 0xc7, 0x72, 0x8c, 0x27, 0x1e, 0xcb, 124 0x31, 0x46, 0xe9, 0xe2, 0xb7, 0x3e, 0xb5, 0x22, 0x35, 0xb9, 0xb4, 0x24, 0x33, 0x3f, 0x4f, 0x1f, 125 0x1c, 0x22, 0x49, 0x6c, 0x60, 0x9f, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x03, 0xd1, 0x42, 126 0x7f, 0x2e, 0x01, 0x00, 0x00, 127 } 128 129 func (m *Entry) Marshal() (dAtA []byte, err error) { 130 size := m.Size() 131 dAtA = make([]byte, size) 132 n, err := m.MarshalTo(dAtA) 133 if err != nil { 134 return nil, err 135 } 136 return dAtA[:n], nil 137 } 138 139 func (m *Entry) MarshalTo(dAtA []byte) (int, error) { 140 var i int 141 _ = i 142 var l int 143 _ = l 144 if len(m.Name) > 0 { 145 dAtA[i] = 0xa 146 i++ 147 i = encodeVarintNames(dAtA, i, uint64(len(m.Name))) 148 i += copy(dAtA[i:], m.Name) 149 } 150 dAtA[i] = 0x12 151 i++ 152 i = encodeVarintNames(dAtA, i, uint64(m.Owner.Size())) 153 n1, err := m.Owner.MarshalTo(dAtA[i:]) 154 if err != nil { 155 return 0, err 156 } 157 i += n1 158 if len(m.Data) > 0 { 159 dAtA[i] = 0x1a 160 i++ 161 i = encodeVarintNames(dAtA, i, uint64(len(m.Data))) 162 i += copy(dAtA[i:], m.Data) 163 } 164 if m.Expires != 0 { 165 dAtA[i] = 0x20 166 i++ 167 i = encodeVarintNames(dAtA, i, uint64(m.Expires)) 168 } 169 if m.XXX_unrecognized != nil { 170 i += copy(dAtA[i:], m.XXX_unrecognized) 171 } 172 return i, nil 173 } 174 175 func encodeVarintNames(dAtA []byte, offset int, v uint64) int { 176 for v >= 1<<7 { 177 dAtA[offset] = uint8(v&0x7f | 0x80) 178 v >>= 7 179 offset++ 180 } 181 dAtA[offset] = uint8(v) 182 return offset + 1 183 } 184 func (m *Entry) Size() (n int) { 185 if m == nil { 186 return 0 187 } 188 var l int 189 _ = l 190 l = len(m.Name) 191 if l > 0 { 192 n += 1 + l + sovNames(uint64(l)) 193 } 194 l = m.Owner.Size() 195 n += 1 + l + sovNames(uint64(l)) 196 l = len(m.Data) 197 if l > 0 { 198 n += 1 + l + sovNames(uint64(l)) 199 } 200 if m.Expires != 0 { 201 n += 1 + sovNames(uint64(m.Expires)) 202 } 203 if m.XXX_unrecognized != nil { 204 n += len(m.XXX_unrecognized) 205 } 206 return n 207 } 208 209 func sovNames(x uint64) (n int) { 210 for { 211 n++ 212 x >>= 7 213 if x == 0 { 214 break 215 } 216 } 217 return n 218 } 219 func sozNames(x uint64) (n int) { 220 return sovNames(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 221 } 222 func (m *Entry) Unmarshal(dAtA []byte) error { 223 l := len(dAtA) 224 iNdEx := 0 225 for iNdEx < l { 226 preIndex := iNdEx 227 var wire uint64 228 for shift := uint(0); ; shift += 7 { 229 if shift >= 64 { 230 return ErrIntOverflowNames 231 } 232 if iNdEx >= l { 233 return io.ErrUnexpectedEOF 234 } 235 b := dAtA[iNdEx] 236 iNdEx++ 237 wire |= uint64(b&0x7F) << shift 238 if b < 0x80 { 239 break 240 } 241 } 242 fieldNum := int32(wire >> 3) 243 wireType := int(wire & 0x7) 244 if wireType == 4 { 245 return fmt.Errorf("proto: Entry: wiretype end group for non-group") 246 } 247 if fieldNum <= 0 { 248 return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire) 249 } 250 switch fieldNum { 251 case 1: 252 if wireType != 2 { 253 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 254 } 255 var stringLen uint64 256 for shift := uint(0); ; shift += 7 { 257 if shift >= 64 { 258 return ErrIntOverflowNames 259 } 260 if iNdEx >= l { 261 return io.ErrUnexpectedEOF 262 } 263 b := dAtA[iNdEx] 264 iNdEx++ 265 stringLen |= uint64(b&0x7F) << shift 266 if b < 0x80 { 267 break 268 } 269 } 270 intStringLen := int(stringLen) 271 if intStringLen < 0 { 272 return ErrInvalidLengthNames 273 } 274 postIndex := iNdEx + intStringLen 275 if postIndex < 0 { 276 return ErrInvalidLengthNames 277 } 278 if postIndex > l { 279 return io.ErrUnexpectedEOF 280 } 281 m.Name = string(dAtA[iNdEx:postIndex]) 282 iNdEx = postIndex 283 case 2: 284 if wireType != 2 { 285 return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) 286 } 287 var byteLen int 288 for shift := uint(0); ; shift += 7 { 289 if shift >= 64 { 290 return ErrIntOverflowNames 291 } 292 if iNdEx >= l { 293 return io.ErrUnexpectedEOF 294 } 295 b := dAtA[iNdEx] 296 iNdEx++ 297 byteLen |= int(b&0x7F) << shift 298 if b < 0x80 { 299 break 300 } 301 } 302 if byteLen < 0 { 303 return ErrInvalidLengthNames 304 } 305 postIndex := iNdEx + byteLen 306 if postIndex < 0 { 307 return ErrInvalidLengthNames 308 } 309 if postIndex > l { 310 return io.ErrUnexpectedEOF 311 } 312 if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 313 return err 314 } 315 iNdEx = postIndex 316 case 3: 317 if wireType != 2 { 318 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 319 } 320 var stringLen uint64 321 for shift := uint(0); ; shift += 7 { 322 if shift >= 64 { 323 return ErrIntOverflowNames 324 } 325 if iNdEx >= l { 326 return io.ErrUnexpectedEOF 327 } 328 b := dAtA[iNdEx] 329 iNdEx++ 330 stringLen |= uint64(b&0x7F) << shift 331 if b < 0x80 { 332 break 333 } 334 } 335 intStringLen := int(stringLen) 336 if intStringLen < 0 { 337 return ErrInvalidLengthNames 338 } 339 postIndex := iNdEx + intStringLen 340 if postIndex < 0 { 341 return ErrInvalidLengthNames 342 } 343 if postIndex > l { 344 return io.ErrUnexpectedEOF 345 } 346 m.Data = string(dAtA[iNdEx:postIndex]) 347 iNdEx = postIndex 348 case 4: 349 if wireType != 0 { 350 return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType) 351 } 352 m.Expires = 0 353 for shift := uint(0); ; shift += 7 { 354 if shift >= 64 { 355 return ErrIntOverflowNames 356 } 357 if iNdEx >= l { 358 return io.ErrUnexpectedEOF 359 } 360 b := dAtA[iNdEx] 361 iNdEx++ 362 m.Expires |= uint64(b&0x7F) << shift 363 if b < 0x80 { 364 break 365 } 366 } 367 default: 368 iNdEx = preIndex 369 skippy, err := skipNames(dAtA[iNdEx:]) 370 if err != nil { 371 return err 372 } 373 if skippy < 0 { 374 return ErrInvalidLengthNames 375 } 376 if (iNdEx + skippy) < 0 { 377 return ErrInvalidLengthNames 378 } 379 if (iNdEx + skippy) > l { 380 return io.ErrUnexpectedEOF 381 } 382 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 383 iNdEx += skippy 384 } 385 } 386 387 if iNdEx > l { 388 return io.ErrUnexpectedEOF 389 } 390 return nil 391 } 392 func skipNames(dAtA []byte) (n int, err error) { 393 l := len(dAtA) 394 iNdEx := 0 395 for iNdEx < l { 396 var wire uint64 397 for shift := uint(0); ; shift += 7 { 398 if shift >= 64 { 399 return 0, ErrIntOverflowNames 400 } 401 if iNdEx >= l { 402 return 0, io.ErrUnexpectedEOF 403 } 404 b := dAtA[iNdEx] 405 iNdEx++ 406 wire |= (uint64(b) & 0x7F) << shift 407 if b < 0x80 { 408 break 409 } 410 } 411 wireType := int(wire & 0x7) 412 switch wireType { 413 case 0: 414 for shift := uint(0); ; shift += 7 { 415 if shift >= 64 { 416 return 0, ErrIntOverflowNames 417 } 418 if iNdEx >= l { 419 return 0, io.ErrUnexpectedEOF 420 } 421 iNdEx++ 422 if dAtA[iNdEx-1] < 0x80 { 423 break 424 } 425 } 426 return iNdEx, nil 427 case 1: 428 iNdEx += 8 429 return iNdEx, nil 430 case 2: 431 var length int 432 for shift := uint(0); ; shift += 7 { 433 if shift >= 64 { 434 return 0, ErrIntOverflowNames 435 } 436 if iNdEx >= l { 437 return 0, io.ErrUnexpectedEOF 438 } 439 b := dAtA[iNdEx] 440 iNdEx++ 441 length |= (int(b) & 0x7F) << shift 442 if b < 0x80 { 443 break 444 } 445 } 446 if length < 0 { 447 return 0, ErrInvalidLengthNames 448 } 449 iNdEx += length 450 if iNdEx < 0 { 451 return 0, ErrInvalidLengthNames 452 } 453 return iNdEx, nil 454 case 3: 455 for { 456 var innerWire uint64 457 var start int = iNdEx 458 for shift := uint(0); ; shift += 7 { 459 if shift >= 64 { 460 return 0, ErrIntOverflowNames 461 } 462 if iNdEx >= l { 463 return 0, io.ErrUnexpectedEOF 464 } 465 b := dAtA[iNdEx] 466 iNdEx++ 467 innerWire |= (uint64(b) & 0x7F) << shift 468 if b < 0x80 { 469 break 470 } 471 } 472 innerWireType := int(innerWire & 0x7) 473 if innerWireType == 4 { 474 break 475 } 476 next, err := skipNames(dAtA[start:]) 477 if err != nil { 478 return 0, err 479 } 480 iNdEx = start + next 481 if iNdEx < 0 { 482 return 0, ErrInvalidLengthNames 483 } 484 } 485 return iNdEx, nil 486 case 4: 487 return iNdEx, nil 488 case 5: 489 iNdEx += 4 490 return iNdEx, nil 491 default: 492 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 493 } 494 } 495 panic("unreachable") 496 } 497 498 var ( 499 ErrInvalidLengthNames = fmt.Errorf("proto: negative length found during unmarshaling") 500 ErrIntOverflowNames = fmt.Errorf("proto: integer overflow") 501 )