github.com/kubewharf/katalyst-core@v0.5.3/pkg/agent/qrm-plugins/advisorsvc/advisor_svc.pb.go (about)

     1  /*
     2  Copyright 2022 The Katalyst Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */ // Code generated by protoc-gen-gogo. DO NOT EDIT.
    16  // source: advisor_svc.proto
    17  
    18  package advisorsvc
    19  
    20  import (
    21  	context "context"
    22  	fmt "fmt"
    23  	_ "github.com/gogo/protobuf/gogoproto"
    24  	proto "github.com/gogo/protobuf/proto"
    25  	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    26  	grpc "google.golang.org/grpc"
    27  	codes "google.golang.org/grpc/codes"
    28  	status "google.golang.org/grpc/status"
    29  	io "io"
    30  	v1alpha1 "k8s.io/kubelet/pkg/apis/resourceplugin/v1alpha1"
    31  	math "math"
    32  	math_bits "math/bits"
    33  	reflect "reflect"
    34  	strings "strings"
    35  )
    36  
    37  // Reference imports to suppress errors if they are not otherwise used.
    38  var _ = proto.Marshal
    39  var _ = fmt.Errorf
    40  var _ = math.Inf
    41  
    42  // This is a compile-time assertion to ensure that this generated file
    43  // is compatible with the proto package it is being compiled against.
    44  // A compilation error at this line likely means your copy of the
    45  // proto package needs to be updated.
    46  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    47  
    48  // containing metadata of the container which won't be changed during container's lifecycle
    49  type ContainerMetadata struct {
    50  	PodUid               string                 `protobuf:"bytes,1,opt,name=pod_uid,json=podUid,proto3" json:"pod_uid,omitempty"`
    51  	PodNamespace         string                 `protobuf:"bytes,2,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"`
    52  	PodName              string                 `protobuf:"bytes,3,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
    53  	ContainerName        string                 `protobuf:"bytes,4,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
    54  	ContainerType        v1alpha1.ContainerType `protobuf:"varint,5,opt,name=container_type,json=containerType,proto3,enum=resourceplugin.v1alpha1.ContainerType" json:"container_type,omitempty"`
    55  	ContainerIndex       uint64                 `protobuf:"varint,6,opt,name=container_index,json=containerIndex,proto3" json:"container_index,omitempty"`
    56  	Labels               map[string]string      `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    57  	Annotations          map[string]string      `protobuf:"bytes,8,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    58  	QosLevel             string                 `protobuf:"bytes,9,opt,name=qos_level,json=qosLevel,proto3" json:"qos_level,omitempty"`
    59  	RequestQuantity      uint64                 `protobuf:"varint,10,opt,name=requestQuantity,proto3" json:"requestQuantity,omitempty"`
    60  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    61  	XXX_sizecache        int32                  `json:"-"`
    62  }
    63  
    64  func (m *ContainerMetadata) Reset()      { *m = ContainerMetadata{} }
    65  func (*ContainerMetadata) ProtoMessage() {}
    66  func (*ContainerMetadata) Descriptor() ([]byte, []int) {
    67  	return fileDescriptor_870376c87c2a4145, []int{0}
    68  }
    69  func (m *ContainerMetadata) XXX_Unmarshal(b []byte) error {
    70  	return m.Unmarshal(b)
    71  }
    72  func (m *ContainerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    73  	if deterministic {
    74  		return xxx_messageInfo_ContainerMetadata.Marshal(b, m, deterministic)
    75  	} else {
    76  		b = b[:cap(b)]
    77  		n, err := m.MarshalToSizedBuffer(b)
    78  		if err != nil {
    79  			return nil, err
    80  		}
    81  		return b[:n], nil
    82  	}
    83  }
    84  func (m *ContainerMetadata) XXX_Merge(src proto.Message) {
    85  	xxx_messageInfo_ContainerMetadata.Merge(m, src)
    86  }
    87  func (m *ContainerMetadata) XXX_Size() int {
    88  	return m.Size()
    89  }
    90  func (m *ContainerMetadata) XXX_DiscardUnknown() {
    91  	xxx_messageInfo_ContainerMetadata.DiscardUnknown(m)
    92  }
    93  
    94  var xxx_messageInfo_ContainerMetadata proto.InternalMessageInfo
    95  
    96  func (m *ContainerMetadata) GetPodUid() string {
    97  	if m != nil {
    98  		return m.PodUid
    99  	}
   100  	return ""
   101  }
   102  
   103  func (m *ContainerMetadata) GetPodNamespace() string {
   104  	if m != nil {
   105  		return m.PodNamespace
   106  	}
   107  	return ""
   108  }
   109  
   110  func (m *ContainerMetadata) GetPodName() string {
   111  	if m != nil {
   112  		return m.PodName
   113  	}
   114  	return ""
   115  }
   116  
   117  func (m *ContainerMetadata) GetContainerName() string {
   118  	if m != nil {
   119  		return m.ContainerName
   120  	}
   121  	return ""
   122  }
   123  
   124  func (m *ContainerMetadata) GetContainerType() v1alpha1.ContainerType {
   125  	if m != nil {
   126  		return m.ContainerType
   127  	}
   128  	return v1alpha1.ContainerType_INIT
   129  }
   130  
   131  func (m *ContainerMetadata) GetContainerIndex() uint64 {
   132  	if m != nil {
   133  		return m.ContainerIndex
   134  	}
   135  	return 0
   136  }
   137  
   138  func (m *ContainerMetadata) GetLabels() map[string]string {
   139  	if m != nil {
   140  		return m.Labels
   141  	}
   142  	return nil
   143  }
   144  
   145  func (m *ContainerMetadata) GetAnnotations() map[string]string {
   146  	if m != nil {
   147  		return m.Annotations
   148  	}
   149  	return nil
   150  }
   151  
   152  func (m *ContainerMetadata) GetQosLevel() string {
   153  	if m != nil {
   154  		return m.QosLevel
   155  	}
   156  	return ""
   157  }
   158  
   159  func (m *ContainerMetadata) GetRequestQuantity() uint64 {
   160  	if m != nil {
   161  		return m.RequestQuantity
   162  	}
   163  	return 0
   164  }
   165  
   166  type AddContainerResponse struct {
   167  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   168  	XXX_sizecache        int32    `json:"-"`
   169  }
   170  
   171  func (m *AddContainerResponse) Reset()      { *m = AddContainerResponse{} }
   172  func (*AddContainerResponse) ProtoMessage() {}
   173  func (*AddContainerResponse) Descriptor() ([]byte, []int) {
   174  	return fileDescriptor_870376c87c2a4145, []int{1}
   175  }
   176  func (m *AddContainerResponse) XXX_Unmarshal(b []byte) error {
   177  	return m.Unmarshal(b)
   178  }
   179  func (m *AddContainerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   180  	if deterministic {
   181  		return xxx_messageInfo_AddContainerResponse.Marshal(b, m, deterministic)
   182  	} else {
   183  		b = b[:cap(b)]
   184  		n, err := m.MarshalToSizedBuffer(b)
   185  		if err != nil {
   186  			return nil, err
   187  		}
   188  		return b[:n], nil
   189  	}
   190  }
   191  func (m *AddContainerResponse) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_AddContainerResponse.Merge(m, src)
   193  }
   194  func (m *AddContainerResponse) XXX_Size() int {
   195  	return m.Size()
   196  }
   197  func (m *AddContainerResponse) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_AddContainerResponse.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_AddContainerResponse proto.InternalMessageInfo
   202  
   203  type Empty struct {
   204  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   205  	XXX_sizecache        int32    `json:"-"`
   206  }
   207  
   208  func (m *Empty) Reset()      { *m = Empty{} }
   209  func (*Empty) ProtoMessage() {}
   210  func (*Empty) Descriptor() ([]byte, []int) {
   211  	return fileDescriptor_870376c87c2a4145, []int{2}
   212  }
   213  func (m *Empty) XXX_Unmarshal(b []byte) error {
   214  	return m.Unmarshal(b)
   215  }
   216  func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   217  	if deterministic {
   218  		return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
   219  	} else {
   220  		b = b[:cap(b)]
   221  		n, err := m.MarshalToSizedBuffer(b)
   222  		if err != nil {
   223  			return nil, err
   224  		}
   225  		return b[:n], nil
   226  	}
   227  }
   228  func (m *Empty) XXX_Merge(src proto.Message) {
   229  	xxx_messageInfo_Empty.Merge(m, src)
   230  }
   231  func (m *Empty) XXX_Size() int {
   232  	return m.Size()
   233  }
   234  func (m *Empty) XXX_DiscardUnknown() {
   235  	xxx_messageInfo_Empty.DiscardUnknown(m)
   236  }
   237  
   238  var xxx_messageInfo_Empty proto.InternalMessageInfo
   239  
   240  type RemovePodRequest struct {
   241  	PodUid               string   `protobuf:"bytes,1,opt,name=pod_uid,json=podUid,proto3" json:"pod_uid,omitempty"`
   242  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   243  	XXX_sizecache        int32    `json:"-"`
   244  }
   245  
   246  func (m *RemovePodRequest) Reset()      { *m = RemovePodRequest{} }
   247  func (*RemovePodRequest) ProtoMessage() {}
   248  func (*RemovePodRequest) Descriptor() ([]byte, []int) {
   249  	return fileDescriptor_870376c87c2a4145, []int{3}
   250  }
   251  func (m *RemovePodRequest) XXX_Unmarshal(b []byte) error {
   252  	return m.Unmarshal(b)
   253  }
   254  func (m *RemovePodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   255  	if deterministic {
   256  		return xxx_messageInfo_RemovePodRequest.Marshal(b, m, deterministic)
   257  	} else {
   258  		b = b[:cap(b)]
   259  		n, err := m.MarshalToSizedBuffer(b)
   260  		if err != nil {
   261  			return nil, err
   262  		}
   263  		return b[:n], nil
   264  	}
   265  }
   266  func (m *RemovePodRequest) XXX_Merge(src proto.Message) {
   267  	xxx_messageInfo_RemovePodRequest.Merge(m, src)
   268  }
   269  func (m *RemovePodRequest) XXX_Size() int {
   270  	return m.Size()
   271  }
   272  func (m *RemovePodRequest) XXX_DiscardUnknown() {
   273  	xxx_messageInfo_RemovePodRequest.DiscardUnknown(m)
   274  }
   275  
   276  var xxx_messageInfo_RemovePodRequest proto.InternalMessageInfo
   277  
   278  func (m *RemovePodRequest) GetPodUid() string {
   279  	if m != nil {
   280  		return m.PodUid
   281  	}
   282  	return ""
   283  }
   284  
   285  type RemovePodResponse struct {
   286  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   287  	XXX_sizecache        int32    `json:"-"`
   288  }
   289  
   290  func (m *RemovePodResponse) Reset()      { *m = RemovePodResponse{} }
   291  func (*RemovePodResponse) ProtoMessage() {}
   292  func (*RemovePodResponse) Descriptor() ([]byte, []int) {
   293  	return fileDescriptor_870376c87c2a4145, []int{4}
   294  }
   295  func (m *RemovePodResponse) XXX_Unmarshal(b []byte) error {
   296  	return m.Unmarshal(b)
   297  }
   298  func (m *RemovePodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   299  	if deterministic {
   300  		return xxx_messageInfo_RemovePodResponse.Marshal(b, m, deterministic)
   301  	} else {
   302  		b = b[:cap(b)]
   303  		n, err := m.MarshalToSizedBuffer(b)
   304  		if err != nil {
   305  			return nil, err
   306  		}
   307  		return b[:n], nil
   308  	}
   309  }
   310  func (m *RemovePodResponse) XXX_Merge(src proto.Message) {
   311  	xxx_messageInfo_RemovePodResponse.Merge(m, src)
   312  }
   313  func (m *RemovePodResponse) XXX_Size() int {
   314  	return m.Size()
   315  }
   316  func (m *RemovePodResponse) XXX_DiscardUnknown() {
   317  	xxx_messageInfo_RemovePodResponse.DiscardUnknown(m)
   318  }
   319  
   320  var xxx_messageInfo_RemovePodResponse proto.InternalMessageInfo
   321  
   322  type ListAndWatchResponse struct {
   323  	PodEntries           map[string]*CalculationEntries `protobuf:"bytes,1,rep,name=pod_entries,json=podEntries,proto3" json:"pod_entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   324  	ExtraEntries         []*CalculationInfo             `protobuf:"bytes,2,rep,name=extra_entries,json=extraEntries,proto3" json:"extra_entries,omitempty"`
   325  	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
   326  	XXX_sizecache        int32                          `json:"-"`
   327  }
   328  
   329  func (m *ListAndWatchResponse) Reset()      { *m = ListAndWatchResponse{} }
   330  func (*ListAndWatchResponse) ProtoMessage() {}
   331  func (*ListAndWatchResponse) Descriptor() ([]byte, []int) {
   332  	return fileDescriptor_870376c87c2a4145, []int{5}
   333  }
   334  func (m *ListAndWatchResponse) XXX_Unmarshal(b []byte) error {
   335  	return m.Unmarshal(b)
   336  }
   337  func (m *ListAndWatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   338  	if deterministic {
   339  		return xxx_messageInfo_ListAndWatchResponse.Marshal(b, m, deterministic)
   340  	} else {
   341  		b = b[:cap(b)]
   342  		n, err := m.MarshalToSizedBuffer(b)
   343  		if err != nil {
   344  			return nil, err
   345  		}
   346  		return b[:n], nil
   347  	}
   348  }
   349  func (m *ListAndWatchResponse) XXX_Merge(src proto.Message) {
   350  	xxx_messageInfo_ListAndWatchResponse.Merge(m, src)
   351  }
   352  func (m *ListAndWatchResponse) XXX_Size() int {
   353  	return m.Size()
   354  }
   355  func (m *ListAndWatchResponse) XXX_DiscardUnknown() {
   356  	xxx_messageInfo_ListAndWatchResponse.DiscardUnknown(m)
   357  }
   358  
   359  var xxx_messageInfo_ListAndWatchResponse proto.InternalMessageInfo
   360  
   361  func (m *ListAndWatchResponse) GetPodEntries() map[string]*CalculationEntries {
   362  	if m != nil {
   363  		return m.PodEntries
   364  	}
   365  	return nil
   366  }
   367  
   368  func (m *ListAndWatchResponse) GetExtraEntries() []*CalculationInfo {
   369  	if m != nil {
   370  		return m.ExtraEntries
   371  	}
   372  	return nil
   373  }
   374  
   375  type CalculationEntries struct {
   376  	ContainerEntries     map[string]*CalculationInfo `protobuf:"bytes,1,rep,name=container_entries,json=containerEntries,proto3" json:"container_entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   377  	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
   378  	XXX_sizecache        int32                       `json:"-"`
   379  }
   380  
   381  func (m *CalculationEntries) Reset()      { *m = CalculationEntries{} }
   382  func (*CalculationEntries) ProtoMessage() {}
   383  func (*CalculationEntries) Descriptor() ([]byte, []int) {
   384  	return fileDescriptor_870376c87c2a4145, []int{6}
   385  }
   386  func (m *CalculationEntries) XXX_Unmarshal(b []byte) error {
   387  	return m.Unmarshal(b)
   388  }
   389  func (m *CalculationEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   390  	if deterministic {
   391  		return xxx_messageInfo_CalculationEntries.Marshal(b, m, deterministic)
   392  	} else {
   393  		b = b[:cap(b)]
   394  		n, err := m.MarshalToSizedBuffer(b)
   395  		if err != nil {
   396  			return nil, err
   397  		}
   398  		return b[:n], nil
   399  	}
   400  }
   401  func (m *CalculationEntries) XXX_Merge(src proto.Message) {
   402  	xxx_messageInfo_CalculationEntries.Merge(m, src)
   403  }
   404  func (m *CalculationEntries) XXX_Size() int {
   405  	return m.Size()
   406  }
   407  func (m *CalculationEntries) XXX_DiscardUnknown() {
   408  	xxx_messageInfo_CalculationEntries.DiscardUnknown(m)
   409  }
   410  
   411  var xxx_messageInfo_CalculationEntries proto.InternalMessageInfo
   412  
   413  func (m *CalculationEntries) GetContainerEntries() map[string]*CalculationInfo {
   414  	if m != nil {
   415  		return m.ContainerEntries
   416  	}
   417  	return nil
   418  }
   419  
   420  type CalculationInfo struct {
   421  	// eg. "/kubepods/besteffort";
   422  	// empty for container; non-empty for high level cgroup path; since subsystem may be different for different control knob, so we use relative path here.
   423  	CgroupPath           string             `protobuf:"bytes,1,opt,name=cgroup_path,json=cgroupPath,proto3" json:"cgroup_path,omitempty"`
   424  	CalculationResult    *CalculationResult `protobuf:"bytes,2,opt,name=calculation_result,json=calculationResult,proto3" json:"calculation_result,omitempty"`
   425  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
   426  	XXX_sizecache        int32              `json:"-"`
   427  }
   428  
   429  func (m *CalculationInfo) Reset()      { *m = CalculationInfo{} }
   430  func (*CalculationInfo) ProtoMessage() {}
   431  func (*CalculationInfo) Descriptor() ([]byte, []int) {
   432  	return fileDescriptor_870376c87c2a4145, []int{7}
   433  }
   434  func (m *CalculationInfo) XXX_Unmarshal(b []byte) error {
   435  	return m.Unmarshal(b)
   436  }
   437  func (m *CalculationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   438  	if deterministic {
   439  		return xxx_messageInfo_CalculationInfo.Marshal(b, m, deterministic)
   440  	} else {
   441  		b = b[:cap(b)]
   442  		n, err := m.MarshalToSizedBuffer(b)
   443  		if err != nil {
   444  			return nil, err
   445  		}
   446  		return b[:n], nil
   447  	}
   448  }
   449  func (m *CalculationInfo) XXX_Merge(src proto.Message) {
   450  	xxx_messageInfo_CalculationInfo.Merge(m, src)
   451  }
   452  func (m *CalculationInfo) XXX_Size() int {
   453  	return m.Size()
   454  }
   455  func (m *CalculationInfo) XXX_DiscardUnknown() {
   456  	xxx_messageInfo_CalculationInfo.DiscardUnknown(m)
   457  }
   458  
   459  var xxx_messageInfo_CalculationInfo proto.InternalMessageInfo
   460  
   461  func (m *CalculationInfo) GetCgroupPath() string {
   462  	if m != nil {
   463  		return m.CgroupPath
   464  	}
   465  	return ""
   466  }
   467  
   468  func (m *CalculationInfo) GetCalculationResult() *CalculationResult {
   469  	if m != nil {
   470  		return m.CalculationResult
   471  	}
   472  	return nil
   473  }
   474  
   475  type CalculationResult struct {
   476  	Values               map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   477  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   478  	XXX_sizecache        int32             `json:"-"`
   479  }
   480  
   481  func (m *CalculationResult) Reset()      { *m = CalculationResult{} }
   482  func (*CalculationResult) ProtoMessage() {}
   483  func (*CalculationResult) Descriptor() ([]byte, []int) {
   484  	return fileDescriptor_870376c87c2a4145, []int{8}
   485  }
   486  func (m *CalculationResult) XXX_Unmarshal(b []byte) error {
   487  	return m.Unmarshal(b)
   488  }
   489  func (m *CalculationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   490  	if deterministic {
   491  		return xxx_messageInfo_CalculationResult.Marshal(b, m, deterministic)
   492  	} else {
   493  		b = b[:cap(b)]
   494  		n, err := m.MarshalToSizedBuffer(b)
   495  		if err != nil {
   496  			return nil, err
   497  		}
   498  		return b[:n], nil
   499  	}
   500  }
   501  func (m *CalculationResult) XXX_Merge(src proto.Message) {
   502  	xxx_messageInfo_CalculationResult.Merge(m, src)
   503  }
   504  func (m *CalculationResult) XXX_Size() int {
   505  	return m.Size()
   506  }
   507  func (m *CalculationResult) XXX_DiscardUnknown() {
   508  	xxx_messageInfo_CalculationResult.DiscardUnknown(m)
   509  }
   510  
   511  var xxx_messageInfo_CalculationResult proto.InternalMessageInfo
   512  
   513  func (m *CalculationResult) GetValues() map[string]string {
   514  	if m != nil {
   515  		return m.Values
   516  	}
   517  	return nil
   518  }
   519  
   520  type ListContainersResponse struct {
   521  	Containers           []*ContainerMetadata `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
   522  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   523  	XXX_sizecache        int32                `json:"-"`
   524  }
   525  
   526  func (m *ListContainersResponse) Reset()      { *m = ListContainersResponse{} }
   527  func (*ListContainersResponse) ProtoMessage() {}
   528  func (*ListContainersResponse) Descriptor() ([]byte, []int) {
   529  	return fileDescriptor_870376c87c2a4145, []int{9}
   530  }
   531  func (m *ListContainersResponse) XXX_Unmarshal(b []byte) error {
   532  	return m.Unmarshal(b)
   533  }
   534  func (m *ListContainersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   535  	if deterministic {
   536  		return xxx_messageInfo_ListContainersResponse.Marshal(b, m, deterministic)
   537  	} else {
   538  		b = b[:cap(b)]
   539  		n, err := m.MarshalToSizedBuffer(b)
   540  		if err != nil {
   541  			return nil, err
   542  		}
   543  		return b[:n], nil
   544  	}
   545  }
   546  func (m *ListContainersResponse) XXX_Merge(src proto.Message) {
   547  	xxx_messageInfo_ListContainersResponse.Merge(m, src)
   548  }
   549  func (m *ListContainersResponse) XXX_Size() int {
   550  	return m.Size()
   551  }
   552  func (m *ListContainersResponse) XXX_DiscardUnknown() {
   553  	xxx_messageInfo_ListContainersResponse.DiscardUnknown(m)
   554  }
   555  
   556  var xxx_messageInfo_ListContainersResponse proto.InternalMessageInfo
   557  
   558  func (m *ListContainersResponse) GetContainers() []*ContainerMetadata {
   559  	if m != nil {
   560  		return m.Containers
   561  	}
   562  	return nil
   563  }
   564  
   565  func init() {
   566  	proto.RegisterType((*ContainerMetadata)(nil), "advisorsvc.ContainerMetadata")
   567  	proto.RegisterMapType((map[string]string)(nil), "advisorsvc.ContainerMetadata.AnnotationsEntry")
   568  	proto.RegisterMapType((map[string]string)(nil), "advisorsvc.ContainerMetadata.LabelsEntry")
   569  	proto.RegisterType((*AddContainerResponse)(nil), "advisorsvc.AddContainerResponse")
   570  	proto.RegisterType((*Empty)(nil), "advisorsvc.Empty")
   571  	proto.RegisterType((*RemovePodRequest)(nil), "advisorsvc.RemovePodRequest")
   572  	proto.RegisterType((*RemovePodResponse)(nil), "advisorsvc.RemovePodResponse")
   573  	proto.RegisterType((*ListAndWatchResponse)(nil), "advisorsvc.ListAndWatchResponse")
   574  	proto.RegisterMapType((map[string]*CalculationEntries)(nil), "advisorsvc.ListAndWatchResponse.PodEntriesEntry")
   575  	proto.RegisterType((*CalculationEntries)(nil), "advisorsvc.CalculationEntries")
   576  	proto.RegisterMapType((map[string]*CalculationInfo)(nil), "advisorsvc.CalculationEntries.ContainerEntriesEntry")
   577  	proto.RegisterType((*CalculationInfo)(nil), "advisorsvc.CalculationInfo")
   578  	proto.RegisterType((*CalculationResult)(nil), "advisorsvc.CalculationResult")
   579  	proto.RegisterMapType((map[string]string)(nil), "advisorsvc.CalculationResult.ValuesEntry")
   580  	proto.RegisterType((*ListContainersResponse)(nil), "advisorsvc.ListContainersResponse")
   581  }
   582  
   583  func init() { proto.RegisterFile("advisor_svc.proto", fileDescriptor_870376c87c2a4145) }
   584  
   585  var fileDescriptor_870376c87c2a4145 = []byte{
   586  	// 871 bytes of a gzipped FileDescriptorProto
   587  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4b, 0x6f, 0x23, 0x45,
   588  	0x10, 0x76, 0xe7, 0x9d, 0x72, 0x5e, 0x6e, 0xc2, 0x32, 0x78, 0x89, 0xb1, 0x06, 0x01, 0x5e, 0xa1,
   589  	0x8c, 0x37, 0x66, 0x0f, 0x80, 0x04, 0xc2, 0xac, 0xa2, 0x55, 0x50, 0x82, 0x92, 0xe1, 0x11, 0x09,
   590  	0x09, 0x99, 0xf6, 0x4c, 0xc7, 0x1e, 0x65, 0x3c, 0xdd, 0x99, 0xee, 0x31, 0xeb, 0xdb, 0x9e, 0x39,
   591  	0xc1, 0xbf, 0xda, 0x23, 0x47, 0xb8, 0xb1, 0xe6, 0x4f, 0x70, 0x5c, 0x4d, 0xcf, 0xc3, 0xed, 0xc9,
   592  	0xd8, 0xd2, 0xde, 0xa6, 0xab, 0xbe, 0xfa, 0xaa, 0xeb, 0xab, 0xa9, 0x6a, 0xa8, 0x11, 0x77, 0xec,
   593  	0x09, 0x16, 0xf6, 0xc4, 0xd8, 0xb1, 0x78, 0xc8, 0x24, 0xc3, 0x90, 0x9a, 0xc4, 0xd8, 0xa9, 0x1f,
   594  	0x0f, 0x3c, 0x39, 0x8c, 0xfa, 0x96, 0xc3, 0x46, 0xed, 0x01, 0x1b, 0xb0, 0xb6, 0x82, 0xf4, 0xa3,
   595  	0x1b, 0x75, 0x52, 0x07, 0xf5, 0x95, 0x84, 0xd6, 0x9f, 0x69, 0xf0, 0xdb, 0xa8, 0x4f, 0x7f, 0x1b,
   596  	0x92, 0xf0, 0x46, 0x7d, 0xf9, 0x54, 0xb6, 0xf9, 0xed, 0xa0, 0x4d, 0xb8, 0x27, 0xda, 0x21, 0x15,
   597  	0x2c, 0x0a, 0x1d, 0xca, 0xfd, 0x68, 0xe0, 0x05, 0xed, 0xf1, 0x09, 0xf1, 0xf9, 0x90, 0x9c, 0xc4,
   598  	0xce, 0x84, 0xc8, 0x9c, 0xae, 0x41, 0xed, 0x29, 0x0b, 0x24, 0xf1, 0x02, 0x1a, 0x5e, 0x50, 0x49,
   599  	0x5c, 0x22, 0x09, 0x7e, 0x07, 0x36, 0x39, 0x73, 0x7b, 0x91, 0xe7, 0x1a, 0xa8, 0x89, 0x5a, 0xdb,
   600  	0xf6, 0x06, 0x67, 0xee, 0x8f, 0x9e, 0x8b, 0x3f, 0x80, 0xdd, 0xd8, 0x11, 0x90, 0x11, 0x15, 0x9c,
   601  	0x38, 0xd4, 0x58, 0x51, 0xee, 0x1d, 0xce, 0xdc, 0xef, 0x32, 0x1b, 0x7e, 0x17, 0xb6, 0x32, 0x90,
   602  	0xb1, 0xaa, 0xfc, 0x9b, 0xa9, 0x1f, 0x7f, 0x08, 0x7b, 0x4e, 0x96, 0x2d, 0x01, 0xac, 0x29, 0xc0,
   603  	0x6e, 0x6e, 0x55, 0xb0, 0x0b, 0x1d, 0x26, 0x27, 0x9c, 0x1a, 0xeb, 0x4d, 0xd4, 0xda, 0xeb, 0x7c,
   604  	0x64, 0xcd, 0x57, 0x64, 0x65, 0x15, 0x59, 0x79, 0x0d, 0x3f, 0x4c, 0x38, 0xd5, 0xe8, 0xe2, 0x23,
   605  	0xfe, 0x18, 0xf6, 0x67, 0x74, 0x5e, 0xe0, 0xd2, 0xe7, 0xc6, 0x46, 0x13, 0xb5, 0xd6, 0xec, 0x59,
   606  	0x96, 0xb3, 0xd8, 0x8a, 0xbb, 0xb0, 0xe1, 0x93, 0x3e, 0xf5, 0x85, 0xb1, 0xd9, 0x5c, 0x6d, 0x55,
   607  	0x3b, 0x8f, 0xac, 0x59, 0x8b, 0xac, 0x7b, 0x32, 0x59, 0xe7, 0x0a, 0x7b, 0x1a, 0xc8, 0x70, 0x62,
   608  	0xa7, 0x81, 0xf8, 0x12, 0xaa, 0x24, 0x08, 0x98, 0x24, 0xd2, 0x63, 0x81, 0x30, 0xb6, 0x14, 0x8f,
   609  	0xb5, 0x9c, 0xa7, 0x3b, 0x0b, 0x48, 0xc8, 0x74, 0x0a, 0xfc, 0x10, 0xb6, 0xef, 0x98, 0xe8, 0xf9,
   610  	0x74, 0x4c, 0x7d, 0x63, 0x5b, 0xc9, 0xb5, 0x75, 0xc7, 0xc4, 0x79, 0x7c, 0xc6, 0x2d, 0xd8, 0x0f,
   611  	0xe9, 0x5d, 0x44, 0x85, 0xbc, 0x8a, 0x48, 0x20, 0x3d, 0x39, 0x31, 0x40, 0x95, 0x56, 0x34, 0xd7,
   612  	0x3f, 0x87, 0xaa, 0x76, 0x5f, 0x7c, 0x00, 0xab, 0xb7, 0x74, 0x92, 0xb6, 0x37, 0xfe, 0xc4, 0x87,
   613  	0xb0, 0x3e, 0x26, 0x7e, 0x94, 0xf5, 0x34, 0x39, 0x7c, 0xb1, 0xf2, 0x19, 0xaa, 0x7f, 0x05, 0x07,
   614  	0xc5, 0x2b, 0xbe, 0x49, 0xbc, 0xf9, 0x00, 0x0e, 0xbb, 0xae, 0x9b, 0xd7, 0x6d, 0x53, 0xc1, 0x59,
   615  	0x20, 0xa8, 0xb9, 0x09, 0xeb, 0xa7, 0x23, 0x2e, 0x27, 0xe6, 0x27, 0x70, 0x60, 0xd3, 0x11, 0x1b,
   616  	0xd3, 0x4b, 0xe6, 0xda, 0xc9, 0xbd, 0x17, 0xfe, 0x83, 0xe6, 0x5b, 0x50, 0xd3, 0xc0, 0x29, 0xd5,
   617  	0xef, 0x2b, 0x70, 0x78, 0xee, 0x09, 0xd9, 0x0d, 0xdc, 0x6b, 0x22, 0x9d, 0x61, 0xe6, 0xc0, 0x57,
   618  	0x50, 0x8d, 0x69, 0x68, 0x20, 0x43, 0x8f, 0x0a, 0x03, 0xa9, 0x7e, 0x3c, 0xd6, 0xfb, 0x51, 0x16,
   619  	0x66, 0x5d, 0x32, 0xf7, 0x34, 0x09, 0x49, 0x3a, 0x02, 0x3c, 0x37, 0xe0, 0xaf, 0x61, 0x97, 0x3e,
   620  	0x97, 0x21, 0xc9, 0x49, 0x57, 0x14, 0xe9, 0xc3, 0xb9, 0x26, 0x13, 0xdf, 0x89, 0x7c, 0x25, 0xd8,
   621  	0x59, 0x70, 0xc3, 0xec, 0x1d, 0x15, 0x91, 0x32, 0xd4, 0x7f, 0x81, 0xfd, 0x42, 0x82, 0x12, 0x3d,
   622  	0x9f, 0xe8, 0x7a, 0x56, 0x3b, 0x8d, 0x05, 0xf4, 0x29, 0x8b, 0xae, 0xf7, 0x3f, 0x08, 0xf0, 0x7d,
   623  	0x04, 0x26, 0x50, 0x9b, 0x8d, 0xc1, 0xbc, 0x20, 0x4f, 0x96, 0x93, 0xcf, 0xfe, 0xd9, 0x39, 0x51,
   624  	0x0e, 0x9c, 0x82, 0xb9, 0xfe, 0x2b, 0xbc, 0x5d, 0x0a, 0x2d, 0x29, 0xef, 0x64, 0xbe, 0xbc, 0xa5,
   625  	0xea, 0x69, 0xb5, 0xbd, 0x40, 0xb0, 0x5f, 0x70, 0xe3, 0xf7, 0xa1, 0xea, 0x0c, 0x42, 0x16, 0xf1,
   626  	0x1e, 0x27, 0x72, 0x98, 0x26, 0x81, 0xc4, 0x74, 0x49, 0xe4, 0x10, 0x9f, 0x03, 0x76, 0x66, 0x31,
   627  	0xbd, 0x90, 0x8a, 0xc8, 0x97, 0x69, 0xe2, 0xa3, 0x05, 0x89, 0x6d, 0x05, 0xb2, 0x6b, 0x4e, 0xd1,
   628  	0x64, 0xfe, 0x89, 0xa0, 0x76, 0x0f, 0x18, 0xef, 0x0e, 0x75, 0xcb, 0x4c, 0xd2, 0x47, 0x4b, 0x79,
   629  	0xad, 0x9f, 0x14, 0x36, 0xdd, 0x1d, 0x49, 0x60, 0x3c, 0xa2, 0x9a, 0xf9, 0x8d, 0x46, 0xec, 0x1a,
   630  	0x1e, 0xc4, 0xff, 0x71, 0x2e, 0xbe, 0xc8, 0x07, 0xe0, 0x4b, 0x80, 0xbc, 0x4d, 0xd9, 0xdd, 0x8e,
   631  	0x96, 0xee, 0x23, 0x5b, 0x0b, 0xe8, 0xfc, 0x8f, 0x60, 0xaf, 0x9b, 0x80, 0xbf, 0xa7, 0xe1, 0xd8,
   632  	0x73, 0xe2, 0x91, 0xda, 0xd1, 0xc7, 0x19, 0x2f, 0x67, 0xab, 0x37, 0x75, 0x77, 0xe9, 0x1e, 0xa8,
   633  	0xe0, 0x6f, 0x61, 0x3b, 0x9f, 0x69, 0xfc, 0x9e, 0x1e, 0x50, 0xdc, 0x0b, 0xf5, 0xa3, 0x05, 0xde,
   634  	0x9c, 0xeb, 0x19, 0xec, 0xe8, 0x23, 0x8d, 0x6b, 0x7a, 0x80, 0xda, 0x37, 0xf3, 0x57, 0x2a, 0x9b,
   635  	0x7f, 0xb3, 0xf2, 0x18, 0x75, 0xae, 0x01, 0xae, 0xec, 0x8b, 0xac, 0xea, 0x33, 0xd8, 0x9b, 0x57,
   636  	0xb8, 0x8c, 0xd8, 0x2c, 0x12, 0xdf, 0x6f, 0x88, 0x59, 0xf9, 0x86, 0xbc, 0x7c, 0xd5, 0x40, 0x7f,
   637  	0xbf, 0x6a, 0x54, 0x5e, 0x4c, 0x1b, 0xe8, 0xe5, 0xb4, 0x81, 0xfe, 0x9a, 0x36, 0xd0, 0xbf, 0xd3,
   638  	0x06, 0xfa, 0xe3, 0xbf, 0x46, 0xe5, 0xe7, 0xa7, 0xe5, 0x6f, 0x3b, 0x91, 0xc4, 0x9f, 0x08, 0x79,
   639  	0xec, 0xb0, 0x90, 0x26, 0x2f, 0xfc, 0x80, 0x06, 0xb2, 0x7d, 0x17, 0x8e, 0x8e, 0x93, 0xc7, 0x50,
   640  	0xb4, 0x67, 0xb9, 0xfb, 0x1b, 0xea, 0x79, 0xff, 0xf4, 0x75, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc2,
   641  	0xd8, 0x03, 0xc6, 0x77, 0x08, 0x00, 0x00,
   642  }
   643  
   644  // Reference imports to suppress errors if they are not otherwise used.
   645  var _ context.Context
   646  var _ grpc.ClientConn
   647  
   648  // This is a compile-time assertion to ensure that this generated file
   649  // is compatible with the grpc package it is being compiled against.
   650  const _ = grpc.SupportPackageIsVersion4
   651  
   652  // AdvisorServiceClient is the client API for AdvisorService service.
   653  //
   654  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   655  type AdvisorServiceClient interface {
   656  	AddContainer(ctx context.Context, in *ContainerMetadata, opts ...grpc.CallOption) (*AddContainerResponse, error)
   657  	RemovePod(ctx context.Context, in *RemovePodRequest, opts ...grpc.CallOption) (*RemovePodResponse, error)
   658  	ListAndWatch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (AdvisorService_ListAndWatchClient, error)
   659  }
   660  
   661  type advisorServiceClient struct {
   662  	cc *grpc.ClientConn
   663  }
   664  
   665  func NewAdvisorServiceClient(cc *grpc.ClientConn) AdvisorServiceClient {
   666  	return &advisorServiceClient{cc}
   667  }
   668  
   669  func (c *advisorServiceClient) AddContainer(ctx context.Context, in *ContainerMetadata, opts ...grpc.CallOption) (*AddContainerResponse, error) {
   670  	out := new(AddContainerResponse)
   671  	err := c.cc.Invoke(ctx, "/advisorsvc.AdvisorService/AddContainer", in, out, opts...)
   672  	if err != nil {
   673  		return nil, err
   674  	}
   675  	return out, nil
   676  }
   677  
   678  func (c *advisorServiceClient) RemovePod(ctx context.Context, in *RemovePodRequest, opts ...grpc.CallOption) (*RemovePodResponse, error) {
   679  	out := new(RemovePodResponse)
   680  	err := c.cc.Invoke(ctx, "/advisorsvc.AdvisorService/RemovePod", in, out, opts...)
   681  	if err != nil {
   682  		return nil, err
   683  	}
   684  	return out, nil
   685  }
   686  
   687  func (c *advisorServiceClient) ListAndWatch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (AdvisorService_ListAndWatchClient, error) {
   688  	stream, err := c.cc.NewStream(ctx, &_AdvisorService_serviceDesc.Streams[0], "/advisorsvc.AdvisorService/ListAndWatch", opts...)
   689  	if err != nil {
   690  		return nil, err
   691  	}
   692  	x := &advisorServiceListAndWatchClient{stream}
   693  	if err := x.ClientStream.SendMsg(in); err != nil {
   694  		return nil, err
   695  	}
   696  	if err := x.ClientStream.CloseSend(); err != nil {
   697  		return nil, err
   698  	}
   699  	return x, nil
   700  }
   701  
   702  type AdvisorService_ListAndWatchClient interface {
   703  	Recv() (*ListAndWatchResponse, error)
   704  	grpc.ClientStream
   705  }
   706  
   707  type advisorServiceListAndWatchClient struct {
   708  	grpc.ClientStream
   709  }
   710  
   711  func (x *advisorServiceListAndWatchClient) Recv() (*ListAndWatchResponse, error) {
   712  	m := new(ListAndWatchResponse)
   713  	if err := x.ClientStream.RecvMsg(m); err != nil {
   714  		return nil, err
   715  	}
   716  	return m, nil
   717  }
   718  
   719  // AdvisorServiceServer is the server API for AdvisorService service.
   720  type AdvisorServiceServer interface {
   721  	AddContainer(context.Context, *ContainerMetadata) (*AddContainerResponse, error)
   722  	RemovePod(context.Context, *RemovePodRequest) (*RemovePodResponse, error)
   723  	ListAndWatch(*Empty, AdvisorService_ListAndWatchServer) error
   724  }
   725  
   726  // UnimplementedAdvisorServiceServer can be embedded to have forward compatible implementations.
   727  type UnimplementedAdvisorServiceServer struct {
   728  }
   729  
   730  func (*UnimplementedAdvisorServiceServer) AddContainer(ctx context.Context, req *ContainerMetadata) (*AddContainerResponse, error) {
   731  	return nil, status.Errorf(codes.Unimplemented, "method AddContainer not implemented")
   732  }
   733  func (*UnimplementedAdvisorServiceServer) RemovePod(ctx context.Context, req *RemovePodRequest) (*RemovePodResponse, error) {
   734  	return nil, status.Errorf(codes.Unimplemented, "method RemovePod not implemented")
   735  }
   736  func (*UnimplementedAdvisorServiceServer) ListAndWatch(req *Empty, srv AdvisorService_ListAndWatchServer) error {
   737  	return status.Errorf(codes.Unimplemented, "method ListAndWatch not implemented")
   738  }
   739  
   740  func RegisterAdvisorServiceServer(s *grpc.Server, srv AdvisorServiceServer) {
   741  	s.RegisterService(&_AdvisorService_serviceDesc, srv)
   742  }
   743  
   744  func _AdvisorService_AddContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   745  	in := new(ContainerMetadata)
   746  	if err := dec(in); err != nil {
   747  		return nil, err
   748  	}
   749  	if interceptor == nil {
   750  		return srv.(AdvisorServiceServer).AddContainer(ctx, in)
   751  	}
   752  	info := &grpc.UnaryServerInfo{
   753  		Server:     srv,
   754  		FullMethod: "/advisorsvc.AdvisorService/AddContainer",
   755  	}
   756  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   757  		return srv.(AdvisorServiceServer).AddContainer(ctx, req.(*ContainerMetadata))
   758  	}
   759  	return interceptor(ctx, in, info, handler)
   760  }
   761  
   762  func _AdvisorService_RemovePod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   763  	in := new(RemovePodRequest)
   764  	if err := dec(in); err != nil {
   765  		return nil, err
   766  	}
   767  	if interceptor == nil {
   768  		return srv.(AdvisorServiceServer).RemovePod(ctx, in)
   769  	}
   770  	info := &grpc.UnaryServerInfo{
   771  		Server:     srv,
   772  		FullMethod: "/advisorsvc.AdvisorService/RemovePod",
   773  	}
   774  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   775  		return srv.(AdvisorServiceServer).RemovePod(ctx, req.(*RemovePodRequest))
   776  	}
   777  	return interceptor(ctx, in, info, handler)
   778  }
   779  
   780  func _AdvisorService_ListAndWatch_Handler(srv interface{}, stream grpc.ServerStream) error {
   781  	m := new(Empty)
   782  	if err := stream.RecvMsg(m); err != nil {
   783  		return err
   784  	}
   785  	return srv.(AdvisorServiceServer).ListAndWatch(m, &advisorServiceListAndWatchServer{stream})
   786  }
   787  
   788  type AdvisorService_ListAndWatchServer interface {
   789  	Send(*ListAndWatchResponse) error
   790  	grpc.ServerStream
   791  }
   792  
   793  type advisorServiceListAndWatchServer struct {
   794  	grpc.ServerStream
   795  }
   796  
   797  func (x *advisorServiceListAndWatchServer) Send(m *ListAndWatchResponse) error {
   798  	return x.ServerStream.SendMsg(m)
   799  }
   800  
   801  var _AdvisorService_serviceDesc = grpc.ServiceDesc{
   802  	ServiceName: "advisorsvc.AdvisorService",
   803  	HandlerType: (*AdvisorServiceServer)(nil),
   804  	Methods: []grpc.MethodDesc{
   805  		{
   806  			MethodName: "AddContainer",
   807  			Handler:    _AdvisorService_AddContainer_Handler,
   808  		},
   809  		{
   810  			MethodName: "RemovePod",
   811  			Handler:    _AdvisorService_RemovePod_Handler,
   812  		},
   813  	},
   814  	Streams: []grpc.StreamDesc{
   815  		{
   816  			StreamName:    "ListAndWatch",
   817  			Handler:       _AdvisorService_ListAndWatch_Handler,
   818  			ServerStreams: true,
   819  		},
   820  	},
   821  	Metadata: "advisor_svc.proto",
   822  }
   823  
   824  // QRMServiceClient is the client API for QRMService service.
   825  //
   826  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   827  type QRMServiceClient interface {
   828  	ListContainers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListContainersResponse, error)
   829  }
   830  
   831  type qRMServiceClient struct {
   832  	cc *grpc.ClientConn
   833  }
   834  
   835  func NewQRMServiceClient(cc *grpc.ClientConn) QRMServiceClient {
   836  	return &qRMServiceClient{cc}
   837  }
   838  
   839  func (c *qRMServiceClient) ListContainers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListContainersResponse, error) {
   840  	out := new(ListContainersResponse)
   841  	err := c.cc.Invoke(ctx, "/advisorsvc.QRMService/ListContainers", in, out, opts...)
   842  	if err != nil {
   843  		return nil, err
   844  	}
   845  	return out, nil
   846  }
   847  
   848  // QRMServiceServer is the server API for QRMService service.
   849  type QRMServiceServer interface {
   850  	ListContainers(context.Context, *Empty) (*ListContainersResponse, error)
   851  }
   852  
   853  // UnimplementedQRMServiceServer can be embedded to have forward compatible implementations.
   854  type UnimplementedQRMServiceServer struct {
   855  }
   856  
   857  func (*UnimplementedQRMServiceServer) ListContainers(ctx context.Context, req *Empty) (*ListContainersResponse, error) {
   858  	return nil, status.Errorf(codes.Unimplemented, "method ListContainers not implemented")
   859  }
   860  
   861  func RegisterQRMServiceServer(s *grpc.Server, srv QRMServiceServer) {
   862  	s.RegisterService(&_QRMService_serviceDesc, srv)
   863  }
   864  
   865  func _QRMService_ListContainers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   866  	in := new(Empty)
   867  	if err := dec(in); err != nil {
   868  		return nil, err
   869  	}
   870  	if interceptor == nil {
   871  		return srv.(QRMServiceServer).ListContainers(ctx, in)
   872  	}
   873  	info := &grpc.UnaryServerInfo{
   874  		Server:     srv,
   875  		FullMethod: "/advisorsvc.QRMService/ListContainers",
   876  	}
   877  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   878  		return srv.(QRMServiceServer).ListContainers(ctx, req.(*Empty))
   879  	}
   880  	return interceptor(ctx, in, info, handler)
   881  }
   882  
   883  var _QRMService_serviceDesc = grpc.ServiceDesc{
   884  	ServiceName: "advisorsvc.QRMService",
   885  	HandlerType: (*QRMServiceServer)(nil),
   886  	Methods: []grpc.MethodDesc{
   887  		{
   888  			MethodName: "ListContainers",
   889  			Handler:    _QRMService_ListContainers_Handler,
   890  		},
   891  	},
   892  	Streams:  []grpc.StreamDesc{},
   893  	Metadata: "advisor_svc.proto",
   894  }
   895  
   896  func (m *ContainerMetadata) Marshal() (dAtA []byte, err error) {
   897  	size := m.Size()
   898  	dAtA = make([]byte, size)
   899  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   900  	if err != nil {
   901  		return nil, err
   902  	}
   903  	return dAtA[:n], nil
   904  }
   905  
   906  func (m *ContainerMetadata) MarshalTo(dAtA []byte) (int, error) {
   907  	size := m.Size()
   908  	return m.MarshalToSizedBuffer(dAtA[:size])
   909  }
   910  
   911  func (m *ContainerMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   912  	i := len(dAtA)
   913  	_ = i
   914  	var l int
   915  	_ = l
   916  	if m.RequestQuantity != 0 {
   917  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(m.RequestQuantity))
   918  		i--
   919  		dAtA[i] = 0x50
   920  	}
   921  	if len(m.QosLevel) > 0 {
   922  		i -= len(m.QosLevel)
   923  		copy(dAtA[i:], m.QosLevel)
   924  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.QosLevel)))
   925  		i--
   926  		dAtA[i] = 0x4a
   927  	}
   928  	if len(m.Annotations) > 0 {
   929  		for k := range m.Annotations {
   930  			v := m.Annotations[k]
   931  			baseI := i
   932  			i -= len(v)
   933  			copy(dAtA[i:], v)
   934  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(v)))
   935  			i--
   936  			dAtA[i] = 0x12
   937  			i -= len(k)
   938  			copy(dAtA[i:], k)
   939  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(k)))
   940  			i--
   941  			dAtA[i] = 0xa
   942  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(baseI-i))
   943  			i--
   944  			dAtA[i] = 0x42
   945  		}
   946  	}
   947  	if len(m.Labels) > 0 {
   948  		for k := range m.Labels {
   949  			v := m.Labels[k]
   950  			baseI := i
   951  			i -= len(v)
   952  			copy(dAtA[i:], v)
   953  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(v)))
   954  			i--
   955  			dAtA[i] = 0x12
   956  			i -= len(k)
   957  			copy(dAtA[i:], k)
   958  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(k)))
   959  			i--
   960  			dAtA[i] = 0xa
   961  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(baseI-i))
   962  			i--
   963  			dAtA[i] = 0x3a
   964  		}
   965  	}
   966  	if m.ContainerIndex != 0 {
   967  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(m.ContainerIndex))
   968  		i--
   969  		dAtA[i] = 0x30
   970  	}
   971  	if m.ContainerType != 0 {
   972  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(m.ContainerType))
   973  		i--
   974  		dAtA[i] = 0x28
   975  	}
   976  	if len(m.ContainerName) > 0 {
   977  		i -= len(m.ContainerName)
   978  		copy(dAtA[i:], m.ContainerName)
   979  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.ContainerName)))
   980  		i--
   981  		dAtA[i] = 0x22
   982  	}
   983  	if len(m.PodName) > 0 {
   984  		i -= len(m.PodName)
   985  		copy(dAtA[i:], m.PodName)
   986  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.PodName)))
   987  		i--
   988  		dAtA[i] = 0x1a
   989  	}
   990  	if len(m.PodNamespace) > 0 {
   991  		i -= len(m.PodNamespace)
   992  		copy(dAtA[i:], m.PodNamespace)
   993  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.PodNamespace)))
   994  		i--
   995  		dAtA[i] = 0x12
   996  	}
   997  	if len(m.PodUid) > 0 {
   998  		i -= len(m.PodUid)
   999  		copy(dAtA[i:], m.PodUid)
  1000  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.PodUid)))
  1001  		i--
  1002  		dAtA[i] = 0xa
  1003  	}
  1004  	return len(dAtA) - i, nil
  1005  }
  1006  
  1007  func (m *AddContainerResponse) Marshal() (dAtA []byte, err error) {
  1008  	size := m.Size()
  1009  	dAtA = make([]byte, size)
  1010  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1011  	if err != nil {
  1012  		return nil, err
  1013  	}
  1014  	return dAtA[:n], nil
  1015  }
  1016  
  1017  func (m *AddContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  1018  	size := m.Size()
  1019  	return m.MarshalToSizedBuffer(dAtA[:size])
  1020  }
  1021  
  1022  func (m *AddContainerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1023  	i := len(dAtA)
  1024  	_ = i
  1025  	var l int
  1026  	_ = l
  1027  	return len(dAtA) - i, nil
  1028  }
  1029  
  1030  func (m *Empty) Marshal() (dAtA []byte, err error) {
  1031  	size := m.Size()
  1032  	dAtA = make([]byte, size)
  1033  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1034  	if err != nil {
  1035  		return nil, err
  1036  	}
  1037  	return dAtA[:n], nil
  1038  }
  1039  
  1040  func (m *Empty) MarshalTo(dAtA []byte) (int, error) {
  1041  	size := m.Size()
  1042  	return m.MarshalToSizedBuffer(dAtA[:size])
  1043  }
  1044  
  1045  func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1046  	i := len(dAtA)
  1047  	_ = i
  1048  	var l int
  1049  	_ = l
  1050  	return len(dAtA) - i, nil
  1051  }
  1052  
  1053  func (m *RemovePodRequest) Marshal() (dAtA []byte, err error) {
  1054  	size := m.Size()
  1055  	dAtA = make([]byte, size)
  1056  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1057  	if err != nil {
  1058  		return nil, err
  1059  	}
  1060  	return dAtA[:n], nil
  1061  }
  1062  
  1063  func (m *RemovePodRequest) MarshalTo(dAtA []byte) (int, error) {
  1064  	size := m.Size()
  1065  	return m.MarshalToSizedBuffer(dAtA[:size])
  1066  }
  1067  
  1068  func (m *RemovePodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1069  	i := len(dAtA)
  1070  	_ = i
  1071  	var l int
  1072  	_ = l
  1073  	if len(m.PodUid) > 0 {
  1074  		i -= len(m.PodUid)
  1075  		copy(dAtA[i:], m.PodUid)
  1076  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.PodUid)))
  1077  		i--
  1078  		dAtA[i] = 0xa
  1079  	}
  1080  	return len(dAtA) - i, nil
  1081  }
  1082  
  1083  func (m *RemovePodResponse) Marshal() (dAtA []byte, err error) {
  1084  	size := m.Size()
  1085  	dAtA = make([]byte, size)
  1086  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1087  	if err != nil {
  1088  		return nil, err
  1089  	}
  1090  	return dAtA[:n], nil
  1091  }
  1092  
  1093  func (m *RemovePodResponse) MarshalTo(dAtA []byte) (int, error) {
  1094  	size := m.Size()
  1095  	return m.MarshalToSizedBuffer(dAtA[:size])
  1096  }
  1097  
  1098  func (m *RemovePodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1099  	i := len(dAtA)
  1100  	_ = i
  1101  	var l int
  1102  	_ = l
  1103  	return len(dAtA) - i, nil
  1104  }
  1105  
  1106  func (m *ListAndWatchResponse) Marshal() (dAtA []byte, err error) {
  1107  	size := m.Size()
  1108  	dAtA = make([]byte, size)
  1109  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1110  	if err != nil {
  1111  		return nil, err
  1112  	}
  1113  	return dAtA[:n], nil
  1114  }
  1115  
  1116  func (m *ListAndWatchResponse) MarshalTo(dAtA []byte) (int, error) {
  1117  	size := m.Size()
  1118  	return m.MarshalToSizedBuffer(dAtA[:size])
  1119  }
  1120  
  1121  func (m *ListAndWatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1122  	i := len(dAtA)
  1123  	_ = i
  1124  	var l int
  1125  	_ = l
  1126  	if len(m.ExtraEntries) > 0 {
  1127  		for iNdEx := len(m.ExtraEntries) - 1; iNdEx >= 0; iNdEx-- {
  1128  			{
  1129  				size, err := m.ExtraEntries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1130  				if err != nil {
  1131  					return 0, err
  1132  				}
  1133  				i -= size
  1134  				i = encodeVarintAdvisorSvc(dAtA, i, uint64(size))
  1135  			}
  1136  			i--
  1137  			dAtA[i] = 0x12
  1138  		}
  1139  	}
  1140  	if len(m.PodEntries) > 0 {
  1141  		for k := range m.PodEntries {
  1142  			v := m.PodEntries[k]
  1143  			baseI := i
  1144  			if v != nil {
  1145  				{
  1146  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  1147  					if err != nil {
  1148  						return 0, err
  1149  					}
  1150  					i -= size
  1151  					i = encodeVarintAdvisorSvc(dAtA, i, uint64(size))
  1152  				}
  1153  				i--
  1154  				dAtA[i] = 0x12
  1155  			}
  1156  			i -= len(k)
  1157  			copy(dAtA[i:], k)
  1158  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(k)))
  1159  			i--
  1160  			dAtA[i] = 0xa
  1161  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(baseI-i))
  1162  			i--
  1163  			dAtA[i] = 0xa
  1164  		}
  1165  	}
  1166  	return len(dAtA) - i, nil
  1167  }
  1168  
  1169  func (m *CalculationEntries) Marshal() (dAtA []byte, err error) {
  1170  	size := m.Size()
  1171  	dAtA = make([]byte, size)
  1172  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1173  	if err != nil {
  1174  		return nil, err
  1175  	}
  1176  	return dAtA[:n], nil
  1177  }
  1178  
  1179  func (m *CalculationEntries) MarshalTo(dAtA []byte) (int, error) {
  1180  	size := m.Size()
  1181  	return m.MarshalToSizedBuffer(dAtA[:size])
  1182  }
  1183  
  1184  func (m *CalculationEntries) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1185  	i := len(dAtA)
  1186  	_ = i
  1187  	var l int
  1188  	_ = l
  1189  	if len(m.ContainerEntries) > 0 {
  1190  		for k := range m.ContainerEntries {
  1191  			v := m.ContainerEntries[k]
  1192  			baseI := i
  1193  			if v != nil {
  1194  				{
  1195  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  1196  					if err != nil {
  1197  						return 0, err
  1198  					}
  1199  					i -= size
  1200  					i = encodeVarintAdvisorSvc(dAtA, i, uint64(size))
  1201  				}
  1202  				i--
  1203  				dAtA[i] = 0x12
  1204  			}
  1205  			i -= len(k)
  1206  			copy(dAtA[i:], k)
  1207  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(k)))
  1208  			i--
  1209  			dAtA[i] = 0xa
  1210  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(baseI-i))
  1211  			i--
  1212  			dAtA[i] = 0xa
  1213  		}
  1214  	}
  1215  	return len(dAtA) - i, nil
  1216  }
  1217  
  1218  func (m *CalculationInfo) Marshal() (dAtA []byte, err error) {
  1219  	size := m.Size()
  1220  	dAtA = make([]byte, size)
  1221  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1222  	if err != nil {
  1223  		return nil, err
  1224  	}
  1225  	return dAtA[:n], nil
  1226  }
  1227  
  1228  func (m *CalculationInfo) MarshalTo(dAtA []byte) (int, error) {
  1229  	size := m.Size()
  1230  	return m.MarshalToSizedBuffer(dAtA[:size])
  1231  }
  1232  
  1233  func (m *CalculationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1234  	i := len(dAtA)
  1235  	_ = i
  1236  	var l int
  1237  	_ = l
  1238  	if m.CalculationResult != nil {
  1239  		{
  1240  			size, err := m.CalculationResult.MarshalToSizedBuffer(dAtA[:i])
  1241  			if err != nil {
  1242  				return 0, err
  1243  			}
  1244  			i -= size
  1245  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(size))
  1246  		}
  1247  		i--
  1248  		dAtA[i] = 0x12
  1249  	}
  1250  	if len(m.CgroupPath) > 0 {
  1251  		i -= len(m.CgroupPath)
  1252  		copy(dAtA[i:], m.CgroupPath)
  1253  		i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(m.CgroupPath)))
  1254  		i--
  1255  		dAtA[i] = 0xa
  1256  	}
  1257  	return len(dAtA) - i, nil
  1258  }
  1259  
  1260  func (m *CalculationResult) Marshal() (dAtA []byte, err error) {
  1261  	size := m.Size()
  1262  	dAtA = make([]byte, size)
  1263  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1264  	if err != nil {
  1265  		return nil, err
  1266  	}
  1267  	return dAtA[:n], nil
  1268  }
  1269  
  1270  func (m *CalculationResult) MarshalTo(dAtA []byte) (int, error) {
  1271  	size := m.Size()
  1272  	return m.MarshalToSizedBuffer(dAtA[:size])
  1273  }
  1274  
  1275  func (m *CalculationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1276  	i := len(dAtA)
  1277  	_ = i
  1278  	var l int
  1279  	_ = l
  1280  	if len(m.Values) > 0 {
  1281  		for k := range m.Values {
  1282  			v := m.Values[k]
  1283  			baseI := i
  1284  			i -= len(v)
  1285  			copy(dAtA[i:], v)
  1286  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(v)))
  1287  			i--
  1288  			dAtA[i] = 0x12
  1289  			i -= len(k)
  1290  			copy(dAtA[i:], k)
  1291  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(len(k)))
  1292  			i--
  1293  			dAtA[i] = 0xa
  1294  			i = encodeVarintAdvisorSvc(dAtA, i, uint64(baseI-i))
  1295  			i--
  1296  			dAtA[i] = 0xa
  1297  		}
  1298  	}
  1299  	return len(dAtA) - i, nil
  1300  }
  1301  
  1302  func (m *ListContainersResponse) Marshal() (dAtA []byte, err error) {
  1303  	size := m.Size()
  1304  	dAtA = make([]byte, size)
  1305  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1306  	if err != nil {
  1307  		return nil, err
  1308  	}
  1309  	return dAtA[:n], nil
  1310  }
  1311  
  1312  func (m *ListContainersResponse) MarshalTo(dAtA []byte) (int, error) {
  1313  	size := m.Size()
  1314  	return m.MarshalToSizedBuffer(dAtA[:size])
  1315  }
  1316  
  1317  func (m *ListContainersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1318  	i := len(dAtA)
  1319  	_ = i
  1320  	var l int
  1321  	_ = l
  1322  	if len(m.Containers) > 0 {
  1323  		for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- {
  1324  			{
  1325  				size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1326  				if err != nil {
  1327  					return 0, err
  1328  				}
  1329  				i -= size
  1330  				i = encodeVarintAdvisorSvc(dAtA, i, uint64(size))
  1331  			}
  1332  			i--
  1333  			dAtA[i] = 0xa
  1334  		}
  1335  	}
  1336  	return len(dAtA) - i, nil
  1337  }
  1338  
  1339  func encodeVarintAdvisorSvc(dAtA []byte, offset int, v uint64) int {
  1340  	offset -= sovAdvisorSvc(v)
  1341  	base := offset
  1342  	for v >= 1<<7 {
  1343  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1344  		v >>= 7
  1345  		offset++
  1346  	}
  1347  	dAtA[offset] = uint8(v)
  1348  	return base
  1349  }
  1350  func (m *ContainerMetadata) Size() (n int) {
  1351  	if m == nil {
  1352  		return 0
  1353  	}
  1354  	var l int
  1355  	_ = l
  1356  	l = len(m.PodUid)
  1357  	if l > 0 {
  1358  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1359  	}
  1360  	l = len(m.PodNamespace)
  1361  	if l > 0 {
  1362  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1363  	}
  1364  	l = len(m.PodName)
  1365  	if l > 0 {
  1366  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1367  	}
  1368  	l = len(m.ContainerName)
  1369  	if l > 0 {
  1370  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1371  	}
  1372  	if m.ContainerType != 0 {
  1373  		n += 1 + sovAdvisorSvc(uint64(m.ContainerType))
  1374  	}
  1375  	if m.ContainerIndex != 0 {
  1376  		n += 1 + sovAdvisorSvc(uint64(m.ContainerIndex))
  1377  	}
  1378  	if len(m.Labels) > 0 {
  1379  		for k, v := range m.Labels {
  1380  			_ = k
  1381  			_ = v
  1382  			mapEntrySize := 1 + len(k) + sovAdvisorSvc(uint64(len(k))) + 1 + len(v) + sovAdvisorSvc(uint64(len(v)))
  1383  			n += mapEntrySize + 1 + sovAdvisorSvc(uint64(mapEntrySize))
  1384  		}
  1385  	}
  1386  	if len(m.Annotations) > 0 {
  1387  		for k, v := range m.Annotations {
  1388  			_ = k
  1389  			_ = v
  1390  			mapEntrySize := 1 + len(k) + sovAdvisorSvc(uint64(len(k))) + 1 + len(v) + sovAdvisorSvc(uint64(len(v)))
  1391  			n += mapEntrySize + 1 + sovAdvisorSvc(uint64(mapEntrySize))
  1392  		}
  1393  	}
  1394  	l = len(m.QosLevel)
  1395  	if l > 0 {
  1396  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1397  	}
  1398  	if m.RequestQuantity != 0 {
  1399  		n += 1 + sovAdvisorSvc(uint64(m.RequestQuantity))
  1400  	}
  1401  	return n
  1402  }
  1403  
  1404  func (m *AddContainerResponse) Size() (n int) {
  1405  	if m == nil {
  1406  		return 0
  1407  	}
  1408  	var l int
  1409  	_ = l
  1410  	return n
  1411  }
  1412  
  1413  func (m *Empty) Size() (n int) {
  1414  	if m == nil {
  1415  		return 0
  1416  	}
  1417  	var l int
  1418  	_ = l
  1419  	return n
  1420  }
  1421  
  1422  func (m *RemovePodRequest) Size() (n int) {
  1423  	if m == nil {
  1424  		return 0
  1425  	}
  1426  	var l int
  1427  	_ = l
  1428  	l = len(m.PodUid)
  1429  	if l > 0 {
  1430  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1431  	}
  1432  	return n
  1433  }
  1434  
  1435  func (m *RemovePodResponse) Size() (n int) {
  1436  	if m == nil {
  1437  		return 0
  1438  	}
  1439  	var l int
  1440  	_ = l
  1441  	return n
  1442  }
  1443  
  1444  func (m *ListAndWatchResponse) Size() (n int) {
  1445  	if m == nil {
  1446  		return 0
  1447  	}
  1448  	var l int
  1449  	_ = l
  1450  	if len(m.PodEntries) > 0 {
  1451  		for k, v := range m.PodEntries {
  1452  			_ = k
  1453  			_ = v
  1454  			l = 0
  1455  			if v != nil {
  1456  				l = v.Size()
  1457  				l += 1 + sovAdvisorSvc(uint64(l))
  1458  			}
  1459  			mapEntrySize := 1 + len(k) + sovAdvisorSvc(uint64(len(k))) + l
  1460  			n += mapEntrySize + 1 + sovAdvisorSvc(uint64(mapEntrySize))
  1461  		}
  1462  	}
  1463  	if len(m.ExtraEntries) > 0 {
  1464  		for _, e := range m.ExtraEntries {
  1465  			l = e.Size()
  1466  			n += 1 + l + sovAdvisorSvc(uint64(l))
  1467  		}
  1468  	}
  1469  	return n
  1470  }
  1471  
  1472  func (m *CalculationEntries) Size() (n int) {
  1473  	if m == nil {
  1474  		return 0
  1475  	}
  1476  	var l int
  1477  	_ = l
  1478  	if len(m.ContainerEntries) > 0 {
  1479  		for k, v := range m.ContainerEntries {
  1480  			_ = k
  1481  			_ = v
  1482  			l = 0
  1483  			if v != nil {
  1484  				l = v.Size()
  1485  				l += 1 + sovAdvisorSvc(uint64(l))
  1486  			}
  1487  			mapEntrySize := 1 + len(k) + sovAdvisorSvc(uint64(len(k))) + l
  1488  			n += mapEntrySize + 1 + sovAdvisorSvc(uint64(mapEntrySize))
  1489  		}
  1490  	}
  1491  	return n
  1492  }
  1493  
  1494  func (m *CalculationInfo) Size() (n int) {
  1495  	if m == nil {
  1496  		return 0
  1497  	}
  1498  	var l int
  1499  	_ = l
  1500  	l = len(m.CgroupPath)
  1501  	if l > 0 {
  1502  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1503  	}
  1504  	if m.CalculationResult != nil {
  1505  		l = m.CalculationResult.Size()
  1506  		n += 1 + l + sovAdvisorSvc(uint64(l))
  1507  	}
  1508  	return n
  1509  }
  1510  
  1511  func (m *CalculationResult) Size() (n int) {
  1512  	if m == nil {
  1513  		return 0
  1514  	}
  1515  	var l int
  1516  	_ = l
  1517  	if len(m.Values) > 0 {
  1518  		for k, v := range m.Values {
  1519  			_ = k
  1520  			_ = v
  1521  			mapEntrySize := 1 + len(k) + sovAdvisorSvc(uint64(len(k))) + 1 + len(v) + sovAdvisorSvc(uint64(len(v)))
  1522  			n += mapEntrySize + 1 + sovAdvisorSvc(uint64(mapEntrySize))
  1523  		}
  1524  	}
  1525  	return n
  1526  }
  1527  
  1528  func (m *ListContainersResponse) Size() (n int) {
  1529  	if m == nil {
  1530  		return 0
  1531  	}
  1532  	var l int
  1533  	_ = l
  1534  	if len(m.Containers) > 0 {
  1535  		for _, e := range m.Containers {
  1536  			l = e.Size()
  1537  			n += 1 + l + sovAdvisorSvc(uint64(l))
  1538  		}
  1539  	}
  1540  	return n
  1541  }
  1542  
  1543  func sovAdvisorSvc(x uint64) (n int) {
  1544  	return (math_bits.Len64(x|1) + 6) / 7
  1545  }
  1546  func sozAdvisorSvc(x uint64) (n int) {
  1547  	return sovAdvisorSvc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1548  }
  1549  func (this *ContainerMetadata) String() string {
  1550  	if this == nil {
  1551  		return "nil"
  1552  	}
  1553  	keysForLabels := make([]string, 0, len(this.Labels))
  1554  	for k, _ := range this.Labels {
  1555  		keysForLabels = append(keysForLabels, k)
  1556  	}
  1557  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  1558  	mapStringForLabels := "map[string]string{"
  1559  	for _, k := range keysForLabels {
  1560  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  1561  	}
  1562  	mapStringForLabels += "}"
  1563  	keysForAnnotations := make([]string, 0, len(this.Annotations))
  1564  	for k, _ := range this.Annotations {
  1565  		keysForAnnotations = append(keysForAnnotations, k)
  1566  	}
  1567  	github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  1568  	mapStringForAnnotations := "map[string]string{"
  1569  	for _, k := range keysForAnnotations {
  1570  		mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  1571  	}
  1572  	mapStringForAnnotations += "}"
  1573  	s := strings.Join([]string{`&ContainerMetadata{`,
  1574  		`PodUid:` + fmt.Sprintf("%v", this.PodUid) + `,`,
  1575  		`PodNamespace:` + fmt.Sprintf("%v", this.PodNamespace) + `,`,
  1576  		`PodName:` + fmt.Sprintf("%v", this.PodName) + `,`,
  1577  		`ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`,
  1578  		`ContainerType:` + fmt.Sprintf("%v", this.ContainerType) + `,`,
  1579  		`ContainerIndex:` + fmt.Sprintf("%v", this.ContainerIndex) + `,`,
  1580  		`Labels:` + mapStringForLabels + `,`,
  1581  		`Annotations:` + mapStringForAnnotations + `,`,
  1582  		`QosLevel:` + fmt.Sprintf("%v", this.QosLevel) + `,`,
  1583  		`RequestQuantity:` + fmt.Sprintf("%v", this.RequestQuantity) + `,`,
  1584  		`}`,
  1585  	}, "")
  1586  	return s
  1587  }
  1588  func (this *AddContainerResponse) String() string {
  1589  	if this == nil {
  1590  		return "nil"
  1591  	}
  1592  	s := strings.Join([]string{`&AddContainerResponse{`,
  1593  		`}`,
  1594  	}, "")
  1595  	return s
  1596  }
  1597  func (this *Empty) String() string {
  1598  	if this == nil {
  1599  		return "nil"
  1600  	}
  1601  	s := strings.Join([]string{`&Empty{`,
  1602  		`}`,
  1603  	}, "")
  1604  	return s
  1605  }
  1606  func (this *RemovePodRequest) String() string {
  1607  	if this == nil {
  1608  		return "nil"
  1609  	}
  1610  	s := strings.Join([]string{`&RemovePodRequest{`,
  1611  		`PodUid:` + fmt.Sprintf("%v", this.PodUid) + `,`,
  1612  		`}`,
  1613  	}, "")
  1614  	return s
  1615  }
  1616  func (this *RemovePodResponse) String() string {
  1617  	if this == nil {
  1618  		return "nil"
  1619  	}
  1620  	s := strings.Join([]string{`&RemovePodResponse{`,
  1621  		`}`,
  1622  	}, "")
  1623  	return s
  1624  }
  1625  func (this *ListAndWatchResponse) String() string {
  1626  	if this == nil {
  1627  		return "nil"
  1628  	}
  1629  	repeatedStringForExtraEntries := "[]*CalculationInfo{"
  1630  	for _, f := range this.ExtraEntries {
  1631  		repeatedStringForExtraEntries += strings.Replace(f.String(), "CalculationInfo", "CalculationInfo", 1) + ","
  1632  	}
  1633  	repeatedStringForExtraEntries += "}"
  1634  	keysForPodEntries := make([]string, 0, len(this.PodEntries))
  1635  	for k, _ := range this.PodEntries {
  1636  		keysForPodEntries = append(keysForPodEntries, k)
  1637  	}
  1638  	github_com_gogo_protobuf_sortkeys.Strings(keysForPodEntries)
  1639  	mapStringForPodEntries := "map[string]*CalculationEntries{"
  1640  	for _, k := range keysForPodEntries {
  1641  		mapStringForPodEntries += fmt.Sprintf("%v: %v,", k, this.PodEntries[k])
  1642  	}
  1643  	mapStringForPodEntries += "}"
  1644  	s := strings.Join([]string{`&ListAndWatchResponse{`,
  1645  		`PodEntries:` + mapStringForPodEntries + `,`,
  1646  		`ExtraEntries:` + repeatedStringForExtraEntries + `,`,
  1647  		`}`,
  1648  	}, "")
  1649  	return s
  1650  }
  1651  func (this *CalculationEntries) String() string {
  1652  	if this == nil {
  1653  		return "nil"
  1654  	}
  1655  	keysForContainerEntries := make([]string, 0, len(this.ContainerEntries))
  1656  	for k, _ := range this.ContainerEntries {
  1657  		keysForContainerEntries = append(keysForContainerEntries, k)
  1658  	}
  1659  	github_com_gogo_protobuf_sortkeys.Strings(keysForContainerEntries)
  1660  	mapStringForContainerEntries := "map[string]*CalculationInfo{"
  1661  	for _, k := range keysForContainerEntries {
  1662  		mapStringForContainerEntries += fmt.Sprintf("%v: %v,", k, this.ContainerEntries[k])
  1663  	}
  1664  	mapStringForContainerEntries += "}"
  1665  	s := strings.Join([]string{`&CalculationEntries{`,
  1666  		`ContainerEntries:` + mapStringForContainerEntries + `,`,
  1667  		`}`,
  1668  	}, "")
  1669  	return s
  1670  }
  1671  func (this *CalculationInfo) String() string {
  1672  	if this == nil {
  1673  		return "nil"
  1674  	}
  1675  	s := strings.Join([]string{`&CalculationInfo{`,
  1676  		`CgroupPath:` + fmt.Sprintf("%v", this.CgroupPath) + `,`,
  1677  		`CalculationResult:` + strings.Replace(this.CalculationResult.String(), "CalculationResult", "CalculationResult", 1) + `,`,
  1678  		`}`,
  1679  	}, "")
  1680  	return s
  1681  }
  1682  func (this *CalculationResult) String() string {
  1683  	if this == nil {
  1684  		return "nil"
  1685  	}
  1686  	keysForValues := make([]string, 0, len(this.Values))
  1687  	for k, _ := range this.Values {
  1688  		keysForValues = append(keysForValues, k)
  1689  	}
  1690  	github_com_gogo_protobuf_sortkeys.Strings(keysForValues)
  1691  	mapStringForValues := "map[string]string{"
  1692  	for _, k := range keysForValues {
  1693  		mapStringForValues += fmt.Sprintf("%v: %v,", k, this.Values[k])
  1694  	}
  1695  	mapStringForValues += "}"
  1696  	s := strings.Join([]string{`&CalculationResult{`,
  1697  		`Values:` + mapStringForValues + `,`,
  1698  		`}`,
  1699  	}, "")
  1700  	return s
  1701  }
  1702  func (this *ListContainersResponse) String() string {
  1703  	if this == nil {
  1704  		return "nil"
  1705  	}
  1706  	repeatedStringForContainers := "[]*ContainerMetadata{"
  1707  	for _, f := range this.Containers {
  1708  		repeatedStringForContainers += strings.Replace(f.String(), "ContainerMetadata", "ContainerMetadata", 1) + ","
  1709  	}
  1710  	repeatedStringForContainers += "}"
  1711  	s := strings.Join([]string{`&ListContainersResponse{`,
  1712  		`Containers:` + repeatedStringForContainers + `,`,
  1713  		`}`,
  1714  	}, "")
  1715  	return s
  1716  }
  1717  func valueToStringAdvisorSvc(v interface{}) string {
  1718  	rv := reflect.ValueOf(v)
  1719  	if rv.IsNil() {
  1720  		return "nil"
  1721  	}
  1722  	pv := reflect.Indirect(rv).Interface()
  1723  	return fmt.Sprintf("*%v", pv)
  1724  }
  1725  func (m *ContainerMetadata) Unmarshal(dAtA []byte) error {
  1726  	l := len(dAtA)
  1727  	iNdEx := 0
  1728  	for iNdEx < l {
  1729  		preIndex := iNdEx
  1730  		var wire uint64
  1731  		for shift := uint(0); ; shift += 7 {
  1732  			if shift >= 64 {
  1733  				return ErrIntOverflowAdvisorSvc
  1734  			}
  1735  			if iNdEx >= l {
  1736  				return io.ErrUnexpectedEOF
  1737  			}
  1738  			b := dAtA[iNdEx]
  1739  			iNdEx++
  1740  			wire |= uint64(b&0x7F) << shift
  1741  			if b < 0x80 {
  1742  				break
  1743  			}
  1744  		}
  1745  		fieldNum := int32(wire >> 3)
  1746  		wireType := int(wire & 0x7)
  1747  		if wireType == 4 {
  1748  			return fmt.Errorf("proto: ContainerMetadata: wiretype end group for non-group")
  1749  		}
  1750  		if fieldNum <= 0 {
  1751  			return fmt.Errorf("proto: ContainerMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  1752  		}
  1753  		switch fieldNum {
  1754  		case 1:
  1755  			if wireType != 2 {
  1756  				return fmt.Errorf("proto: wrong wireType = %d for field PodUid", wireType)
  1757  			}
  1758  			var stringLen uint64
  1759  			for shift := uint(0); ; shift += 7 {
  1760  				if shift >= 64 {
  1761  					return ErrIntOverflowAdvisorSvc
  1762  				}
  1763  				if iNdEx >= l {
  1764  					return io.ErrUnexpectedEOF
  1765  				}
  1766  				b := dAtA[iNdEx]
  1767  				iNdEx++
  1768  				stringLen |= uint64(b&0x7F) << shift
  1769  				if b < 0x80 {
  1770  					break
  1771  				}
  1772  			}
  1773  			intStringLen := int(stringLen)
  1774  			if intStringLen < 0 {
  1775  				return ErrInvalidLengthAdvisorSvc
  1776  			}
  1777  			postIndex := iNdEx + intStringLen
  1778  			if postIndex < 0 {
  1779  				return ErrInvalidLengthAdvisorSvc
  1780  			}
  1781  			if postIndex > l {
  1782  				return io.ErrUnexpectedEOF
  1783  			}
  1784  			m.PodUid = string(dAtA[iNdEx:postIndex])
  1785  			iNdEx = postIndex
  1786  		case 2:
  1787  			if wireType != 2 {
  1788  				return fmt.Errorf("proto: wrong wireType = %d for field PodNamespace", wireType)
  1789  			}
  1790  			var stringLen uint64
  1791  			for shift := uint(0); ; shift += 7 {
  1792  				if shift >= 64 {
  1793  					return ErrIntOverflowAdvisorSvc
  1794  				}
  1795  				if iNdEx >= l {
  1796  					return io.ErrUnexpectedEOF
  1797  				}
  1798  				b := dAtA[iNdEx]
  1799  				iNdEx++
  1800  				stringLen |= uint64(b&0x7F) << shift
  1801  				if b < 0x80 {
  1802  					break
  1803  				}
  1804  			}
  1805  			intStringLen := int(stringLen)
  1806  			if intStringLen < 0 {
  1807  				return ErrInvalidLengthAdvisorSvc
  1808  			}
  1809  			postIndex := iNdEx + intStringLen
  1810  			if postIndex < 0 {
  1811  				return ErrInvalidLengthAdvisorSvc
  1812  			}
  1813  			if postIndex > l {
  1814  				return io.ErrUnexpectedEOF
  1815  			}
  1816  			m.PodNamespace = string(dAtA[iNdEx:postIndex])
  1817  			iNdEx = postIndex
  1818  		case 3:
  1819  			if wireType != 2 {
  1820  				return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType)
  1821  			}
  1822  			var stringLen uint64
  1823  			for shift := uint(0); ; shift += 7 {
  1824  				if shift >= 64 {
  1825  					return ErrIntOverflowAdvisorSvc
  1826  				}
  1827  				if iNdEx >= l {
  1828  					return io.ErrUnexpectedEOF
  1829  				}
  1830  				b := dAtA[iNdEx]
  1831  				iNdEx++
  1832  				stringLen |= uint64(b&0x7F) << shift
  1833  				if b < 0x80 {
  1834  					break
  1835  				}
  1836  			}
  1837  			intStringLen := int(stringLen)
  1838  			if intStringLen < 0 {
  1839  				return ErrInvalidLengthAdvisorSvc
  1840  			}
  1841  			postIndex := iNdEx + intStringLen
  1842  			if postIndex < 0 {
  1843  				return ErrInvalidLengthAdvisorSvc
  1844  			}
  1845  			if postIndex > l {
  1846  				return io.ErrUnexpectedEOF
  1847  			}
  1848  			m.PodName = string(dAtA[iNdEx:postIndex])
  1849  			iNdEx = postIndex
  1850  		case 4:
  1851  			if wireType != 2 {
  1852  				return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType)
  1853  			}
  1854  			var stringLen uint64
  1855  			for shift := uint(0); ; shift += 7 {
  1856  				if shift >= 64 {
  1857  					return ErrIntOverflowAdvisorSvc
  1858  				}
  1859  				if iNdEx >= l {
  1860  					return io.ErrUnexpectedEOF
  1861  				}
  1862  				b := dAtA[iNdEx]
  1863  				iNdEx++
  1864  				stringLen |= uint64(b&0x7F) << shift
  1865  				if b < 0x80 {
  1866  					break
  1867  				}
  1868  			}
  1869  			intStringLen := int(stringLen)
  1870  			if intStringLen < 0 {
  1871  				return ErrInvalidLengthAdvisorSvc
  1872  			}
  1873  			postIndex := iNdEx + intStringLen
  1874  			if postIndex < 0 {
  1875  				return ErrInvalidLengthAdvisorSvc
  1876  			}
  1877  			if postIndex > l {
  1878  				return io.ErrUnexpectedEOF
  1879  			}
  1880  			m.ContainerName = string(dAtA[iNdEx:postIndex])
  1881  			iNdEx = postIndex
  1882  		case 5:
  1883  			if wireType != 0 {
  1884  				return fmt.Errorf("proto: wrong wireType = %d for field ContainerType", wireType)
  1885  			}
  1886  			m.ContainerType = 0
  1887  			for shift := uint(0); ; shift += 7 {
  1888  				if shift >= 64 {
  1889  					return ErrIntOverflowAdvisorSvc
  1890  				}
  1891  				if iNdEx >= l {
  1892  					return io.ErrUnexpectedEOF
  1893  				}
  1894  				b := dAtA[iNdEx]
  1895  				iNdEx++
  1896  				m.ContainerType |= v1alpha1.ContainerType(b&0x7F) << shift
  1897  				if b < 0x80 {
  1898  					break
  1899  				}
  1900  			}
  1901  		case 6:
  1902  			if wireType != 0 {
  1903  				return fmt.Errorf("proto: wrong wireType = %d for field ContainerIndex", wireType)
  1904  			}
  1905  			m.ContainerIndex = 0
  1906  			for shift := uint(0); ; shift += 7 {
  1907  				if shift >= 64 {
  1908  					return ErrIntOverflowAdvisorSvc
  1909  				}
  1910  				if iNdEx >= l {
  1911  					return io.ErrUnexpectedEOF
  1912  				}
  1913  				b := dAtA[iNdEx]
  1914  				iNdEx++
  1915  				m.ContainerIndex |= uint64(b&0x7F) << shift
  1916  				if b < 0x80 {
  1917  					break
  1918  				}
  1919  			}
  1920  		case 7:
  1921  			if wireType != 2 {
  1922  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  1923  			}
  1924  			var msglen int
  1925  			for shift := uint(0); ; shift += 7 {
  1926  				if shift >= 64 {
  1927  					return ErrIntOverflowAdvisorSvc
  1928  				}
  1929  				if iNdEx >= l {
  1930  					return io.ErrUnexpectedEOF
  1931  				}
  1932  				b := dAtA[iNdEx]
  1933  				iNdEx++
  1934  				msglen |= int(b&0x7F) << shift
  1935  				if b < 0x80 {
  1936  					break
  1937  				}
  1938  			}
  1939  			if msglen < 0 {
  1940  				return ErrInvalidLengthAdvisorSvc
  1941  			}
  1942  			postIndex := iNdEx + msglen
  1943  			if postIndex < 0 {
  1944  				return ErrInvalidLengthAdvisorSvc
  1945  			}
  1946  			if postIndex > l {
  1947  				return io.ErrUnexpectedEOF
  1948  			}
  1949  			if m.Labels == nil {
  1950  				m.Labels = make(map[string]string)
  1951  			}
  1952  			var mapkey string
  1953  			var mapvalue string
  1954  			for iNdEx < postIndex {
  1955  				entryPreIndex := iNdEx
  1956  				var wire uint64
  1957  				for shift := uint(0); ; shift += 7 {
  1958  					if shift >= 64 {
  1959  						return ErrIntOverflowAdvisorSvc
  1960  					}
  1961  					if iNdEx >= l {
  1962  						return io.ErrUnexpectedEOF
  1963  					}
  1964  					b := dAtA[iNdEx]
  1965  					iNdEx++
  1966  					wire |= uint64(b&0x7F) << shift
  1967  					if b < 0x80 {
  1968  						break
  1969  					}
  1970  				}
  1971  				fieldNum := int32(wire >> 3)
  1972  				if fieldNum == 1 {
  1973  					var stringLenmapkey uint64
  1974  					for shift := uint(0); ; shift += 7 {
  1975  						if shift >= 64 {
  1976  							return ErrIntOverflowAdvisorSvc
  1977  						}
  1978  						if iNdEx >= l {
  1979  							return io.ErrUnexpectedEOF
  1980  						}
  1981  						b := dAtA[iNdEx]
  1982  						iNdEx++
  1983  						stringLenmapkey |= uint64(b&0x7F) << shift
  1984  						if b < 0x80 {
  1985  							break
  1986  						}
  1987  					}
  1988  					intStringLenmapkey := int(stringLenmapkey)
  1989  					if intStringLenmapkey < 0 {
  1990  						return ErrInvalidLengthAdvisorSvc
  1991  					}
  1992  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1993  					if postStringIndexmapkey < 0 {
  1994  						return ErrInvalidLengthAdvisorSvc
  1995  					}
  1996  					if postStringIndexmapkey > l {
  1997  						return io.ErrUnexpectedEOF
  1998  					}
  1999  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2000  					iNdEx = postStringIndexmapkey
  2001  				} else if fieldNum == 2 {
  2002  					var stringLenmapvalue uint64
  2003  					for shift := uint(0); ; shift += 7 {
  2004  						if shift >= 64 {
  2005  							return ErrIntOverflowAdvisorSvc
  2006  						}
  2007  						if iNdEx >= l {
  2008  							return io.ErrUnexpectedEOF
  2009  						}
  2010  						b := dAtA[iNdEx]
  2011  						iNdEx++
  2012  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2013  						if b < 0x80 {
  2014  							break
  2015  						}
  2016  					}
  2017  					intStringLenmapvalue := int(stringLenmapvalue)
  2018  					if intStringLenmapvalue < 0 {
  2019  						return ErrInvalidLengthAdvisorSvc
  2020  					}
  2021  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2022  					if postStringIndexmapvalue < 0 {
  2023  						return ErrInvalidLengthAdvisorSvc
  2024  					}
  2025  					if postStringIndexmapvalue > l {
  2026  						return io.ErrUnexpectedEOF
  2027  					}
  2028  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2029  					iNdEx = postStringIndexmapvalue
  2030  				} else {
  2031  					iNdEx = entryPreIndex
  2032  					skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2033  					if err != nil {
  2034  						return err
  2035  					}
  2036  					if skippy < 0 {
  2037  						return ErrInvalidLengthAdvisorSvc
  2038  					}
  2039  					if (iNdEx + skippy) > postIndex {
  2040  						return io.ErrUnexpectedEOF
  2041  					}
  2042  					iNdEx += skippy
  2043  				}
  2044  			}
  2045  			m.Labels[mapkey] = mapvalue
  2046  			iNdEx = postIndex
  2047  		case 8:
  2048  			if wireType != 2 {
  2049  				return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  2050  			}
  2051  			var msglen int
  2052  			for shift := uint(0); ; shift += 7 {
  2053  				if shift >= 64 {
  2054  					return ErrIntOverflowAdvisorSvc
  2055  				}
  2056  				if iNdEx >= l {
  2057  					return io.ErrUnexpectedEOF
  2058  				}
  2059  				b := dAtA[iNdEx]
  2060  				iNdEx++
  2061  				msglen |= int(b&0x7F) << shift
  2062  				if b < 0x80 {
  2063  					break
  2064  				}
  2065  			}
  2066  			if msglen < 0 {
  2067  				return ErrInvalidLengthAdvisorSvc
  2068  			}
  2069  			postIndex := iNdEx + msglen
  2070  			if postIndex < 0 {
  2071  				return ErrInvalidLengthAdvisorSvc
  2072  			}
  2073  			if postIndex > l {
  2074  				return io.ErrUnexpectedEOF
  2075  			}
  2076  			if m.Annotations == nil {
  2077  				m.Annotations = make(map[string]string)
  2078  			}
  2079  			var mapkey string
  2080  			var mapvalue string
  2081  			for iNdEx < postIndex {
  2082  				entryPreIndex := iNdEx
  2083  				var wire uint64
  2084  				for shift := uint(0); ; shift += 7 {
  2085  					if shift >= 64 {
  2086  						return ErrIntOverflowAdvisorSvc
  2087  					}
  2088  					if iNdEx >= l {
  2089  						return io.ErrUnexpectedEOF
  2090  					}
  2091  					b := dAtA[iNdEx]
  2092  					iNdEx++
  2093  					wire |= uint64(b&0x7F) << shift
  2094  					if b < 0x80 {
  2095  						break
  2096  					}
  2097  				}
  2098  				fieldNum := int32(wire >> 3)
  2099  				if fieldNum == 1 {
  2100  					var stringLenmapkey uint64
  2101  					for shift := uint(0); ; shift += 7 {
  2102  						if shift >= 64 {
  2103  							return ErrIntOverflowAdvisorSvc
  2104  						}
  2105  						if iNdEx >= l {
  2106  							return io.ErrUnexpectedEOF
  2107  						}
  2108  						b := dAtA[iNdEx]
  2109  						iNdEx++
  2110  						stringLenmapkey |= uint64(b&0x7F) << shift
  2111  						if b < 0x80 {
  2112  							break
  2113  						}
  2114  					}
  2115  					intStringLenmapkey := int(stringLenmapkey)
  2116  					if intStringLenmapkey < 0 {
  2117  						return ErrInvalidLengthAdvisorSvc
  2118  					}
  2119  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2120  					if postStringIndexmapkey < 0 {
  2121  						return ErrInvalidLengthAdvisorSvc
  2122  					}
  2123  					if postStringIndexmapkey > l {
  2124  						return io.ErrUnexpectedEOF
  2125  					}
  2126  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2127  					iNdEx = postStringIndexmapkey
  2128  				} else if fieldNum == 2 {
  2129  					var stringLenmapvalue uint64
  2130  					for shift := uint(0); ; shift += 7 {
  2131  						if shift >= 64 {
  2132  							return ErrIntOverflowAdvisorSvc
  2133  						}
  2134  						if iNdEx >= l {
  2135  							return io.ErrUnexpectedEOF
  2136  						}
  2137  						b := dAtA[iNdEx]
  2138  						iNdEx++
  2139  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2140  						if b < 0x80 {
  2141  							break
  2142  						}
  2143  					}
  2144  					intStringLenmapvalue := int(stringLenmapvalue)
  2145  					if intStringLenmapvalue < 0 {
  2146  						return ErrInvalidLengthAdvisorSvc
  2147  					}
  2148  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2149  					if postStringIndexmapvalue < 0 {
  2150  						return ErrInvalidLengthAdvisorSvc
  2151  					}
  2152  					if postStringIndexmapvalue > l {
  2153  						return io.ErrUnexpectedEOF
  2154  					}
  2155  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2156  					iNdEx = postStringIndexmapvalue
  2157  				} else {
  2158  					iNdEx = entryPreIndex
  2159  					skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2160  					if err != nil {
  2161  						return err
  2162  					}
  2163  					if skippy < 0 {
  2164  						return ErrInvalidLengthAdvisorSvc
  2165  					}
  2166  					if (iNdEx + skippy) > postIndex {
  2167  						return io.ErrUnexpectedEOF
  2168  					}
  2169  					iNdEx += skippy
  2170  				}
  2171  			}
  2172  			m.Annotations[mapkey] = mapvalue
  2173  			iNdEx = postIndex
  2174  		case 9:
  2175  			if wireType != 2 {
  2176  				return fmt.Errorf("proto: wrong wireType = %d for field QosLevel", wireType)
  2177  			}
  2178  			var stringLen uint64
  2179  			for shift := uint(0); ; shift += 7 {
  2180  				if shift >= 64 {
  2181  					return ErrIntOverflowAdvisorSvc
  2182  				}
  2183  				if iNdEx >= l {
  2184  					return io.ErrUnexpectedEOF
  2185  				}
  2186  				b := dAtA[iNdEx]
  2187  				iNdEx++
  2188  				stringLen |= uint64(b&0x7F) << shift
  2189  				if b < 0x80 {
  2190  					break
  2191  				}
  2192  			}
  2193  			intStringLen := int(stringLen)
  2194  			if intStringLen < 0 {
  2195  				return ErrInvalidLengthAdvisorSvc
  2196  			}
  2197  			postIndex := iNdEx + intStringLen
  2198  			if postIndex < 0 {
  2199  				return ErrInvalidLengthAdvisorSvc
  2200  			}
  2201  			if postIndex > l {
  2202  				return io.ErrUnexpectedEOF
  2203  			}
  2204  			m.QosLevel = string(dAtA[iNdEx:postIndex])
  2205  			iNdEx = postIndex
  2206  		case 10:
  2207  			if wireType != 0 {
  2208  				return fmt.Errorf("proto: wrong wireType = %d for field RequestQuantity", wireType)
  2209  			}
  2210  			m.RequestQuantity = 0
  2211  			for shift := uint(0); ; shift += 7 {
  2212  				if shift >= 64 {
  2213  					return ErrIntOverflowAdvisorSvc
  2214  				}
  2215  				if iNdEx >= l {
  2216  					return io.ErrUnexpectedEOF
  2217  				}
  2218  				b := dAtA[iNdEx]
  2219  				iNdEx++
  2220  				m.RequestQuantity |= uint64(b&0x7F) << shift
  2221  				if b < 0x80 {
  2222  					break
  2223  				}
  2224  			}
  2225  		default:
  2226  			iNdEx = preIndex
  2227  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2228  			if err != nil {
  2229  				return err
  2230  			}
  2231  			if skippy < 0 {
  2232  				return ErrInvalidLengthAdvisorSvc
  2233  			}
  2234  			if (iNdEx + skippy) < 0 {
  2235  				return ErrInvalidLengthAdvisorSvc
  2236  			}
  2237  			if (iNdEx + skippy) > l {
  2238  				return io.ErrUnexpectedEOF
  2239  			}
  2240  			iNdEx += skippy
  2241  		}
  2242  	}
  2243  
  2244  	if iNdEx > l {
  2245  		return io.ErrUnexpectedEOF
  2246  	}
  2247  	return nil
  2248  }
  2249  func (m *AddContainerResponse) Unmarshal(dAtA []byte) error {
  2250  	l := len(dAtA)
  2251  	iNdEx := 0
  2252  	for iNdEx < l {
  2253  		preIndex := iNdEx
  2254  		var wire uint64
  2255  		for shift := uint(0); ; shift += 7 {
  2256  			if shift >= 64 {
  2257  				return ErrIntOverflowAdvisorSvc
  2258  			}
  2259  			if iNdEx >= l {
  2260  				return io.ErrUnexpectedEOF
  2261  			}
  2262  			b := dAtA[iNdEx]
  2263  			iNdEx++
  2264  			wire |= uint64(b&0x7F) << shift
  2265  			if b < 0x80 {
  2266  				break
  2267  			}
  2268  		}
  2269  		fieldNum := int32(wire >> 3)
  2270  		wireType := int(wire & 0x7)
  2271  		if wireType == 4 {
  2272  			return fmt.Errorf("proto: AddContainerResponse: wiretype end group for non-group")
  2273  		}
  2274  		if fieldNum <= 0 {
  2275  			return fmt.Errorf("proto: AddContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2276  		}
  2277  		switch fieldNum {
  2278  		default:
  2279  			iNdEx = preIndex
  2280  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2281  			if err != nil {
  2282  				return err
  2283  			}
  2284  			if skippy < 0 {
  2285  				return ErrInvalidLengthAdvisorSvc
  2286  			}
  2287  			if (iNdEx + skippy) < 0 {
  2288  				return ErrInvalidLengthAdvisorSvc
  2289  			}
  2290  			if (iNdEx + skippy) > l {
  2291  				return io.ErrUnexpectedEOF
  2292  			}
  2293  			iNdEx += skippy
  2294  		}
  2295  	}
  2296  
  2297  	if iNdEx > l {
  2298  		return io.ErrUnexpectedEOF
  2299  	}
  2300  	return nil
  2301  }
  2302  func (m *Empty) Unmarshal(dAtA []byte) error {
  2303  	l := len(dAtA)
  2304  	iNdEx := 0
  2305  	for iNdEx < l {
  2306  		preIndex := iNdEx
  2307  		var wire uint64
  2308  		for shift := uint(0); ; shift += 7 {
  2309  			if shift >= 64 {
  2310  				return ErrIntOverflowAdvisorSvc
  2311  			}
  2312  			if iNdEx >= l {
  2313  				return io.ErrUnexpectedEOF
  2314  			}
  2315  			b := dAtA[iNdEx]
  2316  			iNdEx++
  2317  			wire |= uint64(b&0x7F) << shift
  2318  			if b < 0x80 {
  2319  				break
  2320  			}
  2321  		}
  2322  		fieldNum := int32(wire >> 3)
  2323  		wireType := int(wire & 0x7)
  2324  		if wireType == 4 {
  2325  			return fmt.Errorf("proto: Empty: wiretype end group for non-group")
  2326  		}
  2327  		if fieldNum <= 0 {
  2328  			return fmt.Errorf("proto: Empty: illegal tag %d (wire type %d)", fieldNum, wire)
  2329  		}
  2330  		switch fieldNum {
  2331  		default:
  2332  			iNdEx = preIndex
  2333  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2334  			if err != nil {
  2335  				return err
  2336  			}
  2337  			if skippy < 0 {
  2338  				return ErrInvalidLengthAdvisorSvc
  2339  			}
  2340  			if (iNdEx + skippy) < 0 {
  2341  				return ErrInvalidLengthAdvisorSvc
  2342  			}
  2343  			if (iNdEx + skippy) > l {
  2344  				return io.ErrUnexpectedEOF
  2345  			}
  2346  			iNdEx += skippy
  2347  		}
  2348  	}
  2349  
  2350  	if iNdEx > l {
  2351  		return io.ErrUnexpectedEOF
  2352  	}
  2353  	return nil
  2354  }
  2355  func (m *RemovePodRequest) Unmarshal(dAtA []byte) error {
  2356  	l := len(dAtA)
  2357  	iNdEx := 0
  2358  	for iNdEx < l {
  2359  		preIndex := iNdEx
  2360  		var wire uint64
  2361  		for shift := uint(0); ; shift += 7 {
  2362  			if shift >= 64 {
  2363  				return ErrIntOverflowAdvisorSvc
  2364  			}
  2365  			if iNdEx >= l {
  2366  				return io.ErrUnexpectedEOF
  2367  			}
  2368  			b := dAtA[iNdEx]
  2369  			iNdEx++
  2370  			wire |= uint64(b&0x7F) << shift
  2371  			if b < 0x80 {
  2372  				break
  2373  			}
  2374  		}
  2375  		fieldNum := int32(wire >> 3)
  2376  		wireType := int(wire & 0x7)
  2377  		if wireType == 4 {
  2378  			return fmt.Errorf("proto: RemovePodRequest: wiretype end group for non-group")
  2379  		}
  2380  		if fieldNum <= 0 {
  2381  			return fmt.Errorf("proto: RemovePodRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2382  		}
  2383  		switch fieldNum {
  2384  		case 1:
  2385  			if wireType != 2 {
  2386  				return fmt.Errorf("proto: wrong wireType = %d for field PodUid", wireType)
  2387  			}
  2388  			var stringLen uint64
  2389  			for shift := uint(0); ; shift += 7 {
  2390  				if shift >= 64 {
  2391  					return ErrIntOverflowAdvisorSvc
  2392  				}
  2393  				if iNdEx >= l {
  2394  					return io.ErrUnexpectedEOF
  2395  				}
  2396  				b := dAtA[iNdEx]
  2397  				iNdEx++
  2398  				stringLen |= uint64(b&0x7F) << shift
  2399  				if b < 0x80 {
  2400  					break
  2401  				}
  2402  			}
  2403  			intStringLen := int(stringLen)
  2404  			if intStringLen < 0 {
  2405  				return ErrInvalidLengthAdvisorSvc
  2406  			}
  2407  			postIndex := iNdEx + intStringLen
  2408  			if postIndex < 0 {
  2409  				return ErrInvalidLengthAdvisorSvc
  2410  			}
  2411  			if postIndex > l {
  2412  				return io.ErrUnexpectedEOF
  2413  			}
  2414  			m.PodUid = string(dAtA[iNdEx:postIndex])
  2415  			iNdEx = postIndex
  2416  		default:
  2417  			iNdEx = preIndex
  2418  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2419  			if err != nil {
  2420  				return err
  2421  			}
  2422  			if skippy < 0 {
  2423  				return ErrInvalidLengthAdvisorSvc
  2424  			}
  2425  			if (iNdEx + skippy) < 0 {
  2426  				return ErrInvalidLengthAdvisorSvc
  2427  			}
  2428  			if (iNdEx + skippy) > l {
  2429  				return io.ErrUnexpectedEOF
  2430  			}
  2431  			iNdEx += skippy
  2432  		}
  2433  	}
  2434  
  2435  	if iNdEx > l {
  2436  		return io.ErrUnexpectedEOF
  2437  	}
  2438  	return nil
  2439  }
  2440  func (m *RemovePodResponse) Unmarshal(dAtA []byte) error {
  2441  	l := len(dAtA)
  2442  	iNdEx := 0
  2443  	for iNdEx < l {
  2444  		preIndex := iNdEx
  2445  		var wire uint64
  2446  		for shift := uint(0); ; shift += 7 {
  2447  			if shift >= 64 {
  2448  				return ErrIntOverflowAdvisorSvc
  2449  			}
  2450  			if iNdEx >= l {
  2451  				return io.ErrUnexpectedEOF
  2452  			}
  2453  			b := dAtA[iNdEx]
  2454  			iNdEx++
  2455  			wire |= uint64(b&0x7F) << shift
  2456  			if b < 0x80 {
  2457  				break
  2458  			}
  2459  		}
  2460  		fieldNum := int32(wire >> 3)
  2461  		wireType := int(wire & 0x7)
  2462  		if wireType == 4 {
  2463  			return fmt.Errorf("proto: RemovePodResponse: wiretype end group for non-group")
  2464  		}
  2465  		if fieldNum <= 0 {
  2466  			return fmt.Errorf("proto: RemovePodResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2467  		}
  2468  		switch fieldNum {
  2469  		default:
  2470  			iNdEx = preIndex
  2471  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2472  			if err != nil {
  2473  				return err
  2474  			}
  2475  			if skippy < 0 {
  2476  				return ErrInvalidLengthAdvisorSvc
  2477  			}
  2478  			if (iNdEx + skippy) < 0 {
  2479  				return ErrInvalidLengthAdvisorSvc
  2480  			}
  2481  			if (iNdEx + skippy) > l {
  2482  				return io.ErrUnexpectedEOF
  2483  			}
  2484  			iNdEx += skippy
  2485  		}
  2486  	}
  2487  
  2488  	if iNdEx > l {
  2489  		return io.ErrUnexpectedEOF
  2490  	}
  2491  	return nil
  2492  }
  2493  func (m *ListAndWatchResponse) Unmarshal(dAtA []byte) error {
  2494  	l := len(dAtA)
  2495  	iNdEx := 0
  2496  	for iNdEx < l {
  2497  		preIndex := iNdEx
  2498  		var wire uint64
  2499  		for shift := uint(0); ; shift += 7 {
  2500  			if shift >= 64 {
  2501  				return ErrIntOverflowAdvisorSvc
  2502  			}
  2503  			if iNdEx >= l {
  2504  				return io.ErrUnexpectedEOF
  2505  			}
  2506  			b := dAtA[iNdEx]
  2507  			iNdEx++
  2508  			wire |= uint64(b&0x7F) << shift
  2509  			if b < 0x80 {
  2510  				break
  2511  			}
  2512  		}
  2513  		fieldNum := int32(wire >> 3)
  2514  		wireType := int(wire & 0x7)
  2515  		if wireType == 4 {
  2516  			return fmt.Errorf("proto: ListAndWatchResponse: wiretype end group for non-group")
  2517  		}
  2518  		if fieldNum <= 0 {
  2519  			return fmt.Errorf("proto: ListAndWatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2520  		}
  2521  		switch fieldNum {
  2522  		case 1:
  2523  			if wireType != 2 {
  2524  				return fmt.Errorf("proto: wrong wireType = %d for field PodEntries", wireType)
  2525  			}
  2526  			var msglen int
  2527  			for shift := uint(0); ; shift += 7 {
  2528  				if shift >= 64 {
  2529  					return ErrIntOverflowAdvisorSvc
  2530  				}
  2531  				if iNdEx >= l {
  2532  					return io.ErrUnexpectedEOF
  2533  				}
  2534  				b := dAtA[iNdEx]
  2535  				iNdEx++
  2536  				msglen |= int(b&0x7F) << shift
  2537  				if b < 0x80 {
  2538  					break
  2539  				}
  2540  			}
  2541  			if msglen < 0 {
  2542  				return ErrInvalidLengthAdvisorSvc
  2543  			}
  2544  			postIndex := iNdEx + msglen
  2545  			if postIndex < 0 {
  2546  				return ErrInvalidLengthAdvisorSvc
  2547  			}
  2548  			if postIndex > l {
  2549  				return io.ErrUnexpectedEOF
  2550  			}
  2551  			if m.PodEntries == nil {
  2552  				m.PodEntries = make(map[string]*CalculationEntries)
  2553  			}
  2554  			var mapkey string
  2555  			var mapvalue *CalculationEntries
  2556  			for iNdEx < postIndex {
  2557  				entryPreIndex := iNdEx
  2558  				var wire uint64
  2559  				for shift := uint(0); ; shift += 7 {
  2560  					if shift >= 64 {
  2561  						return ErrIntOverflowAdvisorSvc
  2562  					}
  2563  					if iNdEx >= l {
  2564  						return io.ErrUnexpectedEOF
  2565  					}
  2566  					b := dAtA[iNdEx]
  2567  					iNdEx++
  2568  					wire |= uint64(b&0x7F) << shift
  2569  					if b < 0x80 {
  2570  						break
  2571  					}
  2572  				}
  2573  				fieldNum := int32(wire >> 3)
  2574  				if fieldNum == 1 {
  2575  					var stringLenmapkey uint64
  2576  					for shift := uint(0); ; shift += 7 {
  2577  						if shift >= 64 {
  2578  							return ErrIntOverflowAdvisorSvc
  2579  						}
  2580  						if iNdEx >= l {
  2581  							return io.ErrUnexpectedEOF
  2582  						}
  2583  						b := dAtA[iNdEx]
  2584  						iNdEx++
  2585  						stringLenmapkey |= uint64(b&0x7F) << shift
  2586  						if b < 0x80 {
  2587  							break
  2588  						}
  2589  					}
  2590  					intStringLenmapkey := int(stringLenmapkey)
  2591  					if intStringLenmapkey < 0 {
  2592  						return ErrInvalidLengthAdvisorSvc
  2593  					}
  2594  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2595  					if postStringIndexmapkey < 0 {
  2596  						return ErrInvalidLengthAdvisorSvc
  2597  					}
  2598  					if postStringIndexmapkey > l {
  2599  						return io.ErrUnexpectedEOF
  2600  					}
  2601  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2602  					iNdEx = postStringIndexmapkey
  2603  				} else if fieldNum == 2 {
  2604  					var mapmsglen int
  2605  					for shift := uint(0); ; shift += 7 {
  2606  						if shift >= 64 {
  2607  							return ErrIntOverflowAdvisorSvc
  2608  						}
  2609  						if iNdEx >= l {
  2610  							return io.ErrUnexpectedEOF
  2611  						}
  2612  						b := dAtA[iNdEx]
  2613  						iNdEx++
  2614  						mapmsglen |= int(b&0x7F) << shift
  2615  						if b < 0x80 {
  2616  							break
  2617  						}
  2618  					}
  2619  					if mapmsglen < 0 {
  2620  						return ErrInvalidLengthAdvisorSvc
  2621  					}
  2622  					postmsgIndex := iNdEx + mapmsglen
  2623  					if postmsgIndex < 0 {
  2624  						return ErrInvalidLengthAdvisorSvc
  2625  					}
  2626  					if postmsgIndex > l {
  2627  						return io.ErrUnexpectedEOF
  2628  					}
  2629  					mapvalue = &CalculationEntries{}
  2630  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2631  						return err
  2632  					}
  2633  					iNdEx = postmsgIndex
  2634  				} else {
  2635  					iNdEx = entryPreIndex
  2636  					skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2637  					if err != nil {
  2638  						return err
  2639  					}
  2640  					if skippy < 0 {
  2641  						return ErrInvalidLengthAdvisorSvc
  2642  					}
  2643  					if (iNdEx + skippy) > postIndex {
  2644  						return io.ErrUnexpectedEOF
  2645  					}
  2646  					iNdEx += skippy
  2647  				}
  2648  			}
  2649  			m.PodEntries[mapkey] = mapvalue
  2650  			iNdEx = postIndex
  2651  		case 2:
  2652  			if wireType != 2 {
  2653  				return fmt.Errorf("proto: wrong wireType = %d for field ExtraEntries", wireType)
  2654  			}
  2655  			var msglen int
  2656  			for shift := uint(0); ; shift += 7 {
  2657  				if shift >= 64 {
  2658  					return ErrIntOverflowAdvisorSvc
  2659  				}
  2660  				if iNdEx >= l {
  2661  					return io.ErrUnexpectedEOF
  2662  				}
  2663  				b := dAtA[iNdEx]
  2664  				iNdEx++
  2665  				msglen |= int(b&0x7F) << shift
  2666  				if b < 0x80 {
  2667  					break
  2668  				}
  2669  			}
  2670  			if msglen < 0 {
  2671  				return ErrInvalidLengthAdvisorSvc
  2672  			}
  2673  			postIndex := iNdEx + msglen
  2674  			if postIndex < 0 {
  2675  				return ErrInvalidLengthAdvisorSvc
  2676  			}
  2677  			if postIndex > l {
  2678  				return io.ErrUnexpectedEOF
  2679  			}
  2680  			m.ExtraEntries = append(m.ExtraEntries, &CalculationInfo{})
  2681  			if err := m.ExtraEntries[len(m.ExtraEntries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2682  				return err
  2683  			}
  2684  			iNdEx = postIndex
  2685  		default:
  2686  			iNdEx = preIndex
  2687  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2688  			if err != nil {
  2689  				return err
  2690  			}
  2691  			if skippy < 0 {
  2692  				return ErrInvalidLengthAdvisorSvc
  2693  			}
  2694  			if (iNdEx + skippy) < 0 {
  2695  				return ErrInvalidLengthAdvisorSvc
  2696  			}
  2697  			if (iNdEx + skippy) > l {
  2698  				return io.ErrUnexpectedEOF
  2699  			}
  2700  			iNdEx += skippy
  2701  		}
  2702  	}
  2703  
  2704  	if iNdEx > l {
  2705  		return io.ErrUnexpectedEOF
  2706  	}
  2707  	return nil
  2708  }
  2709  func (m *CalculationEntries) Unmarshal(dAtA []byte) error {
  2710  	l := len(dAtA)
  2711  	iNdEx := 0
  2712  	for iNdEx < l {
  2713  		preIndex := iNdEx
  2714  		var wire uint64
  2715  		for shift := uint(0); ; shift += 7 {
  2716  			if shift >= 64 {
  2717  				return ErrIntOverflowAdvisorSvc
  2718  			}
  2719  			if iNdEx >= l {
  2720  				return io.ErrUnexpectedEOF
  2721  			}
  2722  			b := dAtA[iNdEx]
  2723  			iNdEx++
  2724  			wire |= uint64(b&0x7F) << shift
  2725  			if b < 0x80 {
  2726  				break
  2727  			}
  2728  		}
  2729  		fieldNum := int32(wire >> 3)
  2730  		wireType := int(wire & 0x7)
  2731  		if wireType == 4 {
  2732  			return fmt.Errorf("proto: CalculationEntries: wiretype end group for non-group")
  2733  		}
  2734  		if fieldNum <= 0 {
  2735  			return fmt.Errorf("proto: CalculationEntries: illegal tag %d (wire type %d)", fieldNum, wire)
  2736  		}
  2737  		switch fieldNum {
  2738  		case 1:
  2739  			if wireType != 2 {
  2740  				return fmt.Errorf("proto: wrong wireType = %d for field ContainerEntries", wireType)
  2741  			}
  2742  			var msglen int
  2743  			for shift := uint(0); ; shift += 7 {
  2744  				if shift >= 64 {
  2745  					return ErrIntOverflowAdvisorSvc
  2746  				}
  2747  				if iNdEx >= l {
  2748  					return io.ErrUnexpectedEOF
  2749  				}
  2750  				b := dAtA[iNdEx]
  2751  				iNdEx++
  2752  				msglen |= int(b&0x7F) << shift
  2753  				if b < 0x80 {
  2754  					break
  2755  				}
  2756  			}
  2757  			if msglen < 0 {
  2758  				return ErrInvalidLengthAdvisorSvc
  2759  			}
  2760  			postIndex := iNdEx + msglen
  2761  			if postIndex < 0 {
  2762  				return ErrInvalidLengthAdvisorSvc
  2763  			}
  2764  			if postIndex > l {
  2765  				return io.ErrUnexpectedEOF
  2766  			}
  2767  			if m.ContainerEntries == nil {
  2768  				m.ContainerEntries = make(map[string]*CalculationInfo)
  2769  			}
  2770  			var mapkey string
  2771  			var mapvalue *CalculationInfo
  2772  			for iNdEx < postIndex {
  2773  				entryPreIndex := iNdEx
  2774  				var wire uint64
  2775  				for shift := uint(0); ; shift += 7 {
  2776  					if shift >= 64 {
  2777  						return ErrIntOverflowAdvisorSvc
  2778  					}
  2779  					if iNdEx >= l {
  2780  						return io.ErrUnexpectedEOF
  2781  					}
  2782  					b := dAtA[iNdEx]
  2783  					iNdEx++
  2784  					wire |= uint64(b&0x7F) << shift
  2785  					if b < 0x80 {
  2786  						break
  2787  					}
  2788  				}
  2789  				fieldNum := int32(wire >> 3)
  2790  				if fieldNum == 1 {
  2791  					var stringLenmapkey uint64
  2792  					for shift := uint(0); ; shift += 7 {
  2793  						if shift >= 64 {
  2794  							return ErrIntOverflowAdvisorSvc
  2795  						}
  2796  						if iNdEx >= l {
  2797  							return io.ErrUnexpectedEOF
  2798  						}
  2799  						b := dAtA[iNdEx]
  2800  						iNdEx++
  2801  						stringLenmapkey |= uint64(b&0x7F) << shift
  2802  						if b < 0x80 {
  2803  							break
  2804  						}
  2805  					}
  2806  					intStringLenmapkey := int(stringLenmapkey)
  2807  					if intStringLenmapkey < 0 {
  2808  						return ErrInvalidLengthAdvisorSvc
  2809  					}
  2810  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2811  					if postStringIndexmapkey < 0 {
  2812  						return ErrInvalidLengthAdvisorSvc
  2813  					}
  2814  					if postStringIndexmapkey > l {
  2815  						return io.ErrUnexpectedEOF
  2816  					}
  2817  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2818  					iNdEx = postStringIndexmapkey
  2819  				} else if fieldNum == 2 {
  2820  					var mapmsglen int
  2821  					for shift := uint(0); ; shift += 7 {
  2822  						if shift >= 64 {
  2823  							return ErrIntOverflowAdvisorSvc
  2824  						}
  2825  						if iNdEx >= l {
  2826  							return io.ErrUnexpectedEOF
  2827  						}
  2828  						b := dAtA[iNdEx]
  2829  						iNdEx++
  2830  						mapmsglen |= int(b&0x7F) << shift
  2831  						if b < 0x80 {
  2832  							break
  2833  						}
  2834  					}
  2835  					if mapmsglen < 0 {
  2836  						return ErrInvalidLengthAdvisorSvc
  2837  					}
  2838  					postmsgIndex := iNdEx + mapmsglen
  2839  					if postmsgIndex < 0 {
  2840  						return ErrInvalidLengthAdvisorSvc
  2841  					}
  2842  					if postmsgIndex > l {
  2843  						return io.ErrUnexpectedEOF
  2844  					}
  2845  					mapvalue = &CalculationInfo{}
  2846  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2847  						return err
  2848  					}
  2849  					iNdEx = postmsgIndex
  2850  				} else {
  2851  					iNdEx = entryPreIndex
  2852  					skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2853  					if err != nil {
  2854  						return err
  2855  					}
  2856  					if skippy < 0 {
  2857  						return ErrInvalidLengthAdvisorSvc
  2858  					}
  2859  					if (iNdEx + skippy) > postIndex {
  2860  						return io.ErrUnexpectedEOF
  2861  					}
  2862  					iNdEx += skippy
  2863  				}
  2864  			}
  2865  			m.ContainerEntries[mapkey] = mapvalue
  2866  			iNdEx = postIndex
  2867  		default:
  2868  			iNdEx = preIndex
  2869  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2870  			if err != nil {
  2871  				return err
  2872  			}
  2873  			if skippy < 0 {
  2874  				return ErrInvalidLengthAdvisorSvc
  2875  			}
  2876  			if (iNdEx + skippy) < 0 {
  2877  				return ErrInvalidLengthAdvisorSvc
  2878  			}
  2879  			if (iNdEx + skippy) > l {
  2880  				return io.ErrUnexpectedEOF
  2881  			}
  2882  			iNdEx += skippy
  2883  		}
  2884  	}
  2885  
  2886  	if iNdEx > l {
  2887  		return io.ErrUnexpectedEOF
  2888  	}
  2889  	return nil
  2890  }
  2891  func (m *CalculationInfo) Unmarshal(dAtA []byte) error {
  2892  	l := len(dAtA)
  2893  	iNdEx := 0
  2894  	for iNdEx < l {
  2895  		preIndex := iNdEx
  2896  		var wire uint64
  2897  		for shift := uint(0); ; shift += 7 {
  2898  			if shift >= 64 {
  2899  				return ErrIntOverflowAdvisorSvc
  2900  			}
  2901  			if iNdEx >= l {
  2902  				return io.ErrUnexpectedEOF
  2903  			}
  2904  			b := dAtA[iNdEx]
  2905  			iNdEx++
  2906  			wire |= uint64(b&0x7F) << shift
  2907  			if b < 0x80 {
  2908  				break
  2909  			}
  2910  		}
  2911  		fieldNum := int32(wire >> 3)
  2912  		wireType := int(wire & 0x7)
  2913  		if wireType == 4 {
  2914  			return fmt.Errorf("proto: CalculationInfo: wiretype end group for non-group")
  2915  		}
  2916  		if fieldNum <= 0 {
  2917  			return fmt.Errorf("proto: CalculationInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2918  		}
  2919  		switch fieldNum {
  2920  		case 1:
  2921  			if wireType != 2 {
  2922  				return fmt.Errorf("proto: wrong wireType = %d for field CgroupPath", wireType)
  2923  			}
  2924  			var stringLen uint64
  2925  			for shift := uint(0); ; shift += 7 {
  2926  				if shift >= 64 {
  2927  					return ErrIntOverflowAdvisorSvc
  2928  				}
  2929  				if iNdEx >= l {
  2930  					return io.ErrUnexpectedEOF
  2931  				}
  2932  				b := dAtA[iNdEx]
  2933  				iNdEx++
  2934  				stringLen |= uint64(b&0x7F) << shift
  2935  				if b < 0x80 {
  2936  					break
  2937  				}
  2938  			}
  2939  			intStringLen := int(stringLen)
  2940  			if intStringLen < 0 {
  2941  				return ErrInvalidLengthAdvisorSvc
  2942  			}
  2943  			postIndex := iNdEx + intStringLen
  2944  			if postIndex < 0 {
  2945  				return ErrInvalidLengthAdvisorSvc
  2946  			}
  2947  			if postIndex > l {
  2948  				return io.ErrUnexpectedEOF
  2949  			}
  2950  			m.CgroupPath = string(dAtA[iNdEx:postIndex])
  2951  			iNdEx = postIndex
  2952  		case 2:
  2953  			if wireType != 2 {
  2954  				return fmt.Errorf("proto: wrong wireType = %d for field CalculationResult", wireType)
  2955  			}
  2956  			var msglen int
  2957  			for shift := uint(0); ; shift += 7 {
  2958  				if shift >= 64 {
  2959  					return ErrIntOverflowAdvisorSvc
  2960  				}
  2961  				if iNdEx >= l {
  2962  					return io.ErrUnexpectedEOF
  2963  				}
  2964  				b := dAtA[iNdEx]
  2965  				iNdEx++
  2966  				msglen |= int(b&0x7F) << shift
  2967  				if b < 0x80 {
  2968  					break
  2969  				}
  2970  			}
  2971  			if msglen < 0 {
  2972  				return ErrInvalidLengthAdvisorSvc
  2973  			}
  2974  			postIndex := iNdEx + msglen
  2975  			if postIndex < 0 {
  2976  				return ErrInvalidLengthAdvisorSvc
  2977  			}
  2978  			if postIndex > l {
  2979  				return io.ErrUnexpectedEOF
  2980  			}
  2981  			if m.CalculationResult == nil {
  2982  				m.CalculationResult = &CalculationResult{}
  2983  			}
  2984  			if err := m.CalculationResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2985  				return err
  2986  			}
  2987  			iNdEx = postIndex
  2988  		default:
  2989  			iNdEx = preIndex
  2990  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  2991  			if err != nil {
  2992  				return err
  2993  			}
  2994  			if skippy < 0 {
  2995  				return ErrInvalidLengthAdvisorSvc
  2996  			}
  2997  			if (iNdEx + skippy) < 0 {
  2998  				return ErrInvalidLengthAdvisorSvc
  2999  			}
  3000  			if (iNdEx + skippy) > l {
  3001  				return io.ErrUnexpectedEOF
  3002  			}
  3003  			iNdEx += skippy
  3004  		}
  3005  	}
  3006  
  3007  	if iNdEx > l {
  3008  		return io.ErrUnexpectedEOF
  3009  	}
  3010  	return nil
  3011  }
  3012  func (m *CalculationResult) Unmarshal(dAtA []byte) error {
  3013  	l := len(dAtA)
  3014  	iNdEx := 0
  3015  	for iNdEx < l {
  3016  		preIndex := iNdEx
  3017  		var wire uint64
  3018  		for shift := uint(0); ; shift += 7 {
  3019  			if shift >= 64 {
  3020  				return ErrIntOverflowAdvisorSvc
  3021  			}
  3022  			if iNdEx >= l {
  3023  				return io.ErrUnexpectedEOF
  3024  			}
  3025  			b := dAtA[iNdEx]
  3026  			iNdEx++
  3027  			wire |= uint64(b&0x7F) << shift
  3028  			if b < 0x80 {
  3029  				break
  3030  			}
  3031  		}
  3032  		fieldNum := int32(wire >> 3)
  3033  		wireType := int(wire & 0x7)
  3034  		if wireType == 4 {
  3035  			return fmt.Errorf("proto: CalculationResult: wiretype end group for non-group")
  3036  		}
  3037  		if fieldNum <= 0 {
  3038  			return fmt.Errorf("proto: CalculationResult: illegal tag %d (wire type %d)", fieldNum, wire)
  3039  		}
  3040  		switch fieldNum {
  3041  		case 1:
  3042  			if wireType != 2 {
  3043  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  3044  			}
  3045  			var msglen int
  3046  			for shift := uint(0); ; shift += 7 {
  3047  				if shift >= 64 {
  3048  					return ErrIntOverflowAdvisorSvc
  3049  				}
  3050  				if iNdEx >= l {
  3051  					return io.ErrUnexpectedEOF
  3052  				}
  3053  				b := dAtA[iNdEx]
  3054  				iNdEx++
  3055  				msglen |= int(b&0x7F) << shift
  3056  				if b < 0x80 {
  3057  					break
  3058  				}
  3059  			}
  3060  			if msglen < 0 {
  3061  				return ErrInvalidLengthAdvisorSvc
  3062  			}
  3063  			postIndex := iNdEx + msglen
  3064  			if postIndex < 0 {
  3065  				return ErrInvalidLengthAdvisorSvc
  3066  			}
  3067  			if postIndex > l {
  3068  				return io.ErrUnexpectedEOF
  3069  			}
  3070  			if m.Values == nil {
  3071  				m.Values = make(map[string]string)
  3072  			}
  3073  			var mapkey string
  3074  			var mapvalue string
  3075  			for iNdEx < postIndex {
  3076  				entryPreIndex := iNdEx
  3077  				var wire uint64
  3078  				for shift := uint(0); ; shift += 7 {
  3079  					if shift >= 64 {
  3080  						return ErrIntOverflowAdvisorSvc
  3081  					}
  3082  					if iNdEx >= l {
  3083  						return io.ErrUnexpectedEOF
  3084  					}
  3085  					b := dAtA[iNdEx]
  3086  					iNdEx++
  3087  					wire |= uint64(b&0x7F) << shift
  3088  					if b < 0x80 {
  3089  						break
  3090  					}
  3091  				}
  3092  				fieldNum := int32(wire >> 3)
  3093  				if fieldNum == 1 {
  3094  					var stringLenmapkey uint64
  3095  					for shift := uint(0); ; shift += 7 {
  3096  						if shift >= 64 {
  3097  							return ErrIntOverflowAdvisorSvc
  3098  						}
  3099  						if iNdEx >= l {
  3100  							return io.ErrUnexpectedEOF
  3101  						}
  3102  						b := dAtA[iNdEx]
  3103  						iNdEx++
  3104  						stringLenmapkey |= uint64(b&0x7F) << shift
  3105  						if b < 0x80 {
  3106  							break
  3107  						}
  3108  					}
  3109  					intStringLenmapkey := int(stringLenmapkey)
  3110  					if intStringLenmapkey < 0 {
  3111  						return ErrInvalidLengthAdvisorSvc
  3112  					}
  3113  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  3114  					if postStringIndexmapkey < 0 {
  3115  						return ErrInvalidLengthAdvisorSvc
  3116  					}
  3117  					if postStringIndexmapkey > l {
  3118  						return io.ErrUnexpectedEOF
  3119  					}
  3120  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  3121  					iNdEx = postStringIndexmapkey
  3122  				} else if fieldNum == 2 {
  3123  					var stringLenmapvalue uint64
  3124  					for shift := uint(0); ; shift += 7 {
  3125  						if shift >= 64 {
  3126  							return ErrIntOverflowAdvisorSvc
  3127  						}
  3128  						if iNdEx >= l {
  3129  							return io.ErrUnexpectedEOF
  3130  						}
  3131  						b := dAtA[iNdEx]
  3132  						iNdEx++
  3133  						stringLenmapvalue |= uint64(b&0x7F) << shift
  3134  						if b < 0x80 {
  3135  							break
  3136  						}
  3137  					}
  3138  					intStringLenmapvalue := int(stringLenmapvalue)
  3139  					if intStringLenmapvalue < 0 {
  3140  						return ErrInvalidLengthAdvisorSvc
  3141  					}
  3142  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3143  					if postStringIndexmapvalue < 0 {
  3144  						return ErrInvalidLengthAdvisorSvc
  3145  					}
  3146  					if postStringIndexmapvalue > l {
  3147  						return io.ErrUnexpectedEOF
  3148  					}
  3149  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  3150  					iNdEx = postStringIndexmapvalue
  3151  				} else {
  3152  					iNdEx = entryPreIndex
  3153  					skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  3154  					if err != nil {
  3155  						return err
  3156  					}
  3157  					if skippy < 0 {
  3158  						return ErrInvalidLengthAdvisorSvc
  3159  					}
  3160  					if (iNdEx + skippy) > postIndex {
  3161  						return io.ErrUnexpectedEOF
  3162  					}
  3163  					iNdEx += skippy
  3164  				}
  3165  			}
  3166  			m.Values[mapkey] = mapvalue
  3167  			iNdEx = postIndex
  3168  		default:
  3169  			iNdEx = preIndex
  3170  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  3171  			if err != nil {
  3172  				return err
  3173  			}
  3174  			if skippy < 0 {
  3175  				return ErrInvalidLengthAdvisorSvc
  3176  			}
  3177  			if (iNdEx + skippy) < 0 {
  3178  				return ErrInvalidLengthAdvisorSvc
  3179  			}
  3180  			if (iNdEx + skippy) > l {
  3181  				return io.ErrUnexpectedEOF
  3182  			}
  3183  			iNdEx += skippy
  3184  		}
  3185  	}
  3186  
  3187  	if iNdEx > l {
  3188  		return io.ErrUnexpectedEOF
  3189  	}
  3190  	return nil
  3191  }
  3192  func (m *ListContainersResponse) Unmarshal(dAtA []byte) error {
  3193  	l := len(dAtA)
  3194  	iNdEx := 0
  3195  	for iNdEx < l {
  3196  		preIndex := iNdEx
  3197  		var wire uint64
  3198  		for shift := uint(0); ; shift += 7 {
  3199  			if shift >= 64 {
  3200  				return ErrIntOverflowAdvisorSvc
  3201  			}
  3202  			if iNdEx >= l {
  3203  				return io.ErrUnexpectedEOF
  3204  			}
  3205  			b := dAtA[iNdEx]
  3206  			iNdEx++
  3207  			wire |= uint64(b&0x7F) << shift
  3208  			if b < 0x80 {
  3209  				break
  3210  			}
  3211  		}
  3212  		fieldNum := int32(wire >> 3)
  3213  		wireType := int(wire & 0x7)
  3214  		if wireType == 4 {
  3215  			return fmt.Errorf("proto: ListContainersResponse: wiretype end group for non-group")
  3216  		}
  3217  		if fieldNum <= 0 {
  3218  			return fmt.Errorf("proto: ListContainersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3219  		}
  3220  		switch fieldNum {
  3221  		case 1:
  3222  			if wireType != 2 {
  3223  				return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType)
  3224  			}
  3225  			var msglen int
  3226  			for shift := uint(0); ; shift += 7 {
  3227  				if shift >= 64 {
  3228  					return ErrIntOverflowAdvisorSvc
  3229  				}
  3230  				if iNdEx >= l {
  3231  					return io.ErrUnexpectedEOF
  3232  				}
  3233  				b := dAtA[iNdEx]
  3234  				iNdEx++
  3235  				msglen |= int(b&0x7F) << shift
  3236  				if b < 0x80 {
  3237  					break
  3238  				}
  3239  			}
  3240  			if msglen < 0 {
  3241  				return ErrInvalidLengthAdvisorSvc
  3242  			}
  3243  			postIndex := iNdEx + msglen
  3244  			if postIndex < 0 {
  3245  				return ErrInvalidLengthAdvisorSvc
  3246  			}
  3247  			if postIndex > l {
  3248  				return io.ErrUnexpectedEOF
  3249  			}
  3250  			m.Containers = append(m.Containers, &ContainerMetadata{})
  3251  			if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3252  				return err
  3253  			}
  3254  			iNdEx = postIndex
  3255  		default:
  3256  			iNdEx = preIndex
  3257  			skippy, err := skipAdvisorSvc(dAtA[iNdEx:])
  3258  			if err != nil {
  3259  				return err
  3260  			}
  3261  			if skippy < 0 {
  3262  				return ErrInvalidLengthAdvisorSvc
  3263  			}
  3264  			if (iNdEx + skippy) < 0 {
  3265  				return ErrInvalidLengthAdvisorSvc
  3266  			}
  3267  			if (iNdEx + skippy) > l {
  3268  				return io.ErrUnexpectedEOF
  3269  			}
  3270  			iNdEx += skippy
  3271  		}
  3272  	}
  3273  
  3274  	if iNdEx > l {
  3275  		return io.ErrUnexpectedEOF
  3276  	}
  3277  	return nil
  3278  }
  3279  func skipAdvisorSvc(dAtA []byte) (n int, err error) {
  3280  	l := len(dAtA)
  3281  	iNdEx := 0
  3282  	depth := 0
  3283  	for iNdEx < l {
  3284  		var wire uint64
  3285  		for shift := uint(0); ; shift += 7 {
  3286  			if shift >= 64 {
  3287  				return 0, ErrIntOverflowAdvisorSvc
  3288  			}
  3289  			if iNdEx >= l {
  3290  				return 0, io.ErrUnexpectedEOF
  3291  			}
  3292  			b := dAtA[iNdEx]
  3293  			iNdEx++
  3294  			wire |= (uint64(b) & 0x7F) << shift
  3295  			if b < 0x80 {
  3296  				break
  3297  			}
  3298  		}
  3299  		wireType := int(wire & 0x7)
  3300  		switch wireType {
  3301  		case 0:
  3302  			for shift := uint(0); ; shift += 7 {
  3303  				if shift >= 64 {
  3304  					return 0, ErrIntOverflowAdvisorSvc
  3305  				}
  3306  				if iNdEx >= l {
  3307  					return 0, io.ErrUnexpectedEOF
  3308  				}
  3309  				iNdEx++
  3310  				if dAtA[iNdEx-1] < 0x80 {
  3311  					break
  3312  				}
  3313  			}
  3314  		case 1:
  3315  			iNdEx += 8
  3316  		case 2:
  3317  			var length int
  3318  			for shift := uint(0); ; shift += 7 {
  3319  				if shift >= 64 {
  3320  					return 0, ErrIntOverflowAdvisorSvc
  3321  				}
  3322  				if iNdEx >= l {
  3323  					return 0, io.ErrUnexpectedEOF
  3324  				}
  3325  				b := dAtA[iNdEx]
  3326  				iNdEx++
  3327  				length |= (int(b) & 0x7F) << shift
  3328  				if b < 0x80 {
  3329  					break
  3330  				}
  3331  			}
  3332  			if length < 0 {
  3333  				return 0, ErrInvalidLengthAdvisorSvc
  3334  			}
  3335  			iNdEx += length
  3336  		case 3:
  3337  			depth++
  3338  		case 4:
  3339  			if depth == 0 {
  3340  				return 0, ErrUnexpectedEndOfGroupAdvisorSvc
  3341  			}
  3342  			depth--
  3343  		case 5:
  3344  			iNdEx += 4
  3345  		default:
  3346  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3347  		}
  3348  		if iNdEx < 0 {
  3349  			return 0, ErrInvalidLengthAdvisorSvc
  3350  		}
  3351  		if depth == 0 {
  3352  			return iNdEx, nil
  3353  		}
  3354  	}
  3355  	return 0, io.ErrUnexpectedEOF
  3356  }
  3357  
  3358  var (
  3359  	ErrInvalidLengthAdvisorSvc        = fmt.Errorf("proto: negative length found during unmarshaling")
  3360  	ErrIntOverflowAdvisorSvc          = fmt.Errorf("proto: integer overflow")
  3361  	ErrUnexpectedEndOfGroupAdvisorSvc = fmt.Errorf("proto: unexpected end of group")
  3362  )