github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/remotelatency/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 Start struct {
    28  }
    29  
    30  func (m *Start) Reset()                    { *m = Start{} }
    31  func (*Start) ProtoMessage()               {}
    32  func (*Start) Descriptor() ([]byte, []int) { return fileDescriptorProtos, []int{0} }
    33  
    34  type Started struct {
    35  }
    36  
    37  func (m *Started) Reset()                    { *m = Started{} }
    38  func (*Started) ProtoMessage()               {}
    39  func (*Started) Descriptor() ([]byte, []int) { return fileDescriptorProtos, []int{1} }
    40  
    41  type Ping struct {
    42  	Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
    43  }
    44  
    45  func (m *Ping) Reset()                    { *m = Ping{} }
    46  func (*Ping) ProtoMessage()               {}
    47  func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptorProtos, []int{2} }
    48  
    49  func init() {
    50  	proto.RegisterType((*Start)(nil), "messages.Start")
    51  	proto.RegisterType((*Started)(nil), "messages.Started")
    52  	proto.RegisterType((*Ping)(nil), "messages.Ping")
    53  }
    54  func (this *Start) Equal(that interface{}) bool {
    55  	if that == nil {
    56  		if this == nil {
    57  			return true
    58  		}
    59  		return false
    60  	}
    61  
    62  	that1, ok := that.(*Start)
    63  	if !ok {
    64  		that2, ok := that.(Start)
    65  		if ok {
    66  			that1 = &that2
    67  		} else {
    68  			return false
    69  		}
    70  	}
    71  	if that1 == nil {
    72  		if this == nil {
    73  			return true
    74  		}
    75  		return false
    76  	} else if this == nil {
    77  		return false
    78  	}
    79  	return true
    80  }
    81  func (this *Started) Equal(that interface{}) bool {
    82  	if that == nil {
    83  		if this == nil {
    84  			return true
    85  		}
    86  		return false
    87  	}
    88  
    89  	that1, ok := that.(*Started)
    90  	if !ok {
    91  		that2, ok := that.(Started)
    92  		if ok {
    93  			that1 = &that2
    94  		} else {
    95  			return false
    96  		}
    97  	}
    98  	if that1 == nil {
    99  		if this == nil {
   100  			return true
   101  		}
   102  		return false
   103  	} else if this == nil {
   104  		return false
   105  	}
   106  	return true
   107  }
   108  func (this *Ping) Equal(that interface{}) bool {
   109  	if that == nil {
   110  		if this == nil {
   111  			return true
   112  		}
   113  		return false
   114  	}
   115  
   116  	that1, ok := that.(*Ping)
   117  	if !ok {
   118  		that2, ok := that.(Ping)
   119  		if ok {
   120  			that1 = &that2
   121  		} else {
   122  			return false
   123  		}
   124  	}
   125  	if that1 == nil {
   126  		if this == nil {
   127  			return true
   128  		}
   129  		return false
   130  	} else if this == nil {
   131  		return false
   132  	}
   133  	if this.Time != that1.Time {
   134  		return false
   135  	}
   136  	return true
   137  }
   138  func (this *Start) GoString() string {
   139  	if this == nil {
   140  		return "nil"
   141  	}
   142  	s := make([]string, 0, 4)
   143  	s = append(s, "&messages.Start{")
   144  	s = append(s, "}")
   145  	return strings.Join(s, "")
   146  }
   147  func (this *Started) GoString() string {
   148  	if this == nil {
   149  		return "nil"
   150  	}
   151  	s := make([]string, 0, 4)
   152  	s = append(s, "&messages.Started{")
   153  	s = append(s, "}")
   154  	return strings.Join(s, "")
   155  }
   156  func (this *Ping) GoString() string {
   157  	if this == nil {
   158  		return "nil"
   159  	}
   160  	s := make([]string, 0, 5)
   161  	s = append(s, "&messages.Ping{")
   162  	s = append(s, "Time: "+fmt.Sprintf("%#v", this.Time)+",\n")
   163  	s = append(s, "}")
   164  	return strings.Join(s, "")
   165  }
   166  func valueToGoStringProtos(v interface{}, typ string) string {
   167  	rv := reflect.ValueOf(v)
   168  	if rv.IsNil() {
   169  		return "nil"
   170  	}
   171  	pv := reflect.Indirect(rv).Interface()
   172  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   173  }
   174  func extensionToGoStringProtos(m github_com_gogo_protobuf_proto.Message) string {
   175  	e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m)
   176  	if e == nil {
   177  		return "nil"
   178  	}
   179  	s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{"
   180  	keys := make([]int, 0, len(e))
   181  	for k := range e {
   182  		keys = append(keys, int(k))
   183  	}
   184  	sort.Ints(keys)
   185  	ss := []string{}
   186  	for _, k := range keys {
   187  		ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
   188  	}
   189  	s += strings.Join(ss, ",") + "})"
   190  	return s
   191  }
   192  func (m *Start) Marshal() (dAtA []byte, err error) {
   193  	size := m.Size()
   194  	dAtA = make([]byte, size)
   195  	n, err := m.MarshalTo(dAtA)
   196  	if err != nil {
   197  		return nil, err
   198  	}
   199  	return dAtA[:n], nil
   200  }
   201  
   202  func (m *Start) MarshalTo(dAtA []byte) (int, error) {
   203  	var i int
   204  	_ = i
   205  	var l int
   206  	_ = l
   207  	return i, nil
   208  }
   209  
   210  func (m *Started) Marshal() (dAtA []byte, err error) {
   211  	size := m.Size()
   212  	dAtA = make([]byte, size)
   213  	n, err := m.MarshalTo(dAtA)
   214  	if err != nil {
   215  		return nil, err
   216  	}
   217  	return dAtA[:n], nil
   218  }
   219  
   220  func (m *Started) MarshalTo(dAtA []byte) (int, error) {
   221  	var i int
   222  	_ = i
   223  	var l int
   224  	_ = l
   225  	return i, nil
   226  }
   227  
   228  func (m *Ping) Marshal() (dAtA []byte, err error) {
   229  	size := m.Size()
   230  	dAtA = make([]byte, size)
   231  	n, err := m.MarshalTo(dAtA)
   232  	if err != nil {
   233  		return nil, err
   234  	}
   235  	return dAtA[:n], nil
   236  }
   237  
   238  func (m *Ping) MarshalTo(dAtA []byte) (int, error) {
   239  	var i int
   240  	_ = i
   241  	var l int
   242  	_ = l
   243  	if m.Time != 0 {
   244  		dAtA[i] = 0x8
   245  		i++
   246  		i = encodeVarintProtos(dAtA, i, uint64(m.Time))
   247  	}
   248  	return i, nil
   249  }
   250  
   251  func encodeFixed64Protos(dAtA []byte, offset int, v uint64) int {
   252  	dAtA[offset] = uint8(v)
   253  	dAtA[offset+1] = uint8(v >> 8)
   254  	dAtA[offset+2] = uint8(v >> 16)
   255  	dAtA[offset+3] = uint8(v >> 24)
   256  	dAtA[offset+4] = uint8(v >> 32)
   257  	dAtA[offset+5] = uint8(v >> 40)
   258  	dAtA[offset+6] = uint8(v >> 48)
   259  	dAtA[offset+7] = uint8(v >> 56)
   260  	return offset + 8
   261  }
   262  func encodeFixed32Protos(dAtA []byte, offset int, v uint32) int {
   263  	dAtA[offset] = uint8(v)
   264  	dAtA[offset+1] = uint8(v >> 8)
   265  	dAtA[offset+2] = uint8(v >> 16)
   266  	dAtA[offset+3] = uint8(v >> 24)
   267  	return offset + 4
   268  }
   269  func encodeVarintProtos(dAtA []byte, offset int, v uint64) int {
   270  	for v >= 1<<7 {
   271  		dAtA[offset] = uint8(v&0x7f | 0x80)
   272  		v >>= 7
   273  		offset++
   274  	}
   275  	dAtA[offset] = uint8(v)
   276  	return offset + 1
   277  }
   278  func (m *Start) Size() (n int) {
   279  	var l int
   280  	_ = l
   281  	return n
   282  }
   283  
   284  func (m *Started) Size() (n int) {
   285  	var l int
   286  	_ = l
   287  	return n
   288  }
   289  
   290  func (m *Ping) Size() (n int) {
   291  	var l int
   292  	_ = l
   293  	if m.Time != 0 {
   294  		n += 1 + sovProtos(uint64(m.Time))
   295  	}
   296  	return n
   297  }
   298  
   299  func sovProtos(x uint64) (n int) {
   300  	for {
   301  		n++
   302  		x >>= 7
   303  		if x == 0 {
   304  			break
   305  		}
   306  	}
   307  	return n
   308  }
   309  func sozProtos(x uint64) (n int) {
   310  	return sovProtos(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   311  }
   312  func (this *Start) String() string {
   313  	if this == nil {
   314  		return "nil"
   315  	}
   316  	s := strings.Join([]string{`&Start{`,
   317  		`}`,
   318  	}, "")
   319  	return s
   320  }
   321  func (this *Started) String() string {
   322  	if this == nil {
   323  		return "nil"
   324  	}
   325  	s := strings.Join([]string{`&Started{`,
   326  		`}`,
   327  	}, "")
   328  	return s
   329  }
   330  func (this *Ping) String() string {
   331  	if this == nil {
   332  		return "nil"
   333  	}
   334  	s := strings.Join([]string{`&Ping{`,
   335  		`Time:` + fmt.Sprintf("%v", this.Time) + `,`,
   336  		`}`,
   337  	}, "")
   338  	return s
   339  }
   340  func valueToStringProtos(v interface{}) string {
   341  	rv := reflect.ValueOf(v)
   342  	if rv.IsNil() {
   343  		return "nil"
   344  	}
   345  	pv := reflect.Indirect(rv).Interface()
   346  	return fmt.Sprintf("*%v", pv)
   347  }
   348  func (m *Start) Unmarshal(dAtA []byte) error {
   349  	l := len(dAtA)
   350  	iNdEx := 0
   351  	for iNdEx < l {
   352  		preIndex := iNdEx
   353  		var wire uint64
   354  		for shift := uint(0); ; shift += 7 {
   355  			if shift >= 64 {
   356  				return ErrIntOverflowProtos
   357  			}
   358  			if iNdEx >= l {
   359  				return io.ErrUnexpectedEOF
   360  			}
   361  			b := dAtA[iNdEx]
   362  			iNdEx++
   363  			wire |= (uint64(b) & 0x7F) << shift
   364  			if b < 0x80 {
   365  				break
   366  			}
   367  		}
   368  		fieldNum := int32(wire >> 3)
   369  		wireType := int(wire & 0x7)
   370  		if wireType == 4 {
   371  			return fmt.Errorf("proto: Start: wiretype end group for non-group")
   372  		}
   373  		if fieldNum <= 0 {
   374  			return fmt.Errorf("proto: Start: illegal tag %d (wire type %d)", fieldNum, wire)
   375  		}
   376  		switch fieldNum {
   377  		default:
   378  			iNdEx = preIndex
   379  			skippy, err := skipProtos(dAtA[iNdEx:])
   380  			if err != nil {
   381  				return err
   382  			}
   383  			if skippy < 0 {
   384  				return ErrInvalidLengthProtos
   385  			}
   386  			if (iNdEx + skippy) > l {
   387  				return io.ErrUnexpectedEOF
   388  			}
   389  			iNdEx += skippy
   390  		}
   391  	}
   392  
   393  	if iNdEx > l {
   394  		return io.ErrUnexpectedEOF
   395  	}
   396  	return nil
   397  }
   398  func (m *Started) Unmarshal(dAtA []byte) error {
   399  	l := len(dAtA)
   400  	iNdEx := 0
   401  	for iNdEx < l {
   402  		preIndex := iNdEx
   403  		var wire uint64
   404  		for shift := uint(0); ; shift += 7 {
   405  			if shift >= 64 {
   406  				return ErrIntOverflowProtos
   407  			}
   408  			if iNdEx >= l {
   409  				return io.ErrUnexpectedEOF
   410  			}
   411  			b := dAtA[iNdEx]
   412  			iNdEx++
   413  			wire |= (uint64(b) & 0x7F) << shift
   414  			if b < 0x80 {
   415  				break
   416  			}
   417  		}
   418  		fieldNum := int32(wire >> 3)
   419  		wireType := int(wire & 0x7)
   420  		if wireType == 4 {
   421  			return fmt.Errorf("proto: Started: wiretype end group for non-group")
   422  		}
   423  		if fieldNum <= 0 {
   424  			return fmt.Errorf("proto: Started: illegal tag %d (wire type %d)", fieldNum, wire)
   425  		}
   426  		switch fieldNum {
   427  		default:
   428  			iNdEx = preIndex
   429  			skippy, err := skipProtos(dAtA[iNdEx:])
   430  			if err != nil {
   431  				return err
   432  			}
   433  			if skippy < 0 {
   434  				return ErrInvalidLengthProtos
   435  			}
   436  			if (iNdEx + skippy) > l {
   437  				return io.ErrUnexpectedEOF
   438  			}
   439  			iNdEx += skippy
   440  		}
   441  	}
   442  
   443  	if iNdEx > l {
   444  		return io.ErrUnexpectedEOF
   445  	}
   446  	return nil
   447  }
   448  func (m *Ping) Unmarshal(dAtA []byte) error {
   449  	l := len(dAtA)
   450  	iNdEx := 0
   451  	for iNdEx < l {
   452  		preIndex := iNdEx
   453  		var wire uint64
   454  		for shift := uint(0); ; shift += 7 {
   455  			if shift >= 64 {
   456  				return ErrIntOverflowProtos
   457  			}
   458  			if iNdEx >= l {
   459  				return io.ErrUnexpectedEOF
   460  			}
   461  			b := dAtA[iNdEx]
   462  			iNdEx++
   463  			wire |= (uint64(b) & 0x7F) << shift
   464  			if b < 0x80 {
   465  				break
   466  			}
   467  		}
   468  		fieldNum := int32(wire >> 3)
   469  		wireType := int(wire & 0x7)
   470  		if wireType == 4 {
   471  			return fmt.Errorf("proto: Ping: wiretype end group for non-group")
   472  		}
   473  		if fieldNum <= 0 {
   474  			return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire)
   475  		}
   476  		switch fieldNum {
   477  		case 1:
   478  			if wireType != 0 {
   479  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
   480  			}
   481  			m.Time = 0
   482  			for shift := uint(0); ; shift += 7 {
   483  				if shift >= 64 {
   484  					return ErrIntOverflowProtos
   485  				}
   486  				if iNdEx >= l {
   487  					return io.ErrUnexpectedEOF
   488  				}
   489  				b := dAtA[iNdEx]
   490  				iNdEx++
   491  				m.Time |= (int64(b) & 0x7F) << shift
   492  				if b < 0x80 {
   493  					break
   494  				}
   495  			}
   496  		default:
   497  			iNdEx = preIndex
   498  			skippy, err := skipProtos(dAtA[iNdEx:])
   499  			if err != nil {
   500  				return err
   501  			}
   502  			if skippy < 0 {
   503  				return ErrInvalidLengthProtos
   504  			}
   505  			if (iNdEx + skippy) > l {
   506  				return io.ErrUnexpectedEOF
   507  			}
   508  			iNdEx += skippy
   509  		}
   510  	}
   511  
   512  	if iNdEx > l {
   513  		return io.ErrUnexpectedEOF
   514  	}
   515  	return nil
   516  }
   517  func skipProtos(dAtA []byte) (n int, err error) {
   518  	l := len(dAtA)
   519  	iNdEx := 0
   520  	for iNdEx < l {
   521  		var wire uint64
   522  		for shift := uint(0); ; shift += 7 {
   523  			if shift >= 64 {
   524  				return 0, ErrIntOverflowProtos
   525  			}
   526  			if iNdEx >= l {
   527  				return 0, io.ErrUnexpectedEOF
   528  			}
   529  			b := dAtA[iNdEx]
   530  			iNdEx++
   531  			wire |= (uint64(b) & 0x7F) << shift
   532  			if b < 0x80 {
   533  				break
   534  			}
   535  		}
   536  		wireType := int(wire & 0x7)
   537  		switch wireType {
   538  		case 0:
   539  			for shift := uint(0); ; shift += 7 {
   540  				if shift >= 64 {
   541  					return 0, ErrIntOverflowProtos
   542  				}
   543  				if iNdEx >= l {
   544  					return 0, io.ErrUnexpectedEOF
   545  				}
   546  				iNdEx++
   547  				if dAtA[iNdEx-1] < 0x80 {
   548  					break
   549  				}
   550  			}
   551  			return iNdEx, nil
   552  		case 1:
   553  			iNdEx += 8
   554  			return iNdEx, nil
   555  		case 2:
   556  			var length int
   557  			for shift := uint(0); ; shift += 7 {
   558  				if shift >= 64 {
   559  					return 0, ErrIntOverflowProtos
   560  				}
   561  				if iNdEx >= l {
   562  					return 0, io.ErrUnexpectedEOF
   563  				}
   564  				b := dAtA[iNdEx]
   565  				iNdEx++
   566  				length |= (int(b) & 0x7F) << shift
   567  				if b < 0x80 {
   568  					break
   569  				}
   570  			}
   571  			iNdEx += length
   572  			if length < 0 {
   573  				return 0, ErrInvalidLengthProtos
   574  			}
   575  			return iNdEx, nil
   576  		case 3:
   577  			for {
   578  				var innerWire uint64
   579  				var start int = iNdEx
   580  				for shift := uint(0); ; shift += 7 {
   581  					if shift >= 64 {
   582  						return 0, ErrIntOverflowProtos
   583  					}
   584  					if iNdEx >= l {
   585  						return 0, io.ErrUnexpectedEOF
   586  					}
   587  					b := dAtA[iNdEx]
   588  					iNdEx++
   589  					innerWire |= (uint64(b) & 0x7F) << shift
   590  					if b < 0x80 {
   591  						break
   592  					}
   593  				}
   594  				innerWireType := int(innerWire & 0x7)
   595  				if innerWireType == 4 {
   596  					break
   597  				}
   598  				next, err := skipProtos(dAtA[start:])
   599  				if err != nil {
   600  					return 0, err
   601  				}
   602  				iNdEx = start + next
   603  			}
   604  			return iNdEx, nil
   605  		case 4:
   606  			return iNdEx, nil
   607  		case 5:
   608  			iNdEx += 4
   609  			return iNdEx, nil
   610  		default:
   611  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   612  		}
   613  	}
   614  	panic("unreachable")
   615  }
   616  
   617  var (
   618  	ErrInvalidLengthProtos = fmt.Errorf("proto: negative length found during unmarshaling")
   619  	ErrIntOverflowProtos   = fmt.Errorf("proto: integer overflow")
   620  )
   621  
   622  func init() { proto.RegisterFile("protos.proto", fileDescriptorProtos) }
   623  
   624  var fileDescriptorProtos = []byte{
   625  	// 180 bytes of a gzipped FileDescriptorProto
   626  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f,
   627  	0xc9, 0x2f, 0xd6, 0x03, 0x53, 0x42, 0x1c, 0xb9, 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0xc5, 0x52,
   628  	0x66, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x8e, 0xc5, 0x95, 0x79,
   629  	0xd9, 0x45, 0xf9, 0x79, 0x9e, 0x21, 0xfa, 0x60, 0x65, 0x89, 0xc9, 0x25, 0xf9, 0x45, 0xba, 0xe9,
   630  	0xf9, 0xfa, 0x60, 0x86, 0x3e, 0xb2, 0x09, 0x4a, 0xec, 0x5c, 0xac, 0xc1, 0x25, 0x89, 0x45, 0x25,
   631  	0x4a, 0x9c, 0x5c, 0xec, 0x60, 0x46, 0x6a, 0x8a, 0x92, 0x14, 0x17, 0x4b, 0x40, 0x66, 0x5e, 0xba,
   632  	0x90, 0x10, 0x17, 0x4b, 0x49, 0x66, 0x6e, 0xaa, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x73, 0x10, 0x98,
   633  	0xed, 0xa4, 0x73, 0xe1, 0xa1, 0x1c, 0xc3, 0x8d, 0x87, 0x72, 0x0c, 0x1f, 0x1e, 0xca, 0x31, 0x36,
   634  	0x3c, 0x92, 0x63, 0x5c, 0xf1, 0x48, 0x8e, 0xf1, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18,
   635  	0x1f, 0x3c, 0x92, 0x63, 0x7c, 0xf1, 0x48, 0x8e, 0xe1, 0xc3, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5,
   636  	0x18, 0x92, 0xd8, 0xc0, 0x96, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xc9, 0x62, 0x70,
   637  	0xb6, 0x00, 0x00, 0x00,
   638  }