github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/remoterouting/messages/messages.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 Ping struct {
    28  	User string `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"`
    29  }
    30  
    31  func (m *Ping) Reset()                    { *m = Ping{} }
    32  func (*Ping) ProtoMessage()               {}
    33  func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptorMessages, []int{0} }
    34  
    35  type Pong struct {
    36  }
    37  
    38  func (m *Pong) Reset()                    { *m = Pong{} }
    39  func (*Pong) ProtoMessage()               {}
    40  func (*Pong) Descriptor() ([]byte, []int) { return fileDescriptorMessages, []int{1} }
    41  
    42  func init() {
    43  	proto.RegisterType((*Ping)(nil), "messages.Ping")
    44  	proto.RegisterType((*Pong)(nil), "messages.Pong")
    45  }
    46  func (this *Ping) 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.(*Ping)
    55  	if !ok {
    56  		that2, ok := that.(Ping)
    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  	if this.User != that1.User {
    72  		return false
    73  	}
    74  	return true
    75  }
    76  func (this *Pong) Equal(that interface{}) bool {
    77  	if that == nil {
    78  		if this == nil {
    79  			return true
    80  		}
    81  		return false
    82  	}
    83  
    84  	that1, ok := that.(*Pong)
    85  	if !ok {
    86  		that2, ok := that.(Pong)
    87  		if ok {
    88  			that1 = &that2
    89  		} else {
    90  			return false
    91  		}
    92  	}
    93  	if that1 == nil {
    94  		if this == nil {
    95  			return true
    96  		}
    97  		return false
    98  	} else if this == nil {
    99  		return false
   100  	}
   101  	return true
   102  }
   103  func (this *Ping) GoString() string {
   104  	if this == nil {
   105  		return "nil"
   106  	}
   107  	s := make([]string, 0, 5)
   108  	s = append(s, "&messages.Ping{")
   109  	s = append(s, "User: "+fmt.Sprintf("%#v", this.User)+",\n")
   110  	s = append(s, "}")
   111  	return strings.Join(s, "")
   112  }
   113  func (this *Pong) GoString() string {
   114  	if this == nil {
   115  		return "nil"
   116  	}
   117  	s := make([]string, 0, 4)
   118  	s = append(s, "&messages.Pong{")
   119  	s = append(s, "}")
   120  	return strings.Join(s, "")
   121  }
   122  func valueToGoStringMessages(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 extensionToGoStringMessages(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 *Ping) 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 *Ping) MarshalTo(dAtA []byte) (int, error) {
   159  	var i int
   160  	_ = i
   161  	var l int
   162  	_ = l
   163  	if len(m.User) > 0 {
   164  		dAtA[i] = 0xa
   165  		i++
   166  		i = encodeVarintMessages(dAtA, i, uint64(len(m.User)))
   167  		i += copy(dAtA[i:], m.User)
   168  	}
   169  	return i, nil
   170  }
   171  
   172  func (m *Pong) Marshal() (dAtA []byte, err error) {
   173  	size := m.Size()
   174  	dAtA = make([]byte, size)
   175  	n, err := m.MarshalTo(dAtA)
   176  	if err != nil {
   177  		return nil, err
   178  	}
   179  	return dAtA[:n], nil
   180  }
   181  
   182  func (m *Pong) MarshalTo(dAtA []byte) (int, error) {
   183  	var i int
   184  	_ = i
   185  	var l int
   186  	_ = l
   187  	return i, nil
   188  }
   189  
   190  func encodeFixed64Messages(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 encodeFixed32Messages(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 encodeVarintMessages(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 *Ping) Size() (n int) {
   218  	var l int
   219  	_ = l
   220  	l = len(m.User)
   221  	if l > 0 {
   222  		n += 1 + l + sovMessages(uint64(l))
   223  	}
   224  	return n
   225  }
   226  
   227  func (m *Pong) Size() (n int) {
   228  	var l int
   229  	_ = l
   230  	return n
   231  }
   232  
   233  func sovMessages(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 sozMessages(x uint64) (n int) {
   244  	return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   245  }
   246  func (this *Ping) String() string {
   247  	if this == nil {
   248  		return "nil"
   249  	}
   250  	s := strings.Join([]string{`&Ping{`,
   251  		`User:` + fmt.Sprintf("%v", this.User) + `,`,
   252  		`}`,
   253  	}, "")
   254  	return s
   255  }
   256  func (this *Pong) String() string {
   257  	if this == nil {
   258  		return "nil"
   259  	}
   260  	s := strings.Join([]string{`&Pong{`,
   261  		`}`,
   262  	}, "")
   263  	return s
   264  }
   265  func valueToStringMessages(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 *Ping) 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 ErrIntOverflowMessages
   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: Ping: wiretype end group for non-group")
   297  		}
   298  		if fieldNum <= 0 {
   299  			return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire)
   300  		}
   301  		switch fieldNum {
   302  		case 1:
   303  			if wireType != 2 {
   304  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
   305  			}
   306  			var stringLen uint64
   307  			for shift := uint(0); ; shift += 7 {
   308  				if shift >= 64 {
   309  					return ErrIntOverflowMessages
   310  				}
   311  				if iNdEx >= l {
   312  					return io.ErrUnexpectedEOF
   313  				}
   314  				b := dAtA[iNdEx]
   315  				iNdEx++
   316  				stringLen |= (uint64(b) & 0x7F) << shift
   317  				if b < 0x80 {
   318  					break
   319  				}
   320  			}
   321  			intStringLen := int(stringLen)
   322  			if intStringLen < 0 {
   323  				return ErrInvalidLengthMessages
   324  			}
   325  			postIndex := iNdEx + intStringLen
   326  			if postIndex > l {
   327  				return io.ErrUnexpectedEOF
   328  			}
   329  			m.User = string(dAtA[iNdEx:postIndex])
   330  			iNdEx = postIndex
   331  		default:
   332  			iNdEx = preIndex
   333  			skippy, err := skipMessages(dAtA[iNdEx:])
   334  			if err != nil {
   335  				return err
   336  			}
   337  			if skippy < 0 {
   338  				return ErrInvalidLengthMessages
   339  			}
   340  			if (iNdEx + skippy) > l {
   341  				return io.ErrUnexpectedEOF
   342  			}
   343  			iNdEx += skippy
   344  		}
   345  	}
   346  
   347  	if iNdEx > l {
   348  		return io.ErrUnexpectedEOF
   349  	}
   350  	return nil
   351  }
   352  func (m *Pong) Unmarshal(dAtA []byte) error {
   353  	l := len(dAtA)
   354  	iNdEx := 0
   355  	for iNdEx < l {
   356  		preIndex := iNdEx
   357  		var wire uint64
   358  		for shift := uint(0); ; shift += 7 {
   359  			if shift >= 64 {
   360  				return ErrIntOverflowMessages
   361  			}
   362  			if iNdEx >= l {
   363  				return io.ErrUnexpectedEOF
   364  			}
   365  			b := dAtA[iNdEx]
   366  			iNdEx++
   367  			wire |= (uint64(b) & 0x7F) << shift
   368  			if b < 0x80 {
   369  				break
   370  			}
   371  		}
   372  		fieldNum := int32(wire >> 3)
   373  		wireType := int(wire & 0x7)
   374  		if wireType == 4 {
   375  			return fmt.Errorf("proto: Pong: wiretype end group for non-group")
   376  		}
   377  		if fieldNum <= 0 {
   378  			return fmt.Errorf("proto: Pong: illegal tag %d (wire type %d)", fieldNum, wire)
   379  		}
   380  		switch fieldNum {
   381  		default:
   382  			iNdEx = preIndex
   383  			skippy, err := skipMessages(dAtA[iNdEx:])
   384  			if err != nil {
   385  				return err
   386  			}
   387  			if skippy < 0 {
   388  				return ErrInvalidLengthMessages
   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 skipMessages(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, ErrIntOverflowMessages
   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, ErrIntOverflowMessages
   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, ErrIntOverflowMessages
   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, ErrInvalidLengthMessages
   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, ErrIntOverflowMessages
   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 := skipMessages(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  	ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling")
   504  	ErrIntOverflowMessages   = fmt.Errorf("proto: integer overflow")
   505  )
   506  
   507  func init() { proto.RegisterFile("messages.proto", fileDescriptorMessages) }
   508  
   509  var fileDescriptorMessages = []byte{
   510  	// 171 bytes of a gzipped FileDescriptorProto
   511  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4d, 0x2d, 0x2e,
   512  	0x4e, 0x4c, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0xcc,
   513  	0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x1d, 0x8b, 0x2b, 0xf3, 0xb2,
   514  	0x8b, 0xf2, 0xf3, 0x3c, 0x43, 0xf4, 0xc1, 0xca, 0x12, 0x93, 0x4b, 0xf2, 0x8b, 0x74, 0xd3, 0xf3,
   515  	0xf5, 0xc1, 0x0c, 0x88, 0x18, 0xd4, 0x04, 0x25, 0x29, 0x2e, 0x96, 0x80, 0xcc, 0xbc, 0x74, 0x21,
   516  	0x21, 0x2e, 0x96, 0xd0, 0xe2, 0xd4, 0x22, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b,
   517  	0x89, 0x8d, 0x8b, 0x25, 0x20, 0x3f, 0x2f, 0xdd, 0x49, 0xe7, 0xc2, 0x43, 0x39, 0x86, 0x1b, 0x0f,
   518  	0xe5, 0x18, 0x3e, 0x3c, 0x94, 0x63, 0x6c, 0x78, 0x24, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x89,
   519  	0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0xf8, 0xe2, 0x91, 0x1c, 0xc3,
   520  	0x87, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x24, 0xb1, 0x81, 0x0d, 0x36, 0x06, 0x04, 0x00,
   521  	0x00, 0xff, 0xff, 0x7e, 0xe1, 0x3f, 0xfc, 0xac, 0x00, 0x00, 0x00,
   522  }