github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/remoteadvertisedaddress/messages/protos.pb.go (about) 1 package messages 2 3 import ( 4 fmt "fmt" 5 _ "github.com/AsynkronIT/protoactor-go/actor" 6 proto "github.com/gogo/protobuf/proto" 7 io "io" 8 math "math" 9 reflect "reflect" 10 strings "strings" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 23 24 type Ping struct { 25 } 26 27 func (m *Ping) Reset() { *m = Ping{} } 28 func (*Ping) ProtoMessage() {} 29 func (*Ping) Descriptor() ([]byte, []int) { 30 return fileDescriptor_5da3cbeb884d181c, []int{0} 31 } 32 func (m *Ping) XXX_Unmarshal(b []byte) error { 33 return m.Unmarshal(b) 34 } 35 func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 36 if deterministic { 37 return xxx_messageInfo_Ping.Marshal(b, m, deterministic) 38 } else { 39 b = b[:cap(b)] 40 n, err := m.MarshalTo(b) 41 if err != nil { 42 return nil, err 43 } 44 return b[:n], nil 45 } 46 } 47 func (m *Ping) XXX_Merge(src proto.Message) { 48 xxx_messageInfo_Ping.Merge(m, src) 49 } 50 func (m *Ping) XXX_Size() int { 51 return m.Size() 52 } 53 func (m *Ping) XXX_DiscardUnknown() { 54 xxx_messageInfo_Ping.DiscardUnknown(m) 55 } 56 57 var xxx_messageInfo_Ping proto.InternalMessageInfo 58 59 type Pong struct { 60 } 61 62 func (m *Pong) Reset() { *m = Pong{} } 63 func (*Pong) ProtoMessage() {} 64 func (*Pong) Descriptor() ([]byte, []int) { 65 return fileDescriptor_5da3cbeb884d181c, []int{1} 66 } 67 func (m *Pong) XXX_Unmarshal(b []byte) error { 68 return m.Unmarshal(b) 69 } 70 func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 71 if deterministic { 72 return xxx_messageInfo_Pong.Marshal(b, m, deterministic) 73 } else { 74 b = b[:cap(b)] 75 n, err := m.MarshalTo(b) 76 if err != nil { 77 return nil, err 78 } 79 return b[:n], nil 80 } 81 } 82 func (m *Pong) XXX_Merge(src proto.Message) { 83 xxx_messageInfo_Pong.Merge(m, src) 84 } 85 func (m *Pong) XXX_Size() int { 86 return m.Size() 87 } 88 func (m *Pong) XXX_DiscardUnknown() { 89 xxx_messageInfo_Pong.DiscardUnknown(m) 90 } 91 92 var xxx_messageInfo_Pong proto.InternalMessageInfo 93 94 func init() { 95 proto.RegisterType((*Ping)(nil), "messages.Ping") 96 proto.RegisterType((*Pong)(nil), "messages.Pong") 97 } 98 99 func init() { proto.RegisterFile("protos.proto", fileDescriptor_5da3cbeb884d181c) } 100 101 var fileDescriptor_5da3cbeb884d181c = []byte{ 102 // 160 bytes of a gzipped FileDescriptorProto 103 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f, 104 0xc9, 0x2f, 0xd6, 0x03, 0x53, 0x42, 0x1c, 0xb9, 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0xc5, 0x52, 105 0x66, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x8e, 0xc5, 0x95, 0x79, 106 0xd9, 0x45, 0xf9, 0x79, 0x9e, 0x21, 0xfa, 0x60, 0x65, 0x89, 0xc9, 0x25, 0xf9, 0x45, 0xba, 0xe9, 107 0xf9, 0xfa, 0x60, 0x86, 0x3e, 0xb2, 0x09, 0x4a, 0x6c, 0x5c, 0x2c, 0x01, 0x99, 0x79, 0xe9, 0x60, 108 0x3a, 0x3f, 0x2f, 0xdd, 0xc9, 0xe4, 0xc2, 0x43, 0x39, 0x86, 0x1b, 0x0f, 0xe5, 0x18, 0x3e, 0x3c, 109 0x94, 0x63, 0x6c, 0x78, 0x24, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x89, 0x47, 0x72, 0x8c, 0x17, 110 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0xf8, 0xe2, 0x91, 0x1c, 0xc3, 0x87, 0x47, 0x72, 0x8c, 111 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x12, 0x1b, 0xd8, 112 0x30, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xcc, 0xdc, 0x1a, 0x9e, 0x00, 0x00, 0x00, 113 } 114 115 func (this *Ping) Equal(that interface{}) bool { 116 if that == nil { 117 return this == nil 118 } 119 120 that1, ok := that.(*Ping) 121 if !ok { 122 that2, ok := that.(Ping) 123 if ok { 124 that1 = &that2 125 } else { 126 return false 127 } 128 } 129 if that1 == nil { 130 return this == nil 131 } else if this == nil { 132 return false 133 } 134 return true 135 } 136 func (this *Pong) Equal(that interface{}) bool { 137 if that == nil { 138 return this == nil 139 } 140 141 that1, ok := that.(*Pong) 142 if !ok { 143 that2, ok := that.(Pong) 144 if ok { 145 that1 = &that2 146 } else { 147 return false 148 } 149 } 150 if that1 == nil { 151 return this == nil 152 } else if this == nil { 153 return false 154 } 155 return true 156 } 157 func (this *Ping) GoString() string { 158 if this == nil { 159 return "nil" 160 } 161 s := make([]string, 0, 4) 162 s = append(s, "&messages.Ping{") 163 s = append(s, "}") 164 return strings.Join(s, "") 165 } 166 func (this *Pong) GoString() string { 167 if this == nil { 168 return "nil" 169 } 170 s := make([]string, 0, 4) 171 s = append(s, "&messages.Pong{") 172 s = append(s, "}") 173 return strings.Join(s, "") 174 } 175 func valueToGoStringProtos(v interface{}, typ string) string { 176 rv := reflect.ValueOf(v) 177 if rv.IsNil() { 178 return "nil" 179 } 180 pv := reflect.Indirect(rv).Interface() 181 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) 182 } 183 func (m *Ping) Marshal() (dAtA []byte, err error) { 184 size := m.Size() 185 dAtA = make([]byte, size) 186 n, err := m.MarshalTo(dAtA) 187 if err != nil { 188 return nil, err 189 } 190 return dAtA[:n], nil 191 } 192 193 func (m *Ping) MarshalTo(dAtA []byte) (int, error) { 194 var i int 195 _ = i 196 var l int 197 _ = l 198 return i, nil 199 } 200 201 func (m *Pong) Marshal() (dAtA []byte, err error) { 202 size := m.Size() 203 dAtA = make([]byte, size) 204 n, err := m.MarshalTo(dAtA) 205 if err != nil { 206 return nil, err 207 } 208 return dAtA[:n], nil 209 } 210 211 func (m *Pong) MarshalTo(dAtA []byte) (int, error) { 212 var i int 213 _ = i 214 var l int 215 _ = l 216 return i, nil 217 } 218 219 func encodeVarintProtos(dAtA []byte, offset int, v uint64) int { 220 for v >= 1<<7 { 221 dAtA[offset] = uint8(v&0x7f | 0x80) 222 v >>= 7 223 offset++ 224 } 225 dAtA[offset] = uint8(v) 226 return offset + 1 227 } 228 func (m *Ping) Size() (n int) { 229 if m == nil { 230 return 0 231 } 232 var l int 233 _ = l 234 return n 235 } 236 237 func (m *Pong) Size() (n int) { 238 if m == nil { 239 return 0 240 } 241 var l int 242 _ = l 243 return n 244 } 245 246 func sovProtos(x uint64) (n int) { 247 for { 248 n++ 249 x >>= 7 250 if x == 0 { 251 break 252 } 253 } 254 return n 255 } 256 func sozProtos(x uint64) (n int) { 257 return sovProtos(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 258 } 259 func (this *Ping) String() string { 260 if this == nil { 261 return "nil" 262 } 263 s := strings.Join([]string{`&Ping{`, 264 `}`, 265 }, "") 266 return s 267 } 268 func (this *Pong) String() string { 269 if this == nil { 270 return "nil" 271 } 272 s := strings.Join([]string{`&Pong{`, 273 `}`, 274 }, "") 275 return s 276 } 277 func valueToStringProtos(v interface{}) string { 278 rv := reflect.ValueOf(v) 279 if rv.IsNil() { 280 return "nil" 281 } 282 pv := reflect.Indirect(rv).Interface() 283 return fmt.Sprintf("*%v", pv) 284 } 285 func (m *Ping) Unmarshal(dAtA []byte) error { 286 l := len(dAtA) 287 iNdEx := 0 288 for iNdEx < l { 289 preIndex := iNdEx 290 var wire uint64 291 for shift := uint(0); ; shift += 7 { 292 if shift >= 64 { 293 return ErrIntOverflowProtos 294 } 295 if iNdEx >= l { 296 return io.ErrUnexpectedEOF 297 } 298 b := dAtA[iNdEx] 299 iNdEx++ 300 wire |= uint64(b&0x7F) << shift 301 if b < 0x80 { 302 break 303 } 304 } 305 fieldNum := int32(wire >> 3) 306 wireType := int(wire & 0x7) 307 if wireType == 4 { 308 return fmt.Errorf("proto: Ping: wiretype end group for non-group") 309 } 310 if fieldNum <= 0 { 311 return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire) 312 } 313 switch fieldNum { 314 default: 315 iNdEx = preIndex 316 skippy, err := skipProtos(dAtA[iNdEx:]) 317 if err != nil { 318 return err 319 } 320 if skippy < 0 { 321 return ErrInvalidLengthProtos 322 } 323 if (iNdEx + skippy) < 0 { 324 return ErrInvalidLengthProtos 325 } 326 if (iNdEx + skippy) > l { 327 return io.ErrUnexpectedEOF 328 } 329 iNdEx += skippy 330 } 331 } 332 333 if iNdEx > l { 334 return io.ErrUnexpectedEOF 335 } 336 return nil 337 } 338 func (m *Pong) Unmarshal(dAtA []byte) error { 339 l := len(dAtA) 340 iNdEx := 0 341 for iNdEx < l { 342 preIndex := iNdEx 343 var wire uint64 344 for shift := uint(0); ; shift += 7 { 345 if shift >= 64 { 346 return ErrIntOverflowProtos 347 } 348 if iNdEx >= l { 349 return io.ErrUnexpectedEOF 350 } 351 b := dAtA[iNdEx] 352 iNdEx++ 353 wire |= uint64(b&0x7F) << shift 354 if b < 0x80 { 355 break 356 } 357 } 358 fieldNum := int32(wire >> 3) 359 wireType := int(wire & 0x7) 360 if wireType == 4 { 361 return fmt.Errorf("proto: Pong: wiretype end group for non-group") 362 } 363 if fieldNum <= 0 { 364 return fmt.Errorf("proto: Pong: illegal tag %d (wire type %d)", fieldNum, wire) 365 } 366 switch fieldNum { 367 default: 368 iNdEx = preIndex 369 skippy, err := skipProtos(dAtA[iNdEx:]) 370 if err != nil { 371 return err 372 } 373 if skippy < 0 { 374 return ErrInvalidLengthProtos 375 } 376 if (iNdEx + skippy) < 0 { 377 return ErrInvalidLengthProtos 378 } 379 if (iNdEx + skippy) > l { 380 return io.ErrUnexpectedEOF 381 } 382 iNdEx += skippy 383 } 384 } 385 386 if iNdEx > l { 387 return io.ErrUnexpectedEOF 388 } 389 return nil 390 } 391 func skipProtos(dAtA []byte) (n int, err error) { 392 l := len(dAtA) 393 iNdEx := 0 394 for iNdEx < l { 395 var wire uint64 396 for shift := uint(0); ; shift += 7 { 397 if shift >= 64 { 398 return 0, ErrIntOverflowProtos 399 } 400 if iNdEx >= l { 401 return 0, io.ErrUnexpectedEOF 402 } 403 b := dAtA[iNdEx] 404 iNdEx++ 405 wire |= (uint64(b) & 0x7F) << shift 406 if b < 0x80 { 407 break 408 } 409 } 410 wireType := int(wire & 0x7) 411 switch wireType { 412 case 0: 413 for shift := uint(0); ; shift += 7 { 414 if shift >= 64 { 415 return 0, ErrIntOverflowProtos 416 } 417 if iNdEx >= l { 418 return 0, io.ErrUnexpectedEOF 419 } 420 iNdEx++ 421 if dAtA[iNdEx-1] < 0x80 { 422 break 423 } 424 } 425 return iNdEx, nil 426 case 1: 427 iNdEx += 8 428 return iNdEx, nil 429 case 2: 430 var length int 431 for shift := uint(0); ; shift += 7 { 432 if shift >= 64 { 433 return 0, ErrIntOverflowProtos 434 } 435 if iNdEx >= l { 436 return 0, io.ErrUnexpectedEOF 437 } 438 b := dAtA[iNdEx] 439 iNdEx++ 440 length |= (int(b) & 0x7F) << shift 441 if b < 0x80 { 442 break 443 } 444 } 445 if length < 0 { 446 return 0, ErrInvalidLengthProtos 447 } 448 iNdEx += length 449 if iNdEx < 0 { 450 return 0, ErrInvalidLengthProtos 451 } 452 return iNdEx, nil 453 case 3: 454 for { 455 var innerWire uint64 456 var start int = iNdEx 457 for shift := uint(0); ; shift += 7 { 458 if shift >= 64 { 459 return 0, ErrIntOverflowProtos 460 } 461 if iNdEx >= l { 462 return 0, io.ErrUnexpectedEOF 463 } 464 b := dAtA[iNdEx] 465 iNdEx++ 466 innerWire |= (uint64(b) & 0x7F) << shift 467 if b < 0x80 { 468 break 469 } 470 } 471 innerWireType := int(innerWire & 0x7) 472 if innerWireType == 4 { 473 break 474 } 475 next, err := skipProtos(dAtA[start:]) 476 if err != nil { 477 return 0, err 478 } 479 iNdEx = start + next 480 if iNdEx < 0 { 481 return 0, ErrInvalidLengthProtos 482 } 483 } 484 return iNdEx, nil 485 case 4: 486 return iNdEx, nil 487 case 5: 488 iNdEx += 4 489 return iNdEx, nil 490 default: 491 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 492 } 493 } 494 panic("unreachable") 495 } 496 497 var ( 498 ErrInvalidLengthProtos = fmt.Errorf("proto: negative length found during unmarshaling") 499 ErrIntOverflowProtos = fmt.Errorf("proto: integer overflow") 500 )