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