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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/ransim/metrics/metrics.proto
     3  
     4  package metrics
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // Change event type
    31  type EventType int32
    32  
    33  const (
    34  	// NONE indicates unknown event type
    35  	EventType_NONE EventType = 0
    36  	// UPDATED indicates a metric value was set (updated)
    37  	EventType_UPDATED EventType = 1
    38  	// DELETED indicates a metric was deleted
    39  	EventType_DELETED EventType = 2
    40  )
    41  
    42  var EventType_name = map[int32]string{
    43  	0: "NONE",
    44  	1: "UPDATED",
    45  	2: "DELETED",
    46  }
    47  
    48  var EventType_value = map[string]int32{
    49  	"NONE":    0,
    50  	"UPDATED": 1,
    51  	"DELETED": 2,
    52  }
    53  
    54  func (x EventType) String() string {
    55  	return proto.EnumName(EventType_name, int32(x))
    56  }
    57  
    58  func (EventType) EnumDescriptor() ([]byte, []int) {
    59  	return fileDescriptor_962071582db28e82, []int{0}
    60  }
    61  
    62  type Metric struct {
    63  	EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
    64  	Key      string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
    65  	Value    string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    66  	Type     string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
    67  }
    68  
    69  func (m *Metric) Reset()         { *m = Metric{} }
    70  func (m *Metric) String() string { return proto.CompactTextString(m) }
    71  func (*Metric) ProtoMessage()    {}
    72  func (*Metric) Descriptor() ([]byte, []int) {
    73  	return fileDescriptor_962071582db28e82, []int{0}
    74  }
    75  func (m *Metric) XXX_Unmarshal(b []byte) error {
    76  	return m.Unmarshal(b)
    77  }
    78  func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    79  	if deterministic {
    80  		return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
    81  	} else {
    82  		b = b[:cap(b)]
    83  		n, err := m.MarshalToSizedBuffer(b)
    84  		if err != nil {
    85  			return nil, err
    86  		}
    87  		return b[:n], nil
    88  	}
    89  }
    90  func (m *Metric) XXX_Merge(src proto.Message) {
    91  	xxx_messageInfo_Metric.Merge(m, src)
    92  }
    93  func (m *Metric) XXX_Size() int {
    94  	return m.Size()
    95  }
    96  func (m *Metric) XXX_DiscardUnknown() {
    97  	xxx_messageInfo_Metric.DiscardUnknown(m)
    98  }
    99  
   100  var xxx_messageInfo_Metric proto.InternalMessageInfo
   101  
   102  func (m *Metric) GetEntityID() uint64 {
   103  	if m != nil {
   104  		return m.EntityID
   105  	}
   106  	return 0
   107  }
   108  
   109  func (m *Metric) GetKey() string {
   110  	if m != nil {
   111  		return m.Key
   112  	}
   113  	return ""
   114  }
   115  
   116  func (m *Metric) GetValue() string {
   117  	if m != nil {
   118  		return m.Value
   119  	}
   120  	return ""
   121  }
   122  
   123  func (m *Metric) GetType() string {
   124  	if m != nil {
   125  		return m.Type
   126  	}
   127  	return ""
   128  }
   129  
   130  type ListRequest struct {
   131  	EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
   132  }
   133  
   134  func (m *ListRequest) Reset()         { *m = ListRequest{} }
   135  func (m *ListRequest) String() string { return proto.CompactTextString(m) }
   136  func (*ListRequest) ProtoMessage()    {}
   137  func (*ListRequest) Descriptor() ([]byte, []int) {
   138  	return fileDescriptor_962071582db28e82, []int{1}
   139  }
   140  func (m *ListRequest) XXX_Unmarshal(b []byte) error {
   141  	return m.Unmarshal(b)
   142  }
   143  func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   144  	if deterministic {
   145  		return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
   146  	} else {
   147  		b = b[:cap(b)]
   148  		n, err := m.MarshalToSizedBuffer(b)
   149  		if err != nil {
   150  			return nil, err
   151  		}
   152  		return b[:n], nil
   153  	}
   154  }
   155  func (m *ListRequest) XXX_Merge(src proto.Message) {
   156  	xxx_messageInfo_ListRequest.Merge(m, src)
   157  }
   158  func (m *ListRequest) XXX_Size() int {
   159  	return m.Size()
   160  }
   161  func (m *ListRequest) XXX_DiscardUnknown() {
   162  	xxx_messageInfo_ListRequest.DiscardUnknown(m)
   163  }
   164  
   165  var xxx_messageInfo_ListRequest proto.InternalMessageInfo
   166  
   167  func (m *ListRequest) GetEntityID() uint64 {
   168  	if m != nil {
   169  		return m.EntityID
   170  	}
   171  	return 0
   172  }
   173  
   174  type ListResponse struct {
   175  	EntityID uint64    `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
   176  	Metrics  []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
   177  }
   178  
   179  func (m *ListResponse) Reset()         { *m = ListResponse{} }
   180  func (m *ListResponse) String() string { return proto.CompactTextString(m) }
   181  func (*ListResponse) ProtoMessage()    {}
   182  func (*ListResponse) Descriptor() ([]byte, []int) {
   183  	return fileDescriptor_962071582db28e82, []int{2}
   184  }
   185  func (m *ListResponse) XXX_Unmarshal(b []byte) error {
   186  	return m.Unmarshal(b)
   187  }
   188  func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   189  	if deterministic {
   190  		return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
   191  	} else {
   192  		b = b[:cap(b)]
   193  		n, err := m.MarshalToSizedBuffer(b)
   194  		if err != nil {
   195  			return nil, err
   196  		}
   197  		return b[:n], nil
   198  	}
   199  }
   200  func (m *ListResponse) XXX_Merge(src proto.Message) {
   201  	xxx_messageInfo_ListResponse.Merge(m, src)
   202  }
   203  func (m *ListResponse) XXX_Size() int {
   204  	return m.Size()
   205  }
   206  func (m *ListResponse) XXX_DiscardUnknown() {
   207  	xxx_messageInfo_ListResponse.DiscardUnknown(m)
   208  }
   209  
   210  var xxx_messageInfo_ListResponse proto.InternalMessageInfo
   211  
   212  func (m *ListResponse) GetEntityID() uint64 {
   213  	if m != nil {
   214  		return m.EntityID
   215  	}
   216  	return 0
   217  }
   218  
   219  func (m *ListResponse) GetMetrics() []*Metric {
   220  	if m != nil {
   221  		return m.Metrics
   222  	}
   223  	return nil
   224  }
   225  
   226  type SetRequest struct {
   227  	Metric *Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
   228  }
   229  
   230  func (m *SetRequest) Reset()         { *m = SetRequest{} }
   231  func (m *SetRequest) String() string { return proto.CompactTextString(m) }
   232  func (*SetRequest) ProtoMessage()    {}
   233  func (*SetRequest) Descriptor() ([]byte, []int) {
   234  	return fileDescriptor_962071582db28e82, []int{3}
   235  }
   236  func (m *SetRequest) XXX_Unmarshal(b []byte) error {
   237  	return m.Unmarshal(b)
   238  }
   239  func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   240  	if deterministic {
   241  		return xxx_messageInfo_SetRequest.Marshal(b, m, deterministic)
   242  	} else {
   243  		b = b[:cap(b)]
   244  		n, err := m.MarshalToSizedBuffer(b)
   245  		if err != nil {
   246  			return nil, err
   247  		}
   248  		return b[:n], nil
   249  	}
   250  }
   251  func (m *SetRequest) XXX_Merge(src proto.Message) {
   252  	xxx_messageInfo_SetRequest.Merge(m, src)
   253  }
   254  func (m *SetRequest) XXX_Size() int {
   255  	return m.Size()
   256  }
   257  func (m *SetRequest) XXX_DiscardUnknown() {
   258  	xxx_messageInfo_SetRequest.DiscardUnknown(m)
   259  }
   260  
   261  var xxx_messageInfo_SetRequest proto.InternalMessageInfo
   262  
   263  func (m *SetRequest) GetMetric() *Metric {
   264  	if m != nil {
   265  		return m.Metric
   266  	}
   267  	return nil
   268  }
   269  
   270  type SetResponse struct {
   271  }
   272  
   273  func (m *SetResponse) Reset()         { *m = SetResponse{} }
   274  func (m *SetResponse) String() string { return proto.CompactTextString(m) }
   275  func (*SetResponse) ProtoMessage()    {}
   276  func (*SetResponse) Descriptor() ([]byte, []int) {
   277  	return fileDescriptor_962071582db28e82, []int{4}
   278  }
   279  func (m *SetResponse) XXX_Unmarshal(b []byte) error {
   280  	return m.Unmarshal(b)
   281  }
   282  func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   283  	if deterministic {
   284  		return xxx_messageInfo_SetResponse.Marshal(b, m, deterministic)
   285  	} else {
   286  		b = b[:cap(b)]
   287  		n, err := m.MarshalToSizedBuffer(b)
   288  		if err != nil {
   289  			return nil, err
   290  		}
   291  		return b[:n], nil
   292  	}
   293  }
   294  func (m *SetResponse) XXX_Merge(src proto.Message) {
   295  	xxx_messageInfo_SetResponse.Merge(m, src)
   296  }
   297  func (m *SetResponse) XXX_Size() int {
   298  	return m.Size()
   299  }
   300  func (m *SetResponse) XXX_DiscardUnknown() {
   301  	xxx_messageInfo_SetResponse.DiscardUnknown(m)
   302  }
   303  
   304  var xxx_messageInfo_SetResponse proto.InternalMessageInfo
   305  
   306  type GetRequest struct {
   307  	EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
   308  	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   309  }
   310  
   311  func (m *GetRequest) Reset()         { *m = GetRequest{} }
   312  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
   313  func (*GetRequest) ProtoMessage()    {}
   314  func (*GetRequest) Descriptor() ([]byte, []int) {
   315  	return fileDescriptor_962071582db28e82, []int{5}
   316  }
   317  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
   318  	return m.Unmarshal(b)
   319  }
   320  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   321  	if deterministic {
   322  		return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
   323  	} else {
   324  		b = b[:cap(b)]
   325  		n, err := m.MarshalToSizedBuffer(b)
   326  		if err != nil {
   327  			return nil, err
   328  		}
   329  		return b[:n], nil
   330  	}
   331  }
   332  func (m *GetRequest) XXX_Merge(src proto.Message) {
   333  	xxx_messageInfo_GetRequest.Merge(m, src)
   334  }
   335  func (m *GetRequest) XXX_Size() int {
   336  	return m.Size()
   337  }
   338  func (m *GetRequest) XXX_DiscardUnknown() {
   339  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
   340  }
   341  
   342  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
   343  
   344  func (m *GetRequest) GetEntityID() uint64 {
   345  	if m != nil {
   346  		return m.EntityID
   347  	}
   348  	return 0
   349  }
   350  
   351  func (m *GetRequest) GetName() string {
   352  	if m != nil {
   353  		return m.Name
   354  	}
   355  	return ""
   356  }
   357  
   358  type GetResponse struct {
   359  	Metric *Metric `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
   360  }
   361  
   362  func (m *GetResponse) Reset()         { *m = GetResponse{} }
   363  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
   364  func (*GetResponse) ProtoMessage()    {}
   365  func (*GetResponse) Descriptor() ([]byte, []int) {
   366  	return fileDescriptor_962071582db28e82, []int{6}
   367  }
   368  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
   369  	return m.Unmarshal(b)
   370  }
   371  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   372  	if deterministic {
   373  		return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
   374  	} else {
   375  		b = b[:cap(b)]
   376  		n, err := m.MarshalToSizedBuffer(b)
   377  		if err != nil {
   378  			return nil, err
   379  		}
   380  		return b[:n], nil
   381  	}
   382  }
   383  func (m *GetResponse) XXX_Merge(src proto.Message) {
   384  	xxx_messageInfo_GetResponse.Merge(m, src)
   385  }
   386  func (m *GetResponse) XXX_Size() int {
   387  	return m.Size()
   388  }
   389  func (m *GetResponse) XXX_DiscardUnknown() {
   390  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   391  }
   392  
   393  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   394  
   395  func (m *GetResponse) GetMetric() *Metric {
   396  	if m != nil {
   397  		return m.Metric
   398  	}
   399  	return nil
   400  }
   401  
   402  type DeleteRequest struct {
   403  	EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
   404  	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   405  }
   406  
   407  func (m *DeleteRequest) Reset()         { *m = DeleteRequest{} }
   408  func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
   409  func (*DeleteRequest) ProtoMessage()    {}
   410  func (*DeleteRequest) Descriptor() ([]byte, []int) {
   411  	return fileDescriptor_962071582db28e82, []int{7}
   412  }
   413  func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
   414  	return m.Unmarshal(b)
   415  }
   416  func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   417  	if deterministic {
   418  		return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
   419  	} else {
   420  		b = b[:cap(b)]
   421  		n, err := m.MarshalToSizedBuffer(b)
   422  		if err != nil {
   423  			return nil, err
   424  		}
   425  		return b[:n], nil
   426  	}
   427  }
   428  func (m *DeleteRequest) XXX_Merge(src proto.Message) {
   429  	xxx_messageInfo_DeleteRequest.Merge(m, src)
   430  }
   431  func (m *DeleteRequest) XXX_Size() int {
   432  	return m.Size()
   433  }
   434  func (m *DeleteRequest) XXX_DiscardUnknown() {
   435  	xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
   436  }
   437  
   438  var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
   439  
   440  func (m *DeleteRequest) GetEntityID() uint64 {
   441  	if m != nil {
   442  		return m.EntityID
   443  	}
   444  	return 0
   445  }
   446  
   447  func (m *DeleteRequest) GetName() string {
   448  	if m != nil {
   449  		return m.Name
   450  	}
   451  	return ""
   452  }
   453  
   454  type DeleteResponse struct {
   455  }
   456  
   457  func (m *DeleteResponse) Reset()         { *m = DeleteResponse{} }
   458  func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
   459  func (*DeleteResponse) ProtoMessage()    {}
   460  func (*DeleteResponse) Descriptor() ([]byte, []int) {
   461  	return fileDescriptor_962071582db28e82, []int{8}
   462  }
   463  func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
   464  	return m.Unmarshal(b)
   465  }
   466  func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   467  	if deterministic {
   468  		return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
   469  	} else {
   470  		b = b[:cap(b)]
   471  		n, err := m.MarshalToSizedBuffer(b)
   472  		if err != nil {
   473  			return nil, err
   474  		}
   475  		return b[:n], nil
   476  	}
   477  }
   478  func (m *DeleteResponse) XXX_Merge(src proto.Message) {
   479  	xxx_messageInfo_DeleteResponse.Merge(m, src)
   480  }
   481  func (m *DeleteResponse) XXX_Size() int {
   482  	return m.Size()
   483  }
   484  func (m *DeleteResponse) XXX_DiscardUnknown() {
   485  	xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
   486  }
   487  
   488  var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
   489  
   490  type DeleteAllRequest struct {
   491  	EntityID uint64 `protobuf:"varint,1,opt,name=entityid,proto3" json:"entityid,omitempty"`
   492  }
   493  
   494  func (m *DeleteAllRequest) Reset()         { *m = DeleteAllRequest{} }
   495  func (m *DeleteAllRequest) String() string { return proto.CompactTextString(m) }
   496  func (*DeleteAllRequest) ProtoMessage()    {}
   497  func (*DeleteAllRequest) Descriptor() ([]byte, []int) {
   498  	return fileDescriptor_962071582db28e82, []int{9}
   499  }
   500  func (m *DeleteAllRequest) XXX_Unmarshal(b []byte) error {
   501  	return m.Unmarshal(b)
   502  }
   503  func (m *DeleteAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   504  	if deterministic {
   505  		return xxx_messageInfo_DeleteAllRequest.Marshal(b, m, deterministic)
   506  	} else {
   507  		b = b[:cap(b)]
   508  		n, err := m.MarshalToSizedBuffer(b)
   509  		if err != nil {
   510  			return nil, err
   511  		}
   512  		return b[:n], nil
   513  	}
   514  }
   515  func (m *DeleteAllRequest) XXX_Merge(src proto.Message) {
   516  	xxx_messageInfo_DeleteAllRequest.Merge(m, src)
   517  }
   518  func (m *DeleteAllRequest) XXX_Size() int {
   519  	return m.Size()
   520  }
   521  func (m *DeleteAllRequest) XXX_DiscardUnknown() {
   522  	xxx_messageInfo_DeleteAllRequest.DiscardUnknown(m)
   523  }
   524  
   525  var xxx_messageInfo_DeleteAllRequest proto.InternalMessageInfo
   526  
   527  func (m *DeleteAllRequest) GetEntityID() uint64 {
   528  	if m != nil {
   529  		return m.EntityID
   530  	}
   531  	return 0
   532  }
   533  
   534  type DeleteAllResponse struct {
   535  }
   536  
   537  func (m *DeleteAllResponse) Reset()         { *m = DeleteAllResponse{} }
   538  func (m *DeleteAllResponse) String() string { return proto.CompactTextString(m) }
   539  func (*DeleteAllResponse) ProtoMessage()    {}
   540  func (*DeleteAllResponse) Descriptor() ([]byte, []int) {
   541  	return fileDescriptor_962071582db28e82, []int{10}
   542  }
   543  func (m *DeleteAllResponse) XXX_Unmarshal(b []byte) error {
   544  	return m.Unmarshal(b)
   545  }
   546  func (m *DeleteAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   547  	if deterministic {
   548  		return xxx_messageInfo_DeleteAllResponse.Marshal(b, m, deterministic)
   549  	} else {
   550  		b = b[:cap(b)]
   551  		n, err := m.MarshalToSizedBuffer(b)
   552  		if err != nil {
   553  			return nil, err
   554  		}
   555  		return b[:n], nil
   556  	}
   557  }
   558  func (m *DeleteAllResponse) XXX_Merge(src proto.Message) {
   559  	xxx_messageInfo_DeleteAllResponse.Merge(m, src)
   560  }
   561  func (m *DeleteAllResponse) XXX_Size() int {
   562  	return m.Size()
   563  }
   564  func (m *DeleteAllResponse) XXX_DiscardUnknown() {
   565  	xxx_messageInfo_DeleteAllResponse.DiscardUnknown(m)
   566  }
   567  
   568  var xxx_messageInfo_DeleteAllResponse proto.InternalMessageInfo
   569  
   570  type WatchRequest struct {
   571  }
   572  
   573  func (m *WatchRequest) Reset()         { *m = WatchRequest{} }
   574  func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
   575  func (*WatchRequest) ProtoMessage()    {}
   576  func (*WatchRequest) Descriptor() ([]byte, []int) {
   577  	return fileDescriptor_962071582db28e82, []int{11}
   578  }
   579  func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
   580  	return m.Unmarshal(b)
   581  }
   582  func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   583  	if deterministic {
   584  		return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic)
   585  	} else {
   586  		b = b[:cap(b)]
   587  		n, err := m.MarshalToSizedBuffer(b)
   588  		if err != nil {
   589  			return nil, err
   590  		}
   591  		return b[:n], nil
   592  	}
   593  }
   594  func (m *WatchRequest) XXX_Merge(src proto.Message) {
   595  	xxx_messageInfo_WatchRequest.Merge(m, src)
   596  }
   597  func (m *WatchRequest) XXX_Size() int {
   598  	return m.Size()
   599  }
   600  func (m *WatchRequest) XXX_DiscardUnknown() {
   601  	xxx_messageInfo_WatchRequest.DiscardUnknown(m)
   602  }
   603  
   604  var xxx_messageInfo_WatchRequest proto.InternalMessageInfo
   605  
   606  type WatchResponse struct {
   607  	Metric *Metric   `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
   608  	Type   EventType `protobuf:"varint,2,opt,name=type,proto3,enum=onos.ransim.metrics.EventType" json:"type,omitempty"`
   609  }
   610  
   611  func (m *WatchResponse) Reset()         { *m = WatchResponse{} }
   612  func (m *WatchResponse) String() string { return proto.CompactTextString(m) }
   613  func (*WatchResponse) ProtoMessage()    {}
   614  func (*WatchResponse) Descriptor() ([]byte, []int) {
   615  	return fileDescriptor_962071582db28e82, []int{12}
   616  }
   617  func (m *WatchResponse) XXX_Unmarshal(b []byte) error {
   618  	return m.Unmarshal(b)
   619  }
   620  func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   621  	if deterministic {
   622  		return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic)
   623  	} else {
   624  		b = b[:cap(b)]
   625  		n, err := m.MarshalToSizedBuffer(b)
   626  		if err != nil {
   627  			return nil, err
   628  		}
   629  		return b[:n], nil
   630  	}
   631  }
   632  func (m *WatchResponse) XXX_Merge(src proto.Message) {
   633  	xxx_messageInfo_WatchResponse.Merge(m, src)
   634  }
   635  func (m *WatchResponse) XXX_Size() int {
   636  	return m.Size()
   637  }
   638  func (m *WatchResponse) XXX_DiscardUnknown() {
   639  	xxx_messageInfo_WatchResponse.DiscardUnknown(m)
   640  }
   641  
   642  var xxx_messageInfo_WatchResponse proto.InternalMessageInfo
   643  
   644  func (m *WatchResponse) GetMetric() *Metric {
   645  	if m != nil {
   646  		return m.Metric
   647  	}
   648  	return nil
   649  }
   650  
   651  func (m *WatchResponse) GetType() EventType {
   652  	if m != nil {
   653  		return m.Type
   654  	}
   655  	return EventType_NONE
   656  }
   657  
   658  func init() {
   659  	proto.RegisterEnum("onos.ransim.metrics.EventType", EventType_name, EventType_value)
   660  	proto.RegisterType((*Metric)(nil), "onos.ransim.metrics.Metric")
   661  	proto.RegisterType((*ListRequest)(nil), "onos.ransim.metrics.ListRequest")
   662  	proto.RegisterType((*ListResponse)(nil), "onos.ransim.metrics.ListResponse")
   663  	proto.RegisterType((*SetRequest)(nil), "onos.ransim.metrics.SetRequest")
   664  	proto.RegisterType((*SetResponse)(nil), "onos.ransim.metrics.SetResponse")
   665  	proto.RegisterType((*GetRequest)(nil), "onos.ransim.metrics.GetRequest")
   666  	proto.RegisterType((*GetResponse)(nil), "onos.ransim.metrics.GetResponse")
   667  	proto.RegisterType((*DeleteRequest)(nil), "onos.ransim.metrics.DeleteRequest")
   668  	proto.RegisterType((*DeleteResponse)(nil), "onos.ransim.metrics.DeleteResponse")
   669  	proto.RegisterType((*DeleteAllRequest)(nil), "onos.ransim.metrics.DeleteAllRequest")
   670  	proto.RegisterType((*DeleteAllResponse)(nil), "onos.ransim.metrics.DeleteAllResponse")
   671  	proto.RegisterType((*WatchRequest)(nil), "onos.ransim.metrics.WatchRequest")
   672  	proto.RegisterType((*WatchResponse)(nil), "onos.ransim.metrics.WatchResponse")
   673  }
   674  
   675  func init() { proto.RegisterFile("onos/ransim/metrics/metrics.proto", fileDescriptor_962071582db28e82) }
   676  
   677  var fileDescriptor_962071582db28e82 = []byte{
   678  	// 521 bytes of a gzipped FileDescriptorProto
   679  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x8e, 0xd2, 0x50,
   680  	0x14, 0xa6, 0xb4, 0xc3, 0xc0, 0x29, 0x90, 0x7a, 0x67, 0x16, 0x4d, 0x4d, 0x3a, 0x9d, 0x6b, 0x34,
   681  	0xc4, 0x45, 0x31, 0x4c, 0x8c, 0x1b, 0x37, 0x90, 0x36, 0xf8, 0x33, 0x33, 0x8e, 0x30, 0xc6, 0xc4,
   682  	0x1d, 0xe2, 0xc9, 0xd8, 0x08, 0x2d, 0xd2, 0x3b, 0x44, 0xde, 0xc2, 0xc7, 0x72, 0x39, 0x4b, 0x57,
   683  	0xc6, 0xc0, 0x1b, 0xf8, 0x04, 0xa6, 0xf7, 0x5e, 0x7e, 0x4c, 0x4a, 0x11, 0x9d, 0x15, 0xe7, 0xe7,
   684  	0x3b, 0xdf, 0xf9, 0xb9, 0x1f, 0x85, 0xe3, 0x28, 0x8c, 0xe2, 0xfa, 0xb8, 0x17, 0xc6, 0xc1, 0xb0,
   685  	0x3e, 0x44, 0x36, 0x0e, 0xfa, 0xf1, 0xe2, 0xd7, 0x1d, 0x8d, 0x23, 0x16, 0x91, 0x83, 0x04, 0xe2,
   686  	0x0a, 0x88, 0x2b, 0x53, 0xd6, 0xe1, 0x55, 0x74, 0x15, 0xf1, 0x7c, 0x3d, 0xb1, 0x04, 0x94, 0x86,
   687  	0x50, 0x38, 0xe3, 0x00, 0x52, 0x83, 0x22, 0x86, 0x2c, 0x60, 0xd3, 0xe0, 0x83, 0xa9, 0x38, 0x4a,
   688  	0x4d, 0x6b, 0x95, 0x67, 0x3f, 0x8e, 0x8a, 0x3e, 0x8f, 0x3d, 0xf7, 0x3a, 0xcb, 0x2c, 0x31, 0x40,
   689  	0xfd, 0x84, 0x53, 0x33, 0xef, 0x28, 0xb5, 0x52, 0x27, 0x31, 0xc9, 0x21, 0xec, 0x4d, 0x7a, 0x83,
   690  	0x6b, 0x34, 0x55, 0x1e, 0x13, 0x0e, 0x21, 0xa0, 0xb1, 0xe9, 0x08, 0x4d, 0x8d, 0x07, 0xb9, 0x4d,
   691  	0x9f, 0x80, 0x7e, 0x1a, 0xc4, 0xac, 0x83, 0x9f, 0xaf, 0x31, 0x66, 0x7f, 0xdf, 0x94, 0x46, 0x50,
   692  	0x16, 0x85, 0xf1, 0x28, 0x0a, 0x63, 0xdc, 0x61, 0xdc, 0xc7, 0xb0, 0x2f, 0x6f, 0x60, 0xe6, 0x1d,
   693  	0xb5, 0xa6, 0x37, 0xee, 0xba, 0x29, 0xf7, 0x71, 0xc5, 0x19, 0x3a, 0x0b, 0x2c, 0x6d, 0x02, 0x74,
   694  	0x71, 0x39, 0xe8, 0x09, 0x14, 0x44, 0x82, 0x37, 0xdb, 0xc2, 0x21, 0xa1, 0xb4, 0x02, 0x3a, 0xa7,
   695  	0x10, 0x23, 0xd3, 0x17, 0x00, 0x6d, 0xdc, 0x7d, 0xf5, 0xe4, 0x8e, 0x61, 0x6f, 0x88, 0xf2, 0xe0,
   696  	0xdc, 0xa6, 0x2d, 0xd0, 0xdb, 0x2b, 0xea, 0x7f, 0x1b, 0xef, 0x0c, 0x2a, 0x1e, 0x0e, 0x90, 0xe1,
   697  	0xed, 0x8c, 0x64, 0x40, 0x75, 0x41, 0x27, 0x17, 0x7e, 0x0a, 0x86, 0x88, 0x34, 0x07, 0x83, 0xdd,
   698  	0x5f, 0xfc, 0x00, 0xee, 0xac, 0x55, 0x4b, 0xca, 0x2a, 0x94, 0xdf, 0xf6, 0x58, 0xff, 0xa3, 0xa4,
   699  	0xa3, 0x5f, 0xa0, 0x22, 0xfd, 0xff, 0xb8, 0x04, 0x69, 0x48, 0xa5, 0x26, 0xeb, 0x54, 0x1b, 0x76,
   700  	0x6a, 0x89, 0x3f, 0xc1, 0x90, 0x5d, 0x4e, 0x47, 0x28, 0x94, 0xfc, 0xb0, 0x0e, 0xa5, 0x65, 0x88,
   701  	0x14, 0x41, 0x3b, 0x7f, 0x75, 0xee, 0x1b, 0x39, 0xa2, 0xc3, 0xfe, 0x9b, 0x0b, 0xaf, 0x79, 0xe9,
   702  	0x7b, 0x86, 0x92, 0x38, 0x9e, 0x7f, 0xea, 0x27, 0x4e, 0xbe, 0xf1, 0x4b, 0x85, 0xaa, 0xe8, 0x1b,
   703  	0x77, 0x71, 0x3c, 0x09, 0xfa, 0x48, 0x5e, 0x82, 0x96, 0x88, 0x9a, 0x38, 0xa9, 0x1d, 0xd7, 0xfe,
   704  	0x28, 0xd6, 0x71, 0x06, 0x42, 0x6e, 0xfe, 0x0c, 0xd4, 0x2e, 0x32, 0x72, 0x94, 0x8a, 0x5c, 0x49,
   705  	0xd9, 0x72, 0x36, 0x03, 0x56, 0x4c, 0xed, 0x8d, 0x4c, 0xed, 0x6d, 0x4c, 0xeb, 0xba, 0x7c, 0x0d,
   706  	0x05, 0xf1, 0x86, 0x84, 0xa6, 0x62, 0xff, 0xd0, 0x9f, 0x75, 0x2f, 0x13, 0x23, 0x29, 0xdf, 0x41,
   707  	0x69, 0x29, 0x0b, 0x72, 0x3f, 0xa3, 0x62, 0x25, 0x3a, 0xeb, 0xc1, 0x36, 0x98, 0xe4, 0xbe, 0x80,
   708  	0x3d, 0xae, 0x26, 0x92, 0x7e, 0xee, 0x75, 0xe5, 0x59, 0x34, 0x0b, 0x22, 0xf8, 0x1e, 0x29, 0x2d,
   709  	0xf3, 0xdb, 0xcc, 0x56, 0x6e, 0x66, 0xb6, 0xf2, 0x73, 0x66, 0x2b, 0x5f, 0xe7, 0x76, 0xee, 0x66,
   710  	0x6e, 0xe7, 0xbe, 0xcf, 0xed, 0xdc, 0xfb, 0x02, 0xff, 0x00, 0x9f, 0xfc, 0x0e, 0x00, 0x00, 0xff,
   711  	0xff, 0xcd, 0x85, 0x17, 0xc7, 0xd0, 0x05, 0x00, 0x00,
   712  }
   713  
   714  // Reference imports to suppress errors if they are not otherwise used.
   715  var _ context.Context
   716  var _ grpc.ClientConn
   717  
   718  // This is a compile-time assertion to ensure that this generated file
   719  // is compatible with the grpc package it is being compiled against.
   720  const _ = grpc.SupportPackageIsVersion4
   721  
   722  // MetricsServiceClient is the client API for MetricsService service.
   723  //
   724  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   725  type MetricsServiceClient interface {
   726  	// List returns an array of all metrics for the specified entity (Node, Cell or UE)
   727  	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
   728  	// Set sets value of the named metric for the specified entity
   729  	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
   730  	// Get retrieves the named metric for the specified entity
   731  	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
   732  	// Delete deletes the the named metric for the specified entity
   733  	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
   734  	// DeleteAll deletes all metrics for the specified entity
   735  	DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*DeleteAllResponse, error)
   736  	// Watch returns a stream of ongoing changes to the metrics
   737  	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetricsService_WatchClient, error)
   738  }
   739  
   740  type metricsServiceClient struct {
   741  	cc *grpc.ClientConn
   742  }
   743  
   744  func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient {
   745  	return &metricsServiceClient{cc}
   746  }
   747  
   748  func (c *metricsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
   749  	out := new(ListResponse)
   750  	err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/List", in, out, opts...)
   751  	if err != nil {
   752  		return nil, err
   753  	}
   754  	return out, nil
   755  }
   756  
   757  func (c *metricsServiceClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
   758  	out := new(SetResponse)
   759  	err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Set", in, out, opts...)
   760  	if err != nil {
   761  		return nil, err
   762  	}
   763  	return out, nil
   764  }
   765  
   766  func (c *metricsServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
   767  	out := new(GetResponse)
   768  	err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Get", in, out, opts...)
   769  	if err != nil {
   770  		return nil, err
   771  	}
   772  	return out, nil
   773  }
   774  
   775  func (c *metricsServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
   776  	out := new(DeleteResponse)
   777  	err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/Delete", in, out, opts...)
   778  	if err != nil {
   779  		return nil, err
   780  	}
   781  	return out, nil
   782  }
   783  
   784  func (c *metricsServiceClient) DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*DeleteAllResponse, error) {
   785  	out := new(DeleteAllResponse)
   786  	err := c.cc.Invoke(ctx, "/onos.ransim.metrics.MetricsService/DeleteAll", in, out, opts...)
   787  	if err != nil {
   788  		return nil, err
   789  	}
   790  	return out, nil
   791  }
   792  
   793  func (c *metricsServiceClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (MetricsService_WatchClient, error) {
   794  	stream, err := c.cc.NewStream(ctx, &_MetricsService_serviceDesc.Streams[0], "/onos.ransim.metrics.MetricsService/Watch", opts...)
   795  	if err != nil {
   796  		return nil, err
   797  	}
   798  	x := &metricsServiceWatchClient{stream}
   799  	if err := x.ClientStream.SendMsg(in); err != nil {
   800  		return nil, err
   801  	}
   802  	if err := x.ClientStream.CloseSend(); err != nil {
   803  		return nil, err
   804  	}
   805  	return x, nil
   806  }
   807  
   808  type MetricsService_WatchClient interface {
   809  	Recv() (*WatchResponse, error)
   810  	grpc.ClientStream
   811  }
   812  
   813  type metricsServiceWatchClient struct {
   814  	grpc.ClientStream
   815  }
   816  
   817  func (x *metricsServiceWatchClient) Recv() (*WatchResponse, error) {
   818  	m := new(WatchResponse)
   819  	if err := x.ClientStream.RecvMsg(m); err != nil {
   820  		return nil, err
   821  	}
   822  	return m, nil
   823  }
   824  
   825  // MetricsServiceServer is the server API for MetricsService service.
   826  type MetricsServiceServer interface {
   827  	// List returns an array of all metrics for the specified entity (Node, Cell or UE)
   828  	List(context.Context, *ListRequest) (*ListResponse, error)
   829  	// Set sets value of the named metric for the specified entity
   830  	Set(context.Context, *SetRequest) (*SetResponse, error)
   831  	// Get retrieves the named metric for the specified entity
   832  	Get(context.Context, *GetRequest) (*GetResponse, error)
   833  	// Delete deletes the the named metric for the specified entity
   834  	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
   835  	// DeleteAll deletes all metrics for the specified entity
   836  	DeleteAll(context.Context, *DeleteAllRequest) (*DeleteAllResponse, error)
   837  	// Watch returns a stream of ongoing changes to the metrics
   838  	Watch(*WatchRequest, MetricsService_WatchServer) error
   839  }
   840  
   841  // UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.
   842  type UnimplementedMetricsServiceServer struct {
   843  }
   844  
   845  func (*UnimplementedMetricsServiceServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) {
   846  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   847  }
   848  func (*UnimplementedMetricsServiceServer) Set(ctx context.Context, req *SetRequest) (*SetResponse, error) {
   849  	return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
   850  }
   851  func (*UnimplementedMetricsServiceServer) Get(ctx context.Context, req *GetRequest) (*GetResponse, error) {
   852  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   853  }
   854  func (*UnimplementedMetricsServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
   855  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   856  }
   857  func (*UnimplementedMetricsServiceServer) DeleteAll(ctx context.Context, req *DeleteAllRequest) (*DeleteAllResponse, error) {
   858  	return nil, status.Errorf(codes.Unimplemented, "method DeleteAll not implemented")
   859  }
   860  func (*UnimplementedMetricsServiceServer) Watch(req *WatchRequest, srv MetricsService_WatchServer) error {
   861  	return status.Errorf(codes.Unimplemented, "method Watch not implemented")
   862  }
   863  
   864  func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) {
   865  	s.RegisterService(&_MetricsService_serviceDesc, srv)
   866  }
   867  
   868  func _MetricsService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   869  	in := new(ListRequest)
   870  	if err := dec(in); err != nil {
   871  		return nil, err
   872  	}
   873  	if interceptor == nil {
   874  		return srv.(MetricsServiceServer).List(ctx, in)
   875  	}
   876  	info := &grpc.UnaryServerInfo{
   877  		Server:     srv,
   878  		FullMethod: "/onos.ransim.metrics.MetricsService/List",
   879  	}
   880  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   881  		return srv.(MetricsServiceServer).List(ctx, req.(*ListRequest))
   882  	}
   883  	return interceptor(ctx, in, info, handler)
   884  }
   885  
   886  func _MetricsService_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   887  	in := new(SetRequest)
   888  	if err := dec(in); err != nil {
   889  		return nil, err
   890  	}
   891  	if interceptor == nil {
   892  		return srv.(MetricsServiceServer).Set(ctx, in)
   893  	}
   894  	info := &grpc.UnaryServerInfo{
   895  		Server:     srv,
   896  		FullMethod: "/onos.ransim.metrics.MetricsService/Set",
   897  	}
   898  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   899  		return srv.(MetricsServiceServer).Set(ctx, req.(*SetRequest))
   900  	}
   901  	return interceptor(ctx, in, info, handler)
   902  }
   903  
   904  func _MetricsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   905  	in := new(GetRequest)
   906  	if err := dec(in); err != nil {
   907  		return nil, err
   908  	}
   909  	if interceptor == nil {
   910  		return srv.(MetricsServiceServer).Get(ctx, in)
   911  	}
   912  	info := &grpc.UnaryServerInfo{
   913  		Server:     srv,
   914  		FullMethod: "/onos.ransim.metrics.MetricsService/Get",
   915  	}
   916  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   917  		return srv.(MetricsServiceServer).Get(ctx, req.(*GetRequest))
   918  	}
   919  	return interceptor(ctx, in, info, handler)
   920  }
   921  
   922  func _MetricsService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   923  	in := new(DeleteRequest)
   924  	if err := dec(in); err != nil {
   925  		return nil, err
   926  	}
   927  	if interceptor == nil {
   928  		return srv.(MetricsServiceServer).Delete(ctx, in)
   929  	}
   930  	info := &grpc.UnaryServerInfo{
   931  		Server:     srv,
   932  		FullMethod: "/onos.ransim.metrics.MetricsService/Delete",
   933  	}
   934  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   935  		return srv.(MetricsServiceServer).Delete(ctx, req.(*DeleteRequest))
   936  	}
   937  	return interceptor(ctx, in, info, handler)
   938  }
   939  
   940  func _MetricsService_DeleteAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   941  	in := new(DeleteAllRequest)
   942  	if err := dec(in); err != nil {
   943  		return nil, err
   944  	}
   945  	if interceptor == nil {
   946  		return srv.(MetricsServiceServer).DeleteAll(ctx, in)
   947  	}
   948  	info := &grpc.UnaryServerInfo{
   949  		Server:     srv,
   950  		FullMethod: "/onos.ransim.metrics.MetricsService/DeleteAll",
   951  	}
   952  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   953  		return srv.(MetricsServiceServer).DeleteAll(ctx, req.(*DeleteAllRequest))
   954  	}
   955  	return interceptor(ctx, in, info, handler)
   956  }
   957  
   958  func _MetricsService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
   959  	m := new(WatchRequest)
   960  	if err := stream.RecvMsg(m); err != nil {
   961  		return err
   962  	}
   963  	return srv.(MetricsServiceServer).Watch(m, &metricsServiceWatchServer{stream})
   964  }
   965  
   966  type MetricsService_WatchServer interface {
   967  	Send(*WatchResponse) error
   968  	grpc.ServerStream
   969  }
   970  
   971  type metricsServiceWatchServer struct {
   972  	grpc.ServerStream
   973  }
   974  
   975  func (x *metricsServiceWatchServer) Send(m *WatchResponse) error {
   976  	return x.ServerStream.SendMsg(m)
   977  }
   978  
   979  var _MetricsService_serviceDesc = grpc.ServiceDesc{
   980  	ServiceName: "onos.ransim.metrics.MetricsService",
   981  	HandlerType: (*MetricsServiceServer)(nil),
   982  	Methods: []grpc.MethodDesc{
   983  		{
   984  			MethodName: "List",
   985  			Handler:    _MetricsService_List_Handler,
   986  		},
   987  		{
   988  			MethodName: "Set",
   989  			Handler:    _MetricsService_Set_Handler,
   990  		},
   991  		{
   992  			MethodName: "Get",
   993  			Handler:    _MetricsService_Get_Handler,
   994  		},
   995  		{
   996  			MethodName: "Delete",
   997  			Handler:    _MetricsService_Delete_Handler,
   998  		},
   999  		{
  1000  			MethodName: "DeleteAll",
  1001  			Handler:    _MetricsService_DeleteAll_Handler,
  1002  		},
  1003  	},
  1004  	Streams: []grpc.StreamDesc{
  1005  		{
  1006  			StreamName:    "Watch",
  1007  			Handler:       _MetricsService_Watch_Handler,
  1008  			ServerStreams: true,
  1009  		},
  1010  	},
  1011  	Metadata: "onos/ransim/metrics/metrics.proto",
  1012  }
  1013  
  1014  func (m *Metric) Marshal() (dAtA []byte, err error) {
  1015  	size := m.Size()
  1016  	dAtA = make([]byte, size)
  1017  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1018  	if err != nil {
  1019  		return nil, err
  1020  	}
  1021  	return dAtA[:n], nil
  1022  }
  1023  
  1024  func (m *Metric) MarshalTo(dAtA []byte) (int, error) {
  1025  	size := m.Size()
  1026  	return m.MarshalToSizedBuffer(dAtA[:size])
  1027  }
  1028  
  1029  func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1030  	i := len(dAtA)
  1031  	_ = i
  1032  	var l int
  1033  	_ = l
  1034  	if len(m.Type) > 0 {
  1035  		i -= len(m.Type)
  1036  		copy(dAtA[i:], m.Type)
  1037  		i = encodeVarintMetrics(dAtA, i, uint64(len(m.Type)))
  1038  		i--
  1039  		dAtA[i] = 0x22
  1040  	}
  1041  	if len(m.Value) > 0 {
  1042  		i -= len(m.Value)
  1043  		copy(dAtA[i:], m.Value)
  1044  		i = encodeVarintMetrics(dAtA, i, uint64(len(m.Value)))
  1045  		i--
  1046  		dAtA[i] = 0x1a
  1047  	}
  1048  	if len(m.Key) > 0 {
  1049  		i -= len(m.Key)
  1050  		copy(dAtA[i:], m.Key)
  1051  		i = encodeVarintMetrics(dAtA, i, uint64(len(m.Key)))
  1052  		i--
  1053  		dAtA[i] = 0x12
  1054  	}
  1055  	if m.EntityID != 0 {
  1056  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1057  		i--
  1058  		dAtA[i] = 0x8
  1059  	}
  1060  	return len(dAtA) - i, nil
  1061  }
  1062  
  1063  func (m *ListRequest) Marshal() (dAtA []byte, err error) {
  1064  	size := m.Size()
  1065  	dAtA = make([]byte, size)
  1066  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1067  	if err != nil {
  1068  		return nil, err
  1069  	}
  1070  	return dAtA[:n], nil
  1071  }
  1072  
  1073  func (m *ListRequest) MarshalTo(dAtA []byte) (int, error) {
  1074  	size := m.Size()
  1075  	return m.MarshalToSizedBuffer(dAtA[:size])
  1076  }
  1077  
  1078  func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1079  	i := len(dAtA)
  1080  	_ = i
  1081  	var l int
  1082  	_ = l
  1083  	if m.EntityID != 0 {
  1084  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1085  		i--
  1086  		dAtA[i] = 0x8
  1087  	}
  1088  	return len(dAtA) - i, nil
  1089  }
  1090  
  1091  func (m *ListResponse) Marshal() (dAtA []byte, err error) {
  1092  	size := m.Size()
  1093  	dAtA = make([]byte, size)
  1094  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1095  	if err != nil {
  1096  		return nil, err
  1097  	}
  1098  	return dAtA[:n], nil
  1099  }
  1100  
  1101  func (m *ListResponse) MarshalTo(dAtA []byte) (int, error) {
  1102  	size := m.Size()
  1103  	return m.MarshalToSizedBuffer(dAtA[:size])
  1104  }
  1105  
  1106  func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1107  	i := len(dAtA)
  1108  	_ = i
  1109  	var l int
  1110  	_ = l
  1111  	if len(m.Metrics) > 0 {
  1112  		for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- {
  1113  			{
  1114  				size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1115  				if err != nil {
  1116  					return 0, err
  1117  				}
  1118  				i -= size
  1119  				i = encodeVarintMetrics(dAtA, i, uint64(size))
  1120  			}
  1121  			i--
  1122  			dAtA[i] = 0x12
  1123  		}
  1124  	}
  1125  	if m.EntityID != 0 {
  1126  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1127  		i--
  1128  		dAtA[i] = 0x8
  1129  	}
  1130  	return len(dAtA) - i, nil
  1131  }
  1132  
  1133  func (m *SetRequest) Marshal() (dAtA []byte, err error) {
  1134  	size := m.Size()
  1135  	dAtA = make([]byte, size)
  1136  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1137  	if err != nil {
  1138  		return nil, err
  1139  	}
  1140  	return dAtA[:n], nil
  1141  }
  1142  
  1143  func (m *SetRequest) MarshalTo(dAtA []byte) (int, error) {
  1144  	size := m.Size()
  1145  	return m.MarshalToSizedBuffer(dAtA[:size])
  1146  }
  1147  
  1148  func (m *SetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1149  	i := len(dAtA)
  1150  	_ = i
  1151  	var l int
  1152  	_ = l
  1153  	if m.Metric != nil {
  1154  		{
  1155  			size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i])
  1156  			if err != nil {
  1157  				return 0, err
  1158  			}
  1159  			i -= size
  1160  			i = encodeVarintMetrics(dAtA, i, uint64(size))
  1161  		}
  1162  		i--
  1163  		dAtA[i] = 0xa
  1164  	}
  1165  	return len(dAtA) - i, nil
  1166  }
  1167  
  1168  func (m *SetResponse) Marshal() (dAtA []byte, err error) {
  1169  	size := m.Size()
  1170  	dAtA = make([]byte, size)
  1171  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1172  	if err != nil {
  1173  		return nil, err
  1174  	}
  1175  	return dAtA[:n], nil
  1176  }
  1177  
  1178  func (m *SetResponse) MarshalTo(dAtA []byte) (int, error) {
  1179  	size := m.Size()
  1180  	return m.MarshalToSizedBuffer(dAtA[:size])
  1181  }
  1182  
  1183  func (m *SetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1184  	i := len(dAtA)
  1185  	_ = i
  1186  	var l int
  1187  	_ = l
  1188  	return len(dAtA) - i, nil
  1189  }
  1190  
  1191  func (m *GetRequest) Marshal() (dAtA []byte, err error) {
  1192  	size := m.Size()
  1193  	dAtA = make([]byte, size)
  1194  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1195  	if err != nil {
  1196  		return nil, err
  1197  	}
  1198  	return dAtA[:n], nil
  1199  }
  1200  
  1201  func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
  1202  	size := m.Size()
  1203  	return m.MarshalToSizedBuffer(dAtA[:size])
  1204  }
  1205  
  1206  func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1207  	i := len(dAtA)
  1208  	_ = i
  1209  	var l int
  1210  	_ = l
  1211  	if len(m.Name) > 0 {
  1212  		i -= len(m.Name)
  1213  		copy(dAtA[i:], m.Name)
  1214  		i = encodeVarintMetrics(dAtA, i, uint64(len(m.Name)))
  1215  		i--
  1216  		dAtA[i] = 0x12
  1217  	}
  1218  	if m.EntityID != 0 {
  1219  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1220  		i--
  1221  		dAtA[i] = 0x8
  1222  	}
  1223  	return len(dAtA) - i, nil
  1224  }
  1225  
  1226  func (m *GetResponse) Marshal() (dAtA []byte, err error) {
  1227  	size := m.Size()
  1228  	dAtA = make([]byte, size)
  1229  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1230  	if err != nil {
  1231  		return nil, err
  1232  	}
  1233  	return dAtA[:n], nil
  1234  }
  1235  
  1236  func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
  1237  	size := m.Size()
  1238  	return m.MarshalToSizedBuffer(dAtA[:size])
  1239  }
  1240  
  1241  func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1242  	i := len(dAtA)
  1243  	_ = i
  1244  	var l int
  1245  	_ = l
  1246  	if m.Metric != nil {
  1247  		{
  1248  			size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i])
  1249  			if err != nil {
  1250  				return 0, err
  1251  			}
  1252  			i -= size
  1253  			i = encodeVarintMetrics(dAtA, i, uint64(size))
  1254  		}
  1255  		i--
  1256  		dAtA[i] = 0xa
  1257  	}
  1258  	return len(dAtA) - i, nil
  1259  }
  1260  
  1261  func (m *DeleteRequest) Marshal() (dAtA []byte, err error) {
  1262  	size := m.Size()
  1263  	dAtA = make([]byte, size)
  1264  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1265  	if err != nil {
  1266  		return nil, err
  1267  	}
  1268  	return dAtA[:n], nil
  1269  }
  1270  
  1271  func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) {
  1272  	size := m.Size()
  1273  	return m.MarshalToSizedBuffer(dAtA[:size])
  1274  }
  1275  
  1276  func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1277  	i := len(dAtA)
  1278  	_ = i
  1279  	var l int
  1280  	_ = l
  1281  	if len(m.Name) > 0 {
  1282  		i -= len(m.Name)
  1283  		copy(dAtA[i:], m.Name)
  1284  		i = encodeVarintMetrics(dAtA, i, uint64(len(m.Name)))
  1285  		i--
  1286  		dAtA[i] = 0x12
  1287  	}
  1288  	if m.EntityID != 0 {
  1289  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1290  		i--
  1291  		dAtA[i] = 0x8
  1292  	}
  1293  	return len(dAtA) - i, nil
  1294  }
  1295  
  1296  func (m *DeleteResponse) Marshal() (dAtA []byte, err error) {
  1297  	size := m.Size()
  1298  	dAtA = make([]byte, size)
  1299  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1300  	if err != nil {
  1301  		return nil, err
  1302  	}
  1303  	return dAtA[:n], nil
  1304  }
  1305  
  1306  func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) {
  1307  	size := m.Size()
  1308  	return m.MarshalToSizedBuffer(dAtA[:size])
  1309  }
  1310  
  1311  func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1312  	i := len(dAtA)
  1313  	_ = i
  1314  	var l int
  1315  	_ = l
  1316  	return len(dAtA) - i, nil
  1317  }
  1318  
  1319  func (m *DeleteAllRequest) Marshal() (dAtA []byte, err error) {
  1320  	size := m.Size()
  1321  	dAtA = make([]byte, size)
  1322  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1323  	if err != nil {
  1324  		return nil, err
  1325  	}
  1326  	return dAtA[:n], nil
  1327  }
  1328  
  1329  func (m *DeleteAllRequest) MarshalTo(dAtA []byte) (int, error) {
  1330  	size := m.Size()
  1331  	return m.MarshalToSizedBuffer(dAtA[:size])
  1332  }
  1333  
  1334  func (m *DeleteAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1335  	i := len(dAtA)
  1336  	_ = i
  1337  	var l int
  1338  	_ = l
  1339  	if m.EntityID != 0 {
  1340  		i = encodeVarintMetrics(dAtA, i, uint64(m.EntityID))
  1341  		i--
  1342  		dAtA[i] = 0x8
  1343  	}
  1344  	return len(dAtA) - i, nil
  1345  }
  1346  
  1347  func (m *DeleteAllResponse) Marshal() (dAtA []byte, err error) {
  1348  	size := m.Size()
  1349  	dAtA = make([]byte, size)
  1350  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1351  	if err != nil {
  1352  		return nil, err
  1353  	}
  1354  	return dAtA[:n], nil
  1355  }
  1356  
  1357  func (m *DeleteAllResponse) MarshalTo(dAtA []byte) (int, error) {
  1358  	size := m.Size()
  1359  	return m.MarshalToSizedBuffer(dAtA[:size])
  1360  }
  1361  
  1362  func (m *DeleteAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1363  	i := len(dAtA)
  1364  	_ = i
  1365  	var l int
  1366  	_ = l
  1367  	return len(dAtA) - i, nil
  1368  }
  1369  
  1370  func (m *WatchRequest) Marshal() (dAtA []byte, err error) {
  1371  	size := m.Size()
  1372  	dAtA = make([]byte, size)
  1373  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1374  	if err != nil {
  1375  		return nil, err
  1376  	}
  1377  	return dAtA[:n], nil
  1378  }
  1379  
  1380  func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) {
  1381  	size := m.Size()
  1382  	return m.MarshalToSizedBuffer(dAtA[:size])
  1383  }
  1384  
  1385  func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1386  	i := len(dAtA)
  1387  	_ = i
  1388  	var l int
  1389  	_ = l
  1390  	return len(dAtA) - i, nil
  1391  }
  1392  
  1393  func (m *WatchResponse) Marshal() (dAtA []byte, err error) {
  1394  	size := m.Size()
  1395  	dAtA = make([]byte, size)
  1396  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1397  	if err != nil {
  1398  		return nil, err
  1399  	}
  1400  	return dAtA[:n], nil
  1401  }
  1402  
  1403  func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) {
  1404  	size := m.Size()
  1405  	return m.MarshalToSizedBuffer(dAtA[:size])
  1406  }
  1407  
  1408  func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1409  	i := len(dAtA)
  1410  	_ = i
  1411  	var l int
  1412  	_ = l
  1413  	if m.Type != 0 {
  1414  		i = encodeVarintMetrics(dAtA, i, uint64(m.Type))
  1415  		i--
  1416  		dAtA[i] = 0x10
  1417  	}
  1418  	if m.Metric != nil {
  1419  		{
  1420  			size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i])
  1421  			if err != nil {
  1422  				return 0, err
  1423  			}
  1424  			i -= size
  1425  			i = encodeVarintMetrics(dAtA, i, uint64(size))
  1426  		}
  1427  		i--
  1428  		dAtA[i] = 0xa
  1429  	}
  1430  	return len(dAtA) - i, nil
  1431  }
  1432  
  1433  func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int {
  1434  	offset -= sovMetrics(v)
  1435  	base := offset
  1436  	for v >= 1<<7 {
  1437  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1438  		v >>= 7
  1439  		offset++
  1440  	}
  1441  	dAtA[offset] = uint8(v)
  1442  	return base
  1443  }
  1444  func (m *Metric) Size() (n int) {
  1445  	if m == nil {
  1446  		return 0
  1447  	}
  1448  	var l int
  1449  	_ = l
  1450  	if m.EntityID != 0 {
  1451  		n += 1 + sovMetrics(uint64(m.EntityID))
  1452  	}
  1453  	l = len(m.Key)
  1454  	if l > 0 {
  1455  		n += 1 + l + sovMetrics(uint64(l))
  1456  	}
  1457  	l = len(m.Value)
  1458  	if l > 0 {
  1459  		n += 1 + l + sovMetrics(uint64(l))
  1460  	}
  1461  	l = len(m.Type)
  1462  	if l > 0 {
  1463  		n += 1 + l + sovMetrics(uint64(l))
  1464  	}
  1465  	return n
  1466  }
  1467  
  1468  func (m *ListRequest) Size() (n int) {
  1469  	if m == nil {
  1470  		return 0
  1471  	}
  1472  	var l int
  1473  	_ = l
  1474  	if m.EntityID != 0 {
  1475  		n += 1 + sovMetrics(uint64(m.EntityID))
  1476  	}
  1477  	return n
  1478  }
  1479  
  1480  func (m *ListResponse) Size() (n int) {
  1481  	if m == nil {
  1482  		return 0
  1483  	}
  1484  	var l int
  1485  	_ = l
  1486  	if m.EntityID != 0 {
  1487  		n += 1 + sovMetrics(uint64(m.EntityID))
  1488  	}
  1489  	if len(m.Metrics) > 0 {
  1490  		for _, e := range m.Metrics {
  1491  			l = e.Size()
  1492  			n += 1 + l + sovMetrics(uint64(l))
  1493  		}
  1494  	}
  1495  	return n
  1496  }
  1497  
  1498  func (m *SetRequest) Size() (n int) {
  1499  	if m == nil {
  1500  		return 0
  1501  	}
  1502  	var l int
  1503  	_ = l
  1504  	if m.Metric != nil {
  1505  		l = m.Metric.Size()
  1506  		n += 1 + l + sovMetrics(uint64(l))
  1507  	}
  1508  	return n
  1509  }
  1510  
  1511  func (m *SetResponse) Size() (n int) {
  1512  	if m == nil {
  1513  		return 0
  1514  	}
  1515  	var l int
  1516  	_ = l
  1517  	return n
  1518  }
  1519  
  1520  func (m *GetRequest) Size() (n int) {
  1521  	if m == nil {
  1522  		return 0
  1523  	}
  1524  	var l int
  1525  	_ = l
  1526  	if m.EntityID != 0 {
  1527  		n += 1 + sovMetrics(uint64(m.EntityID))
  1528  	}
  1529  	l = len(m.Name)
  1530  	if l > 0 {
  1531  		n += 1 + l + sovMetrics(uint64(l))
  1532  	}
  1533  	return n
  1534  }
  1535  
  1536  func (m *GetResponse) Size() (n int) {
  1537  	if m == nil {
  1538  		return 0
  1539  	}
  1540  	var l int
  1541  	_ = l
  1542  	if m.Metric != nil {
  1543  		l = m.Metric.Size()
  1544  		n += 1 + l + sovMetrics(uint64(l))
  1545  	}
  1546  	return n
  1547  }
  1548  
  1549  func (m *DeleteRequest) Size() (n int) {
  1550  	if m == nil {
  1551  		return 0
  1552  	}
  1553  	var l int
  1554  	_ = l
  1555  	if m.EntityID != 0 {
  1556  		n += 1 + sovMetrics(uint64(m.EntityID))
  1557  	}
  1558  	l = len(m.Name)
  1559  	if l > 0 {
  1560  		n += 1 + l + sovMetrics(uint64(l))
  1561  	}
  1562  	return n
  1563  }
  1564  
  1565  func (m *DeleteResponse) Size() (n int) {
  1566  	if m == nil {
  1567  		return 0
  1568  	}
  1569  	var l int
  1570  	_ = l
  1571  	return n
  1572  }
  1573  
  1574  func (m *DeleteAllRequest) Size() (n int) {
  1575  	if m == nil {
  1576  		return 0
  1577  	}
  1578  	var l int
  1579  	_ = l
  1580  	if m.EntityID != 0 {
  1581  		n += 1 + sovMetrics(uint64(m.EntityID))
  1582  	}
  1583  	return n
  1584  }
  1585  
  1586  func (m *DeleteAllResponse) Size() (n int) {
  1587  	if m == nil {
  1588  		return 0
  1589  	}
  1590  	var l int
  1591  	_ = l
  1592  	return n
  1593  }
  1594  
  1595  func (m *WatchRequest) Size() (n int) {
  1596  	if m == nil {
  1597  		return 0
  1598  	}
  1599  	var l int
  1600  	_ = l
  1601  	return n
  1602  }
  1603  
  1604  func (m *WatchResponse) Size() (n int) {
  1605  	if m == nil {
  1606  		return 0
  1607  	}
  1608  	var l int
  1609  	_ = l
  1610  	if m.Metric != nil {
  1611  		l = m.Metric.Size()
  1612  		n += 1 + l + sovMetrics(uint64(l))
  1613  	}
  1614  	if m.Type != 0 {
  1615  		n += 1 + sovMetrics(uint64(m.Type))
  1616  	}
  1617  	return n
  1618  }
  1619  
  1620  func sovMetrics(x uint64) (n int) {
  1621  	return (math_bits.Len64(x|1) + 6) / 7
  1622  }
  1623  func sozMetrics(x uint64) (n int) {
  1624  	return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1625  }
  1626  func (m *Metric) Unmarshal(dAtA []byte) error {
  1627  	l := len(dAtA)
  1628  	iNdEx := 0
  1629  	for iNdEx < l {
  1630  		preIndex := iNdEx
  1631  		var wire uint64
  1632  		for shift := uint(0); ; shift += 7 {
  1633  			if shift >= 64 {
  1634  				return ErrIntOverflowMetrics
  1635  			}
  1636  			if iNdEx >= l {
  1637  				return io.ErrUnexpectedEOF
  1638  			}
  1639  			b := dAtA[iNdEx]
  1640  			iNdEx++
  1641  			wire |= uint64(b&0x7F) << shift
  1642  			if b < 0x80 {
  1643  				break
  1644  			}
  1645  		}
  1646  		fieldNum := int32(wire >> 3)
  1647  		wireType := int(wire & 0x7)
  1648  		if wireType == 4 {
  1649  			return fmt.Errorf("proto: Metric: wiretype end group for non-group")
  1650  		}
  1651  		if fieldNum <= 0 {
  1652  			return fmt.Errorf("proto: Metric: illegal tag %d (wire type %d)", fieldNum, wire)
  1653  		}
  1654  		switch fieldNum {
  1655  		case 1:
  1656  			if wireType != 0 {
  1657  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  1658  			}
  1659  			m.EntityID = 0
  1660  			for shift := uint(0); ; shift += 7 {
  1661  				if shift >= 64 {
  1662  					return ErrIntOverflowMetrics
  1663  				}
  1664  				if iNdEx >= l {
  1665  					return io.ErrUnexpectedEOF
  1666  				}
  1667  				b := dAtA[iNdEx]
  1668  				iNdEx++
  1669  				m.EntityID |= uint64(b&0x7F) << shift
  1670  				if b < 0x80 {
  1671  					break
  1672  				}
  1673  			}
  1674  		case 2:
  1675  			if wireType != 2 {
  1676  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  1677  			}
  1678  			var stringLen uint64
  1679  			for shift := uint(0); ; shift += 7 {
  1680  				if shift >= 64 {
  1681  					return ErrIntOverflowMetrics
  1682  				}
  1683  				if iNdEx >= l {
  1684  					return io.ErrUnexpectedEOF
  1685  				}
  1686  				b := dAtA[iNdEx]
  1687  				iNdEx++
  1688  				stringLen |= uint64(b&0x7F) << shift
  1689  				if b < 0x80 {
  1690  					break
  1691  				}
  1692  			}
  1693  			intStringLen := int(stringLen)
  1694  			if intStringLen < 0 {
  1695  				return ErrInvalidLengthMetrics
  1696  			}
  1697  			postIndex := iNdEx + intStringLen
  1698  			if postIndex < 0 {
  1699  				return ErrInvalidLengthMetrics
  1700  			}
  1701  			if postIndex > l {
  1702  				return io.ErrUnexpectedEOF
  1703  			}
  1704  			m.Key = string(dAtA[iNdEx:postIndex])
  1705  			iNdEx = postIndex
  1706  		case 3:
  1707  			if wireType != 2 {
  1708  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1709  			}
  1710  			var stringLen uint64
  1711  			for shift := uint(0); ; shift += 7 {
  1712  				if shift >= 64 {
  1713  					return ErrIntOverflowMetrics
  1714  				}
  1715  				if iNdEx >= l {
  1716  					return io.ErrUnexpectedEOF
  1717  				}
  1718  				b := dAtA[iNdEx]
  1719  				iNdEx++
  1720  				stringLen |= uint64(b&0x7F) << shift
  1721  				if b < 0x80 {
  1722  					break
  1723  				}
  1724  			}
  1725  			intStringLen := int(stringLen)
  1726  			if intStringLen < 0 {
  1727  				return ErrInvalidLengthMetrics
  1728  			}
  1729  			postIndex := iNdEx + intStringLen
  1730  			if postIndex < 0 {
  1731  				return ErrInvalidLengthMetrics
  1732  			}
  1733  			if postIndex > l {
  1734  				return io.ErrUnexpectedEOF
  1735  			}
  1736  			m.Value = string(dAtA[iNdEx:postIndex])
  1737  			iNdEx = postIndex
  1738  		case 4:
  1739  			if wireType != 2 {
  1740  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1741  			}
  1742  			var stringLen uint64
  1743  			for shift := uint(0); ; shift += 7 {
  1744  				if shift >= 64 {
  1745  					return ErrIntOverflowMetrics
  1746  				}
  1747  				if iNdEx >= l {
  1748  					return io.ErrUnexpectedEOF
  1749  				}
  1750  				b := dAtA[iNdEx]
  1751  				iNdEx++
  1752  				stringLen |= uint64(b&0x7F) << shift
  1753  				if b < 0x80 {
  1754  					break
  1755  				}
  1756  			}
  1757  			intStringLen := int(stringLen)
  1758  			if intStringLen < 0 {
  1759  				return ErrInvalidLengthMetrics
  1760  			}
  1761  			postIndex := iNdEx + intStringLen
  1762  			if postIndex < 0 {
  1763  				return ErrInvalidLengthMetrics
  1764  			}
  1765  			if postIndex > l {
  1766  				return io.ErrUnexpectedEOF
  1767  			}
  1768  			m.Type = string(dAtA[iNdEx:postIndex])
  1769  			iNdEx = postIndex
  1770  		default:
  1771  			iNdEx = preIndex
  1772  			skippy, err := skipMetrics(dAtA[iNdEx:])
  1773  			if err != nil {
  1774  				return err
  1775  			}
  1776  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1777  				return ErrInvalidLengthMetrics
  1778  			}
  1779  			if (iNdEx + skippy) > l {
  1780  				return io.ErrUnexpectedEOF
  1781  			}
  1782  			iNdEx += skippy
  1783  		}
  1784  	}
  1785  
  1786  	if iNdEx > l {
  1787  		return io.ErrUnexpectedEOF
  1788  	}
  1789  	return nil
  1790  }
  1791  func (m *ListRequest) Unmarshal(dAtA []byte) error {
  1792  	l := len(dAtA)
  1793  	iNdEx := 0
  1794  	for iNdEx < l {
  1795  		preIndex := iNdEx
  1796  		var wire uint64
  1797  		for shift := uint(0); ; shift += 7 {
  1798  			if shift >= 64 {
  1799  				return ErrIntOverflowMetrics
  1800  			}
  1801  			if iNdEx >= l {
  1802  				return io.ErrUnexpectedEOF
  1803  			}
  1804  			b := dAtA[iNdEx]
  1805  			iNdEx++
  1806  			wire |= uint64(b&0x7F) << shift
  1807  			if b < 0x80 {
  1808  				break
  1809  			}
  1810  		}
  1811  		fieldNum := int32(wire >> 3)
  1812  		wireType := int(wire & 0x7)
  1813  		if wireType == 4 {
  1814  			return fmt.Errorf("proto: ListRequest: wiretype end group for non-group")
  1815  		}
  1816  		if fieldNum <= 0 {
  1817  			return fmt.Errorf("proto: ListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1818  		}
  1819  		switch fieldNum {
  1820  		case 1:
  1821  			if wireType != 0 {
  1822  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  1823  			}
  1824  			m.EntityID = 0
  1825  			for shift := uint(0); ; shift += 7 {
  1826  				if shift >= 64 {
  1827  					return ErrIntOverflowMetrics
  1828  				}
  1829  				if iNdEx >= l {
  1830  					return io.ErrUnexpectedEOF
  1831  				}
  1832  				b := dAtA[iNdEx]
  1833  				iNdEx++
  1834  				m.EntityID |= uint64(b&0x7F) << shift
  1835  				if b < 0x80 {
  1836  					break
  1837  				}
  1838  			}
  1839  		default:
  1840  			iNdEx = preIndex
  1841  			skippy, err := skipMetrics(dAtA[iNdEx:])
  1842  			if err != nil {
  1843  				return err
  1844  			}
  1845  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1846  				return ErrInvalidLengthMetrics
  1847  			}
  1848  			if (iNdEx + skippy) > l {
  1849  				return io.ErrUnexpectedEOF
  1850  			}
  1851  			iNdEx += skippy
  1852  		}
  1853  	}
  1854  
  1855  	if iNdEx > l {
  1856  		return io.ErrUnexpectedEOF
  1857  	}
  1858  	return nil
  1859  }
  1860  func (m *ListResponse) Unmarshal(dAtA []byte) error {
  1861  	l := len(dAtA)
  1862  	iNdEx := 0
  1863  	for iNdEx < l {
  1864  		preIndex := iNdEx
  1865  		var wire uint64
  1866  		for shift := uint(0); ; shift += 7 {
  1867  			if shift >= 64 {
  1868  				return ErrIntOverflowMetrics
  1869  			}
  1870  			if iNdEx >= l {
  1871  				return io.ErrUnexpectedEOF
  1872  			}
  1873  			b := dAtA[iNdEx]
  1874  			iNdEx++
  1875  			wire |= uint64(b&0x7F) << shift
  1876  			if b < 0x80 {
  1877  				break
  1878  			}
  1879  		}
  1880  		fieldNum := int32(wire >> 3)
  1881  		wireType := int(wire & 0x7)
  1882  		if wireType == 4 {
  1883  			return fmt.Errorf("proto: ListResponse: wiretype end group for non-group")
  1884  		}
  1885  		if fieldNum <= 0 {
  1886  			return fmt.Errorf("proto: ListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1887  		}
  1888  		switch fieldNum {
  1889  		case 1:
  1890  			if wireType != 0 {
  1891  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  1892  			}
  1893  			m.EntityID = 0
  1894  			for shift := uint(0); ; shift += 7 {
  1895  				if shift >= 64 {
  1896  					return ErrIntOverflowMetrics
  1897  				}
  1898  				if iNdEx >= l {
  1899  					return io.ErrUnexpectedEOF
  1900  				}
  1901  				b := dAtA[iNdEx]
  1902  				iNdEx++
  1903  				m.EntityID |= uint64(b&0x7F) << shift
  1904  				if b < 0x80 {
  1905  					break
  1906  				}
  1907  			}
  1908  		case 2:
  1909  			if wireType != 2 {
  1910  				return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  1911  			}
  1912  			var msglen int
  1913  			for shift := uint(0); ; shift += 7 {
  1914  				if shift >= 64 {
  1915  					return ErrIntOverflowMetrics
  1916  				}
  1917  				if iNdEx >= l {
  1918  					return io.ErrUnexpectedEOF
  1919  				}
  1920  				b := dAtA[iNdEx]
  1921  				iNdEx++
  1922  				msglen |= int(b&0x7F) << shift
  1923  				if b < 0x80 {
  1924  					break
  1925  				}
  1926  			}
  1927  			if msglen < 0 {
  1928  				return ErrInvalidLengthMetrics
  1929  			}
  1930  			postIndex := iNdEx + msglen
  1931  			if postIndex < 0 {
  1932  				return ErrInvalidLengthMetrics
  1933  			}
  1934  			if postIndex > l {
  1935  				return io.ErrUnexpectedEOF
  1936  			}
  1937  			m.Metrics = append(m.Metrics, &Metric{})
  1938  			if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1939  				return err
  1940  			}
  1941  			iNdEx = postIndex
  1942  		default:
  1943  			iNdEx = preIndex
  1944  			skippy, err := skipMetrics(dAtA[iNdEx:])
  1945  			if err != nil {
  1946  				return err
  1947  			}
  1948  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1949  				return ErrInvalidLengthMetrics
  1950  			}
  1951  			if (iNdEx + skippy) > l {
  1952  				return io.ErrUnexpectedEOF
  1953  			}
  1954  			iNdEx += skippy
  1955  		}
  1956  	}
  1957  
  1958  	if iNdEx > l {
  1959  		return io.ErrUnexpectedEOF
  1960  	}
  1961  	return nil
  1962  }
  1963  func (m *SetRequest) Unmarshal(dAtA []byte) error {
  1964  	l := len(dAtA)
  1965  	iNdEx := 0
  1966  	for iNdEx < l {
  1967  		preIndex := iNdEx
  1968  		var wire uint64
  1969  		for shift := uint(0); ; shift += 7 {
  1970  			if shift >= 64 {
  1971  				return ErrIntOverflowMetrics
  1972  			}
  1973  			if iNdEx >= l {
  1974  				return io.ErrUnexpectedEOF
  1975  			}
  1976  			b := dAtA[iNdEx]
  1977  			iNdEx++
  1978  			wire |= uint64(b&0x7F) << shift
  1979  			if b < 0x80 {
  1980  				break
  1981  			}
  1982  		}
  1983  		fieldNum := int32(wire >> 3)
  1984  		wireType := int(wire & 0x7)
  1985  		if wireType == 4 {
  1986  			return fmt.Errorf("proto: SetRequest: wiretype end group for non-group")
  1987  		}
  1988  		if fieldNum <= 0 {
  1989  			return fmt.Errorf("proto: SetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1990  		}
  1991  		switch fieldNum {
  1992  		case 1:
  1993  			if wireType != 2 {
  1994  				return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType)
  1995  			}
  1996  			var msglen int
  1997  			for shift := uint(0); ; shift += 7 {
  1998  				if shift >= 64 {
  1999  					return ErrIntOverflowMetrics
  2000  				}
  2001  				if iNdEx >= l {
  2002  					return io.ErrUnexpectedEOF
  2003  				}
  2004  				b := dAtA[iNdEx]
  2005  				iNdEx++
  2006  				msglen |= int(b&0x7F) << shift
  2007  				if b < 0x80 {
  2008  					break
  2009  				}
  2010  			}
  2011  			if msglen < 0 {
  2012  				return ErrInvalidLengthMetrics
  2013  			}
  2014  			postIndex := iNdEx + msglen
  2015  			if postIndex < 0 {
  2016  				return ErrInvalidLengthMetrics
  2017  			}
  2018  			if postIndex > l {
  2019  				return io.ErrUnexpectedEOF
  2020  			}
  2021  			if m.Metric == nil {
  2022  				m.Metric = &Metric{}
  2023  			}
  2024  			if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2025  				return err
  2026  			}
  2027  			iNdEx = postIndex
  2028  		default:
  2029  			iNdEx = preIndex
  2030  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2031  			if err != nil {
  2032  				return err
  2033  			}
  2034  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2035  				return ErrInvalidLengthMetrics
  2036  			}
  2037  			if (iNdEx + skippy) > l {
  2038  				return io.ErrUnexpectedEOF
  2039  			}
  2040  			iNdEx += skippy
  2041  		}
  2042  	}
  2043  
  2044  	if iNdEx > l {
  2045  		return io.ErrUnexpectedEOF
  2046  	}
  2047  	return nil
  2048  }
  2049  func (m *SetResponse) Unmarshal(dAtA []byte) error {
  2050  	l := len(dAtA)
  2051  	iNdEx := 0
  2052  	for iNdEx < l {
  2053  		preIndex := iNdEx
  2054  		var wire uint64
  2055  		for shift := uint(0); ; shift += 7 {
  2056  			if shift >= 64 {
  2057  				return ErrIntOverflowMetrics
  2058  			}
  2059  			if iNdEx >= l {
  2060  				return io.ErrUnexpectedEOF
  2061  			}
  2062  			b := dAtA[iNdEx]
  2063  			iNdEx++
  2064  			wire |= uint64(b&0x7F) << shift
  2065  			if b < 0x80 {
  2066  				break
  2067  			}
  2068  		}
  2069  		fieldNum := int32(wire >> 3)
  2070  		wireType := int(wire & 0x7)
  2071  		if wireType == 4 {
  2072  			return fmt.Errorf("proto: SetResponse: wiretype end group for non-group")
  2073  		}
  2074  		if fieldNum <= 0 {
  2075  			return fmt.Errorf("proto: SetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2076  		}
  2077  		switch fieldNum {
  2078  		default:
  2079  			iNdEx = preIndex
  2080  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2081  			if err != nil {
  2082  				return err
  2083  			}
  2084  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2085  				return ErrInvalidLengthMetrics
  2086  			}
  2087  			if (iNdEx + skippy) > l {
  2088  				return io.ErrUnexpectedEOF
  2089  			}
  2090  			iNdEx += skippy
  2091  		}
  2092  	}
  2093  
  2094  	if iNdEx > l {
  2095  		return io.ErrUnexpectedEOF
  2096  	}
  2097  	return nil
  2098  }
  2099  func (m *GetRequest) Unmarshal(dAtA []byte) error {
  2100  	l := len(dAtA)
  2101  	iNdEx := 0
  2102  	for iNdEx < l {
  2103  		preIndex := iNdEx
  2104  		var wire uint64
  2105  		for shift := uint(0); ; shift += 7 {
  2106  			if shift >= 64 {
  2107  				return ErrIntOverflowMetrics
  2108  			}
  2109  			if iNdEx >= l {
  2110  				return io.ErrUnexpectedEOF
  2111  			}
  2112  			b := dAtA[iNdEx]
  2113  			iNdEx++
  2114  			wire |= uint64(b&0x7F) << shift
  2115  			if b < 0x80 {
  2116  				break
  2117  			}
  2118  		}
  2119  		fieldNum := int32(wire >> 3)
  2120  		wireType := int(wire & 0x7)
  2121  		if wireType == 4 {
  2122  			return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
  2123  		}
  2124  		if fieldNum <= 0 {
  2125  			return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2126  		}
  2127  		switch fieldNum {
  2128  		case 1:
  2129  			if wireType != 0 {
  2130  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  2131  			}
  2132  			m.EntityID = 0
  2133  			for shift := uint(0); ; shift += 7 {
  2134  				if shift >= 64 {
  2135  					return ErrIntOverflowMetrics
  2136  				}
  2137  				if iNdEx >= l {
  2138  					return io.ErrUnexpectedEOF
  2139  				}
  2140  				b := dAtA[iNdEx]
  2141  				iNdEx++
  2142  				m.EntityID |= uint64(b&0x7F) << shift
  2143  				if b < 0x80 {
  2144  					break
  2145  				}
  2146  			}
  2147  		case 2:
  2148  			if wireType != 2 {
  2149  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2150  			}
  2151  			var stringLen uint64
  2152  			for shift := uint(0); ; shift += 7 {
  2153  				if shift >= 64 {
  2154  					return ErrIntOverflowMetrics
  2155  				}
  2156  				if iNdEx >= l {
  2157  					return io.ErrUnexpectedEOF
  2158  				}
  2159  				b := dAtA[iNdEx]
  2160  				iNdEx++
  2161  				stringLen |= uint64(b&0x7F) << shift
  2162  				if b < 0x80 {
  2163  					break
  2164  				}
  2165  			}
  2166  			intStringLen := int(stringLen)
  2167  			if intStringLen < 0 {
  2168  				return ErrInvalidLengthMetrics
  2169  			}
  2170  			postIndex := iNdEx + intStringLen
  2171  			if postIndex < 0 {
  2172  				return ErrInvalidLengthMetrics
  2173  			}
  2174  			if postIndex > l {
  2175  				return io.ErrUnexpectedEOF
  2176  			}
  2177  			m.Name = string(dAtA[iNdEx:postIndex])
  2178  			iNdEx = postIndex
  2179  		default:
  2180  			iNdEx = preIndex
  2181  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2182  			if err != nil {
  2183  				return err
  2184  			}
  2185  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2186  				return ErrInvalidLengthMetrics
  2187  			}
  2188  			if (iNdEx + skippy) > l {
  2189  				return io.ErrUnexpectedEOF
  2190  			}
  2191  			iNdEx += skippy
  2192  		}
  2193  	}
  2194  
  2195  	if iNdEx > l {
  2196  		return io.ErrUnexpectedEOF
  2197  	}
  2198  	return nil
  2199  }
  2200  func (m *GetResponse) Unmarshal(dAtA []byte) error {
  2201  	l := len(dAtA)
  2202  	iNdEx := 0
  2203  	for iNdEx < l {
  2204  		preIndex := iNdEx
  2205  		var wire uint64
  2206  		for shift := uint(0); ; shift += 7 {
  2207  			if shift >= 64 {
  2208  				return ErrIntOverflowMetrics
  2209  			}
  2210  			if iNdEx >= l {
  2211  				return io.ErrUnexpectedEOF
  2212  			}
  2213  			b := dAtA[iNdEx]
  2214  			iNdEx++
  2215  			wire |= uint64(b&0x7F) << shift
  2216  			if b < 0x80 {
  2217  				break
  2218  			}
  2219  		}
  2220  		fieldNum := int32(wire >> 3)
  2221  		wireType := int(wire & 0x7)
  2222  		if wireType == 4 {
  2223  			return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
  2224  		}
  2225  		if fieldNum <= 0 {
  2226  			return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2227  		}
  2228  		switch fieldNum {
  2229  		case 1:
  2230  			if wireType != 2 {
  2231  				return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType)
  2232  			}
  2233  			var msglen int
  2234  			for shift := uint(0); ; shift += 7 {
  2235  				if shift >= 64 {
  2236  					return ErrIntOverflowMetrics
  2237  				}
  2238  				if iNdEx >= l {
  2239  					return io.ErrUnexpectedEOF
  2240  				}
  2241  				b := dAtA[iNdEx]
  2242  				iNdEx++
  2243  				msglen |= int(b&0x7F) << shift
  2244  				if b < 0x80 {
  2245  					break
  2246  				}
  2247  			}
  2248  			if msglen < 0 {
  2249  				return ErrInvalidLengthMetrics
  2250  			}
  2251  			postIndex := iNdEx + msglen
  2252  			if postIndex < 0 {
  2253  				return ErrInvalidLengthMetrics
  2254  			}
  2255  			if postIndex > l {
  2256  				return io.ErrUnexpectedEOF
  2257  			}
  2258  			if m.Metric == nil {
  2259  				m.Metric = &Metric{}
  2260  			}
  2261  			if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2262  				return err
  2263  			}
  2264  			iNdEx = postIndex
  2265  		default:
  2266  			iNdEx = preIndex
  2267  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2268  			if err != nil {
  2269  				return err
  2270  			}
  2271  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2272  				return ErrInvalidLengthMetrics
  2273  			}
  2274  			if (iNdEx + skippy) > l {
  2275  				return io.ErrUnexpectedEOF
  2276  			}
  2277  			iNdEx += skippy
  2278  		}
  2279  	}
  2280  
  2281  	if iNdEx > l {
  2282  		return io.ErrUnexpectedEOF
  2283  	}
  2284  	return nil
  2285  }
  2286  func (m *DeleteRequest) Unmarshal(dAtA []byte) error {
  2287  	l := len(dAtA)
  2288  	iNdEx := 0
  2289  	for iNdEx < l {
  2290  		preIndex := iNdEx
  2291  		var wire uint64
  2292  		for shift := uint(0); ; shift += 7 {
  2293  			if shift >= 64 {
  2294  				return ErrIntOverflowMetrics
  2295  			}
  2296  			if iNdEx >= l {
  2297  				return io.ErrUnexpectedEOF
  2298  			}
  2299  			b := dAtA[iNdEx]
  2300  			iNdEx++
  2301  			wire |= uint64(b&0x7F) << shift
  2302  			if b < 0x80 {
  2303  				break
  2304  			}
  2305  		}
  2306  		fieldNum := int32(wire >> 3)
  2307  		wireType := int(wire & 0x7)
  2308  		if wireType == 4 {
  2309  			return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group")
  2310  		}
  2311  		if fieldNum <= 0 {
  2312  			return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2313  		}
  2314  		switch fieldNum {
  2315  		case 1:
  2316  			if wireType != 0 {
  2317  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  2318  			}
  2319  			m.EntityID = 0
  2320  			for shift := uint(0); ; shift += 7 {
  2321  				if shift >= 64 {
  2322  					return ErrIntOverflowMetrics
  2323  				}
  2324  				if iNdEx >= l {
  2325  					return io.ErrUnexpectedEOF
  2326  				}
  2327  				b := dAtA[iNdEx]
  2328  				iNdEx++
  2329  				m.EntityID |= uint64(b&0x7F) << shift
  2330  				if b < 0x80 {
  2331  					break
  2332  				}
  2333  			}
  2334  		case 2:
  2335  			if wireType != 2 {
  2336  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2337  			}
  2338  			var stringLen uint64
  2339  			for shift := uint(0); ; shift += 7 {
  2340  				if shift >= 64 {
  2341  					return ErrIntOverflowMetrics
  2342  				}
  2343  				if iNdEx >= l {
  2344  					return io.ErrUnexpectedEOF
  2345  				}
  2346  				b := dAtA[iNdEx]
  2347  				iNdEx++
  2348  				stringLen |= uint64(b&0x7F) << shift
  2349  				if b < 0x80 {
  2350  					break
  2351  				}
  2352  			}
  2353  			intStringLen := int(stringLen)
  2354  			if intStringLen < 0 {
  2355  				return ErrInvalidLengthMetrics
  2356  			}
  2357  			postIndex := iNdEx + intStringLen
  2358  			if postIndex < 0 {
  2359  				return ErrInvalidLengthMetrics
  2360  			}
  2361  			if postIndex > l {
  2362  				return io.ErrUnexpectedEOF
  2363  			}
  2364  			m.Name = string(dAtA[iNdEx:postIndex])
  2365  			iNdEx = postIndex
  2366  		default:
  2367  			iNdEx = preIndex
  2368  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2369  			if err != nil {
  2370  				return err
  2371  			}
  2372  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2373  				return ErrInvalidLengthMetrics
  2374  			}
  2375  			if (iNdEx + skippy) > l {
  2376  				return io.ErrUnexpectedEOF
  2377  			}
  2378  			iNdEx += skippy
  2379  		}
  2380  	}
  2381  
  2382  	if iNdEx > l {
  2383  		return io.ErrUnexpectedEOF
  2384  	}
  2385  	return nil
  2386  }
  2387  func (m *DeleteResponse) Unmarshal(dAtA []byte) error {
  2388  	l := len(dAtA)
  2389  	iNdEx := 0
  2390  	for iNdEx < l {
  2391  		preIndex := iNdEx
  2392  		var wire uint64
  2393  		for shift := uint(0); ; shift += 7 {
  2394  			if shift >= 64 {
  2395  				return ErrIntOverflowMetrics
  2396  			}
  2397  			if iNdEx >= l {
  2398  				return io.ErrUnexpectedEOF
  2399  			}
  2400  			b := dAtA[iNdEx]
  2401  			iNdEx++
  2402  			wire |= uint64(b&0x7F) << shift
  2403  			if b < 0x80 {
  2404  				break
  2405  			}
  2406  		}
  2407  		fieldNum := int32(wire >> 3)
  2408  		wireType := int(wire & 0x7)
  2409  		if wireType == 4 {
  2410  			return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group")
  2411  		}
  2412  		if fieldNum <= 0 {
  2413  			return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2414  		}
  2415  		switch fieldNum {
  2416  		default:
  2417  			iNdEx = preIndex
  2418  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2419  			if err != nil {
  2420  				return err
  2421  			}
  2422  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2423  				return ErrInvalidLengthMetrics
  2424  			}
  2425  			if (iNdEx + skippy) > l {
  2426  				return io.ErrUnexpectedEOF
  2427  			}
  2428  			iNdEx += skippy
  2429  		}
  2430  	}
  2431  
  2432  	if iNdEx > l {
  2433  		return io.ErrUnexpectedEOF
  2434  	}
  2435  	return nil
  2436  }
  2437  func (m *DeleteAllRequest) Unmarshal(dAtA []byte) error {
  2438  	l := len(dAtA)
  2439  	iNdEx := 0
  2440  	for iNdEx < l {
  2441  		preIndex := iNdEx
  2442  		var wire uint64
  2443  		for shift := uint(0); ; shift += 7 {
  2444  			if shift >= 64 {
  2445  				return ErrIntOverflowMetrics
  2446  			}
  2447  			if iNdEx >= l {
  2448  				return io.ErrUnexpectedEOF
  2449  			}
  2450  			b := dAtA[iNdEx]
  2451  			iNdEx++
  2452  			wire |= uint64(b&0x7F) << shift
  2453  			if b < 0x80 {
  2454  				break
  2455  			}
  2456  		}
  2457  		fieldNum := int32(wire >> 3)
  2458  		wireType := int(wire & 0x7)
  2459  		if wireType == 4 {
  2460  			return fmt.Errorf("proto: DeleteAllRequest: wiretype end group for non-group")
  2461  		}
  2462  		if fieldNum <= 0 {
  2463  			return fmt.Errorf("proto: DeleteAllRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2464  		}
  2465  		switch fieldNum {
  2466  		case 1:
  2467  			if wireType != 0 {
  2468  				return fmt.Errorf("proto: wrong wireType = %d for field EntityID", wireType)
  2469  			}
  2470  			m.EntityID = 0
  2471  			for shift := uint(0); ; shift += 7 {
  2472  				if shift >= 64 {
  2473  					return ErrIntOverflowMetrics
  2474  				}
  2475  				if iNdEx >= l {
  2476  					return io.ErrUnexpectedEOF
  2477  				}
  2478  				b := dAtA[iNdEx]
  2479  				iNdEx++
  2480  				m.EntityID |= uint64(b&0x7F) << shift
  2481  				if b < 0x80 {
  2482  					break
  2483  				}
  2484  			}
  2485  		default:
  2486  			iNdEx = preIndex
  2487  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2488  			if err != nil {
  2489  				return err
  2490  			}
  2491  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2492  				return ErrInvalidLengthMetrics
  2493  			}
  2494  			if (iNdEx + skippy) > l {
  2495  				return io.ErrUnexpectedEOF
  2496  			}
  2497  			iNdEx += skippy
  2498  		}
  2499  	}
  2500  
  2501  	if iNdEx > l {
  2502  		return io.ErrUnexpectedEOF
  2503  	}
  2504  	return nil
  2505  }
  2506  func (m *DeleteAllResponse) Unmarshal(dAtA []byte) error {
  2507  	l := len(dAtA)
  2508  	iNdEx := 0
  2509  	for iNdEx < l {
  2510  		preIndex := iNdEx
  2511  		var wire uint64
  2512  		for shift := uint(0); ; shift += 7 {
  2513  			if shift >= 64 {
  2514  				return ErrIntOverflowMetrics
  2515  			}
  2516  			if iNdEx >= l {
  2517  				return io.ErrUnexpectedEOF
  2518  			}
  2519  			b := dAtA[iNdEx]
  2520  			iNdEx++
  2521  			wire |= uint64(b&0x7F) << shift
  2522  			if b < 0x80 {
  2523  				break
  2524  			}
  2525  		}
  2526  		fieldNum := int32(wire >> 3)
  2527  		wireType := int(wire & 0x7)
  2528  		if wireType == 4 {
  2529  			return fmt.Errorf("proto: DeleteAllResponse: wiretype end group for non-group")
  2530  		}
  2531  		if fieldNum <= 0 {
  2532  			return fmt.Errorf("proto: DeleteAllResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2533  		}
  2534  		switch fieldNum {
  2535  		default:
  2536  			iNdEx = preIndex
  2537  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2538  			if err != nil {
  2539  				return err
  2540  			}
  2541  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2542  				return ErrInvalidLengthMetrics
  2543  			}
  2544  			if (iNdEx + skippy) > l {
  2545  				return io.ErrUnexpectedEOF
  2546  			}
  2547  			iNdEx += skippy
  2548  		}
  2549  	}
  2550  
  2551  	if iNdEx > l {
  2552  		return io.ErrUnexpectedEOF
  2553  	}
  2554  	return nil
  2555  }
  2556  func (m *WatchRequest) Unmarshal(dAtA []byte) error {
  2557  	l := len(dAtA)
  2558  	iNdEx := 0
  2559  	for iNdEx < l {
  2560  		preIndex := iNdEx
  2561  		var wire uint64
  2562  		for shift := uint(0); ; shift += 7 {
  2563  			if shift >= 64 {
  2564  				return ErrIntOverflowMetrics
  2565  			}
  2566  			if iNdEx >= l {
  2567  				return io.ErrUnexpectedEOF
  2568  			}
  2569  			b := dAtA[iNdEx]
  2570  			iNdEx++
  2571  			wire |= uint64(b&0x7F) << shift
  2572  			if b < 0x80 {
  2573  				break
  2574  			}
  2575  		}
  2576  		fieldNum := int32(wire >> 3)
  2577  		wireType := int(wire & 0x7)
  2578  		if wireType == 4 {
  2579  			return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group")
  2580  		}
  2581  		if fieldNum <= 0 {
  2582  			return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2583  		}
  2584  		switch fieldNum {
  2585  		default:
  2586  			iNdEx = preIndex
  2587  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2588  			if err != nil {
  2589  				return err
  2590  			}
  2591  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2592  				return ErrInvalidLengthMetrics
  2593  			}
  2594  			if (iNdEx + skippy) > l {
  2595  				return io.ErrUnexpectedEOF
  2596  			}
  2597  			iNdEx += skippy
  2598  		}
  2599  	}
  2600  
  2601  	if iNdEx > l {
  2602  		return io.ErrUnexpectedEOF
  2603  	}
  2604  	return nil
  2605  }
  2606  func (m *WatchResponse) Unmarshal(dAtA []byte) error {
  2607  	l := len(dAtA)
  2608  	iNdEx := 0
  2609  	for iNdEx < l {
  2610  		preIndex := iNdEx
  2611  		var wire uint64
  2612  		for shift := uint(0); ; shift += 7 {
  2613  			if shift >= 64 {
  2614  				return ErrIntOverflowMetrics
  2615  			}
  2616  			if iNdEx >= l {
  2617  				return io.ErrUnexpectedEOF
  2618  			}
  2619  			b := dAtA[iNdEx]
  2620  			iNdEx++
  2621  			wire |= uint64(b&0x7F) << shift
  2622  			if b < 0x80 {
  2623  				break
  2624  			}
  2625  		}
  2626  		fieldNum := int32(wire >> 3)
  2627  		wireType := int(wire & 0x7)
  2628  		if wireType == 4 {
  2629  			return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group")
  2630  		}
  2631  		if fieldNum <= 0 {
  2632  			return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2633  		}
  2634  		switch fieldNum {
  2635  		case 1:
  2636  			if wireType != 2 {
  2637  				return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType)
  2638  			}
  2639  			var msglen int
  2640  			for shift := uint(0); ; shift += 7 {
  2641  				if shift >= 64 {
  2642  					return ErrIntOverflowMetrics
  2643  				}
  2644  				if iNdEx >= l {
  2645  					return io.ErrUnexpectedEOF
  2646  				}
  2647  				b := dAtA[iNdEx]
  2648  				iNdEx++
  2649  				msglen |= int(b&0x7F) << shift
  2650  				if b < 0x80 {
  2651  					break
  2652  				}
  2653  			}
  2654  			if msglen < 0 {
  2655  				return ErrInvalidLengthMetrics
  2656  			}
  2657  			postIndex := iNdEx + msglen
  2658  			if postIndex < 0 {
  2659  				return ErrInvalidLengthMetrics
  2660  			}
  2661  			if postIndex > l {
  2662  				return io.ErrUnexpectedEOF
  2663  			}
  2664  			if m.Metric == nil {
  2665  				m.Metric = &Metric{}
  2666  			}
  2667  			if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2668  				return err
  2669  			}
  2670  			iNdEx = postIndex
  2671  		case 2:
  2672  			if wireType != 0 {
  2673  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2674  			}
  2675  			m.Type = 0
  2676  			for shift := uint(0); ; shift += 7 {
  2677  				if shift >= 64 {
  2678  					return ErrIntOverflowMetrics
  2679  				}
  2680  				if iNdEx >= l {
  2681  					return io.ErrUnexpectedEOF
  2682  				}
  2683  				b := dAtA[iNdEx]
  2684  				iNdEx++
  2685  				m.Type |= EventType(b&0x7F) << shift
  2686  				if b < 0x80 {
  2687  					break
  2688  				}
  2689  			}
  2690  		default:
  2691  			iNdEx = preIndex
  2692  			skippy, err := skipMetrics(dAtA[iNdEx:])
  2693  			if err != nil {
  2694  				return err
  2695  			}
  2696  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2697  				return ErrInvalidLengthMetrics
  2698  			}
  2699  			if (iNdEx + skippy) > l {
  2700  				return io.ErrUnexpectedEOF
  2701  			}
  2702  			iNdEx += skippy
  2703  		}
  2704  	}
  2705  
  2706  	if iNdEx > l {
  2707  		return io.ErrUnexpectedEOF
  2708  	}
  2709  	return nil
  2710  }
  2711  func skipMetrics(dAtA []byte) (n int, err error) {
  2712  	l := len(dAtA)
  2713  	iNdEx := 0
  2714  	depth := 0
  2715  	for iNdEx < l {
  2716  		var wire uint64
  2717  		for shift := uint(0); ; shift += 7 {
  2718  			if shift >= 64 {
  2719  				return 0, ErrIntOverflowMetrics
  2720  			}
  2721  			if iNdEx >= l {
  2722  				return 0, io.ErrUnexpectedEOF
  2723  			}
  2724  			b := dAtA[iNdEx]
  2725  			iNdEx++
  2726  			wire |= (uint64(b) & 0x7F) << shift
  2727  			if b < 0x80 {
  2728  				break
  2729  			}
  2730  		}
  2731  		wireType := int(wire & 0x7)
  2732  		switch wireType {
  2733  		case 0:
  2734  			for shift := uint(0); ; shift += 7 {
  2735  				if shift >= 64 {
  2736  					return 0, ErrIntOverflowMetrics
  2737  				}
  2738  				if iNdEx >= l {
  2739  					return 0, io.ErrUnexpectedEOF
  2740  				}
  2741  				iNdEx++
  2742  				if dAtA[iNdEx-1] < 0x80 {
  2743  					break
  2744  				}
  2745  			}
  2746  		case 1:
  2747  			iNdEx += 8
  2748  		case 2:
  2749  			var length int
  2750  			for shift := uint(0); ; shift += 7 {
  2751  				if shift >= 64 {
  2752  					return 0, ErrIntOverflowMetrics
  2753  				}
  2754  				if iNdEx >= l {
  2755  					return 0, io.ErrUnexpectedEOF
  2756  				}
  2757  				b := dAtA[iNdEx]
  2758  				iNdEx++
  2759  				length |= (int(b) & 0x7F) << shift
  2760  				if b < 0x80 {
  2761  					break
  2762  				}
  2763  			}
  2764  			if length < 0 {
  2765  				return 0, ErrInvalidLengthMetrics
  2766  			}
  2767  			iNdEx += length
  2768  		case 3:
  2769  			depth++
  2770  		case 4:
  2771  			if depth == 0 {
  2772  				return 0, ErrUnexpectedEndOfGroupMetrics
  2773  			}
  2774  			depth--
  2775  		case 5:
  2776  			iNdEx += 4
  2777  		default:
  2778  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2779  		}
  2780  		if iNdEx < 0 {
  2781  			return 0, ErrInvalidLengthMetrics
  2782  		}
  2783  		if depth == 0 {
  2784  			return iNdEx, nil
  2785  		}
  2786  	}
  2787  	return 0, io.ErrUnexpectedEOF
  2788  }
  2789  
  2790  var (
  2791  	ErrInvalidLengthMetrics        = fmt.Errorf("proto: negative length found during unmarshaling")
  2792  	ErrIntOverflowMetrics          = fmt.Errorf("proto: integer overflow")
  2793  	ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group")
  2794  )