github.com/pachyderm/pachyderm@v1.13.4/src/server/pkg/cache/groupcachepb/groupcache.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/pkg/cache/groupcachepb/groupcache.proto
     3  
     4  package groupcachepb
     5  
     6  import (
     7  	context "context"
     8  	encoding_binary "encoding/binary"
     9  	fmt "fmt"
    10  	github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	io "io"
    16  	math "math"
    17  	math_bits "math/bits"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    30  
    31  type GetRequest struct {
    32  	Group                *string  `protobuf:"bytes,1,req,name=group" json:"group,omitempty"`
    33  	Key                  *string  `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
    34  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    35  	XXX_unrecognized     []byte   `json:"-"`
    36  	XXX_sizecache        int32    `json:"-"`
    37  }
    38  
    39  func (m *GetRequest) Reset()         { *m = GetRequest{} }
    40  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
    41  func (*GetRequest) ProtoMessage()    {}
    42  func (*GetRequest) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_eb7cb1df297b6970, []int{0}
    44  }
    45  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *GetRequest) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_GetRequest.Merge(m, src)
    62  }
    63  func (m *GetRequest) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *GetRequest) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
    71  
    72  func (m *GetRequest) GetGroup() string {
    73  	if m != nil && m.Group != nil {
    74  		return *m.Group
    75  	}
    76  	return ""
    77  }
    78  
    79  func (m *GetRequest) GetKey() string {
    80  	if m != nil && m.Key != nil {
    81  		return *m.Key
    82  	}
    83  	return ""
    84  }
    85  
    86  type GetResponse struct {
    87  	Value                []byte   `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
    88  	MinuteQps            *float64 `protobuf:"fixed64,2,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"`
    89  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    90  	XXX_unrecognized     []byte   `json:"-"`
    91  	XXX_sizecache        int32    `json:"-"`
    92  }
    93  
    94  func (m *GetResponse) Reset()         { *m = GetResponse{} }
    95  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
    96  func (*GetResponse) ProtoMessage()    {}
    97  func (*GetResponse) Descriptor() ([]byte, []int) {
    98  	return fileDescriptor_eb7cb1df297b6970, []int{1}
    99  }
   100  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
   101  	return m.Unmarshal(b)
   102  }
   103  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   104  	if deterministic {
   105  		return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
   106  	} else {
   107  		b = b[:cap(b)]
   108  		n, err := m.MarshalToSizedBuffer(b)
   109  		if err != nil {
   110  			return nil, err
   111  		}
   112  		return b[:n], nil
   113  	}
   114  }
   115  func (m *GetResponse) XXX_Merge(src proto.Message) {
   116  	xxx_messageInfo_GetResponse.Merge(m, src)
   117  }
   118  func (m *GetResponse) XXX_Size() int {
   119  	return m.Size()
   120  }
   121  func (m *GetResponse) XXX_DiscardUnknown() {
   122  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   123  }
   124  
   125  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   126  
   127  func (m *GetResponse) GetValue() []byte {
   128  	if m != nil {
   129  		return m.Value
   130  	}
   131  	return nil
   132  }
   133  
   134  func (m *GetResponse) GetMinuteQps() float64 {
   135  	if m != nil && m.MinuteQps != nil {
   136  		return *m.MinuteQps
   137  	}
   138  	return 0
   139  }
   140  
   141  func init() {
   142  	proto.RegisterType((*GetRequest)(nil), "groupcachepb.GetRequest")
   143  	proto.RegisterType((*GetResponse)(nil), "groupcachepb.GetResponse")
   144  }
   145  
   146  func init() {
   147  	proto.RegisterFile("server/pkg/cache/groupcachepb/groupcache.proto", fileDescriptor_eb7cb1df297b6970)
   148  }
   149  
   150  var fileDescriptor_eb7cb1df297b6970 = []byte{
   151  	// 238 bytes of a gzipped FileDescriptorProto
   152  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2b, 0x4e, 0x2d, 0x2a,
   153  	0x4b, 0x2d, 0xd2, 0x2f, 0xc8, 0x4e, 0xd7, 0x4f, 0x4e, 0x4c, 0xce, 0x48, 0xd5, 0x4f, 0x2f, 0xca,
   154  	0x2f, 0x2d, 0x00, 0x33, 0x0b, 0x92, 0x90, 0x38, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x3c,
   155  	0xc8, 0xd2, 0x4a, 0x26, 0x5c, 0x5c, 0xee, 0xa9, 0x25, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25,
   156  	0x42, 0x22, 0x5c, 0xac, 0x60, 0x59, 0x09, 0x46, 0x05, 0x26, 0x0d, 0xce, 0x20, 0x08, 0x47, 0x48,
   157  	0x80, 0x8b, 0x39, 0x3b, 0xb5, 0x52, 0x82, 0x09, 0x2c, 0x06, 0x62, 0x2a, 0x39, 0x71, 0x71, 0x83,
   158  	0x75, 0x15, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x82, 0xb4, 0x95, 0x25, 0xe6, 0x94, 0xa6, 0x4a, 0x30,
   159  	0x2a, 0x30, 0x6a, 0xf0, 0x04, 0x41, 0x38, 0x42, 0xb2, 0x5c, 0x5c, 0xb9, 0x99, 0x79, 0xa5, 0x25,
   160  	0xa9, 0xf1, 0x85, 0x05, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x8c, 0x41, 0x9c, 0x10, 0x91, 0xc0,
   161  	0x82, 0x62, 0x23, 0x2f, 0x2e, 0x2e, 0x77, 0x90, 0xf1, 0xce, 0x20, 0x97, 0x08, 0xd9, 0x70, 0x31,
   162  	0xbb, 0xa7, 0x96, 0x08, 0x49, 0xe8, 0x21, 0xbb, 0x4e, 0x0f, 0xe1, 0x34, 0x29, 0x49, 0x2c, 0x32,
   163  	0x10, 0xeb, 0x95, 0x18, 0x9c, 0xfc, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1,
   164  	0x23, 0x39, 0xc6, 0x28, 0x87, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd,
   165  	0x82, 0xc4, 0xe4, 0x8c, 0xca, 0x94, 0xd4, 0x22, 0x64, 0x56, 0x71, 0x51, 0xb2, 0x3e, 0xde, 0x40,
   166  	0x03, 0x04, 0x00, 0x00, 0xff, 0xff, 0x24, 0xfe, 0xc7, 0x07, 0x54, 0x01, 0x00, 0x00,
   167  }
   168  
   169  // Reference imports to suppress errors if they are not otherwise used.
   170  var _ context.Context
   171  var _ grpc.ClientConn
   172  
   173  // This is a compile-time assertion to ensure that this generated file
   174  // is compatible with the grpc package it is being compiled against.
   175  const _ = grpc.SupportPackageIsVersion4
   176  
   177  // GroupCacheClient is the client API for GroupCache service.
   178  //
   179  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   180  type GroupCacheClient interface {
   181  	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
   182  }
   183  
   184  type groupCacheClient struct {
   185  	cc *grpc.ClientConn
   186  }
   187  
   188  func NewGroupCacheClient(cc *grpc.ClientConn) GroupCacheClient {
   189  	return &groupCacheClient{cc}
   190  }
   191  
   192  func (c *groupCacheClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
   193  	out := new(GetResponse)
   194  	err := c.cc.Invoke(ctx, "/groupcachepb.GroupCache/Get", in, out, opts...)
   195  	if err != nil {
   196  		return nil, err
   197  	}
   198  	return out, nil
   199  }
   200  
   201  // GroupCacheServer is the server API for GroupCache service.
   202  type GroupCacheServer interface {
   203  	Get(context.Context, *GetRequest) (*GetResponse, error)
   204  }
   205  
   206  // UnimplementedGroupCacheServer can be embedded to have forward compatible implementations.
   207  type UnimplementedGroupCacheServer struct {
   208  }
   209  
   210  func (*UnimplementedGroupCacheServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) {
   211  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   212  }
   213  
   214  func RegisterGroupCacheServer(s *grpc.Server, srv GroupCacheServer) {
   215  	s.RegisterService(&_GroupCache_serviceDesc, srv)
   216  }
   217  
   218  func _GroupCache_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   219  	in := new(GetRequest)
   220  	if err := dec(in); err != nil {
   221  		return nil, err
   222  	}
   223  	if interceptor == nil {
   224  		return srv.(GroupCacheServer).Get(ctx, in)
   225  	}
   226  	info := &grpc.UnaryServerInfo{
   227  		Server:     srv,
   228  		FullMethod: "/groupcachepb.GroupCache/Get",
   229  	}
   230  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   231  		return srv.(GroupCacheServer).Get(ctx, req.(*GetRequest))
   232  	}
   233  	return interceptor(ctx, in, info, handler)
   234  }
   235  
   236  var _GroupCache_serviceDesc = grpc.ServiceDesc{
   237  	ServiceName: "groupcachepb.GroupCache",
   238  	HandlerType: (*GroupCacheServer)(nil),
   239  	Methods: []grpc.MethodDesc{
   240  		{
   241  			MethodName: "Get",
   242  			Handler:    _GroupCache_Get_Handler,
   243  		},
   244  	},
   245  	Streams:  []grpc.StreamDesc{},
   246  	Metadata: "server/pkg/cache/groupcachepb/groupcache.proto",
   247  }
   248  
   249  func (m *GetRequest) Marshal() (dAtA []byte, err error) {
   250  	size := m.Size()
   251  	dAtA = make([]byte, size)
   252  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   253  	if err != nil {
   254  		return nil, err
   255  	}
   256  	return dAtA[:n], nil
   257  }
   258  
   259  func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
   260  	size := m.Size()
   261  	return m.MarshalToSizedBuffer(dAtA[:size])
   262  }
   263  
   264  func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   265  	i := len(dAtA)
   266  	_ = i
   267  	var l int
   268  	_ = l
   269  	if m.XXX_unrecognized != nil {
   270  		i -= len(m.XXX_unrecognized)
   271  		copy(dAtA[i:], m.XXX_unrecognized)
   272  	}
   273  	if m.Key == nil {
   274  		return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("key")
   275  	} else {
   276  		i -= len(*m.Key)
   277  		copy(dAtA[i:], *m.Key)
   278  		i = encodeVarintGroupcache(dAtA, i, uint64(len(*m.Key)))
   279  		i--
   280  		dAtA[i] = 0x12
   281  	}
   282  	if m.Group == nil {
   283  		return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("group")
   284  	} else {
   285  		i -= len(*m.Group)
   286  		copy(dAtA[i:], *m.Group)
   287  		i = encodeVarintGroupcache(dAtA, i, uint64(len(*m.Group)))
   288  		i--
   289  		dAtA[i] = 0xa
   290  	}
   291  	return len(dAtA) - i, nil
   292  }
   293  
   294  func (m *GetResponse) Marshal() (dAtA []byte, err error) {
   295  	size := m.Size()
   296  	dAtA = make([]byte, size)
   297  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   298  	if err != nil {
   299  		return nil, err
   300  	}
   301  	return dAtA[:n], nil
   302  }
   303  
   304  func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
   305  	size := m.Size()
   306  	return m.MarshalToSizedBuffer(dAtA[:size])
   307  }
   308  
   309  func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   310  	i := len(dAtA)
   311  	_ = i
   312  	var l int
   313  	_ = l
   314  	if m.XXX_unrecognized != nil {
   315  		i -= len(m.XXX_unrecognized)
   316  		copy(dAtA[i:], m.XXX_unrecognized)
   317  	}
   318  	if m.MinuteQps != nil {
   319  		i -= 8
   320  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.MinuteQps))))
   321  		i--
   322  		dAtA[i] = 0x11
   323  	}
   324  	if m.Value != nil {
   325  		i -= len(m.Value)
   326  		copy(dAtA[i:], m.Value)
   327  		i = encodeVarintGroupcache(dAtA, i, uint64(len(m.Value)))
   328  		i--
   329  		dAtA[i] = 0xa
   330  	}
   331  	return len(dAtA) - i, nil
   332  }
   333  
   334  func encodeVarintGroupcache(dAtA []byte, offset int, v uint64) int {
   335  	offset -= sovGroupcache(v)
   336  	base := offset
   337  	for v >= 1<<7 {
   338  		dAtA[offset] = uint8(v&0x7f | 0x80)
   339  		v >>= 7
   340  		offset++
   341  	}
   342  	dAtA[offset] = uint8(v)
   343  	return base
   344  }
   345  func (m *GetRequest) Size() (n int) {
   346  	if m == nil {
   347  		return 0
   348  	}
   349  	var l int
   350  	_ = l
   351  	if m.Group != nil {
   352  		l = len(*m.Group)
   353  		n += 1 + l + sovGroupcache(uint64(l))
   354  	}
   355  	if m.Key != nil {
   356  		l = len(*m.Key)
   357  		n += 1 + l + sovGroupcache(uint64(l))
   358  	}
   359  	if m.XXX_unrecognized != nil {
   360  		n += len(m.XXX_unrecognized)
   361  	}
   362  	return n
   363  }
   364  
   365  func (m *GetResponse) Size() (n int) {
   366  	if m == nil {
   367  		return 0
   368  	}
   369  	var l int
   370  	_ = l
   371  	if m.Value != nil {
   372  		l = len(m.Value)
   373  		n += 1 + l + sovGroupcache(uint64(l))
   374  	}
   375  	if m.MinuteQps != nil {
   376  		n += 9
   377  	}
   378  	if m.XXX_unrecognized != nil {
   379  		n += len(m.XXX_unrecognized)
   380  	}
   381  	return n
   382  }
   383  
   384  func sovGroupcache(x uint64) (n int) {
   385  	return (math_bits.Len64(x|1) + 6) / 7
   386  }
   387  func sozGroupcache(x uint64) (n int) {
   388  	return sovGroupcache(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   389  }
   390  func (m *GetRequest) Unmarshal(dAtA []byte) error {
   391  	var hasFields [1]uint64
   392  	l := len(dAtA)
   393  	iNdEx := 0
   394  	for iNdEx < l {
   395  		preIndex := iNdEx
   396  		var wire uint64
   397  		for shift := uint(0); ; shift += 7 {
   398  			if shift >= 64 {
   399  				return ErrIntOverflowGroupcache
   400  			}
   401  			if iNdEx >= l {
   402  				return io.ErrUnexpectedEOF
   403  			}
   404  			b := dAtA[iNdEx]
   405  			iNdEx++
   406  			wire |= uint64(b&0x7F) << shift
   407  			if b < 0x80 {
   408  				break
   409  			}
   410  		}
   411  		fieldNum := int32(wire >> 3)
   412  		wireType := int(wire & 0x7)
   413  		if wireType == 4 {
   414  			return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
   415  		}
   416  		if fieldNum <= 0 {
   417  			return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   418  		}
   419  		switch fieldNum {
   420  		case 1:
   421  			if wireType != 2 {
   422  				return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
   423  			}
   424  			var stringLen uint64
   425  			for shift := uint(0); ; shift += 7 {
   426  				if shift >= 64 {
   427  					return ErrIntOverflowGroupcache
   428  				}
   429  				if iNdEx >= l {
   430  					return io.ErrUnexpectedEOF
   431  				}
   432  				b := dAtA[iNdEx]
   433  				iNdEx++
   434  				stringLen |= uint64(b&0x7F) << shift
   435  				if b < 0x80 {
   436  					break
   437  				}
   438  			}
   439  			intStringLen := int(stringLen)
   440  			if intStringLen < 0 {
   441  				return ErrInvalidLengthGroupcache
   442  			}
   443  			postIndex := iNdEx + intStringLen
   444  			if postIndex < 0 {
   445  				return ErrInvalidLengthGroupcache
   446  			}
   447  			if postIndex > l {
   448  				return io.ErrUnexpectedEOF
   449  			}
   450  			s := string(dAtA[iNdEx:postIndex])
   451  			m.Group = &s
   452  			iNdEx = postIndex
   453  			hasFields[0] |= uint64(0x00000001)
   454  		case 2:
   455  			if wireType != 2 {
   456  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
   457  			}
   458  			var stringLen uint64
   459  			for shift := uint(0); ; shift += 7 {
   460  				if shift >= 64 {
   461  					return ErrIntOverflowGroupcache
   462  				}
   463  				if iNdEx >= l {
   464  					return io.ErrUnexpectedEOF
   465  				}
   466  				b := dAtA[iNdEx]
   467  				iNdEx++
   468  				stringLen |= uint64(b&0x7F) << shift
   469  				if b < 0x80 {
   470  					break
   471  				}
   472  			}
   473  			intStringLen := int(stringLen)
   474  			if intStringLen < 0 {
   475  				return ErrInvalidLengthGroupcache
   476  			}
   477  			postIndex := iNdEx + intStringLen
   478  			if postIndex < 0 {
   479  				return ErrInvalidLengthGroupcache
   480  			}
   481  			if postIndex > l {
   482  				return io.ErrUnexpectedEOF
   483  			}
   484  			s := string(dAtA[iNdEx:postIndex])
   485  			m.Key = &s
   486  			iNdEx = postIndex
   487  			hasFields[0] |= uint64(0x00000002)
   488  		default:
   489  			iNdEx = preIndex
   490  			skippy, err := skipGroupcache(dAtA[iNdEx:])
   491  			if err != nil {
   492  				return err
   493  			}
   494  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   495  				return ErrInvalidLengthGroupcache
   496  			}
   497  			if (iNdEx + skippy) > l {
   498  				return io.ErrUnexpectedEOF
   499  			}
   500  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   501  			iNdEx += skippy
   502  		}
   503  	}
   504  	if hasFields[0]&uint64(0x00000001) == 0 {
   505  		return github_com_gogo_protobuf_proto.NewRequiredNotSetError("group")
   506  	}
   507  	if hasFields[0]&uint64(0x00000002) == 0 {
   508  		return github_com_gogo_protobuf_proto.NewRequiredNotSetError("key")
   509  	}
   510  
   511  	if iNdEx > l {
   512  		return io.ErrUnexpectedEOF
   513  	}
   514  	return nil
   515  }
   516  func (m *GetResponse) Unmarshal(dAtA []byte) error {
   517  	l := len(dAtA)
   518  	iNdEx := 0
   519  	for iNdEx < l {
   520  		preIndex := iNdEx
   521  		var wire uint64
   522  		for shift := uint(0); ; shift += 7 {
   523  			if shift >= 64 {
   524  				return ErrIntOverflowGroupcache
   525  			}
   526  			if iNdEx >= l {
   527  				return io.ErrUnexpectedEOF
   528  			}
   529  			b := dAtA[iNdEx]
   530  			iNdEx++
   531  			wire |= uint64(b&0x7F) << shift
   532  			if b < 0x80 {
   533  				break
   534  			}
   535  		}
   536  		fieldNum := int32(wire >> 3)
   537  		wireType := int(wire & 0x7)
   538  		if wireType == 4 {
   539  			return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
   540  		}
   541  		if fieldNum <= 0 {
   542  			return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   543  		}
   544  		switch fieldNum {
   545  		case 1:
   546  			if wireType != 2 {
   547  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
   548  			}
   549  			var byteLen int
   550  			for shift := uint(0); ; shift += 7 {
   551  				if shift >= 64 {
   552  					return ErrIntOverflowGroupcache
   553  				}
   554  				if iNdEx >= l {
   555  					return io.ErrUnexpectedEOF
   556  				}
   557  				b := dAtA[iNdEx]
   558  				iNdEx++
   559  				byteLen |= int(b&0x7F) << shift
   560  				if b < 0x80 {
   561  					break
   562  				}
   563  			}
   564  			if byteLen < 0 {
   565  				return ErrInvalidLengthGroupcache
   566  			}
   567  			postIndex := iNdEx + byteLen
   568  			if postIndex < 0 {
   569  				return ErrInvalidLengthGroupcache
   570  			}
   571  			if postIndex > l {
   572  				return io.ErrUnexpectedEOF
   573  			}
   574  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
   575  			if m.Value == nil {
   576  				m.Value = []byte{}
   577  			}
   578  			iNdEx = postIndex
   579  		case 2:
   580  			if wireType != 1 {
   581  				return fmt.Errorf("proto: wrong wireType = %d for field MinuteQps", wireType)
   582  			}
   583  			var v uint64
   584  			if (iNdEx + 8) > l {
   585  				return io.ErrUnexpectedEOF
   586  			}
   587  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
   588  			iNdEx += 8
   589  			v2 := float64(math.Float64frombits(v))
   590  			m.MinuteQps = &v2
   591  		default:
   592  			iNdEx = preIndex
   593  			skippy, err := skipGroupcache(dAtA[iNdEx:])
   594  			if err != nil {
   595  				return err
   596  			}
   597  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   598  				return ErrInvalidLengthGroupcache
   599  			}
   600  			if (iNdEx + skippy) > l {
   601  				return io.ErrUnexpectedEOF
   602  			}
   603  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   604  			iNdEx += skippy
   605  		}
   606  	}
   607  
   608  	if iNdEx > l {
   609  		return io.ErrUnexpectedEOF
   610  	}
   611  	return nil
   612  }
   613  func skipGroupcache(dAtA []byte) (n int, err error) {
   614  	l := len(dAtA)
   615  	iNdEx := 0
   616  	depth := 0
   617  	for iNdEx < l {
   618  		var wire uint64
   619  		for shift := uint(0); ; shift += 7 {
   620  			if shift >= 64 {
   621  				return 0, ErrIntOverflowGroupcache
   622  			}
   623  			if iNdEx >= l {
   624  				return 0, io.ErrUnexpectedEOF
   625  			}
   626  			b := dAtA[iNdEx]
   627  			iNdEx++
   628  			wire |= (uint64(b) & 0x7F) << shift
   629  			if b < 0x80 {
   630  				break
   631  			}
   632  		}
   633  		wireType := int(wire & 0x7)
   634  		switch wireType {
   635  		case 0:
   636  			for shift := uint(0); ; shift += 7 {
   637  				if shift >= 64 {
   638  					return 0, ErrIntOverflowGroupcache
   639  				}
   640  				if iNdEx >= l {
   641  					return 0, io.ErrUnexpectedEOF
   642  				}
   643  				iNdEx++
   644  				if dAtA[iNdEx-1] < 0x80 {
   645  					break
   646  				}
   647  			}
   648  		case 1:
   649  			iNdEx += 8
   650  		case 2:
   651  			var length int
   652  			for shift := uint(0); ; shift += 7 {
   653  				if shift >= 64 {
   654  					return 0, ErrIntOverflowGroupcache
   655  				}
   656  				if iNdEx >= l {
   657  					return 0, io.ErrUnexpectedEOF
   658  				}
   659  				b := dAtA[iNdEx]
   660  				iNdEx++
   661  				length |= (int(b) & 0x7F) << shift
   662  				if b < 0x80 {
   663  					break
   664  				}
   665  			}
   666  			if length < 0 {
   667  				return 0, ErrInvalidLengthGroupcache
   668  			}
   669  			iNdEx += length
   670  		case 3:
   671  			depth++
   672  		case 4:
   673  			if depth == 0 {
   674  				return 0, ErrUnexpectedEndOfGroupGroupcache
   675  			}
   676  			depth--
   677  		case 5:
   678  			iNdEx += 4
   679  		default:
   680  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   681  		}
   682  		if iNdEx < 0 {
   683  			return 0, ErrInvalidLengthGroupcache
   684  		}
   685  		if depth == 0 {
   686  			return iNdEx, nil
   687  		}
   688  	}
   689  	return 0, io.ErrUnexpectedEOF
   690  }
   691  
   692  var (
   693  	ErrInvalidLengthGroupcache        = fmt.Errorf("proto: negative length found during unmarshaling")
   694  	ErrIntOverflowGroupcache          = fmt.Errorf("proto: integer overflow")
   695  	ErrUnexpectedEndOfGroupGroupcache = fmt.Errorf("proto: unexpected end of group")
   696  )