github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/cluster/shared/protos.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: protos.proto
     3  
     4  package shared
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import strings "strings"
    11  import reflect "reflect"
    12  
    13  import encoding_binary "encoding/binary"
    14  
    15  import io "io"
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    27  
    28  type Unit struct {
    29  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    30  	XXX_sizecache        int32    `json:"-"`
    31  }
    32  
    33  func (m *Unit) Reset()      { *m = Unit{} }
    34  func (*Unit) ProtoMessage() {}
    35  func (*Unit) Descriptor() ([]byte, []int) {
    36  	return fileDescriptor_protos_606fc989b91b81b7, []int{0}
    37  }
    38  func (m *Unit) XXX_Unmarshal(b []byte) error {
    39  	return m.Unmarshal(b)
    40  }
    41  func (m *Unit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	if deterministic {
    43  		return xxx_messageInfo_Unit.Marshal(b, m, deterministic)
    44  	} else {
    45  		b = b[:cap(b)]
    46  		n, err := m.MarshalTo(b)
    47  		if err != nil {
    48  			return nil, err
    49  		}
    50  		return b[:n], nil
    51  	}
    52  }
    53  func (dst *Unit) XXX_Merge(src proto.Message) {
    54  	xxx_messageInfo_Unit.Merge(dst, src)
    55  }
    56  func (m *Unit) XXX_Size() int {
    57  	return m.Size()
    58  }
    59  func (m *Unit) XXX_DiscardUnknown() {
    60  	xxx_messageInfo_Unit.DiscardUnknown(m)
    61  }
    62  
    63  var xxx_messageInfo_Unit proto.InternalMessageInfo
    64  
    65  type HelloRequest struct {
    66  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    67  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    68  	XXX_sizecache        int32    `json:"-"`
    69  }
    70  
    71  func (m *HelloRequest) Reset()      { *m = HelloRequest{} }
    72  func (*HelloRequest) ProtoMessage() {}
    73  func (*HelloRequest) Descriptor() ([]byte, []int) {
    74  	return fileDescriptor_protos_606fc989b91b81b7, []int{1}
    75  }
    76  func (m *HelloRequest) XXX_Unmarshal(b []byte) error {
    77  	return m.Unmarshal(b)
    78  }
    79  func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    80  	if deterministic {
    81  		return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)
    82  	} else {
    83  		b = b[:cap(b)]
    84  		n, err := m.MarshalTo(b)
    85  		if err != nil {
    86  			return nil, err
    87  		}
    88  		return b[:n], nil
    89  	}
    90  }
    91  func (dst *HelloRequest) XXX_Merge(src proto.Message) {
    92  	xxx_messageInfo_HelloRequest.Merge(dst, src)
    93  }
    94  func (m *HelloRequest) XXX_Size() int {
    95  	return m.Size()
    96  }
    97  func (m *HelloRequest) XXX_DiscardUnknown() {
    98  	xxx_messageInfo_HelloRequest.DiscardUnknown(m)
    99  }
   100  
   101  var xxx_messageInfo_HelloRequest proto.InternalMessageInfo
   102  
   103  func (m *HelloRequest) GetName() string {
   104  	if m != nil {
   105  		return m.Name
   106  	}
   107  	return ""
   108  }
   109  
   110  type HelloResponse struct {
   111  	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
   112  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   113  	XXX_sizecache        int32    `json:"-"`
   114  }
   115  
   116  func (m *HelloResponse) Reset()      { *m = HelloResponse{} }
   117  func (*HelloResponse) ProtoMessage() {}
   118  func (*HelloResponse) Descriptor() ([]byte, []int) {
   119  	return fileDescriptor_protos_606fc989b91b81b7, []int{2}
   120  }
   121  func (m *HelloResponse) XXX_Unmarshal(b []byte) error {
   122  	return m.Unmarshal(b)
   123  }
   124  func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   125  	if deterministic {
   126  		return xxx_messageInfo_HelloResponse.Marshal(b, m, deterministic)
   127  	} else {
   128  		b = b[:cap(b)]
   129  		n, err := m.MarshalTo(b)
   130  		if err != nil {
   131  			return nil, err
   132  		}
   133  		return b[:n], nil
   134  	}
   135  }
   136  func (dst *HelloResponse) XXX_Merge(src proto.Message) {
   137  	xxx_messageInfo_HelloResponse.Merge(dst, src)
   138  }
   139  func (m *HelloResponse) XXX_Size() int {
   140  	return m.Size()
   141  }
   142  func (m *HelloResponse) XXX_DiscardUnknown() {
   143  	xxx_messageInfo_HelloResponse.DiscardUnknown(m)
   144  }
   145  
   146  var xxx_messageInfo_HelloResponse proto.InternalMessageInfo
   147  
   148  func (m *HelloResponse) GetMessage() string {
   149  	if m != nil {
   150  		return m.Message
   151  	}
   152  	return ""
   153  }
   154  
   155  type AddRequest struct {
   156  	A                    float64  `protobuf:"fixed64,1,opt,name=a,proto3" json:"a,omitempty"`
   157  	B                    float64  `protobuf:"fixed64,2,opt,name=b,proto3" json:"b,omitempty"`
   158  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   159  	XXX_sizecache        int32    `json:"-"`
   160  }
   161  
   162  func (m *AddRequest) Reset()      { *m = AddRequest{} }
   163  func (*AddRequest) ProtoMessage() {}
   164  func (*AddRequest) Descriptor() ([]byte, []int) {
   165  	return fileDescriptor_protos_606fc989b91b81b7, []int{3}
   166  }
   167  func (m *AddRequest) XXX_Unmarshal(b []byte) error {
   168  	return m.Unmarshal(b)
   169  }
   170  func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   171  	if deterministic {
   172  		return xxx_messageInfo_AddRequest.Marshal(b, m, deterministic)
   173  	} else {
   174  		b = b[:cap(b)]
   175  		n, err := m.MarshalTo(b)
   176  		if err != nil {
   177  			return nil, err
   178  		}
   179  		return b[:n], nil
   180  	}
   181  }
   182  func (dst *AddRequest) XXX_Merge(src proto.Message) {
   183  	xxx_messageInfo_AddRequest.Merge(dst, src)
   184  }
   185  func (m *AddRequest) XXX_Size() int {
   186  	return m.Size()
   187  }
   188  func (m *AddRequest) XXX_DiscardUnknown() {
   189  	xxx_messageInfo_AddRequest.DiscardUnknown(m)
   190  }
   191  
   192  var xxx_messageInfo_AddRequest proto.InternalMessageInfo
   193  
   194  func (m *AddRequest) GetA() float64 {
   195  	if m != nil {
   196  		return m.A
   197  	}
   198  	return 0
   199  }
   200  
   201  func (m *AddRequest) GetB() float64 {
   202  	if m != nil {
   203  		return m.B
   204  	}
   205  	return 0
   206  }
   207  
   208  type AddResponse struct {
   209  	Result               float64  `protobuf:"fixed64,1,opt,name=result,proto3" json:"result,omitempty"`
   210  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   211  	XXX_sizecache        int32    `json:"-"`
   212  }
   213  
   214  func (m *AddResponse) Reset()      { *m = AddResponse{} }
   215  func (*AddResponse) ProtoMessage() {}
   216  func (*AddResponse) Descriptor() ([]byte, []int) {
   217  	return fileDescriptor_protos_606fc989b91b81b7, []int{4}
   218  }
   219  func (m *AddResponse) XXX_Unmarshal(b []byte) error {
   220  	return m.Unmarshal(b)
   221  }
   222  func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   223  	if deterministic {
   224  		return xxx_messageInfo_AddResponse.Marshal(b, m, deterministic)
   225  	} else {
   226  		b = b[:cap(b)]
   227  		n, err := m.MarshalTo(b)
   228  		if err != nil {
   229  			return nil, err
   230  		}
   231  		return b[:n], nil
   232  	}
   233  }
   234  func (dst *AddResponse) XXX_Merge(src proto.Message) {
   235  	xxx_messageInfo_AddResponse.Merge(dst, src)
   236  }
   237  func (m *AddResponse) XXX_Size() int {
   238  	return m.Size()
   239  }
   240  func (m *AddResponse) XXX_DiscardUnknown() {
   241  	xxx_messageInfo_AddResponse.DiscardUnknown(m)
   242  }
   243  
   244  var xxx_messageInfo_AddResponse proto.InternalMessageInfo
   245  
   246  func (m *AddResponse) GetResult() float64 {
   247  	if m != nil {
   248  		return m.Result
   249  	}
   250  	return 0
   251  }
   252  
   253  func init() {
   254  	proto.RegisterType((*Unit)(nil), "shared.Unit")
   255  	proto.RegisterType((*HelloRequest)(nil), "shared.HelloRequest")
   256  	proto.RegisterType((*HelloResponse)(nil), "shared.HelloResponse")
   257  	proto.RegisterType((*AddRequest)(nil), "shared.AddRequest")
   258  	proto.RegisterType((*AddResponse)(nil), "shared.AddResponse")
   259  }
   260  func (this *Unit) Equal(that interface{}) bool {
   261  	if that == nil {
   262  		return this == nil
   263  	}
   264  
   265  	that1, ok := that.(*Unit)
   266  	if !ok {
   267  		that2, ok := that.(Unit)
   268  		if ok {
   269  			that1 = &that2
   270  		} else {
   271  			return false
   272  		}
   273  	}
   274  	if that1 == nil {
   275  		return this == nil
   276  	} else if this == nil {
   277  		return false
   278  	}
   279  	return true
   280  }
   281  func (this *HelloRequest) Equal(that interface{}) bool {
   282  	if that == nil {
   283  		return this == nil
   284  	}
   285  
   286  	that1, ok := that.(*HelloRequest)
   287  	if !ok {
   288  		that2, ok := that.(HelloRequest)
   289  		if ok {
   290  			that1 = &that2
   291  		} else {
   292  			return false
   293  		}
   294  	}
   295  	if that1 == nil {
   296  		return this == nil
   297  	} else if this == nil {
   298  		return false
   299  	}
   300  	if this.Name != that1.Name {
   301  		return false
   302  	}
   303  	return true
   304  }
   305  func (this *HelloResponse) Equal(that interface{}) bool {
   306  	if that == nil {
   307  		return this == nil
   308  	}
   309  
   310  	that1, ok := that.(*HelloResponse)
   311  	if !ok {
   312  		that2, ok := that.(HelloResponse)
   313  		if ok {
   314  			that1 = &that2
   315  		} else {
   316  			return false
   317  		}
   318  	}
   319  	if that1 == nil {
   320  		return this == nil
   321  	} else if this == nil {
   322  		return false
   323  	}
   324  	if this.Message != that1.Message {
   325  		return false
   326  	}
   327  	return true
   328  }
   329  func (this *AddRequest) Equal(that interface{}) bool {
   330  	if that == nil {
   331  		return this == nil
   332  	}
   333  
   334  	that1, ok := that.(*AddRequest)
   335  	if !ok {
   336  		that2, ok := that.(AddRequest)
   337  		if ok {
   338  			that1 = &that2
   339  		} else {
   340  			return false
   341  		}
   342  	}
   343  	if that1 == nil {
   344  		return this == nil
   345  	} else if this == nil {
   346  		return false
   347  	}
   348  	if this.A != that1.A {
   349  		return false
   350  	}
   351  	if this.B != that1.B {
   352  		return false
   353  	}
   354  	return true
   355  }
   356  func (this *AddResponse) Equal(that interface{}) bool {
   357  	if that == nil {
   358  		return this == nil
   359  	}
   360  
   361  	that1, ok := that.(*AddResponse)
   362  	if !ok {
   363  		that2, ok := that.(AddResponse)
   364  		if ok {
   365  			that1 = &that2
   366  		} else {
   367  			return false
   368  		}
   369  	}
   370  	if that1 == nil {
   371  		return this == nil
   372  	} else if this == nil {
   373  		return false
   374  	}
   375  	if this.Result != that1.Result {
   376  		return false
   377  	}
   378  	return true
   379  }
   380  func (this *Unit) GoString() string {
   381  	if this == nil {
   382  		return "nil"
   383  	}
   384  	s := make([]string, 0, 4)
   385  	s = append(s, "&shared.Unit{")
   386  	s = append(s, "}")
   387  	return strings.Join(s, "")
   388  }
   389  func (this *HelloRequest) GoString() string {
   390  	if this == nil {
   391  		return "nil"
   392  	}
   393  	s := make([]string, 0, 5)
   394  	s = append(s, "&shared.HelloRequest{")
   395  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
   396  	s = append(s, "}")
   397  	return strings.Join(s, "")
   398  }
   399  func (this *HelloResponse) GoString() string {
   400  	if this == nil {
   401  		return "nil"
   402  	}
   403  	s := make([]string, 0, 5)
   404  	s = append(s, "&shared.HelloResponse{")
   405  	s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
   406  	s = append(s, "}")
   407  	return strings.Join(s, "")
   408  }
   409  func (this *AddRequest) GoString() string {
   410  	if this == nil {
   411  		return "nil"
   412  	}
   413  	s := make([]string, 0, 6)
   414  	s = append(s, "&shared.AddRequest{")
   415  	s = append(s, "A: "+fmt.Sprintf("%#v", this.A)+",\n")
   416  	s = append(s, "B: "+fmt.Sprintf("%#v", this.B)+",\n")
   417  	s = append(s, "}")
   418  	return strings.Join(s, "")
   419  }
   420  func (this *AddResponse) GoString() string {
   421  	if this == nil {
   422  		return "nil"
   423  	}
   424  	s := make([]string, 0, 5)
   425  	s = append(s, "&shared.AddResponse{")
   426  	s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n")
   427  	s = append(s, "}")
   428  	return strings.Join(s, "")
   429  }
   430  func valueToGoStringProtos(v interface{}, typ string) string {
   431  	rv := reflect.ValueOf(v)
   432  	if rv.IsNil() {
   433  		return "nil"
   434  	}
   435  	pv := reflect.Indirect(rv).Interface()
   436  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   437  }
   438  func (m *Unit) Marshal() (dAtA []byte, err error) {
   439  	size := m.Size()
   440  	dAtA = make([]byte, size)
   441  	n, err := m.MarshalTo(dAtA)
   442  	if err != nil {
   443  		return nil, err
   444  	}
   445  	return dAtA[:n], nil
   446  }
   447  
   448  func (m *Unit) MarshalTo(dAtA []byte) (int, error) {
   449  	var i int
   450  	_ = i
   451  	var l int
   452  	_ = l
   453  	return i, nil
   454  }
   455  
   456  func (m *HelloRequest) Marshal() (dAtA []byte, err error) {
   457  	size := m.Size()
   458  	dAtA = make([]byte, size)
   459  	n, err := m.MarshalTo(dAtA)
   460  	if err != nil {
   461  		return nil, err
   462  	}
   463  	return dAtA[:n], nil
   464  }
   465  
   466  func (m *HelloRequest) MarshalTo(dAtA []byte) (int, error) {
   467  	var i int
   468  	_ = i
   469  	var l int
   470  	_ = l
   471  	if len(m.Name) > 0 {
   472  		dAtA[i] = 0xa
   473  		i++
   474  		i = encodeVarintProtos(dAtA, i, uint64(len(m.Name)))
   475  		i += copy(dAtA[i:], m.Name)
   476  	}
   477  	return i, nil
   478  }
   479  
   480  func (m *HelloResponse) Marshal() (dAtA []byte, err error) {
   481  	size := m.Size()
   482  	dAtA = make([]byte, size)
   483  	n, err := m.MarshalTo(dAtA)
   484  	if err != nil {
   485  		return nil, err
   486  	}
   487  	return dAtA[:n], nil
   488  }
   489  
   490  func (m *HelloResponse) MarshalTo(dAtA []byte) (int, error) {
   491  	var i int
   492  	_ = i
   493  	var l int
   494  	_ = l
   495  	if len(m.Message) > 0 {
   496  		dAtA[i] = 0xa
   497  		i++
   498  		i = encodeVarintProtos(dAtA, i, uint64(len(m.Message)))
   499  		i += copy(dAtA[i:], m.Message)
   500  	}
   501  	return i, nil
   502  }
   503  
   504  func (m *AddRequest) Marshal() (dAtA []byte, err error) {
   505  	size := m.Size()
   506  	dAtA = make([]byte, size)
   507  	n, err := m.MarshalTo(dAtA)
   508  	if err != nil {
   509  		return nil, err
   510  	}
   511  	return dAtA[:n], nil
   512  }
   513  
   514  func (m *AddRequest) MarshalTo(dAtA []byte) (int, error) {
   515  	var i int
   516  	_ = i
   517  	var l int
   518  	_ = l
   519  	if m.A != 0 {
   520  		dAtA[i] = 0x9
   521  		i++
   522  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.A))))
   523  		i += 8
   524  	}
   525  	if m.B != 0 {
   526  		dAtA[i] = 0x11
   527  		i++
   528  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.B))))
   529  		i += 8
   530  	}
   531  	return i, nil
   532  }
   533  
   534  func (m *AddResponse) Marshal() (dAtA []byte, err error) {
   535  	size := m.Size()
   536  	dAtA = make([]byte, size)
   537  	n, err := m.MarshalTo(dAtA)
   538  	if err != nil {
   539  		return nil, err
   540  	}
   541  	return dAtA[:n], nil
   542  }
   543  
   544  func (m *AddResponse) MarshalTo(dAtA []byte) (int, error) {
   545  	var i int
   546  	_ = i
   547  	var l int
   548  	_ = l
   549  	if m.Result != 0 {
   550  		dAtA[i] = 0x9
   551  		i++
   552  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Result))))
   553  		i += 8
   554  	}
   555  	return i, nil
   556  }
   557  
   558  func encodeVarintProtos(dAtA []byte, offset int, v uint64) int {
   559  	for v >= 1<<7 {
   560  		dAtA[offset] = uint8(v&0x7f | 0x80)
   561  		v >>= 7
   562  		offset++
   563  	}
   564  	dAtA[offset] = uint8(v)
   565  	return offset + 1
   566  }
   567  func (m *Unit) Size() (n int) {
   568  	var l int
   569  	_ = l
   570  	return n
   571  }
   572  
   573  func (m *HelloRequest) Size() (n int) {
   574  	var l int
   575  	_ = l
   576  	l = len(m.Name)
   577  	if l > 0 {
   578  		n += 1 + l + sovProtos(uint64(l))
   579  	}
   580  	return n
   581  }
   582  
   583  func (m *HelloResponse) Size() (n int) {
   584  	var l int
   585  	_ = l
   586  	l = len(m.Message)
   587  	if l > 0 {
   588  		n += 1 + l + sovProtos(uint64(l))
   589  	}
   590  	return n
   591  }
   592  
   593  func (m *AddRequest) Size() (n int) {
   594  	var l int
   595  	_ = l
   596  	if m.A != 0 {
   597  		n += 9
   598  	}
   599  	if m.B != 0 {
   600  		n += 9
   601  	}
   602  	return n
   603  }
   604  
   605  func (m *AddResponse) Size() (n int) {
   606  	var l int
   607  	_ = l
   608  	if m.Result != 0 {
   609  		n += 9
   610  	}
   611  	return n
   612  }
   613  
   614  func sovProtos(x uint64) (n int) {
   615  	for {
   616  		n++
   617  		x >>= 7
   618  		if x == 0 {
   619  			break
   620  		}
   621  	}
   622  	return n
   623  }
   624  func sozProtos(x uint64) (n int) {
   625  	return sovProtos(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   626  }
   627  func (this *Unit) String() string {
   628  	if this == nil {
   629  		return "nil"
   630  	}
   631  	s := strings.Join([]string{`&Unit{`,
   632  		`}`,
   633  	}, "")
   634  	return s
   635  }
   636  func (this *HelloRequest) String() string {
   637  	if this == nil {
   638  		return "nil"
   639  	}
   640  	s := strings.Join([]string{`&HelloRequest{`,
   641  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
   642  		`}`,
   643  	}, "")
   644  	return s
   645  }
   646  func (this *HelloResponse) String() string {
   647  	if this == nil {
   648  		return "nil"
   649  	}
   650  	s := strings.Join([]string{`&HelloResponse{`,
   651  		`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
   652  		`}`,
   653  	}, "")
   654  	return s
   655  }
   656  func (this *AddRequest) String() string {
   657  	if this == nil {
   658  		return "nil"
   659  	}
   660  	s := strings.Join([]string{`&AddRequest{`,
   661  		`A:` + fmt.Sprintf("%v", this.A) + `,`,
   662  		`B:` + fmt.Sprintf("%v", this.B) + `,`,
   663  		`}`,
   664  	}, "")
   665  	return s
   666  }
   667  func (this *AddResponse) String() string {
   668  	if this == nil {
   669  		return "nil"
   670  	}
   671  	s := strings.Join([]string{`&AddResponse{`,
   672  		`Result:` + fmt.Sprintf("%v", this.Result) + `,`,
   673  		`}`,
   674  	}, "")
   675  	return s
   676  }
   677  func valueToStringProtos(v interface{}) string {
   678  	rv := reflect.ValueOf(v)
   679  	if rv.IsNil() {
   680  		return "nil"
   681  	}
   682  	pv := reflect.Indirect(rv).Interface()
   683  	return fmt.Sprintf("*%v", pv)
   684  }
   685  func (m *Unit) Unmarshal(dAtA []byte) error {
   686  	l := len(dAtA)
   687  	iNdEx := 0
   688  	for iNdEx < l {
   689  		preIndex := iNdEx
   690  		var wire uint64
   691  		for shift := uint(0); ; shift += 7 {
   692  			if shift >= 64 {
   693  				return ErrIntOverflowProtos
   694  			}
   695  			if iNdEx >= l {
   696  				return io.ErrUnexpectedEOF
   697  			}
   698  			b := dAtA[iNdEx]
   699  			iNdEx++
   700  			wire |= (uint64(b) & 0x7F) << shift
   701  			if b < 0x80 {
   702  				break
   703  			}
   704  		}
   705  		fieldNum := int32(wire >> 3)
   706  		wireType := int(wire & 0x7)
   707  		if wireType == 4 {
   708  			return fmt.Errorf("proto: Unit: wiretype end group for non-group")
   709  		}
   710  		if fieldNum <= 0 {
   711  			return fmt.Errorf("proto: Unit: illegal tag %d (wire type %d)", fieldNum, wire)
   712  		}
   713  		switch fieldNum {
   714  		default:
   715  			iNdEx = preIndex
   716  			skippy, err := skipProtos(dAtA[iNdEx:])
   717  			if err != nil {
   718  				return err
   719  			}
   720  			if skippy < 0 {
   721  				return ErrInvalidLengthProtos
   722  			}
   723  			if (iNdEx + skippy) > l {
   724  				return io.ErrUnexpectedEOF
   725  			}
   726  			iNdEx += skippy
   727  		}
   728  	}
   729  
   730  	if iNdEx > l {
   731  		return io.ErrUnexpectedEOF
   732  	}
   733  	return nil
   734  }
   735  func (m *HelloRequest) Unmarshal(dAtA []byte) error {
   736  	l := len(dAtA)
   737  	iNdEx := 0
   738  	for iNdEx < l {
   739  		preIndex := iNdEx
   740  		var wire uint64
   741  		for shift := uint(0); ; shift += 7 {
   742  			if shift >= 64 {
   743  				return ErrIntOverflowProtos
   744  			}
   745  			if iNdEx >= l {
   746  				return io.ErrUnexpectedEOF
   747  			}
   748  			b := dAtA[iNdEx]
   749  			iNdEx++
   750  			wire |= (uint64(b) & 0x7F) << shift
   751  			if b < 0x80 {
   752  				break
   753  			}
   754  		}
   755  		fieldNum := int32(wire >> 3)
   756  		wireType := int(wire & 0x7)
   757  		if wireType == 4 {
   758  			return fmt.Errorf("proto: HelloRequest: wiretype end group for non-group")
   759  		}
   760  		if fieldNum <= 0 {
   761  			return fmt.Errorf("proto: HelloRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   762  		}
   763  		switch fieldNum {
   764  		case 1:
   765  			if wireType != 2 {
   766  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   767  			}
   768  			var stringLen uint64
   769  			for shift := uint(0); ; shift += 7 {
   770  				if shift >= 64 {
   771  					return ErrIntOverflowProtos
   772  				}
   773  				if iNdEx >= l {
   774  					return io.ErrUnexpectedEOF
   775  				}
   776  				b := dAtA[iNdEx]
   777  				iNdEx++
   778  				stringLen |= (uint64(b) & 0x7F) << shift
   779  				if b < 0x80 {
   780  					break
   781  				}
   782  			}
   783  			intStringLen := int(stringLen)
   784  			if intStringLen < 0 {
   785  				return ErrInvalidLengthProtos
   786  			}
   787  			postIndex := iNdEx + intStringLen
   788  			if postIndex > l {
   789  				return io.ErrUnexpectedEOF
   790  			}
   791  			m.Name = string(dAtA[iNdEx:postIndex])
   792  			iNdEx = postIndex
   793  		default:
   794  			iNdEx = preIndex
   795  			skippy, err := skipProtos(dAtA[iNdEx:])
   796  			if err != nil {
   797  				return err
   798  			}
   799  			if skippy < 0 {
   800  				return ErrInvalidLengthProtos
   801  			}
   802  			if (iNdEx + skippy) > l {
   803  				return io.ErrUnexpectedEOF
   804  			}
   805  			iNdEx += skippy
   806  		}
   807  	}
   808  
   809  	if iNdEx > l {
   810  		return io.ErrUnexpectedEOF
   811  	}
   812  	return nil
   813  }
   814  func (m *HelloResponse) Unmarshal(dAtA []byte) error {
   815  	l := len(dAtA)
   816  	iNdEx := 0
   817  	for iNdEx < l {
   818  		preIndex := iNdEx
   819  		var wire uint64
   820  		for shift := uint(0); ; shift += 7 {
   821  			if shift >= 64 {
   822  				return ErrIntOverflowProtos
   823  			}
   824  			if iNdEx >= l {
   825  				return io.ErrUnexpectedEOF
   826  			}
   827  			b := dAtA[iNdEx]
   828  			iNdEx++
   829  			wire |= (uint64(b) & 0x7F) << shift
   830  			if b < 0x80 {
   831  				break
   832  			}
   833  		}
   834  		fieldNum := int32(wire >> 3)
   835  		wireType := int(wire & 0x7)
   836  		if wireType == 4 {
   837  			return fmt.Errorf("proto: HelloResponse: wiretype end group for non-group")
   838  		}
   839  		if fieldNum <= 0 {
   840  			return fmt.Errorf("proto: HelloResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   841  		}
   842  		switch fieldNum {
   843  		case 1:
   844  			if wireType != 2 {
   845  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
   846  			}
   847  			var stringLen uint64
   848  			for shift := uint(0); ; shift += 7 {
   849  				if shift >= 64 {
   850  					return ErrIntOverflowProtos
   851  				}
   852  				if iNdEx >= l {
   853  					return io.ErrUnexpectedEOF
   854  				}
   855  				b := dAtA[iNdEx]
   856  				iNdEx++
   857  				stringLen |= (uint64(b) & 0x7F) << shift
   858  				if b < 0x80 {
   859  					break
   860  				}
   861  			}
   862  			intStringLen := int(stringLen)
   863  			if intStringLen < 0 {
   864  				return ErrInvalidLengthProtos
   865  			}
   866  			postIndex := iNdEx + intStringLen
   867  			if postIndex > l {
   868  				return io.ErrUnexpectedEOF
   869  			}
   870  			m.Message = string(dAtA[iNdEx:postIndex])
   871  			iNdEx = postIndex
   872  		default:
   873  			iNdEx = preIndex
   874  			skippy, err := skipProtos(dAtA[iNdEx:])
   875  			if err != nil {
   876  				return err
   877  			}
   878  			if skippy < 0 {
   879  				return ErrInvalidLengthProtos
   880  			}
   881  			if (iNdEx + skippy) > l {
   882  				return io.ErrUnexpectedEOF
   883  			}
   884  			iNdEx += skippy
   885  		}
   886  	}
   887  
   888  	if iNdEx > l {
   889  		return io.ErrUnexpectedEOF
   890  	}
   891  	return nil
   892  }
   893  func (m *AddRequest) Unmarshal(dAtA []byte) error {
   894  	l := len(dAtA)
   895  	iNdEx := 0
   896  	for iNdEx < l {
   897  		preIndex := iNdEx
   898  		var wire uint64
   899  		for shift := uint(0); ; shift += 7 {
   900  			if shift >= 64 {
   901  				return ErrIntOverflowProtos
   902  			}
   903  			if iNdEx >= l {
   904  				return io.ErrUnexpectedEOF
   905  			}
   906  			b := dAtA[iNdEx]
   907  			iNdEx++
   908  			wire |= (uint64(b) & 0x7F) << shift
   909  			if b < 0x80 {
   910  				break
   911  			}
   912  		}
   913  		fieldNum := int32(wire >> 3)
   914  		wireType := int(wire & 0x7)
   915  		if wireType == 4 {
   916  			return fmt.Errorf("proto: AddRequest: wiretype end group for non-group")
   917  		}
   918  		if fieldNum <= 0 {
   919  			return fmt.Errorf("proto: AddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   920  		}
   921  		switch fieldNum {
   922  		case 1:
   923  			if wireType != 1 {
   924  				return fmt.Errorf("proto: wrong wireType = %d for field A", wireType)
   925  			}
   926  			var v uint64
   927  			if (iNdEx + 8) > l {
   928  				return io.ErrUnexpectedEOF
   929  			}
   930  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
   931  			iNdEx += 8
   932  			m.A = float64(math.Float64frombits(v))
   933  		case 2:
   934  			if wireType != 1 {
   935  				return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
   936  			}
   937  			var v uint64
   938  			if (iNdEx + 8) > l {
   939  				return io.ErrUnexpectedEOF
   940  			}
   941  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
   942  			iNdEx += 8
   943  			m.B = float64(math.Float64frombits(v))
   944  		default:
   945  			iNdEx = preIndex
   946  			skippy, err := skipProtos(dAtA[iNdEx:])
   947  			if err != nil {
   948  				return err
   949  			}
   950  			if skippy < 0 {
   951  				return ErrInvalidLengthProtos
   952  			}
   953  			if (iNdEx + skippy) > l {
   954  				return io.ErrUnexpectedEOF
   955  			}
   956  			iNdEx += skippy
   957  		}
   958  	}
   959  
   960  	if iNdEx > l {
   961  		return io.ErrUnexpectedEOF
   962  	}
   963  	return nil
   964  }
   965  func (m *AddResponse) Unmarshal(dAtA []byte) error {
   966  	l := len(dAtA)
   967  	iNdEx := 0
   968  	for iNdEx < l {
   969  		preIndex := iNdEx
   970  		var wire uint64
   971  		for shift := uint(0); ; shift += 7 {
   972  			if shift >= 64 {
   973  				return ErrIntOverflowProtos
   974  			}
   975  			if iNdEx >= l {
   976  				return io.ErrUnexpectedEOF
   977  			}
   978  			b := dAtA[iNdEx]
   979  			iNdEx++
   980  			wire |= (uint64(b) & 0x7F) << shift
   981  			if b < 0x80 {
   982  				break
   983  			}
   984  		}
   985  		fieldNum := int32(wire >> 3)
   986  		wireType := int(wire & 0x7)
   987  		if wireType == 4 {
   988  			return fmt.Errorf("proto: AddResponse: wiretype end group for non-group")
   989  		}
   990  		if fieldNum <= 0 {
   991  			return fmt.Errorf("proto: AddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   992  		}
   993  		switch fieldNum {
   994  		case 1:
   995  			if wireType != 1 {
   996  				return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
   997  			}
   998  			var v uint64
   999  			if (iNdEx + 8) > l {
  1000  				return io.ErrUnexpectedEOF
  1001  			}
  1002  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1003  			iNdEx += 8
  1004  			m.Result = float64(math.Float64frombits(v))
  1005  		default:
  1006  			iNdEx = preIndex
  1007  			skippy, err := skipProtos(dAtA[iNdEx:])
  1008  			if err != nil {
  1009  				return err
  1010  			}
  1011  			if skippy < 0 {
  1012  				return ErrInvalidLengthProtos
  1013  			}
  1014  			if (iNdEx + skippy) > l {
  1015  				return io.ErrUnexpectedEOF
  1016  			}
  1017  			iNdEx += skippy
  1018  		}
  1019  	}
  1020  
  1021  	if iNdEx > l {
  1022  		return io.ErrUnexpectedEOF
  1023  	}
  1024  	return nil
  1025  }
  1026  func skipProtos(dAtA []byte) (n int, err error) {
  1027  	l := len(dAtA)
  1028  	iNdEx := 0
  1029  	for iNdEx < l {
  1030  		var wire uint64
  1031  		for shift := uint(0); ; shift += 7 {
  1032  			if shift >= 64 {
  1033  				return 0, ErrIntOverflowProtos
  1034  			}
  1035  			if iNdEx >= l {
  1036  				return 0, io.ErrUnexpectedEOF
  1037  			}
  1038  			b := dAtA[iNdEx]
  1039  			iNdEx++
  1040  			wire |= (uint64(b) & 0x7F) << shift
  1041  			if b < 0x80 {
  1042  				break
  1043  			}
  1044  		}
  1045  		wireType := int(wire & 0x7)
  1046  		switch wireType {
  1047  		case 0:
  1048  			for shift := uint(0); ; shift += 7 {
  1049  				if shift >= 64 {
  1050  					return 0, ErrIntOverflowProtos
  1051  				}
  1052  				if iNdEx >= l {
  1053  					return 0, io.ErrUnexpectedEOF
  1054  				}
  1055  				iNdEx++
  1056  				if dAtA[iNdEx-1] < 0x80 {
  1057  					break
  1058  				}
  1059  			}
  1060  			return iNdEx, nil
  1061  		case 1:
  1062  			iNdEx += 8
  1063  			return iNdEx, nil
  1064  		case 2:
  1065  			var length int
  1066  			for shift := uint(0); ; shift += 7 {
  1067  				if shift >= 64 {
  1068  					return 0, ErrIntOverflowProtos
  1069  				}
  1070  				if iNdEx >= l {
  1071  					return 0, io.ErrUnexpectedEOF
  1072  				}
  1073  				b := dAtA[iNdEx]
  1074  				iNdEx++
  1075  				length |= (int(b) & 0x7F) << shift
  1076  				if b < 0x80 {
  1077  					break
  1078  				}
  1079  			}
  1080  			iNdEx += length
  1081  			if length < 0 {
  1082  				return 0, ErrInvalidLengthProtos
  1083  			}
  1084  			return iNdEx, nil
  1085  		case 3:
  1086  			for {
  1087  				var innerWire uint64
  1088  				var start int = iNdEx
  1089  				for shift := uint(0); ; shift += 7 {
  1090  					if shift >= 64 {
  1091  						return 0, ErrIntOverflowProtos
  1092  					}
  1093  					if iNdEx >= l {
  1094  						return 0, io.ErrUnexpectedEOF
  1095  					}
  1096  					b := dAtA[iNdEx]
  1097  					iNdEx++
  1098  					innerWire |= (uint64(b) & 0x7F) << shift
  1099  					if b < 0x80 {
  1100  						break
  1101  					}
  1102  				}
  1103  				innerWireType := int(innerWire & 0x7)
  1104  				if innerWireType == 4 {
  1105  					break
  1106  				}
  1107  				next, err := skipProtos(dAtA[start:])
  1108  				if err != nil {
  1109  					return 0, err
  1110  				}
  1111  				iNdEx = start + next
  1112  			}
  1113  			return iNdEx, nil
  1114  		case 4:
  1115  			return iNdEx, nil
  1116  		case 5:
  1117  			iNdEx += 4
  1118  			return iNdEx, nil
  1119  		default:
  1120  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1121  		}
  1122  	}
  1123  	panic("unreachable")
  1124  }
  1125  
  1126  var (
  1127  	ErrInvalidLengthProtos = fmt.Errorf("proto: negative length found during unmarshaling")
  1128  	ErrIntOverflowProtos   = fmt.Errorf("proto: integer overflow")
  1129  )
  1130  
  1131  func init() { proto.RegisterFile("protos.proto", fileDescriptor_protos_606fc989b91b81b7) }
  1132  
  1133  var fileDescriptor_protos_606fc989b91b81b7 = []byte{
  1134  	// 281 bytes of a gzipped FileDescriptorProto
  1135  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f,
  1136  	0xc9, 0x2f, 0xd6, 0x03, 0x53, 0x42, 0x6c, 0xc5, 0x19, 0x89, 0x45, 0xa9, 0x29, 0x4a, 0x6c, 0x5c,
  1137  	0x2c, 0xa1, 0x79, 0x99, 0x25, 0x4a, 0x4a, 0x5c, 0x3c, 0x1e, 0xa9, 0x39, 0x39, 0xf9, 0x41, 0xa9,
  1138  	0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x42, 0x5c, 0x2c, 0x79, 0x89, 0xb9, 0xa9, 0x12, 0x8c, 0x0a,
  1139  	0x8c, 0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x92, 0x26, 0x17, 0x2f, 0x54, 0x4d, 0x71, 0x41, 0x7e, 0x5e,
  1140  	0x71, 0xaa, 0x90, 0x04, 0x17, 0x7b, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x3a, 0x4c, 0x1d, 0x8c, 0xab,
  1141  	0xa4, 0xc1, 0xc5, 0xe5, 0x98, 0x92, 0x02, 0x33, 0x8c, 0x87, 0x8b, 0x31, 0x11, 0xac, 0x82, 0x31,
  1142  	0x88, 0x31, 0x11, 0xc4, 0x4b, 0x92, 0x60, 0x82, 0xf0, 0x92, 0x94, 0x54, 0xb9, 0xb8, 0xc1, 0x2a,
  1143  	0xa1, 0x46, 0x8a, 0x71, 0xb1, 0x15, 0xa5, 0x16, 0x97, 0xe6, 0x94, 0x40, 0xd5, 0x43, 0x79, 0x46,
  1144  	0x4b, 0x18, 0xb9, 0x58, 0xc1, 0x96, 0x0b, 0x59, 0x72, 0x71, 0x04, 0x27, 0x56, 0x42, 0xd8, 0x22,
  1145  	0x7a, 0x10, 0x6f, 0xe8, 0x21, 0xbb, 0x5d, 0x4a, 0x14, 0x4d, 0x14, 0x62, 0xb4, 0x12, 0x83, 0x90,
  1146  	0x01, 0x17, 0xb3, 0x63, 0x4a, 0x8a, 0x90, 0x10, 0x4c, 0x1e, 0xe1, 0x44, 0x29, 0x61, 0x14, 0x31,
  1147  	0xb8, 0x0e, 0x3d, 0x2e, 0x8e, 0xb0, 0xfc, 0xcc, 0x14, 0xb7, 0xd2, 0xbc, 0x64, 0xac, 0xda, 0x78,
  1148  	0x60, 0x62, 0xe0, 0x40, 0x64, 0x70, 0xd2, 0xb9, 0xf0, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86,
  1149  	0x0f, 0x0f, 0xe5, 0x18, 0x1b, 0x1e, 0xc9, 0x31, 0xae, 0x78, 0x24, 0xc7, 0x78, 0xe2, 0x91, 0x1c,
  1150  	0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xbe, 0x78, 0x24, 0xc7, 0xf0, 0xe1, 0x91,
  1151  	0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x49, 0x6c, 0xe0, 0xb8, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff,
  1152  	0xff, 0x57, 0x96, 0x14, 0x9e, 0x9b, 0x01, 0x00, 0x00,
  1153  }