github.com/onosproject/onos-api/go@v0.10.32/onos/kpimon/kpimon.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/kpimon/kpimon.proto
     3  
     4  // Package onos.kpimon defines interfaces to monitor KPI
     5  
     6  package kpimon
     7  
     8  import (
     9  	context "context"
    10  	encoding_binary "encoding/binary"
    11  	fmt "fmt"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	types "github.com/gogo/protobuf/types"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  type GetRequest struct {
    34  }
    35  
    36  func (m *GetRequest) Reset()         { *m = GetRequest{} }
    37  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
    38  func (*GetRequest) ProtoMessage()    {}
    39  func (*GetRequest) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_b4dc9732ac3e9f77, []int{0}
    41  }
    42  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
    43  	return m.Unmarshal(b)
    44  }
    45  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	if deterministic {
    47  		return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
    48  	} else {
    49  		b = b[:cap(b)]
    50  		n, err := m.MarshalToSizedBuffer(b)
    51  		if err != nil {
    52  			return nil, err
    53  		}
    54  		return b[:n], nil
    55  	}
    56  }
    57  func (m *GetRequest) XXX_Merge(src proto.Message) {
    58  	xxx_messageInfo_GetRequest.Merge(m, src)
    59  }
    60  func (m *GetRequest) XXX_Size() int {
    61  	return m.Size()
    62  }
    63  func (m *GetRequest) XXX_DiscardUnknown() {
    64  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
    65  }
    66  
    67  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
    68  
    69  type GetResponse struct {
    70  	Measurements map[string]*MeasurementItems `protobuf:"bytes,1,rep,name=measurements,proto3" json:"measurements,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    71  }
    72  
    73  func (m *GetResponse) Reset()         { *m = GetResponse{} }
    74  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
    75  func (*GetResponse) ProtoMessage()    {}
    76  func (*GetResponse) Descriptor() ([]byte, []int) {
    77  	return fileDescriptor_b4dc9732ac3e9f77, []int{1}
    78  }
    79  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
    80  	return m.Unmarshal(b)
    81  }
    82  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    83  	if deterministic {
    84  		return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
    85  	} else {
    86  		b = b[:cap(b)]
    87  		n, err := m.MarshalToSizedBuffer(b)
    88  		if err != nil {
    89  			return nil, err
    90  		}
    91  		return b[:n], nil
    92  	}
    93  }
    94  func (m *GetResponse) XXX_Merge(src proto.Message) {
    95  	xxx_messageInfo_GetResponse.Merge(m, src)
    96  }
    97  func (m *GetResponse) XXX_Size() int {
    98  	return m.Size()
    99  }
   100  func (m *GetResponse) XXX_DiscardUnknown() {
   101  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   102  }
   103  
   104  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   105  
   106  func (m *GetResponse) GetMeasurements() map[string]*MeasurementItems {
   107  	if m != nil {
   108  		return m.Measurements
   109  	}
   110  	return nil
   111  }
   112  
   113  type MeasurementItems struct {
   114  	MeasurementItems []*MeasurementItem `protobuf:"bytes,1,rep,name=measurement_items,json=measurementItems,proto3" json:"measurement_items,omitempty"`
   115  }
   116  
   117  func (m *MeasurementItems) Reset()         { *m = MeasurementItems{} }
   118  func (m *MeasurementItems) String() string { return proto.CompactTextString(m) }
   119  func (*MeasurementItems) ProtoMessage()    {}
   120  func (*MeasurementItems) Descriptor() ([]byte, []int) {
   121  	return fileDescriptor_b4dc9732ac3e9f77, []int{2}
   122  }
   123  func (m *MeasurementItems) XXX_Unmarshal(b []byte) error {
   124  	return m.Unmarshal(b)
   125  }
   126  func (m *MeasurementItems) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   127  	if deterministic {
   128  		return xxx_messageInfo_MeasurementItems.Marshal(b, m, deterministic)
   129  	} else {
   130  		b = b[:cap(b)]
   131  		n, err := m.MarshalToSizedBuffer(b)
   132  		if err != nil {
   133  			return nil, err
   134  		}
   135  		return b[:n], nil
   136  	}
   137  }
   138  func (m *MeasurementItems) XXX_Merge(src proto.Message) {
   139  	xxx_messageInfo_MeasurementItems.Merge(m, src)
   140  }
   141  func (m *MeasurementItems) XXX_Size() int {
   142  	return m.Size()
   143  }
   144  func (m *MeasurementItems) XXX_DiscardUnknown() {
   145  	xxx_messageInfo_MeasurementItems.DiscardUnknown(m)
   146  }
   147  
   148  var xxx_messageInfo_MeasurementItems proto.InternalMessageInfo
   149  
   150  func (m *MeasurementItems) GetMeasurementItems() []*MeasurementItem {
   151  	if m != nil {
   152  		return m.MeasurementItems
   153  	}
   154  	return nil
   155  }
   156  
   157  type MeasurementItem struct {
   158  	MeasurementRecords []*MeasurementRecord `protobuf:"bytes,1,rep,name=measurement_records,json=measurementRecords,proto3" json:"measurement_records,omitempty"`
   159  }
   160  
   161  func (m *MeasurementItem) Reset()         { *m = MeasurementItem{} }
   162  func (m *MeasurementItem) String() string { return proto.CompactTextString(m) }
   163  func (*MeasurementItem) ProtoMessage()    {}
   164  func (*MeasurementItem) Descriptor() ([]byte, []int) {
   165  	return fileDescriptor_b4dc9732ac3e9f77, []int{3}
   166  }
   167  func (m *MeasurementItem) XXX_Unmarshal(b []byte) error {
   168  	return m.Unmarshal(b)
   169  }
   170  func (m *MeasurementItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   171  	if deterministic {
   172  		return xxx_messageInfo_MeasurementItem.Marshal(b, m, deterministic)
   173  	} else {
   174  		b = b[:cap(b)]
   175  		n, err := m.MarshalToSizedBuffer(b)
   176  		if err != nil {
   177  			return nil, err
   178  		}
   179  		return b[:n], nil
   180  	}
   181  }
   182  func (m *MeasurementItem) XXX_Merge(src proto.Message) {
   183  	xxx_messageInfo_MeasurementItem.Merge(m, src)
   184  }
   185  func (m *MeasurementItem) XXX_Size() int {
   186  	return m.Size()
   187  }
   188  func (m *MeasurementItem) XXX_DiscardUnknown() {
   189  	xxx_messageInfo_MeasurementItem.DiscardUnknown(m)
   190  }
   191  
   192  var xxx_messageInfo_MeasurementItem proto.InternalMessageInfo
   193  
   194  func (m *MeasurementItem) GetMeasurementRecords() []*MeasurementRecord {
   195  	if m != nil {
   196  		return m.MeasurementRecords
   197  	}
   198  	return nil
   199  }
   200  
   201  type IntegerValue struct {
   202  	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
   203  }
   204  
   205  func (m *IntegerValue) Reset()         { *m = IntegerValue{} }
   206  func (m *IntegerValue) String() string { return proto.CompactTextString(m) }
   207  func (*IntegerValue) ProtoMessage()    {}
   208  func (*IntegerValue) Descriptor() ([]byte, []int) {
   209  	return fileDescriptor_b4dc9732ac3e9f77, []int{4}
   210  }
   211  func (m *IntegerValue) XXX_Unmarshal(b []byte) error {
   212  	return m.Unmarshal(b)
   213  }
   214  func (m *IntegerValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   215  	if deterministic {
   216  		return xxx_messageInfo_IntegerValue.Marshal(b, m, deterministic)
   217  	} else {
   218  		b = b[:cap(b)]
   219  		n, err := m.MarshalToSizedBuffer(b)
   220  		if err != nil {
   221  			return nil, err
   222  		}
   223  		return b[:n], nil
   224  	}
   225  }
   226  func (m *IntegerValue) XXX_Merge(src proto.Message) {
   227  	xxx_messageInfo_IntegerValue.Merge(m, src)
   228  }
   229  func (m *IntegerValue) XXX_Size() int {
   230  	return m.Size()
   231  }
   232  func (m *IntegerValue) XXX_DiscardUnknown() {
   233  	xxx_messageInfo_IntegerValue.DiscardUnknown(m)
   234  }
   235  
   236  var xxx_messageInfo_IntegerValue proto.InternalMessageInfo
   237  
   238  func (m *IntegerValue) GetValue() int64 {
   239  	if m != nil {
   240  		return m.Value
   241  	}
   242  	return 0
   243  }
   244  
   245  type RealValue struct {
   246  	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
   247  }
   248  
   249  func (m *RealValue) Reset()         { *m = RealValue{} }
   250  func (m *RealValue) String() string { return proto.CompactTextString(m) }
   251  func (*RealValue) ProtoMessage()    {}
   252  func (*RealValue) Descriptor() ([]byte, []int) {
   253  	return fileDescriptor_b4dc9732ac3e9f77, []int{5}
   254  }
   255  func (m *RealValue) XXX_Unmarshal(b []byte) error {
   256  	return m.Unmarshal(b)
   257  }
   258  func (m *RealValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   259  	if deterministic {
   260  		return xxx_messageInfo_RealValue.Marshal(b, m, deterministic)
   261  	} else {
   262  		b = b[:cap(b)]
   263  		n, err := m.MarshalToSizedBuffer(b)
   264  		if err != nil {
   265  			return nil, err
   266  		}
   267  		return b[:n], nil
   268  	}
   269  }
   270  func (m *RealValue) XXX_Merge(src proto.Message) {
   271  	xxx_messageInfo_RealValue.Merge(m, src)
   272  }
   273  func (m *RealValue) XXX_Size() int {
   274  	return m.Size()
   275  }
   276  func (m *RealValue) XXX_DiscardUnknown() {
   277  	xxx_messageInfo_RealValue.DiscardUnknown(m)
   278  }
   279  
   280  var xxx_messageInfo_RealValue proto.InternalMessageInfo
   281  
   282  func (m *RealValue) GetValue() float64 {
   283  	if m != nil {
   284  		return m.Value
   285  	}
   286  	return 0
   287  }
   288  
   289  type NoValue struct {
   290  	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
   291  }
   292  
   293  func (m *NoValue) Reset()         { *m = NoValue{} }
   294  func (m *NoValue) String() string { return proto.CompactTextString(m) }
   295  func (*NoValue) ProtoMessage()    {}
   296  func (*NoValue) Descriptor() ([]byte, []int) {
   297  	return fileDescriptor_b4dc9732ac3e9f77, []int{6}
   298  }
   299  func (m *NoValue) XXX_Unmarshal(b []byte) error {
   300  	return m.Unmarshal(b)
   301  }
   302  func (m *NoValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   303  	if deterministic {
   304  		return xxx_messageInfo_NoValue.Marshal(b, m, deterministic)
   305  	} else {
   306  		b = b[:cap(b)]
   307  		n, err := m.MarshalToSizedBuffer(b)
   308  		if err != nil {
   309  			return nil, err
   310  		}
   311  		return b[:n], nil
   312  	}
   313  }
   314  func (m *NoValue) XXX_Merge(src proto.Message) {
   315  	xxx_messageInfo_NoValue.Merge(m, src)
   316  }
   317  func (m *NoValue) XXX_Size() int {
   318  	return m.Size()
   319  }
   320  func (m *NoValue) XXX_DiscardUnknown() {
   321  	xxx_messageInfo_NoValue.DiscardUnknown(m)
   322  }
   323  
   324  var xxx_messageInfo_NoValue proto.InternalMessageInfo
   325  
   326  func (m *NoValue) GetValue() int32 {
   327  	if m != nil {
   328  		return m.Value
   329  	}
   330  	return 0
   331  }
   332  
   333  type MeasurementRecord struct {
   334  	Timestamp        uint64     `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   335  	MeasurementName  string     `protobuf:"bytes,3,opt,name=measurement_name,json=measurementName,proto3" json:"measurement_name,omitempty"`
   336  	MeasurementValue *types.Any `protobuf:"bytes,4,opt,name=measurement_value,json=measurementValue,proto3" json:"measurement_value,omitempty"`
   337  }
   338  
   339  func (m *MeasurementRecord) Reset()         { *m = MeasurementRecord{} }
   340  func (m *MeasurementRecord) String() string { return proto.CompactTextString(m) }
   341  func (*MeasurementRecord) ProtoMessage()    {}
   342  func (*MeasurementRecord) Descriptor() ([]byte, []int) {
   343  	return fileDescriptor_b4dc9732ac3e9f77, []int{7}
   344  }
   345  func (m *MeasurementRecord) XXX_Unmarshal(b []byte) error {
   346  	return m.Unmarshal(b)
   347  }
   348  func (m *MeasurementRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   349  	if deterministic {
   350  		return xxx_messageInfo_MeasurementRecord.Marshal(b, m, deterministic)
   351  	} else {
   352  		b = b[:cap(b)]
   353  		n, err := m.MarshalToSizedBuffer(b)
   354  		if err != nil {
   355  			return nil, err
   356  		}
   357  		return b[:n], nil
   358  	}
   359  }
   360  func (m *MeasurementRecord) XXX_Merge(src proto.Message) {
   361  	xxx_messageInfo_MeasurementRecord.Merge(m, src)
   362  }
   363  func (m *MeasurementRecord) XXX_Size() int {
   364  	return m.Size()
   365  }
   366  func (m *MeasurementRecord) XXX_DiscardUnknown() {
   367  	xxx_messageInfo_MeasurementRecord.DiscardUnknown(m)
   368  }
   369  
   370  var xxx_messageInfo_MeasurementRecord proto.InternalMessageInfo
   371  
   372  func (m *MeasurementRecord) GetTimestamp() uint64 {
   373  	if m != nil {
   374  		return m.Timestamp
   375  	}
   376  	return 0
   377  }
   378  
   379  func (m *MeasurementRecord) GetMeasurementName() string {
   380  	if m != nil {
   381  		return m.MeasurementName
   382  	}
   383  	return ""
   384  }
   385  
   386  func (m *MeasurementRecord) GetMeasurementValue() *types.Any {
   387  	if m != nil {
   388  		return m.MeasurementValue
   389  	}
   390  	return nil
   391  }
   392  
   393  func init() {
   394  	proto.RegisterType((*GetRequest)(nil), "onos.kpimon.GetRequest")
   395  	proto.RegisterType((*GetResponse)(nil), "onos.kpimon.GetResponse")
   396  	proto.RegisterMapType((map[string]*MeasurementItems)(nil), "onos.kpimon.GetResponse.MeasurementsEntry")
   397  	proto.RegisterType((*MeasurementItems)(nil), "onos.kpimon.MeasurementItems")
   398  	proto.RegisterType((*MeasurementItem)(nil), "onos.kpimon.MeasurementItem")
   399  	proto.RegisterType((*IntegerValue)(nil), "onos.kpimon.IntegerValue")
   400  	proto.RegisterType((*RealValue)(nil), "onos.kpimon.RealValue")
   401  	proto.RegisterType((*NoValue)(nil), "onos.kpimon.NoValue")
   402  	proto.RegisterType((*MeasurementRecord)(nil), "onos.kpimon.MeasurementRecord")
   403  }
   404  
   405  func init() { proto.RegisterFile("onos/kpimon/kpimon.proto", fileDescriptor_b4dc9732ac3e9f77) }
   406  
   407  var fileDescriptor_b4dc9732ac3e9f77 = []byte{
   408  	// 444 bytes of a gzipped FileDescriptorProto
   409  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x31, 0x6f, 0xd3, 0x40,
   410  	0x14, 0xc7, 0x73, 0x4d, 0x5b, 0x94, 0x97, 0x48, 0x4d, 0x8e, 0x4a, 0x98, 0xa8, 0x98, 0x60, 0x31,
   411  	0x04, 0x86, 0x0b, 0x4a, 0x17, 0xc4, 0x56, 0x24, 0x54, 0x22, 0x20, 0x48, 0x37, 0xc0, 0x04, 0xd5,
   412  	0xa5, 0x3c, 0x42, 0xd4, 0xdc, 0x9d, 0xf1, 0x9d, 0x91, 0xfc, 0x2d, 0xd8, 0x19, 0xf8, 0x24, 0xec,
   413  	0x8c, 0x1d, 0x19, 0x51, 0xf2, 0x45, 0x90, 0xcf, 0xb1, 0x38, 0xbb, 0x0d, 0x0b, 0x53, 0xe2, 0xf7,
   414  	0x7e, 0xfe, 0xfb, 0xbd, 0xff, 0xfb, 0x43, 0xa0, 0x95, 0x36, 0xa3, 0x8b, 0x78, 0x21, 0xb5, 0xda,
   415  	0xfc, 0xb0, 0x38, 0xd1, 0x56, 0xd3, 0x76, 0xde, 0x61, 0x45, 0xa9, 0x7f, 0x7b, 0xae, 0xf5, 0x7c,
   416  	0x89, 0x23, 0xd7, 0x9a, 0xa5, 0x1f, 0x47, 0x42, 0x65, 0x05, 0x17, 0x75, 0x00, 0x4e, 0xd1, 0x72,
   417  	0xfc, 0x9c, 0xa2, 0xb1, 0xd1, 0x0f, 0x02, 0x6d, 0xf7, 0x68, 0x62, 0xad, 0x0c, 0xd2, 0x29, 0x74,
   418  	0x24, 0x0a, 0x93, 0x26, 0x28, 0x51, 0x59, 0x13, 0x90, 0x41, 0x73, 0xd8, 0x1e, 0x3f, 0x64, 0x9e,
   419  	0x38, 0xf3, 0x78, 0xf6, 0xca, 0x83, 0x9f, 0x29, 0x9b, 0x64, 0xbc, 0xf2, 0x7e, 0xff, 0x3d, 0xf4,
   420  	0xae, 0x20, 0xb4, 0x0b, 0xcd, 0x0b, 0xcc, 0x02, 0x32, 0x20, 0xc3, 0x16, 0xcf, 0xff, 0xd2, 0x63,
   421  	0xd8, 0xfb, 0x22, 0x96, 0x29, 0x06, 0x3b, 0x03, 0x32, 0x6c, 0x8f, 0xef, 0x54, 0xbe, 0xe7, 0x09,
   422  	0x4c, 0x2c, 0x4a, 0xc3, 0x0b, 0xf6, 0xc9, 0xce, 0x63, 0x12, 0xbd, 0x83, 0x6e, 0xbd, 0x4d, 0x27,
   423  	0xd0, 0xf3, 0x66, 0x38, 0x5b, 0xe4, 0xc5, 0xcd, 0x22, 0x47, 0xff, 0x12, 0xe6, 0x5d, 0x59, 0x93,
   424  	0x8a, 0x66, 0x70, 0x50, 0x83, 0xe8, 0x6b, 0xb8, 0xe9, 0xab, 0x27, 0x78, 0xae, 0x93, 0x0f, 0xa5,
   425  	0x7e, 0xb8, 0x4d, 0x9f, 0x3b, 0x8c, 0x53, 0x59, 0x2f, 0x99, 0xe8, 0x3e, 0x74, 0x26, 0xca, 0xe2,
   426  	0x1c, 0x93, 0x37, 0xf9, 0x5a, 0xf4, 0xb0, 0xf4, 0x22, 0xf7, 0xa7, 0xb9, 0x59, 0x36, 0xba, 0x07,
   427  	0x2d, 0x8e, 0x62, 0x79, 0x0d, 0x42, 0x4a, 0xe4, 0x2e, 0xdc, 0x98, 0xea, 0x6b, 0x80, 0xbd, 0x12,
   428  	0xf8, 0x4e, 0x2a, 0xd7, 0x28, 0x06, 0xa0, 0x47, 0xd0, 0xb2, 0x0b, 0x89, 0xc6, 0x0a, 0x19, 0x3b,
   429  	0xff, 0x77, 0xf9, 0xdf, 0x02, 0x7d, 0x00, 0xbe, 0x2b, 0x67, 0x4a, 0x48, 0x0c, 0x9a, 0xee, 0x70,
   430  	0x07, 0x5e, 0x7d, 0x2a, 0x24, 0xd2, 0x93, 0xaa, 0xef, 0xc5, 0x00, 0xbb, 0xee, 0xa0, 0x87, 0xac,
   431  	0x08, 0x24, 0x2b, 0x03, 0xc9, 0x4e, 0x54, 0x56, 0xf1, 0xdb, 0xcd, 0x3d, 0xfe, 0x46, 0x60, 0xff,
   432  	0x85, 0x33, 0x8f, 0x9e, 0x42, 0xf7, 0xe5, 0xc2, 0x58, 0x3f, 0x3d, 0xf4, 0xd6, 0xd5, 0x1c, 0xba,
   433  	0x18, 0xf7, 0x83, 0x6d, 0x01, 0x8d, 0x1a, 0xf4, 0x39, 0xf4, 0xde, 0x0a, 0x7b, 0xfe, 0xe9, 0x3f,
   434  	0x95, 0x1e, 0x91, 0xa7, 0xc1, 0xcf, 0x55, 0x48, 0x2e, 0x57, 0x21, 0xf9, 0xbd, 0x0a, 0xc9, 0xd7,
   435  	0x75, 0xd8, 0xb8, 0x5c, 0x87, 0x8d, 0x5f, 0xeb, 0xb0, 0x31, 0xdb, 0x77, 0x7b, 0x1d, 0xff, 0x09,
   436  	0x00, 0x00, 0xff, 0xff, 0xb4, 0xb2, 0x5c, 0xe1, 0x9f, 0x03, 0x00, 0x00,
   437  }
   438  
   439  // Reference imports to suppress errors if they are not otherwise used.
   440  var _ context.Context
   441  var _ grpc.ClientConn
   442  
   443  // This is a compile-time assertion to ensure that this generated file
   444  // is compatible with the grpc package it is being compiled against.
   445  const _ = grpc.SupportPackageIsVersion4
   446  
   447  // KpimonClient is the client API for Kpimon service.
   448  //
   449  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   450  type KpimonClient interface {
   451  	ListMeasurements(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
   452  	WatchMeasurements(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Kpimon_WatchMeasurementsClient, error)
   453  }
   454  
   455  type kpimonClient struct {
   456  	cc *grpc.ClientConn
   457  }
   458  
   459  func NewKpimonClient(cc *grpc.ClientConn) KpimonClient {
   460  	return &kpimonClient{cc}
   461  }
   462  
   463  func (c *kpimonClient) ListMeasurements(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
   464  	out := new(GetResponse)
   465  	err := c.cc.Invoke(ctx, "/onos.kpimon.Kpimon/ListMeasurements", in, out, opts...)
   466  	if err != nil {
   467  		return nil, err
   468  	}
   469  	return out, nil
   470  }
   471  
   472  func (c *kpimonClient) WatchMeasurements(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (Kpimon_WatchMeasurementsClient, error) {
   473  	stream, err := c.cc.NewStream(ctx, &_Kpimon_serviceDesc.Streams[0], "/onos.kpimon.Kpimon/WatchMeasurements", opts...)
   474  	if err != nil {
   475  		return nil, err
   476  	}
   477  	x := &kpimonWatchMeasurementsClient{stream}
   478  	if err := x.ClientStream.SendMsg(in); err != nil {
   479  		return nil, err
   480  	}
   481  	if err := x.ClientStream.CloseSend(); err != nil {
   482  		return nil, err
   483  	}
   484  	return x, nil
   485  }
   486  
   487  type Kpimon_WatchMeasurementsClient interface {
   488  	Recv() (*GetResponse, error)
   489  	grpc.ClientStream
   490  }
   491  
   492  type kpimonWatchMeasurementsClient struct {
   493  	grpc.ClientStream
   494  }
   495  
   496  func (x *kpimonWatchMeasurementsClient) Recv() (*GetResponse, error) {
   497  	m := new(GetResponse)
   498  	if err := x.ClientStream.RecvMsg(m); err != nil {
   499  		return nil, err
   500  	}
   501  	return m, nil
   502  }
   503  
   504  // KpimonServer is the server API for Kpimon service.
   505  type KpimonServer interface {
   506  	ListMeasurements(context.Context, *GetRequest) (*GetResponse, error)
   507  	WatchMeasurements(*GetRequest, Kpimon_WatchMeasurementsServer) error
   508  }
   509  
   510  // UnimplementedKpimonServer can be embedded to have forward compatible implementations.
   511  type UnimplementedKpimonServer struct {
   512  }
   513  
   514  func (*UnimplementedKpimonServer) ListMeasurements(ctx context.Context, req *GetRequest) (*GetResponse, error) {
   515  	return nil, status.Errorf(codes.Unimplemented, "method ListMeasurements not implemented")
   516  }
   517  func (*UnimplementedKpimonServer) WatchMeasurements(req *GetRequest, srv Kpimon_WatchMeasurementsServer) error {
   518  	return status.Errorf(codes.Unimplemented, "method WatchMeasurements not implemented")
   519  }
   520  
   521  func RegisterKpimonServer(s *grpc.Server, srv KpimonServer) {
   522  	s.RegisterService(&_Kpimon_serviceDesc, srv)
   523  }
   524  
   525  func _Kpimon_ListMeasurements_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   526  	in := new(GetRequest)
   527  	if err := dec(in); err != nil {
   528  		return nil, err
   529  	}
   530  	if interceptor == nil {
   531  		return srv.(KpimonServer).ListMeasurements(ctx, in)
   532  	}
   533  	info := &grpc.UnaryServerInfo{
   534  		Server:     srv,
   535  		FullMethod: "/onos.kpimon.Kpimon/ListMeasurements",
   536  	}
   537  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   538  		return srv.(KpimonServer).ListMeasurements(ctx, req.(*GetRequest))
   539  	}
   540  	return interceptor(ctx, in, info, handler)
   541  }
   542  
   543  func _Kpimon_WatchMeasurements_Handler(srv interface{}, stream grpc.ServerStream) error {
   544  	m := new(GetRequest)
   545  	if err := stream.RecvMsg(m); err != nil {
   546  		return err
   547  	}
   548  	return srv.(KpimonServer).WatchMeasurements(m, &kpimonWatchMeasurementsServer{stream})
   549  }
   550  
   551  type Kpimon_WatchMeasurementsServer interface {
   552  	Send(*GetResponse) error
   553  	grpc.ServerStream
   554  }
   555  
   556  type kpimonWatchMeasurementsServer struct {
   557  	grpc.ServerStream
   558  }
   559  
   560  func (x *kpimonWatchMeasurementsServer) Send(m *GetResponse) error {
   561  	return x.ServerStream.SendMsg(m)
   562  }
   563  
   564  var _Kpimon_serviceDesc = grpc.ServiceDesc{
   565  	ServiceName: "onos.kpimon.Kpimon",
   566  	HandlerType: (*KpimonServer)(nil),
   567  	Methods: []grpc.MethodDesc{
   568  		{
   569  			MethodName: "ListMeasurements",
   570  			Handler:    _Kpimon_ListMeasurements_Handler,
   571  		},
   572  	},
   573  	Streams: []grpc.StreamDesc{
   574  		{
   575  			StreamName:    "WatchMeasurements",
   576  			Handler:       _Kpimon_WatchMeasurements_Handler,
   577  			ServerStreams: true,
   578  		},
   579  	},
   580  	Metadata: "onos/kpimon/kpimon.proto",
   581  }
   582  
   583  func (m *GetRequest) Marshal() (dAtA []byte, err error) {
   584  	size := m.Size()
   585  	dAtA = make([]byte, size)
   586  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   587  	if err != nil {
   588  		return nil, err
   589  	}
   590  	return dAtA[:n], nil
   591  }
   592  
   593  func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
   594  	size := m.Size()
   595  	return m.MarshalToSizedBuffer(dAtA[:size])
   596  }
   597  
   598  func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   599  	i := len(dAtA)
   600  	_ = i
   601  	var l int
   602  	_ = l
   603  	return len(dAtA) - i, nil
   604  }
   605  
   606  func (m *GetResponse) Marshal() (dAtA []byte, err error) {
   607  	size := m.Size()
   608  	dAtA = make([]byte, size)
   609  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   610  	if err != nil {
   611  		return nil, err
   612  	}
   613  	return dAtA[:n], nil
   614  }
   615  
   616  func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
   617  	size := m.Size()
   618  	return m.MarshalToSizedBuffer(dAtA[:size])
   619  }
   620  
   621  func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   622  	i := len(dAtA)
   623  	_ = i
   624  	var l int
   625  	_ = l
   626  	if len(m.Measurements) > 0 {
   627  		for k := range m.Measurements {
   628  			v := m.Measurements[k]
   629  			baseI := i
   630  			if v != nil {
   631  				{
   632  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   633  					if err != nil {
   634  						return 0, err
   635  					}
   636  					i -= size
   637  					i = encodeVarintKpimon(dAtA, i, uint64(size))
   638  				}
   639  				i--
   640  				dAtA[i] = 0x12
   641  			}
   642  			i -= len(k)
   643  			copy(dAtA[i:], k)
   644  			i = encodeVarintKpimon(dAtA, i, uint64(len(k)))
   645  			i--
   646  			dAtA[i] = 0xa
   647  			i = encodeVarintKpimon(dAtA, i, uint64(baseI-i))
   648  			i--
   649  			dAtA[i] = 0xa
   650  		}
   651  	}
   652  	return len(dAtA) - i, nil
   653  }
   654  
   655  func (m *MeasurementItems) Marshal() (dAtA []byte, err error) {
   656  	size := m.Size()
   657  	dAtA = make([]byte, size)
   658  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   659  	if err != nil {
   660  		return nil, err
   661  	}
   662  	return dAtA[:n], nil
   663  }
   664  
   665  func (m *MeasurementItems) MarshalTo(dAtA []byte) (int, error) {
   666  	size := m.Size()
   667  	return m.MarshalToSizedBuffer(dAtA[:size])
   668  }
   669  
   670  func (m *MeasurementItems) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   671  	i := len(dAtA)
   672  	_ = i
   673  	var l int
   674  	_ = l
   675  	if len(m.MeasurementItems) > 0 {
   676  		for iNdEx := len(m.MeasurementItems) - 1; iNdEx >= 0; iNdEx-- {
   677  			{
   678  				size, err := m.MeasurementItems[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   679  				if err != nil {
   680  					return 0, err
   681  				}
   682  				i -= size
   683  				i = encodeVarintKpimon(dAtA, i, uint64(size))
   684  			}
   685  			i--
   686  			dAtA[i] = 0xa
   687  		}
   688  	}
   689  	return len(dAtA) - i, nil
   690  }
   691  
   692  func (m *MeasurementItem) Marshal() (dAtA []byte, err error) {
   693  	size := m.Size()
   694  	dAtA = make([]byte, size)
   695  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   696  	if err != nil {
   697  		return nil, err
   698  	}
   699  	return dAtA[:n], nil
   700  }
   701  
   702  func (m *MeasurementItem) MarshalTo(dAtA []byte) (int, error) {
   703  	size := m.Size()
   704  	return m.MarshalToSizedBuffer(dAtA[:size])
   705  }
   706  
   707  func (m *MeasurementItem) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   708  	i := len(dAtA)
   709  	_ = i
   710  	var l int
   711  	_ = l
   712  	if len(m.MeasurementRecords) > 0 {
   713  		for iNdEx := len(m.MeasurementRecords) - 1; iNdEx >= 0; iNdEx-- {
   714  			{
   715  				size, err := m.MeasurementRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   716  				if err != nil {
   717  					return 0, err
   718  				}
   719  				i -= size
   720  				i = encodeVarintKpimon(dAtA, i, uint64(size))
   721  			}
   722  			i--
   723  			dAtA[i] = 0xa
   724  		}
   725  	}
   726  	return len(dAtA) - i, nil
   727  }
   728  
   729  func (m *IntegerValue) Marshal() (dAtA []byte, err error) {
   730  	size := m.Size()
   731  	dAtA = make([]byte, size)
   732  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   733  	if err != nil {
   734  		return nil, err
   735  	}
   736  	return dAtA[:n], nil
   737  }
   738  
   739  func (m *IntegerValue) MarshalTo(dAtA []byte) (int, error) {
   740  	size := m.Size()
   741  	return m.MarshalToSizedBuffer(dAtA[:size])
   742  }
   743  
   744  func (m *IntegerValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   745  	i := len(dAtA)
   746  	_ = i
   747  	var l int
   748  	_ = l
   749  	if m.Value != 0 {
   750  		i = encodeVarintKpimon(dAtA, i, uint64(m.Value))
   751  		i--
   752  		dAtA[i] = 0x8
   753  	}
   754  	return len(dAtA) - i, nil
   755  }
   756  
   757  func (m *RealValue) Marshal() (dAtA []byte, err error) {
   758  	size := m.Size()
   759  	dAtA = make([]byte, size)
   760  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   761  	if err != nil {
   762  		return nil, err
   763  	}
   764  	return dAtA[:n], nil
   765  }
   766  
   767  func (m *RealValue) MarshalTo(dAtA []byte) (int, error) {
   768  	size := m.Size()
   769  	return m.MarshalToSizedBuffer(dAtA[:size])
   770  }
   771  
   772  func (m *RealValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   773  	i := len(dAtA)
   774  	_ = i
   775  	var l int
   776  	_ = l
   777  	if m.Value != 0 {
   778  		i -= 8
   779  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value))))
   780  		i--
   781  		dAtA[i] = 0x9
   782  	}
   783  	return len(dAtA) - i, nil
   784  }
   785  
   786  func (m *NoValue) Marshal() (dAtA []byte, err error) {
   787  	size := m.Size()
   788  	dAtA = make([]byte, size)
   789  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   790  	if err != nil {
   791  		return nil, err
   792  	}
   793  	return dAtA[:n], nil
   794  }
   795  
   796  func (m *NoValue) MarshalTo(dAtA []byte) (int, error) {
   797  	size := m.Size()
   798  	return m.MarshalToSizedBuffer(dAtA[:size])
   799  }
   800  
   801  func (m *NoValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   802  	i := len(dAtA)
   803  	_ = i
   804  	var l int
   805  	_ = l
   806  	if m.Value != 0 {
   807  		i = encodeVarintKpimon(dAtA, i, uint64(m.Value))
   808  		i--
   809  		dAtA[i] = 0x8
   810  	}
   811  	return len(dAtA) - i, nil
   812  }
   813  
   814  func (m *MeasurementRecord) Marshal() (dAtA []byte, err error) {
   815  	size := m.Size()
   816  	dAtA = make([]byte, size)
   817  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   818  	if err != nil {
   819  		return nil, err
   820  	}
   821  	return dAtA[:n], nil
   822  }
   823  
   824  func (m *MeasurementRecord) MarshalTo(dAtA []byte) (int, error) {
   825  	size := m.Size()
   826  	return m.MarshalToSizedBuffer(dAtA[:size])
   827  }
   828  
   829  func (m *MeasurementRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   830  	i := len(dAtA)
   831  	_ = i
   832  	var l int
   833  	_ = l
   834  	if m.MeasurementValue != nil {
   835  		{
   836  			size, err := m.MeasurementValue.MarshalToSizedBuffer(dAtA[:i])
   837  			if err != nil {
   838  				return 0, err
   839  			}
   840  			i -= size
   841  			i = encodeVarintKpimon(dAtA, i, uint64(size))
   842  		}
   843  		i--
   844  		dAtA[i] = 0x22
   845  	}
   846  	if len(m.MeasurementName) > 0 {
   847  		i -= len(m.MeasurementName)
   848  		copy(dAtA[i:], m.MeasurementName)
   849  		i = encodeVarintKpimon(dAtA, i, uint64(len(m.MeasurementName)))
   850  		i--
   851  		dAtA[i] = 0x1a
   852  	}
   853  	if m.Timestamp != 0 {
   854  		i = encodeVarintKpimon(dAtA, i, uint64(m.Timestamp))
   855  		i--
   856  		dAtA[i] = 0x10
   857  	}
   858  	return len(dAtA) - i, nil
   859  }
   860  
   861  func encodeVarintKpimon(dAtA []byte, offset int, v uint64) int {
   862  	offset -= sovKpimon(v)
   863  	base := offset
   864  	for v >= 1<<7 {
   865  		dAtA[offset] = uint8(v&0x7f | 0x80)
   866  		v >>= 7
   867  		offset++
   868  	}
   869  	dAtA[offset] = uint8(v)
   870  	return base
   871  }
   872  func (m *GetRequest) Size() (n int) {
   873  	if m == nil {
   874  		return 0
   875  	}
   876  	var l int
   877  	_ = l
   878  	return n
   879  }
   880  
   881  func (m *GetResponse) Size() (n int) {
   882  	if m == nil {
   883  		return 0
   884  	}
   885  	var l int
   886  	_ = l
   887  	if len(m.Measurements) > 0 {
   888  		for k, v := range m.Measurements {
   889  			_ = k
   890  			_ = v
   891  			l = 0
   892  			if v != nil {
   893  				l = v.Size()
   894  				l += 1 + sovKpimon(uint64(l))
   895  			}
   896  			mapEntrySize := 1 + len(k) + sovKpimon(uint64(len(k))) + l
   897  			n += mapEntrySize + 1 + sovKpimon(uint64(mapEntrySize))
   898  		}
   899  	}
   900  	return n
   901  }
   902  
   903  func (m *MeasurementItems) Size() (n int) {
   904  	if m == nil {
   905  		return 0
   906  	}
   907  	var l int
   908  	_ = l
   909  	if len(m.MeasurementItems) > 0 {
   910  		for _, e := range m.MeasurementItems {
   911  			l = e.Size()
   912  			n += 1 + l + sovKpimon(uint64(l))
   913  		}
   914  	}
   915  	return n
   916  }
   917  
   918  func (m *MeasurementItem) Size() (n int) {
   919  	if m == nil {
   920  		return 0
   921  	}
   922  	var l int
   923  	_ = l
   924  	if len(m.MeasurementRecords) > 0 {
   925  		for _, e := range m.MeasurementRecords {
   926  			l = e.Size()
   927  			n += 1 + l + sovKpimon(uint64(l))
   928  		}
   929  	}
   930  	return n
   931  }
   932  
   933  func (m *IntegerValue) Size() (n int) {
   934  	if m == nil {
   935  		return 0
   936  	}
   937  	var l int
   938  	_ = l
   939  	if m.Value != 0 {
   940  		n += 1 + sovKpimon(uint64(m.Value))
   941  	}
   942  	return n
   943  }
   944  
   945  func (m *RealValue) Size() (n int) {
   946  	if m == nil {
   947  		return 0
   948  	}
   949  	var l int
   950  	_ = l
   951  	if m.Value != 0 {
   952  		n += 9
   953  	}
   954  	return n
   955  }
   956  
   957  func (m *NoValue) Size() (n int) {
   958  	if m == nil {
   959  		return 0
   960  	}
   961  	var l int
   962  	_ = l
   963  	if m.Value != 0 {
   964  		n += 1 + sovKpimon(uint64(m.Value))
   965  	}
   966  	return n
   967  }
   968  
   969  func (m *MeasurementRecord) Size() (n int) {
   970  	if m == nil {
   971  		return 0
   972  	}
   973  	var l int
   974  	_ = l
   975  	if m.Timestamp != 0 {
   976  		n += 1 + sovKpimon(uint64(m.Timestamp))
   977  	}
   978  	l = len(m.MeasurementName)
   979  	if l > 0 {
   980  		n += 1 + l + sovKpimon(uint64(l))
   981  	}
   982  	if m.MeasurementValue != nil {
   983  		l = m.MeasurementValue.Size()
   984  		n += 1 + l + sovKpimon(uint64(l))
   985  	}
   986  	return n
   987  }
   988  
   989  func sovKpimon(x uint64) (n int) {
   990  	return (math_bits.Len64(x|1) + 6) / 7
   991  }
   992  func sozKpimon(x uint64) (n int) {
   993  	return sovKpimon(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   994  }
   995  func (m *GetRequest) Unmarshal(dAtA []byte) error {
   996  	l := len(dAtA)
   997  	iNdEx := 0
   998  	for iNdEx < l {
   999  		preIndex := iNdEx
  1000  		var wire uint64
  1001  		for shift := uint(0); ; shift += 7 {
  1002  			if shift >= 64 {
  1003  				return ErrIntOverflowKpimon
  1004  			}
  1005  			if iNdEx >= l {
  1006  				return io.ErrUnexpectedEOF
  1007  			}
  1008  			b := dAtA[iNdEx]
  1009  			iNdEx++
  1010  			wire |= uint64(b&0x7F) << shift
  1011  			if b < 0x80 {
  1012  				break
  1013  			}
  1014  		}
  1015  		fieldNum := int32(wire >> 3)
  1016  		wireType := int(wire & 0x7)
  1017  		if wireType == 4 {
  1018  			return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
  1019  		}
  1020  		if fieldNum <= 0 {
  1021  			return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1022  		}
  1023  		switch fieldNum {
  1024  		default:
  1025  			iNdEx = preIndex
  1026  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1027  			if err != nil {
  1028  				return err
  1029  			}
  1030  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1031  				return ErrInvalidLengthKpimon
  1032  			}
  1033  			if (iNdEx + skippy) > l {
  1034  				return io.ErrUnexpectedEOF
  1035  			}
  1036  			iNdEx += skippy
  1037  		}
  1038  	}
  1039  
  1040  	if iNdEx > l {
  1041  		return io.ErrUnexpectedEOF
  1042  	}
  1043  	return nil
  1044  }
  1045  func (m *GetResponse) Unmarshal(dAtA []byte) error {
  1046  	l := len(dAtA)
  1047  	iNdEx := 0
  1048  	for iNdEx < l {
  1049  		preIndex := iNdEx
  1050  		var wire uint64
  1051  		for shift := uint(0); ; shift += 7 {
  1052  			if shift >= 64 {
  1053  				return ErrIntOverflowKpimon
  1054  			}
  1055  			if iNdEx >= l {
  1056  				return io.ErrUnexpectedEOF
  1057  			}
  1058  			b := dAtA[iNdEx]
  1059  			iNdEx++
  1060  			wire |= uint64(b&0x7F) << shift
  1061  			if b < 0x80 {
  1062  				break
  1063  			}
  1064  		}
  1065  		fieldNum := int32(wire >> 3)
  1066  		wireType := int(wire & 0x7)
  1067  		if wireType == 4 {
  1068  			return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
  1069  		}
  1070  		if fieldNum <= 0 {
  1071  			return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1072  		}
  1073  		switch fieldNum {
  1074  		case 1:
  1075  			if wireType != 2 {
  1076  				return fmt.Errorf("proto: wrong wireType = %d for field Measurements", wireType)
  1077  			}
  1078  			var msglen int
  1079  			for shift := uint(0); ; shift += 7 {
  1080  				if shift >= 64 {
  1081  					return ErrIntOverflowKpimon
  1082  				}
  1083  				if iNdEx >= l {
  1084  					return io.ErrUnexpectedEOF
  1085  				}
  1086  				b := dAtA[iNdEx]
  1087  				iNdEx++
  1088  				msglen |= int(b&0x7F) << shift
  1089  				if b < 0x80 {
  1090  					break
  1091  				}
  1092  			}
  1093  			if msglen < 0 {
  1094  				return ErrInvalidLengthKpimon
  1095  			}
  1096  			postIndex := iNdEx + msglen
  1097  			if postIndex < 0 {
  1098  				return ErrInvalidLengthKpimon
  1099  			}
  1100  			if postIndex > l {
  1101  				return io.ErrUnexpectedEOF
  1102  			}
  1103  			if m.Measurements == nil {
  1104  				m.Measurements = make(map[string]*MeasurementItems)
  1105  			}
  1106  			var mapkey string
  1107  			var mapvalue *MeasurementItems
  1108  			for iNdEx < postIndex {
  1109  				entryPreIndex := iNdEx
  1110  				var wire uint64
  1111  				for shift := uint(0); ; shift += 7 {
  1112  					if shift >= 64 {
  1113  						return ErrIntOverflowKpimon
  1114  					}
  1115  					if iNdEx >= l {
  1116  						return io.ErrUnexpectedEOF
  1117  					}
  1118  					b := dAtA[iNdEx]
  1119  					iNdEx++
  1120  					wire |= uint64(b&0x7F) << shift
  1121  					if b < 0x80 {
  1122  						break
  1123  					}
  1124  				}
  1125  				fieldNum := int32(wire >> 3)
  1126  				if fieldNum == 1 {
  1127  					var stringLenmapkey uint64
  1128  					for shift := uint(0); ; shift += 7 {
  1129  						if shift >= 64 {
  1130  							return ErrIntOverflowKpimon
  1131  						}
  1132  						if iNdEx >= l {
  1133  							return io.ErrUnexpectedEOF
  1134  						}
  1135  						b := dAtA[iNdEx]
  1136  						iNdEx++
  1137  						stringLenmapkey |= uint64(b&0x7F) << shift
  1138  						if b < 0x80 {
  1139  							break
  1140  						}
  1141  					}
  1142  					intStringLenmapkey := int(stringLenmapkey)
  1143  					if intStringLenmapkey < 0 {
  1144  						return ErrInvalidLengthKpimon
  1145  					}
  1146  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1147  					if postStringIndexmapkey < 0 {
  1148  						return ErrInvalidLengthKpimon
  1149  					}
  1150  					if postStringIndexmapkey > l {
  1151  						return io.ErrUnexpectedEOF
  1152  					}
  1153  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1154  					iNdEx = postStringIndexmapkey
  1155  				} else if fieldNum == 2 {
  1156  					var mapmsglen int
  1157  					for shift := uint(0); ; shift += 7 {
  1158  						if shift >= 64 {
  1159  							return ErrIntOverflowKpimon
  1160  						}
  1161  						if iNdEx >= l {
  1162  							return io.ErrUnexpectedEOF
  1163  						}
  1164  						b := dAtA[iNdEx]
  1165  						iNdEx++
  1166  						mapmsglen |= int(b&0x7F) << shift
  1167  						if b < 0x80 {
  1168  							break
  1169  						}
  1170  					}
  1171  					if mapmsglen < 0 {
  1172  						return ErrInvalidLengthKpimon
  1173  					}
  1174  					postmsgIndex := iNdEx + mapmsglen
  1175  					if postmsgIndex < 0 {
  1176  						return ErrInvalidLengthKpimon
  1177  					}
  1178  					if postmsgIndex > l {
  1179  						return io.ErrUnexpectedEOF
  1180  					}
  1181  					mapvalue = &MeasurementItems{}
  1182  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1183  						return err
  1184  					}
  1185  					iNdEx = postmsgIndex
  1186  				} else {
  1187  					iNdEx = entryPreIndex
  1188  					skippy, err := skipKpimon(dAtA[iNdEx:])
  1189  					if err != nil {
  1190  						return err
  1191  					}
  1192  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  1193  						return ErrInvalidLengthKpimon
  1194  					}
  1195  					if (iNdEx + skippy) > postIndex {
  1196  						return io.ErrUnexpectedEOF
  1197  					}
  1198  					iNdEx += skippy
  1199  				}
  1200  			}
  1201  			m.Measurements[mapkey] = mapvalue
  1202  			iNdEx = postIndex
  1203  		default:
  1204  			iNdEx = preIndex
  1205  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1206  			if err != nil {
  1207  				return err
  1208  			}
  1209  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1210  				return ErrInvalidLengthKpimon
  1211  			}
  1212  			if (iNdEx + skippy) > l {
  1213  				return io.ErrUnexpectedEOF
  1214  			}
  1215  			iNdEx += skippy
  1216  		}
  1217  	}
  1218  
  1219  	if iNdEx > l {
  1220  		return io.ErrUnexpectedEOF
  1221  	}
  1222  	return nil
  1223  }
  1224  func (m *MeasurementItems) Unmarshal(dAtA []byte) error {
  1225  	l := len(dAtA)
  1226  	iNdEx := 0
  1227  	for iNdEx < l {
  1228  		preIndex := iNdEx
  1229  		var wire uint64
  1230  		for shift := uint(0); ; shift += 7 {
  1231  			if shift >= 64 {
  1232  				return ErrIntOverflowKpimon
  1233  			}
  1234  			if iNdEx >= l {
  1235  				return io.ErrUnexpectedEOF
  1236  			}
  1237  			b := dAtA[iNdEx]
  1238  			iNdEx++
  1239  			wire |= uint64(b&0x7F) << shift
  1240  			if b < 0x80 {
  1241  				break
  1242  			}
  1243  		}
  1244  		fieldNum := int32(wire >> 3)
  1245  		wireType := int(wire & 0x7)
  1246  		if wireType == 4 {
  1247  			return fmt.Errorf("proto: MeasurementItems: wiretype end group for non-group")
  1248  		}
  1249  		if fieldNum <= 0 {
  1250  			return fmt.Errorf("proto: MeasurementItems: illegal tag %d (wire type %d)", fieldNum, wire)
  1251  		}
  1252  		switch fieldNum {
  1253  		case 1:
  1254  			if wireType != 2 {
  1255  				return fmt.Errorf("proto: wrong wireType = %d for field MeasurementItems", wireType)
  1256  			}
  1257  			var msglen int
  1258  			for shift := uint(0); ; shift += 7 {
  1259  				if shift >= 64 {
  1260  					return ErrIntOverflowKpimon
  1261  				}
  1262  				if iNdEx >= l {
  1263  					return io.ErrUnexpectedEOF
  1264  				}
  1265  				b := dAtA[iNdEx]
  1266  				iNdEx++
  1267  				msglen |= int(b&0x7F) << shift
  1268  				if b < 0x80 {
  1269  					break
  1270  				}
  1271  			}
  1272  			if msglen < 0 {
  1273  				return ErrInvalidLengthKpimon
  1274  			}
  1275  			postIndex := iNdEx + msglen
  1276  			if postIndex < 0 {
  1277  				return ErrInvalidLengthKpimon
  1278  			}
  1279  			if postIndex > l {
  1280  				return io.ErrUnexpectedEOF
  1281  			}
  1282  			m.MeasurementItems = append(m.MeasurementItems, &MeasurementItem{})
  1283  			if err := m.MeasurementItems[len(m.MeasurementItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1284  				return err
  1285  			}
  1286  			iNdEx = postIndex
  1287  		default:
  1288  			iNdEx = preIndex
  1289  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1290  			if err != nil {
  1291  				return err
  1292  			}
  1293  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1294  				return ErrInvalidLengthKpimon
  1295  			}
  1296  			if (iNdEx + skippy) > l {
  1297  				return io.ErrUnexpectedEOF
  1298  			}
  1299  			iNdEx += skippy
  1300  		}
  1301  	}
  1302  
  1303  	if iNdEx > l {
  1304  		return io.ErrUnexpectedEOF
  1305  	}
  1306  	return nil
  1307  }
  1308  func (m *MeasurementItem) Unmarshal(dAtA []byte) error {
  1309  	l := len(dAtA)
  1310  	iNdEx := 0
  1311  	for iNdEx < l {
  1312  		preIndex := iNdEx
  1313  		var wire uint64
  1314  		for shift := uint(0); ; shift += 7 {
  1315  			if shift >= 64 {
  1316  				return ErrIntOverflowKpimon
  1317  			}
  1318  			if iNdEx >= l {
  1319  				return io.ErrUnexpectedEOF
  1320  			}
  1321  			b := dAtA[iNdEx]
  1322  			iNdEx++
  1323  			wire |= uint64(b&0x7F) << shift
  1324  			if b < 0x80 {
  1325  				break
  1326  			}
  1327  		}
  1328  		fieldNum := int32(wire >> 3)
  1329  		wireType := int(wire & 0x7)
  1330  		if wireType == 4 {
  1331  			return fmt.Errorf("proto: MeasurementItem: wiretype end group for non-group")
  1332  		}
  1333  		if fieldNum <= 0 {
  1334  			return fmt.Errorf("proto: MeasurementItem: illegal tag %d (wire type %d)", fieldNum, wire)
  1335  		}
  1336  		switch fieldNum {
  1337  		case 1:
  1338  			if wireType != 2 {
  1339  				return fmt.Errorf("proto: wrong wireType = %d for field MeasurementRecords", wireType)
  1340  			}
  1341  			var msglen int
  1342  			for shift := uint(0); ; shift += 7 {
  1343  				if shift >= 64 {
  1344  					return ErrIntOverflowKpimon
  1345  				}
  1346  				if iNdEx >= l {
  1347  					return io.ErrUnexpectedEOF
  1348  				}
  1349  				b := dAtA[iNdEx]
  1350  				iNdEx++
  1351  				msglen |= int(b&0x7F) << shift
  1352  				if b < 0x80 {
  1353  					break
  1354  				}
  1355  			}
  1356  			if msglen < 0 {
  1357  				return ErrInvalidLengthKpimon
  1358  			}
  1359  			postIndex := iNdEx + msglen
  1360  			if postIndex < 0 {
  1361  				return ErrInvalidLengthKpimon
  1362  			}
  1363  			if postIndex > l {
  1364  				return io.ErrUnexpectedEOF
  1365  			}
  1366  			m.MeasurementRecords = append(m.MeasurementRecords, &MeasurementRecord{})
  1367  			if err := m.MeasurementRecords[len(m.MeasurementRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1368  				return err
  1369  			}
  1370  			iNdEx = postIndex
  1371  		default:
  1372  			iNdEx = preIndex
  1373  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1374  			if err != nil {
  1375  				return err
  1376  			}
  1377  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1378  				return ErrInvalidLengthKpimon
  1379  			}
  1380  			if (iNdEx + skippy) > l {
  1381  				return io.ErrUnexpectedEOF
  1382  			}
  1383  			iNdEx += skippy
  1384  		}
  1385  	}
  1386  
  1387  	if iNdEx > l {
  1388  		return io.ErrUnexpectedEOF
  1389  	}
  1390  	return nil
  1391  }
  1392  func (m *IntegerValue) Unmarshal(dAtA []byte) error {
  1393  	l := len(dAtA)
  1394  	iNdEx := 0
  1395  	for iNdEx < l {
  1396  		preIndex := iNdEx
  1397  		var wire uint64
  1398  		for shift := uint(0); ; shift += 7 {
  1399  			if shift >= 64 {
  1400  				return ErrIntOverflowKpimon
  1401  			}
  1402  			if iNdEx >= l {
  1403  				return io.ErrUnexpectedEOF
  1404  			}
  1405  			b := dAtA[iNdEx]
  1406  			iNdEx++
  1407  			wire |= uint64(b&0x7F) << shift
  1408  			if b < 0x80 {
  1409  				break
  1410  			}
  1411  		}
  1412  		fieldNum := int32(wire >> 3)
  1413  		wireType := int(wire & 0x7)
  1414  		if wireType == 4 {
  1415  			return fmt.Errorf("proto: IntegerValue: wiretype end group for non-group")
  1416  		}
  1417  		if fieldNum <= 0 {
  1418  			return fmt.Errorf("proto: IntegerValue: illegal tag %d (wire type %d)", fieldNum, wire)
  1419  		}
  1420  		switch fieldNum {
  1421  		case 1:
  1422  			if wireType != 0 {
  1423  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1424  			}
  1425  			m.Value = 0
  1426  			for shift := uint(0); ; shift += 7 {
  1427  				if shift >= 64 {
  1428  					return ErrIntOverflowKpimon
  1429  				}
  1430  				if iNdEx >= l {
  1431  					return io.ErrUnexpectedEOF
  1432  				}
  1433  				b := dAtA[iNdEx]
  1434  				iNdEx++
  1435  				m.Value |= int64(b&0x7F) << shift
  1436  				if b < 0x80 {
  1437  					break
  1438  				}
  1439  			}
  1440  		default:
  1441  			iNdEx = preIndex
  1442  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1443  			if err != nil {
  1444  				return err
  1445  			}
  1446  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1447  				return ErrInvalidLengthKpimon
  1448  			}
  1449  			if (iNdEx + skippy) > l {
  1450  				return io.ErrUnexpectedEOF
  1451  			}
  1452  			iNdEx += skippy
  1453  		}
  1454  	}
  1455  
  1456  	if iNdEx > l {
  1457  		return io.ErrUnexpectedEOF
  1458  	}
  1459  	return nil
  1460  }
  1461  func (m *RealValue) Unmarshal(dAtA []byte) error {
  1462  	l := len(dAtA)
  1463  	iNdEx := 0
  1464  	for iNdEx < l {
  1465  		preIndex := iNdEx
  1466  		var wire uint64
  1467  		for shift := uint(0); ; shift += 7 {
  1468  			if shift >= 64 {
  1469  				return ErrIntOverflowKpimon
  1470  			}
  1471  			if iNdEx >= l {
  1472  				return io.ErrUnexpectedEOF
  1473  			}
  1474  			b := dAtA[iNdEx]
  1475  			iNdEx++
  1476  			wire |= uint64(b&0x7F) << shift
  1477  			if b < 0x80 {
  1478  				break
  1479  			}
  1480  		}
  1481  		fieldNum := int32(wire >> 3)
  1482  		wireType := int(wire & 0x7)
  1483  		if wireType == 4 {
  1484  			return fmt.Errorf("proto: RealValue: wiretype end group for non-group")
  1485  		}
  1486  		if fieldNum <= 0 {
  1487  			return fmt.Errorf("proto: RealValue: illegal tag %d (wire type %d)", fieldNum, wire)
  1488  		}
  1489  		switch fieldNum {
  1490  		case 1:
  1491  			if wireType != 1 {
  1492  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1493  			}
  1494  			var v uint64
  1495  			if (iNdEx + 8) > l {
  1496  				return io.ErrUnexpectedEOF
  1497  			}
  1498  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1499  			iNdEx += 8
  1500  			m.Value = float64(math.Float64frombits(v))
  1501  		default:
  1502  			iNdEx = preIndex
  1503  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1504  			if err != nil {
  1505  				return err
  1506  			}
  1507  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1508  				return ErrInvalidLengthKpimon
  1509  			}
  1510  			if (iNdEx + skippy) > l {
  1511  				return io.ErrUnexpectedEOF
  1512  			}
  1513  			iNdEx += skippy
  1514  		}
  1515  	}
  1516  
  1517  	if iNdEx > l {
  1518  		return io.ErrUnexpectedEOF
  1519  	}
  1520  	return nil
  1521  }
  1522  func (m *NoValue) Unmarshal(dAtA []byte) error {
  1523  	l := len(dAtA)
  1524  	iNdEx := 0
  1525  	for iNdEx < l {
  1526  		preIndex := iNdEx
  1527  		var wire uint64
  1528  		for shift := uint(0); ; shift += 7 {
  1529  			if shift >= 64 {
  1530  				return ErrIntOverflowKpimon
  1531  			}
  1532  			if iNdEx >= l {
  1533  				return io.ErrUnexpectedEOF
  1534  			}
  1535  			b := dAtA[iNdEx]
  1536  			iNdEx++
  1537  			wire |= uint64(b&0x7F) << shift
  1538  			if b < 0x80 {
  1539  				break
  1540  			}
  1541  		}
  1542  		fieldNum := int32(wire >> 3)
  1543  		wireType := int(wire & 0x7)
  1544  		if wireType == 4 {
  1545  			return fmt.Errorf("proto: NoValue: wiretype end group for non-group")
  1546  		}
  1547  		if fieldNum <= 0 {
  1548  			return fmt.Errorf("proto: NoValue: illegal tag %d (wire type %d)", fieldNum, wire)
  1549  		}
  1550  		switch fieldNum {
  1551  		case 1:
  1552  			if wireType != 0 {
  1553  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1554  			}
  1555  			m.Value = 0
  1556  			for shift := uint(0); ; shift += 7 {
  1557  				if shift >= 64 {
  1558  					return ErrIntOverflowKpimon
  1559  				}
  1560  				if iNdEx >= l {
  1561  					return io.ErrUnexpectedEOF
  1562  				}
  1563  				b := dAtA[iNdEx]
  1564  				iNdEx++
  1565  				m.Value |= int32(b&0x7F) << shift
  1566  				if b < 0x80 {
  1567  					break
  1568  				}
  1569  			}
  1570  		default:
  1571  			iNdEx = preIndex
  1572  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1573  			if err != nil {
  1574  				return err
  1575  			}
  1576  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1577  				return ErrInvalidLengthKpimon
  1578  			}
  1579  			if (iNdEx + skippy) > l {
  1580  				return io.ErrUnexpectedEOF
  1581  			}
  1582  			iNdEx += skippy
  1583  		}
  1584  	}
  1585  
  1586  	if iNdEx > l {
  1587  		return io.ErrUnexpectedEOF
  1588  	}
  1589  	return nil
  1590  }
  1591  func (m *MeasurementRecord) Unmarshal(dAtA []byte) error {
  1592  	l := len(dAtA)
  1593  	iNdEx := 0
  1594  	for iNdEx < l {
  1595  		preIndex := iNdEx
  1596  		var wire uint64
  1597  		for shift := uint(0); ; shift += 7 {
  1598  			if shift >= 64 {
  1599  				return ErrIntOverflowKpimon
  1600  			}
  1601  			if iNdEx >= l {
  1602  				return io.ErrUnexpectedEOF
  1603  			}
  1604  			b := dAtA[iNdEx]
  1605  			iNdEx++
  1606  			wire |= uint64(b&0x7F) << shift
  1607  			if b < 0x80 {
  1608  				break
  1609  			}
  1610  		}
  1611  		fieldNum := int32(wire >> 3)
  1612  		wireType := int(wire & 0x7)
  1613  		if wireType == 4 {
  1614  			return fmt.Errorf("proto: MeasurementRecord: wiretype end group for non-group")
  1615  		}
  1616  		if fieldNum <= 0 {
  1617  			return fmt.Errorf("proto: MeasurementRecord: illegal tag %d (wire type %d)", fieldNum, wire)
  1618  		}
  1619  		switch fieldNum {
  1620  		case 2:
  1621  			if wireType != 0 {
  1622  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  1623  			}
  1624  			m.Timestamp = 0
  1625  			for shift := uint(0); ; shift += 7 {
  1626  				if shift >= 64 {
  1627  					return ErrIntOverflowKpimon
  1628  				}
  1629  				if iNdEx >= l {
  1630  					return io.ErrUnexpectedEOF
  1631  				}
  1632  				b := dAtA[iNdEx]
  1633  				iNdEx++
  1634  				m.Timestamp |= uint64(b&0x7F) << shift
  1635  				if b < 0x80 {
  1636  					break
  1637  				}
  1638  			}
  1639  		case 3:
  1640  			if wireType != 2 {
  1641  				return fmt.Errorf("proto: wrong wireType = %d for field MeasurementName", wireType)
  1642  			}
  1643  			var stringLen uint64
  1644  			for shift := uint(0); ; shift += 7 {
  1645  				if shift >= 64 {
  1646  					return ErrIntOverflowKpimon
  1647  				}
  1648  				if iNdEx >= l {
  1649  					return io.ErrUnexpectedEOF
  1650  				}
  1651  				b := dAtA[iNdEx]
  1652  				iNdEx++
  1653  				stringLen |= uint64(b&0x7F) << shift
  1654  				if b < 0x80 {
  1655  					break
  1656  				}
  1657  			}
  1658  			intStringLen := int(stringLen)
  1659  			if intStringLen < 0 {
  1660  				return ErrInvalidLengthKpimon
  1661  			}
  1662  			postIndex := iNdEx + intStringLen
  1663  			if postIndex < 0 {
  1664  				return ErrInvalidLengthKpimon
  1665  			}
  1666  			if postIndex > l {
  1667  				return io.ErrUnexpectedEOF
  1668  			}
  1669  			m.MeasurementName = string(dAtA[iNdEx:postIndex])
  1670  			iNdEx = postIndex
  1671  		case 4:
  1672  			if wireType != 2 {
  1673  				return fmt.Errorf("proto: wrong wireType = %d for field MeasurementValue", wireType)
  1674  			}
  1675  			var msglen int
  1676  			for shift := uint(0); ; shift += 7 {
  1677  				if shift >= 64 {
  1678  					return ErrIntOverflowKpimon
  1679  				}
  1680  				if iNdEx >= l {
  1681  					return io.ErrUnexpectedEOF
  1682  				}
  1683  				b := dAtA[iNdEx]
  1684  				iNdEx++
  1685  				msglen |= int(b&0x7F) << shift
  1686  				if b < 0x80 {
  1687  					break
  1688  				}
  1689  			}
  1690  			if msglen < 0 {
  1691  				return ErrInvalidLengthKpimon
  1692  			}
  1693  			postIndex := iNdEx + msglen
  1694  			if postIndex < 0 {
  1695  				return ErrInvalidLengthKpimon
  1696  			}
  1697  			if postIndex > l {
  1698  				return io.ErrUnexpectedEOF
  1699  			}
  1700  			if m.MeasurementValue == nil {
  1701  				m.MeasurementValue = &types.Any{}
  1702  			}
  1703  			if err := m.MeasurementValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1704  				return err
  1705  			}
  1706  			iNdEx = postIndex
  1707  		default:
  1708  			iNdEx = preIndex
  1709  			skippy, err := skipKpimon(dAtA[iNdEx:])
  1710  			if err != nil {
  1711  				return err
  1712  			}
  1713  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1714  				return ErrInvalidLengthKpimon
  1715  			}
  1716  			if (iNdEx + skippy) > l {
  1717  				return io.ErrUnexpectedEOF
  1718  			}
  1719  			iNdEx += skippy
  1720  		}
  1721  	}
  1722  
  1723  	if iNdEx > l {
  1724  		return io.ErrUnexpectedEOF
  1725  	}
  1726  	return nil
  1727  }
  1728  func skipKpimon(dAtA []byte) (n int, err error) {
  1729  	l := len(dAtA)
  1730  	iNdEx := 0
  1731  	depth := 0
  1732  	for iNdEx < l {
  1733  		var wire uint64
  1734  		for shift := uint(0); ; shift += 7 {
  1735  			if shift >= 64 {
  1736  				return 0, ErrIntOverflowKpimon
  1737  			}
  1738  			if iNdEx >= l {
  1739  				return 0, io.ErrUnexpectedEOF
  1740  			}
  1741  			b := dAtA[iNdEx]
  1742  			iNdEx++
  1743  			wire |= (uint64(b) & 0x7F) << shift
  1744  			if b < 0x80 {
  1745  				break
  1746  			}
  1747  		}
  1748  		wireType := int(wire & 0x7)
  1749  		switch wireType {
  1750  		case 0:
  1751  			for shift := uint(0); ; shift += 7 {
  1752  				if shift >= 64 {
  1753  					return 0, ErrIntOverflowKpimon
  1754  				}
  1755  				if iNdEx >= l {
  1756  					return 0, io.ErrUnexpectedEOF
  1757  				}
  1758  				iNdEx++
  1759  				if dAtA[iNdEx-1] < 0x80 {
  1760  					break
  1761  				}
  1762  			}
  1763  		case 1:
  1764  			iNdEx += 8
  1765  		case 2:
  1766  			var length int
  1767  			for shift := uint(0); ; shift += 7 {
  1768  				if shift >= 64 {
  1769  					return 0, ErrIntOverflowKpimon
  1770  				}
  1771  				if iNdEx >= l {
  1772  					return 0, io.ErrUnexpectedEOF
  1773  				}
  1774  				b := dAtA[iNdEx]
  1775  				iNdEx++
  1776  				length |= (int(b) & 0x7F) << shift
  1777  				if b < 0x80 {
  1778  					break
  1779  				}
  1780  			}
  1781  			if length < 0 {
  1782  				return 0, ErrInvalidLengthKpimon
  1783  			}
  1784  			iNdEx += length
  1785  		case 3:
  1786  			depth++
  1787  		case 4:
  1788  			if depth == 0 {
  1789  				return 0, ErrUnexpectedEndOfGroupKpimon
  1790  			}
  1791  			depth--
  1792  		case 5:
  1793  			iNdEx += 4
  1794  		default:
  1795  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1796  		}
  1797  		if iNdEx < 0 {
  1798  			return 0, ErrInvalidLengthKpimon
  1799  		}
  1800  		if depth == 0 {
  1801  			return iNdEx, nil
  1802  		}
  1803  	}
  1804  	return 0, io.ErrUnexpectedEOF
  1805  }
  1806  
  1807  var (
  1808  	ErrInvalidLengthKpimon        = fmt.Errorf("proto: negative length found during unmarshaling")
  1809  	ErrIntOverflowKpimon          = fmt.Errorf("proto: integer overflow")
  1810  	ErrUnexpectedEndOfGroupKpimon = fmt.Errorf("proto: unexpected end of group")
  1811  )