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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/config/v2/configuration.proto
     3  
     4  package v2
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	io "io"
    11  	math "math"
    12  	math_bits "math/bits"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    25  
    26  // State is the configuration state
    27  type ConfigurationStatus_State int32
    28  
    29  const (
    30  	ConfigurationStatus_UNKNOWN       ConfigurationStatus_State = 0
    31  	ConfigurationStatus_SYNCHRONIZING ConfigurationStatus_State = 1
    32  	ConfigurationStatus_SYNCHRONIZED  ConfigurationStatus_State = 2
    33  	ConfigurationStatus_PERSISTED     ConfigurationStatus_State = 3
    34  )
    35  
    36  var ConfigurationStatus_State_name = map[int32]string{
    37  	0: "UNKNOWN",
    38  	1: "SYNCHRONIZING",
    39  	2: "SYNCHRONIZED",
    40  	3: "PERSISTED",
    41  }
    42  
    43  var ConfigurationStatus_State_value = map[string]int32{
    44  	"UNKNOWN":       0,
    45  	"SYNCHRONIZING": 1,
    46  	"SYNCHRONIZED":  2,
    47  	"PERSISTED":     3,
    48  }
    49  
    50  func (x ConfigurationStatus_State) String() string {
    51  	return proto.EnumName(ConfigurationStatus_State_name, int32(x))
    52  }
    53  
    54  func (ConfigurationStatus_State) EnumDescriptor() ([]byte, []int) {
    55  	return fileDescriptor_a1b457d3c759d10b, []int{1, 0}
    56  }
    57  
    58  // EventType configuration event types for configuration store
    59  type ConfigurationEvent_EventType int32
    60  
    61  const (
    62  	// UNKNOWN indicates unknown configuration store event
    63  	ConfigurationEvent_UNKNOWN ConfigurationEvent_EventType = 0
    64  	// CREATED indicates the configuration entry in the store is created
    65  	ConfigurationEvent_CREATED ConfigurationEvent_EventType = 1
    66  	// UPDATED indicates the configuration entry in the store is updated
    67  	ConfigurationEvent_UPDATED ConfigurationEvent_EventType = 2
    68  	// DELETED indicates the configuration entry in the store is deleted
    69  	ConfigurationEvent_DELETED ConfigurationEvent_EventType = 3
    70  	// REPLAYED
    71  	ConfigurationEvent_REPLAYED ConfigurationEvent_EventType = 4
    72  )
    73  
    74  var ConfigurationEvent_EventType_name = map[int32]string{
    75  	0: "UNKNOWN",
    76  	1: "CREATED",
    77  	2: "UPDATED",
    78  	3: "DELETED",
    79  	4: "REPLAYED",
    80  }
    81  
    82  var ConfigurationEvent_EventType_value = map[string]int32{
    83  	"UNKNOWN":  0,
    84  	"CREATED":  1,
    85  	"UPDATED":  2,
    86  	"DELETED":  3,
    87  	"REPLAYED": 4,
    88  }
    89  
    90  func (x ConfigurationEvent_EventType) String() string {
    91  	return proto.EnumName(ConfigurationEvent_EventType_name, int32(x))
    92  }
    93  
    94  func (ConfigurationEvent_EventType) EnumDescriptor() ([]byte, []int) {
    95  	return fileDescriptor_a1b457d3c759d10b, []int{6, 0}
    96  }
    97  
    98  // Configuration represents complete desired target configuration
    99  type Configuration struct {
   100  	ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"`
   101  	// 'id' is a unique configuration identifier
   102  	ID ConfigurationID `protobuf:"bytes,2,opt,name=id,proto3,casttype=ConfigurationID" json:"id,omitempty"`
   103  	// 'target_id' is the target to which the desired target configuration applies
   104  	TargetID TargetID `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3,casttype=TargetID" json:"target_id,omitempty"`
   105  	// 'values' is a map of path/values to set
   106  	Values map[string]*PathValue `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   107  	// 'index' is the index of the configuration values
   108  	Index Index `protobuf:"varint,5,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
   109  	// 'ConfigurationStatus' is the current lifecycle status of the configuration
   110  	Status            ConfigurationStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status"`
   111  	TargetTypeVersion `protobuf:"bytes,7,opt,name=target_info,json=targetInfo,proto3,embedded=target_info" json:"target_info"`
   112  }
   113  
   114  func (m *Configuration) Reset()         { *m = Configuration{} }
   115  func (m *Configuration) String() string { return proto.CompactTextString(m) }
   116  func (*Configuration) ProtoMessage()    {}
   117  func (*Configuration) Descriptor() ([]byte, []int) {
   118  	return fileDescriptor_a1b457d3c759d10b, []int{0}
   119  }
   120  func (m *Configuration) XXX_Unmarshal(b []byte) error {
   121  	return m.Unmarshal(b)
   122  }
   123  func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   124  	if deterministic {
   125  		return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
   126  	} else {
   127  		b = b[:cap(b)]
   128  		n, err := m.MarshalToSizedBuffer(b)
   129  		if err != nil {
   130  			return nil, err
   131  		}
   132  		return b[:n], nil
   133  	}
   134  }
   135  func (m *Configuration) XXX_Merge(src proto.Message) {
   136  	xxx_messageInfo_Configuration.Merge(m, src)
   137  }
   138  func (m *Configuration) XXX_Size() int {
   139  	return m.Size()
   140  }
   141  func (m *Configuration) XXX_DiscardUnknown() {
   142  	xxx_messageInfo_Configuration.DiscardUnknown(m)
   143  }
   144  
   145  var xxx_messageInfo_Configuration proto.InternalMessageInfo
   146  
   147  func (m *Configuration) GetID() ConfigurationID {
   148  	if m != nil {
   149  		return m.ID
   150  	}
   151  	return ""
   152  }
   153  
   154  func (m *Configuration) GetTargetID() TargetID {
   155  	if m != nil {
   156  		return m.TargetID
   157  	}
   158  	return ""
   159  }
   160  
   161  func (m *Configuration) GetValues() map[string]*PathValue {
   162  	if m != nil {
   163  		return m.Values
   164  	}
   165  	return nil
   166  }
   167  
   168  func (m *Configuration) GetIndex() Index {
   169  	if m != nil {
   170  		return m.Index
   171  	}
   172  	return 0
   173  }
   174  
   175  func (m *Configuration) GetStatus() ConfigurationStatus {
   176  	if m != nil {
   177  		return m.Status
   178  	}
   179  	return ConfigurationStatus{}
   180  }
   181  
   182  // ConfigurationStatus is the status of a Configuration
   183  type ConfigurationStatus struct {
   184  	// 'state' is the configuration state
   185  	State ConfigurationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=onos.config.v2.ConfigurationStatus_State" json:"state,omitempty"`
   186  	// 'mastership' is the current mastership info for the configuration
   187  	Mastership MastershipInfo `protobuf:"bytes,2,opt,name=mastership,proto3" json:"mastership"`
   188  	// 'proposed' is the proposed configuration status
   189  	Proposed ProposedConfigurationStatus `protobuf:"bytes,3,opt,name=proposed,proto3" json:"proposed"`
   190  	// 'committed' is the committed configuration status
   191  	Committed CommittedConfigurationStatus `protobuf:"bytes,4,opt,name=committed,proto3" json:"committed"`
   192  	// 'applied' is the applied configuration status
   193  	Applied AppliedConfigurationStatus `protobuf:"bytes,5,opt,name=applied,proto3" json:"applied"`
   194  }
   195  
   196  func (m *ConfigurationStatus) Reset()         { *m = ConfigurationStatus{} }
   197  func (m *ConfigurationStatus) String() string { return proto.CompactTextString(m) }
   198  func (*ConfigurationStatus) ProtoMessage()    {}
   199  func (*ConfigurationStatus) Descriptor() ([]byte, []int) {
   200  	return fileDescriptor_a1b457d3c759d10b, []int{1}
   201  }
   202  func (m *ConfigurationStatus) XXX_Unmarshal(b []byte) error {
   203  	return m.Unmarshal(b)
   204  }
   205  func (m *ConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   206  	if deterministic {
   207  		return xxx_messageInfo_ConfigurationStatus.Marshal(b, m, deterministic)
   208  	} else {
   209  		b = b[:cap(b)]
   210  		n, err := m.MarshalToSizedBuffer(b)
   211  		if err != nil {
   212  			return nil, err
   213  		}
   214  		return b[:n], nil
   215  	}
   216  }
   217  func (m *ConfigurationStatus) XXX_Merge(src proto.Message) {
   218  	xxx_messageInfo_ConfigurationStatus.Merge(m, src)
   219  }
   220  func (m *ConfigurationStatus) XXX_Size() int {
   221  	return m.Size()
   222  }
   223  func (m *ConfigurationStatus) XXX_DiscardUnknown() {
   224  	xxx_messageInfo_ConfigurationStatus.DiscardUnknown(m)
   225  }
   226  
   227  var xxx_messageInfo_ConfigurationStatus proto.InternalMessageInfo
   228  
   229  func (m *ConfigurationStatus) GetState() ConfigurationStatus_State {
   230  	if m != nil {
   231  		return m.State
   232  	}
   233  	return ConfigurationStatus_UNKNOWN
   234  }
   235  
   236  func (m *ConfigurationStatus) GetMastership() MastershipInfo {
   237  	if m != nil {
   238  		return m.Mastership
   239  	}
   240  	return MastershipInfo{}
   241  }
   242  
   243  func (m *ConfigurationStatus) GetProposed() ProposedConfigurationStatus {
   244  	if m != nil {
   245  		return m.Proposed
   246  	}
   247  	return ProposedConfigurationStatus{}
   248  }
   249  
   250  func (m *ConfigurationStatus) GetCommitted() CommittedConfigurationStatus {
   251  	if m != nil {
   252  		return m.Committed
   253  	}
   254  	return CommittedConfigurationStatus{}
   255  }
   256  
   257  func (m *ConfigurationStatus) GetApplied() AppliedConfigurationStatus {
   258  	if m != nil {
   259  		return m.Applied
   260  	}
   261  	return AppliedConfigurationStatus{}
   262  }
   263  
   264  type ProposedConfigurationStatus struct {
   265  	Index Index `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
   266  }
   267  
   268  func (m *ProposedConfigurationStatus) Reset()         { *m = ProposedConfigurationStatus{} }
   269  func (m *ProposedConfigurationStatus) String() string { return proto.CompactTextString(m) }
   270  func (*ProposedConfigurationStatus) ProtoMessage()    {}
   271  func (*ProposedConfigurationStatus) Descriptor() ([]byte, []int) {
   272  	return fileDescriptor_a1b457d3c759d10b, []int{2}
   273  }
   274  func (m *ProposedConfigurationStatus) XXX_Unmarshal(b []byte) error {
   275  	return m.Unmarshal(b)
   276  }
   277  func (m *ProposedConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   278  	if deterministic {
   279  		return xxx_messageInfo_ProposedConfigurationStatus.Marshal(b, m, deterministic)
   280  	} else {
   281  		b = b[:cap(b)]
   282  		n, err := m.MarshalToSizedBuffer(b)
   283  		if err != nil {
   284  			return nil, err
   285  		}
   286  		return b[:n], nil
   287  	}
   288  }
   289  func (m *ProposedConfigurationStatus) XXX_Merge(src proto.Message) {
   290  	xxx_messageInfo_ProposedConfigurationStatus.Merge(m, src)
   291  }
   292  func (m *ProposedConfigurationStatus) XXX_Size() int {
   293  	return m.Size()
   294  }
   295  func (m *ProposedConfigurationStatus) XXX_DiscardUnknown() {
   296  	xxx_messageInfo_ProposedConfigurationStatus.DiscardUnknown(m)
   297  }
   298  
   299  var xxx_messageInfo_ProposedConfigurationStatus proto.InternalMessageInfo
   300  
   301  func (m *ProposedConfigurationStatus) GetIndex() Index {
   302  	if m != nil {
   303  		return m.Index
   304  	}
   305  	return 0
   306  }
   307  
   308  type CommittedConfigurationStatus struct {
   309  	Index Index `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
   310  }
   311  
   312  func (m *CommittedConfigurationStatus) Reset()         { *m = CommittedConfigurationStatus{} }
   313  func (m *CommittedConfigurationStatus) String() string { return proto.CompactTextString(m) }
   314  func (*CommittedConfigurationStatus) ProtoMessage()    {}
   315  func (*CommittedConfigurationStatus) Descriptor() ([]byte, []int) {
   316  	return fileDescriptor_a1b457d3c759d10b, []int{3}
   317  }
   318  func (m *CommittedConfigurationStatus) XXX_Unmarshal(b []byte) error {
   319  	return m.Unmarshal(b)
   320  }
   321  func (m *CommittedConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   322  	if deterministic {
   323  		return xxx_messageInfo_CommittedConfigurationStatus.Marshal(b, m, deterministic)
   324  	} else {
   325  		b = b[:cap(b)]
   326  		n, err := m.MarshalToSizedBuffer(b)
   327  		if err != nil {
   328  			return nil, err
   329  		}
   330  		return b[:n], nil
   331  	}
   332  }
   333  func (m *CommittedConfigurationStatus) XXX_Merge(src proto.Message) {
   334  	xxx_messageInfo_CommittedConfigurationStatus.Merge(m, src)
   335  }
   336  func (m *CommittedConfigurationStatus) XXX_Size() int {
   337  	return m.Size()
   338  }
   339  func (m *CommittedConfigurationStatus) XXX_DiscardUnknown() {
   340  	xxx_messageInfo_CommittedConfigurationStatus.DiscardUnknown(m)
   341  }
   342  
   343  var xxx_messageInfo_CommittedConfigurationStatus proto.InternalMessageInfo
   344  
   345  func (m *CommittedConfigurationStatus) GetIndex() Index {
   346  	if m != nil {
   347  		return m.Index
   348  	}
   349  	return 0
   350  }
   351  
   352  type AppliedConfigurationStatus struct {
   353  	Index      Index                 `protobuf:"varint,1,opt,name=index,proto3,casttype=Index" json:"index,omitempty"`
   354  	Mastership MastershipInfo        `protobuf:"bytes,2,opt,name=mastership,proto3" json:"mastership"`
   355  	Values     map[string]*PathValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   356  }
   357  
   358  func (m *AppliedConfigurationStatus) Reset()         { *m = AppliedConfigurationStatus{} }
   359  func (m *AppliedConfigurationStatus) String() string { return proto.CompactTextString(m) }
   360  func (*AppliedConfigurationStatus) ProtoMessage()    {}
   361  func (*AppliedConfigurationStatus) Descriptor() ([]byte, []int) {
   362  	return fileDescriptor_a1b457d3c759d10b, []int{4}
   363  }
   364  func (m *AppliedConfigurationStatus) XXX_Unmarshal(b []byte) error {
   365  	return m.Unmarshal(b)
   366  }
   367  func (m *AppliedConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   368  	if deterministic {
   369  		return xxx_messageInfo_AppliedConfigurationStatus.Marshal(b, m, deterministic)
   370  	} else {
   371  		b = b[:cap(b)]
   372  		n, err := m.MarshalToSizedBuffer(b)
   373  		if err != nil {
   374  			return nil, err
   375  		}
   376  		return b[:n], nil
   377  	}
   378  }
   379  func (m *AppliedConfigurationStatus) XXX_Merge(src proto.Message) {
   380  	xxx_messageInfo_AppliedConfigurationStatus.Merge(m, src)
   381  }
   382  func (m *AppliedConfigurationStatus) XXX_Size() int {
   383  	return m.Size()
   384  }
   385  func (m *AppliedConfigurationStatus) XXX_DiscardUnknown() {
   386  	xxx_messageInfo_AppliedConfigurationStatus.DiscardUnknown(m)
   387  }
   388  
   389  var xxx_messageInfo_AppliedConfigurationStatus proto.InternalMessageInfo
   390  
   391  func (m *AppliedConfigurationStatus) GetIndex() Index {
   392  	if m != nil {
   393  		return m.Index
   394  	}
   395  	return 0
   396  }
   397  
   398  func (m *AppliedConfigurationStatus) GetMastership() MastershipInfo {
   399  	if m != nil {
   400  		return m.Mastership
   401  	}
   402  	return MastershipInfo{}
   403  }
   404  
   405  func (m *AppliedConfigurationStatus) GetValues() map[string]*PathValue {
   406  	if m != nil {
   407  		return m.Values
   408  	}
   409  	return nil
   410  }
   411  
   412  type MastershipInfo struct {
   413  	Master string         `protobuf:"bytes,1,opt,name=master,proto3" json:"master,omitempty"`
   414  	Term   MastershipTerm `protobuf:"varint,2,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
   415  }
   416  
   417  func (m *MastershipInfo) Reset()         { *m = MastershipInfo{} }
   418  func (m *MastershipInfo) String() string { return proto.CompactTextString(m) }
   419  func (*MastershipInfo) ProtoMessage()    {}
   420  func (*MastershipInfo) Descriptor() ([]byte, []int) {
   421  	return fileDescriptor_a1b457d3c759d10b, []int{5}
   422  }
   423  func (m *MastershipInfo) XXX_Unmarshal(b []byte) error {
   424  	return m.Unmarshal(b)
   425  }
   426  func (m *MastershipInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   427  	if deterministic {
   428  		return xxx_messageInfo_MastershipInfo.Marshal(b, m, deterministic)
   429  	} else {
   430  		b = b[:cap(b)]
   431  		n, err := m.MarshalToSizedBuffer(b)
   432  		if err != nil {
   433  			return nil, err
   434  		}
   435  		return b[:n], nil
   436  	}
   437  }
   438  func (m *MastershipInfo) XXX_Merge(src proto.Message) {
   439  	xxx_messageInfo_MastershipInfo.Merge(m, src)
   440  }
   441  func (m *MastershipInfo) XXX_Size() int {
   442  	return m.Size()
   443  }
   444  func (m *MastershipInfo) XXX_DiscardUnknown() {
   445  	xxx_messageInfo_MastershipInfo.DiscardUnknown(m)
   446  }
   447  
   448  var xxx_messageInfo_MastershipInfo proto.InternalMessageInfo
   449  
   450  func (m *MastershipInfo) GetMaster() string {
   451  	if m != nil {
   452  		return m.Master
   453  	}
   454  	return ""
   455  }
   456  
   457  func (m *MastershipInfo) GetTerm() MastershipTerm {
   458  	if m != nil {
   459  		return m.Term
   460  	}
   461  	return 0
   462  }
   463  
   464  // ConfigurationEvent configuration store event
   465  type ConfigurationEvent struct {
   466  	// EventType configuration event type
   467  	Type          ConfigurationEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.ConfigurationEvent_EventType" json:"type,omitempty"`
   468  	Configuration Configuration                `protobuf:"bytes,2,opt,name=configuration,proto3" json:"configuration"`
   469  }
   470  
   471  func (m *ConfigurationEvent) Reset()         { *m = ConfigurationEvent{} }
   472  func (m *ConfigurationEvent) String() string { return proto.CompactTextString(m) }
   473  func (*ConfigurationEvent) ProtoMessage()    {}
   474  func (*ConfigurationEvent) Descriptor() ([]byte, []int) {
   475  	return fileDescriptor_a1b457d3c759d10b, []int{6}
   476  }
   477  func (m *ConfigurationEvent) XXX_Unmarshal(b []byte) error {
   478  	return m.Unmarshal(b)
   479  }
   480  func (m *ConfigurationEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   481  	if deterministic {
   482  		return xxx_messageInfo_ConfigurationEvent.Marshal(b, m, deterministic)
   483  	} else {
   484  		b = b[:cap(b)]
   485  		n, err := m.MarshalToSizedBuffer(b)
   486  		if err != nil {
   487  			return nil, err
   488  		}
   489  		return b[:n], nil
   490  	}
   491  }
   492  func (m *ConfigurationEvent) XXX_Merge(src proto.Message) {
   493  	xxx_messageInfo_ConfigurationEvent.Merge(m, src)
   494  }
   495  func (m *ConfigurationEvent) XXX_Size() int {
   496  	return m.Size()
   497  }
   498  func (m *ConfigurationEvent) XXX_DiscardUnknown() {
   499  	xxx_messageInfo_ConfigurationEvent.DiscardUnknown(m)
   500  }
   501  
   502  var xxx_messageInfo_ConfigurationEvent proto.InternalMessageInfo
   503  
   504  func (m *ConfigurationEvent) GetType() ConfigurationEvent_EventType {
   505  	if m != nil {
   506  		return m.Type
   507  	}
   508  	return ConfigurationEvent_UNKNOWN
   509  }
   510  
   511  func (m *ConfigurationEvent) GetConfiguration() Configuration {
   512  	if m != nil {
   513  		return m.Configuration
   514  	}
   515  	return Configuration{}
   516  }
   517  
   518  func init() {
   519  	proto.RegisterEnum("onos.config.v2.ConfigurationStatus_State", ConfigurationStatus_State_name, ConfigurationStatus_State_value)
   520  	proto.RegisterEnum("onos.config.v2.ConfigurationEvent_EventType", ConfigurationEvent_EventType_name, ConfigurationEvent_EventType_value)
   521  	proto.RegisterType((*Configuration)(nil), "onos.config.v2.Configuration")
   522  	proto.RegisterMapType((map[string]*PathValue)(nil), "onos.config.v2.Configuration.ValuesEntry")
   523  	proto.RegisterType((*ConfigurationStatus)(nil), "onos.config.v2.ConfigurationStatus")
   524  	proto.RegisterType((*ProposedConfigurationStatus)(nil), "onos.config.v2.ProposedConfigurationStatus")
   525  	proto.RegisterType((*CommittedConfigurationStatus)(nil), "onos.config.v2.CommittedConfigurationStatus")
   526  	proto.RegisterType((*AppliedConfigurationStatus)(nil), "onos.config.v2.AppliedConfigurationStatus")
   527  	proto.RegisterMapType((map[string]*PathValue)(nil), "onos.config.v2.AppliedConfigurationStatus.ValuesEntry")
   528  	proto.RegisterType((*MastershipInfo)(nil), "onos.config.v2.MastershipInfo")
   529  	proto.RegisterType((*ConfigurationEvent)(nil), "onos.config.v2.ConfigurationEvent")
   530  }
   531  
   532  func init() {
   533  	proto.RegisterFile("onos/config/v2/configuration.proto", fileDescriptor_a1b457d3c759d10b)
   534  }
   535  
   536  var fileDescriptor_a1b457d3c759d10b = []byte{
   537  	// 765 bytes of a gzipped FileDescriptorProto
   538  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xd3, 0x4c,
   539  	0x14, 0x8d, 0x1d, 0xe7, 0xef, 0xba, 0xe9, 0x97, 0x6f, 0x40, 0xc8, 0x4d, 0x21, 0x0e, 0x46, 0x42,
   540  	0x29, 0x54, 0x8e, 0x14, 0x04, 0xaa, 0x58, 0x50, 0x92, 0xda, 0xa2, 0x86, 0x26, 0x8d, 0x9c, 0x50,
   541  	0x54, 0x36, 0xc8, 0x6d, 0xa6, 0xa9, 0xa1, 0xb1, 0x2d, 0x7b, 0x1a, 0x91, 0xb7, 0xe0, 0x35, 0x78,
   542  	0x93, 0x2e, 0x2b, 0xb1, 0x61, 0x15, 0xa1, 0xf4, 0x05, 0x58, 0xb1, 0xe8, 0x0a, 0x79, 0xec, 0xa6,
   543  	0x71, 0xda, 0xa4, 0x2c, 0x60, 0x93, 0xcc, 0xcc, 0xbd, 0xe7, 0xdc, 0x39, 0x67, 0xee, 0x8c, 0x41,
   544  	0xb2, 0x2d, 0xdb, 0x2b, 0xef, 0xdb, 0xd6, 0x81, 0xd9, 0x2d, 0xf7, 0x2b, 0xe1, 0xe8, 0xd8, 0x35,
   545  	0x88, 0x69, 0x5b, 0xb2, 0xe3, 0xda, 0xc4, 0x46, 0x8b, 0x7e, 0x8e, 0x1c, 0x44, 0xe4, 0x7e, 0x25,
   546  	0x7f, 0xbb, 0x6b, 0x77, 0x6d, 0x1a, 0x2a, 0xfb, 0xa3, 0x20, 0x2b, 0xbf, 0x3c, 0xc5, 0x64, 0xef,
   547  	0x7d, 0xc4, 0xfb, 0x24, 0x0c, 0xe6, 0xa7, 0x82, 0x7d, 0xe3, 0xe8, 0x18, 0x07, 0x31, 0xe9, 0x57,
   548  	0x1c, 0xb2, 0x1b, 0x93, 0x65, 0xd1, 0x1a, 0x70, 0x3d, 0x4c, 0x0c, 0x81, 0x29, 0x32, 0x25, 0xbe,
   549  	0x92, 0x97, 0xa3, 0xf5, 0xe5, 0x6d, 0xca, 0x5c, 0xc7, 0xc4, 0xa8, 0xa5, 0x4f, 0x86, 0x62, 0xec,
   550  	0x74, 0x28, 0x32, 0x3a, 0x45, 0xa0, 0x15, 0x60, 0xcd, 0x8e, 0xc0, 0x16, 0x99, 0x52, 0xa6, 0xb6,
   551  	0x34, 0x1a, 0x8a, 0xac, 0xa6, 0x9c, 0x0f, 0xc5, 0xff, 0x22, 0xf4, 0x9a, 0xa2, 0xb3, 0x66, 0x07,
   552  	0x3d, 0x85, 0x0c, 0x31, 0xdc, 0x2e, 0x26, 0x1f, 0xcc, 0x8e, 0x10, 0xa7, 0x08, 0x61, 0x34, 0x14,
   553  	0xd3, 0x6d, 0xba, 0x48, 0x71, 0xe3, 0xb1, 0x9e, 0x0e, 0x52, 0xb5, 0x0e, 0xaa, 0x42, 0x92, 0x6e,
   554  	0xde, 0x13, 0xb8, 0x62, 0xbc, 0xc4, 0x57, 0x56, 0xa6, 0x77, 0x17, 0xa9, 0x25, 0xef, 0xd0, 0x5c,
   555  	0xd5, 0x22, 0xee, 0x40, 0x0f, 0x81, 0x48, 0x84, 0x84, 0x69, 0x75, 0xf0, 0x67, 0x21, 0x51, 0x64,
   556  	0x4a, 0x5c, 0x2d, 0x73, 0x3e, 0x14, 0x13, 0x9a, 0xbf, 0xa0, 0x07, 0xeb, 0x7e, 0x0d, 0x8f, 0x18,
   557  	0xe4, 0xd8, 0x13, 0x92, 0xd4, 0x81, 0x07, 0x73, 0x6b, 0xb4, 0x68, 0x6a, 0x8d, 0xf3, 0xad, 0xd0,
   558  	0x43, 0x20, 0xda, 0x02, 0xfe, 0x42, 0x9d, 0x75, 0x60, 0x0b, 0x29, 0xca, 0x73, 0x7f, 0x9a, 0x27,
   559  	0xd0, 0xd7, 0x1e, 0x38, 0x78, 0x07, 0xbb, 0x9e, 0x69, 0x5b, 0x13, 0x86, 0x42, 0x28, 0xd9, 0x3a,
   560  	0xb0, 0xf3, 0x6d, 0xe0, 0x27, 0x84, 0xa0, 0x1c, 0xc4, 0x3f, 0xe1, 0x01, 0x3d, 0x9e, 0x8c, 0xee,
   561  	0x0f, 0x51, 0x19, 0x12, 0x54, 0x1c, 0xb5, 0x9e, 0xaf, 0x2c, 0x4d, 0x17, 0x6a, 0x1a, 0xe4, 0x90,
   562  	0x32, 0xe8, 0x41, 0xde, 0x73, 0x76, 0x8d, 0x91, 0xbe, 0xc5, 0xe1, 0xd6, 0x35, 0x4a, 0xd0, 0x3a,
   563  	0x24, 0x7c, 0x15, 0x98, 0x16, 0x58, 0xbc, 0xc1, 0xe1, 0x00, 0x23, 0xfb, 0x7f, 0x58, 0x0f, 0x70,
   564  	0x48, 0x01, 0xe8, 0x19, 0x1e, 0xc1, 0xae, 0x77, 0x68, 0x3a, 0xe1, 0x96, 0x0a, 0xd3, 0x2c, 0xf5,
   565  	0x71, 0x86, 0x2f, 0x31, 0xb4, 0x6f, 0x02, 0x87, 0xea, 0x90, 0x76, 0x5c, 0xdb, 0xb1, 0x3d, 0x1c,
   566  	0xf4, 0x07, 0x5f, 0x79, 0x7c, 0x45, 0x56, 0x18, 0x9f, 0x7d, 0x1e, 0x63, 0x0a, 0xd4, 0x84, 0xcc,
   567  	0xbe, 0xdd, 0xeb, 0x99, 0x84, 0xe0, 0x8e, 0xc0, 0x51, 0xbe, 0xd5, 0xab, 0xca, 0xc2, 0x84, 0xd9,
   568  	0x84, 0x97, 0x24, 0xe8, 0x35, 0xa4, 0x0c, 0xc7, 0x39, 0x32, 0x71, 0x87, 0x76, 0x12, 0x5f, 0x79,
   569  	0x34, 0xcd, 0x57, 0x0d, 0xc2, 0xb3, 0xd9, 0x2e, 0x08, 0xa4, 0x4d, 0x48, 0x50, 0x0b, 0x11, 0x0f,
   570  	0xa9, 0xb7, 0x8d, 0x37, 0x8d, 0xed, 0x77, 0x8d, 0x5c, 0x0c, 0xfd, 0x0f, 0xd9, 0xd6, 0x6e, 0x63,
   571  	0x63, 0x53, 0xdf, 0x6e, 0x68, 0xef, 0xb5, 0xc6, 0xab, 0x1c, 0x83, 0x72, 0xb0, 0x70, 0xb9, 0xa4,
   572  	0x2a, 0x39, 0x16, 0x65, 0x21, 0xd3, 0x54, 0xf5, 0x96, 0xd6, 0x6a, 0xab, 0x4a, 0x2e, 0x2e, 0xbd,
   573  	0x80, 0xe5, 0x39, 0xb6, 0x5c, 0x36, 0x3f, 0x73, 0x7d, 0xf3, 0x4b, 0xeb, 0x70, 0x77, 0x9e, 0x0d,
   574  	0x37, 0x13, 0x7c, 0x65, 0x21, 0x3f, 0x5b, 0xf8, 0x8d, 0xf8, 0xbf, 0xd4, 0x3d, 0x8d, 0xf1, 0x3b,
   575  	0x11, 0xa7, 0xef, 0xc4, 0xb3, 0x3f, 0x3f, 0x9b, 0xeb, 0x1e, 0x8d, 0x7f, 0x74, 0x05, 0x9b, 0xb0,
   576  	0x18, 0x55, 0x82, 0xee, 0x40, 0x32, 0x50, 0x11, 0x72, 0x87, 0x33, 0xf4, 0x10, 0x38, 0x82, 0xdd,
   577  	0x1e, 0x65, 0xe7, 0x6a, 0xe8, 0x7c, 0x28, 0x4e, 0x20, 0xdb, 0xd8, 0xed, 0xe9, 0x34, 0x2e, 0xfd,
   578  	0x64, 0x00, 0x45, 0x34, 0xa9, 0x7d, 0x6c, 0x11, 0xf4, 0x12, 0x38, 0x32, 0x70, 0x2e, 0xae, 0xf4,
   579  	0xea, 0xdc, 0x2b, 0x4d, 0x11, 0x32, 0xfd, 0xf5, 0x9f, 0x26, 0x9d, 0x22, 0x91, 0x06, 0xd9, 0xc8,
   580  	0xc7, 0x29, 0xd4, 0x79, 0x6f, 0x2e, 0x55, 0x78, 0x30, 0x51, 0xa4, 0x54, 0x87, 0xcc, 0x98, 0x3d,
   581  	0xda, 0xf0, 0x3c, 0xa4, 0x36, 0x74, 0xb5, 0xea, 0x77, 0x32, 0x43, 0x23, 0x4d, 0x85, 0x4e, 0x58,
   582  	0x7f, 0xa2, 0xa8, 0x5b, 0x2a, 0xed, 0x71, 0xb4, 0x00, 0x69, 0x5d, 0x6d, 0x6e, 0x55, 0x77, 0x55,
   583  	0x25, 0xc7, 0xd5, 0x84, 0x93, 0x51, 0x81, 0x39, 0x1d, 0x15, 0x98, 0x1f, 0xa3, 0x02, 0xf3, 0xe5,
   584  	0xac, 0x10, 0x3b, 0x3d, 0x2b, 0xc4, 0xbe, 0x9f, 0x15, 0x62, 0x7b, 0x49, 0xfa, 0x85, 0x7b, 0xf2,
   585  	0x3b, 0x00, 0x00, 0xff, 0xff, 0x04, 0x18, 0xa9, 0x6a, 0x66, 0x07, 0x00, 0x00,
   586  }
   587  
   588  func (m *Configuration) Marshal() (dAtA []byte, err error) {
   589  	size := m.Size()
   590  	dAtA = make([]byte, size)
   591  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   592  	if err != nil {
   593  		return nil, err
   594  	}
   595  	return dAtA[:n], nil
   596  }
   597  
   598  func (m *Configuration) MarshalTo(dAtA []byte) (int, error) {
   599  	size := m.Size()
   600  	return m.MarshalToSizedBuffer(dAtA[:size])
   601  }
   602  
   603  func (m *Configuration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   604  	i := len(dAtA)
   605  	_ = i
   606  	var l int
   607  	_ = l
   608  	{
   609  		size, err := m.TargetTypeVersion.MarshalToSizedBuffer(dAtA[:i])
   610  		if err != nil {
   611  			return 0, err
   612  		}
   613  		i -= size
   614  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   615  	}
   616  	i--
   617  	dAtA[i] = 0x3a
   618  	{
   619  		size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
   620  		if err != nil {
   621  			return 0, err
   622  		}
   623  		i -= size
   624  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   625  	}
   626  	i--
   627  	dAtA[i] = 0x32
   628  	if m.Index != 0 {
   629  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Index))
   630  		i--
   631  		dAtA[i] = 0x28
   632  	}
   633  	if len(m.Values) > 0 {
   634  		for k := range m.Values {
   635  			v := m.Values[k]
   636  			baseI := i
   637  			if v != nil {
   638  				{
   639  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   640  					if err != nil {
   641  						return 0, err
   642  					}
   643  					i -= size
   644  					i = encodeVarintConfiguration(dAtA, i, uint64(size))
   645  				}
   646  				i--
   647  				dAtA[i] = 0x12
   648  			}
   649  			i -= len(k)
   650  			copy(dAtA[i:], k)
   651  			i = encodeVarintConfiguration(dAtA, i, uint64(len(k)))
   652  			i--
   653  			dAtA[i] = 0xa
   654  			i = encodeVarintConfiguration(dAtA, i, uint64(baseI-i))
   655  			i--
   656  			dAtA[i] = 0x22
   657  		}
   658  	}
   659  	if len(m.TargetID) > 0 {
   660  		i -= len(m.TargetID)
   661  		copy(dAtA[i:], m.TargetID)
   662  		i = encodeVarintConfiguration(dAtA, i, uint64(len(m.TargetID)))
   663  		i--
   664  		dAtA[i] = 0x1a
   665  	}
   666  	if len(m.ID) > 0 {
   667  		i -= len(m.ID)
   668  		copy(dAtA[i:], m.ID)
   669  		i = encodeVarintConfiguration(dAtA, i, uint64(len(m.ID)))
   670  		i--
   671  		dAtA[i] = 0x12
   672  	}
   673  	{
   674  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
   675  		if err != nil {
   676  			return 0, err
   677  		}
   678  		i -= size
   679  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   680  	}
   681  	i--
   682  	dAtA[i] = 0xa
   683  	return len(dAtA) - i, nil
   684  }
   685  
   686  func (m *ConfigurationStatus) Marshal() (dAtA []byte, err error) {
   687  	size := m.Size()
   688  	dAtA = make([]byte, size)
   689  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   690  	if err != nil {
   691  		return nil, err
   692  	}
   693  	return dAtA[:n], nil
   694  }
   695  
   696  func (m *ConfigurationStatus) MarshalTo(dAtA []byte) (int, error) {
   697  	size := m.Size()
   698  	return m.MarshalToSizedBuffer(dAtA[:size])
   699  }
   700  
   701  func (m *ConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   702  	i := len(dAtA)
   703  	_ = i
   704  	var l int
   705  	_ = l
   706  	{
   707  		size, err := m.Applied.MarshalToSizedBuffer(dAtA[:i])
   708  		if err != nil {
   709  			return 0, err
   710  		}
   711  		i -= size
   712  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   713  	}
   714  	i--
   715  	dAtA[i] = 0x2a
   716  	{
   717  		size, err := m.Committed.MarshalToSizedBuffer(dAtA[:i])
   718  		if err != nil {
   719  			return 0, err
   720  		}
   721  		i -= size
   722  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   723  	}
   724  	i--
   725  	dAtA[i] = 0x22
   726  	{
   727  		size, err := m.Proposed.MarshalToSizedBuffer(dAtA[:i])
   728  		if err != nil {
   729  			return 0, err
   730  		}
   731  		i -= size
   732  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   733  	}
   734  	i--
   735  	dAtA[i] = 0x1a
   736  	{
   737  		size, err := m.Mastership.MarshalToSizedBuffer(dAtA[:i])
   738  		if err != nil {
   739  			return 0, err
   740  		}
   741  		i -= size
   742  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   743  	}
   744  	i--
   745  	dAtA[i] = 0x12
   746  	if m.State != 0 {
   747  		i = encodeVarintConfiguration(dAtA, i, uint64(m.State))
   748  		i--
   749  		dAtA[i] = 0x8
   750  	}
   751  	return len(dAtA) - i, nil
   752  }
   753  
   754  func (m *ProposedConfigurationStatus) Marshal() (dAtA []byte, err error) {
   755  	size := m.Size()
   756  	dAtA = make([]byte, size)
   757  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   758  	if err != nil {
   759  		return nil, err
   760  	}
   761  	return dAtA[:n], nil
   762  }
   763  
   764  func (m *ProposedConfigurationStatus) MarshalTo(dAtA []byte) (int, error) {
   765  	size := m.Size()
   766  	return m.MarshalToSizedBuffer(dAtA[:size])
   767  }
   768  
   769  func (m *ProposedConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   770  	i := len(dAtA)
   771  	_ = i
   772  	var l int
   773  	_ = l
   774  	if m.Index != 0 {
   775  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Index))
   776  		i--
   777  		dAtA[i] = 0x8
   778  	}
   779  	return len(dAtA) - i, nil
   780  }
   781  
   782  func (m *CommittedConfigurationStatus) Marshal() (dAtA []byte, err error) {
   783  	size := m.Size()
   784  	dAtA = make([]byte, size)
   785  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   786  	if err != nil {
   787  		return nil, err
   788  	}
   789  	return dAtA[:n], nil
   790  }
   791  
   792  func (m *CommittedConfigurationStatus) MarshalTo(dAtA []byte) (int, error) {
   793  	size := m.Size()
   794  	return m.MarshalToSizedBuffer(dAtA[:size])
   795  }
   796  
   797  func (m *CommittedConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   798  	i := len(dAtA)
   799  	_ = i
   800  	var l int
   801  	_ = l
   802  	if m.Index != 0 {
   803  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Index))
   804  		i--
   805  		dAtA[i] = 0x8
   806  	}
   807  	return len(dAtA) - i, nil
   808  }
   809  
   810  func (m *AppliedConfigurationStatus) Marshal() (dAtA []byte, err error) {
   811  	size := m.Size()
   812  	dAtA = make([]byte, size)
   813  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   814  	if err != nil {
   815  		return nil, err
   816  	}
   817  	return dAtA[:n], nil
   818  }
   819  
   820  func (m *AppliedConfigurationStatus) MarshalTo(dAtA []byte) (int, error) {
   821  	size := m.Size()
   822  	return m.MarshalToSizedBuffer(dAtA[:size])
   823  }
   824  
   825  func (m *AppliedConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   826  	i := len(dAtA)
   827  	_ = i
   828  	var l int
   829  	_ = l
   830  	if len(m.Values) > 0 {
   831  		for k := range m.Values {
   832  			v := m.Values[k]
   833  			baseI := i
   834  			if v != nil {
   835  				{
   836  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   837  					if err != nil {
   838  						return 0, err
   839  					}
   840  					i -= size
   841  					i = encodeVarintConfiguration(dAtA, i, uint64(size))
   842  				}
   843  				i--
   844  				dAtA[i] = 0x12
   845  			}
   846  			i -= len(k)
   847  			copy(dAtA[i:], k)
   848  			i = encodeVarintConfiguration(dAtA, i, uint64(len(k)))
   849  			i--
   850  			dAtA[i] = 0xa
   851  			i = encodeVarintConfiguration(dAtA, i, uint64(baseI-i))
   852  			i--
   853  			dAtA[i] = 0x1a
   854  		}
   855  	}
   856  	{
   857  		size, err := m.Mastership.MarshalToSizedBuffer(dAtA[:i])
   858  		if err != nil {
   859  			return 0, err
   860  		}
   861  		i -= size
   862  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   863  	}
   864  	i--
   865  	dAtA[i] = 0x12
   866  	if m.Index != 0 {
   867  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Index))
   868  		i--
   869  		dAtA[i] = 0x8
   870  	}
   871  	return len(dAtA) - i, nil
   872  }
   873  
   874  func (m *MastershipInfo) Marshal() (dAtA []byte, err error) {
   875  	size := m.Size()
   876  	dAtA = make([]byte, size)
   877  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   878  	if err != nil {
   879  		return nil, err
   880  	}
   881  	return dAtA[:n], nil
   882  }
   883  
   884  func (m *MastershipInfo) MarshalTo(dAtA []byte) (int, error) {
   885  	size := m.Size()
   886  	return m.MarshalToSizedBuffer(dAtA[:size])
   887  }
   888  
   889  func (m *MastershipInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   890  	i := len(dAtA)
   891  	_ = i
   892  	var l int
   893  	_ = l
   894  	if m.Term != 0 {
   895  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Term))
   896  		i--
   897  		dAtA[i] = 0x10
   898  	}
   899  	if len(m.Master) > 0 {
   900  		i -= len(m.Master)
   901  		copy(dAtA[i:], m.Master)
   902  		i = encodeVarintConfiguration(dAtA, i, uint64(len(m.Master)))
   903  		i--
   904  		dAtA[i] = 0xa
   905  	}
   906  	return len(dAtA) - i, nil
   907  }
   908  
   909  func (m *ConfigurationEvent) Marshal() (dAtA []byte, err error) {
   910  	size := m.Size()
   911  	dAtA = make([]byte, size)
   912  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   913  	if err != nil {
   914  		return nil, err
   915  	}
   916  	return dAtA[:n], nil
   917  }
   918  
   919  func (m *ConfigurationEvent) MarshalTo(dAtA []byte) (int, error) {
   920  	size := m.Size()
   921  	return m.MarshalToSizedBuffer(dAtA[:size])
   922  }
   923  
   924  func (m *ConfigurationEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   925  	i := len(dAtA)
   926  	_ = i
   927  	var l int
   928  	_ = l
   929  	{
   930  		size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i])
   931  		if err != nil {
   932  			return 0, err
   933  		}
   934  		i -= size
   935  		i = encodeVarintConfiguration(dAtA, i, uint64(size))
   936  	}
   937  	i--
   938  	dAtA[i] = 0x12
   939  	if m.Type != 0 {
   940  		i = encodeVarintConfiguration(dAtA, i, uint64(m.Type))
   941  		i--
   942  		dAtA[i] = 0x8
   943  	}
   944  	return len(dAtA) - i, nil
   945  }
   946  
   947  func encodeVarintConfiguration(dAtA []byte, offset int, v uint64) int {
   948  	offset -= sovConfiguration(v)
   949  	base := offset
   950  	for v >= 1<<7 {
   951  		dAtA[offset] = uint8(v&0x7f | 0x80)
   952  		v >>= 7
   953  		offset++
   954  	}
   955  	dAtA[offset] = uint8(v)
   956  	return base
   957  }
   958  func (m *Configuration) Size() (n int) {
   959  	if m == nil {
   960  		return 0
   961  	}
   962  	var l int
   963  	_ = l
   964  	l = m.ObjectMeta.Size()
   965  	n += 1 + l + sovConfiguration(uint64(l))
   966  	l = len(m.ID)
   967  	if l > 0 {
   968  		n += 1 + l + sovConfiguration(uint64(l))
   969  	}
   970  	l = len(m.TargetID)
   971  	if l > 0 {
   972  		n += 1 + l + sovConfiguration(uint64(l))
   973  	}
   974  	if len(m.Values) > 0 {
   975  		for k, v := range m.Values {
   976  			_ = k
   977  			_ = v
   978  			l = 0
   979  			if v != nil {
   980  				l = v.Size()
   981  				l += 1 + sovConfiguration(uint64(l))
   982  			}
   983  			mapEntrySize := 1 + len(k) + sovConfiguration(uint64(len(k))) + l
   984  			n += mapEntrySize + 1 + sovConfiguration(uint64(mapEntrySize))
   985  		}
   986  	}
   987  	if m.Index != 0 {
   988  		n += 1 + sovConfiguration(uint64(m.Index))
   989  	}
   990  	l = m.Status.Size()
   991  	n += 1 + l + sovConfiguration(uint64(l))
   992  	l = m.TargetTypeVersion.Size()
   993  	n += 1 + l + sovConfiguration(uint64(l))
   994  	return n
   995  }
   996  
   997  func (m *ConfigurationStatus) Size() (n int) {
   998  	if m == nil {
   999  		return 0
  1000  	}
  1001  	var l int
  1002  	_ = l
  1003  	if m.State != 0 {
  1004  		n += 1 + sovConfiguration(uint64(m.State))
  1005  	}
  1006  	l = m.Mastership.Size()
  1007  	n += 1 + l + sovConfiguration(uint64(l))
  1008  	l = m.Proposed.Size()
  1009  	n += 1 + l + sovConfiguration(uint64(l))
  1010  	l = m.Committed.Size()
  1011  	n += 1 + l + sovConfiguration(uint64(l))
  1012  	l = m.Applied.Size()
  1013  	n += 1 + l + sovConfiguration(uint64(l))
  1014  	return n
  1015  }
  1016  
  1017  func (m *ProposedConfigurationStatus) Size() (n int) {
  1018  	if m == nil {
  1019  		return 0
  1020  	}
  1021  	var l int
  1022  	_ = l
  1023  	if m.Index != 0 {
  1024  		n += 1 + sovConfiguration(uint64(m.Index))
  1025  	}
  1026  	return n
  1027  }
  1028  
  1029  func (m *CommittedConfigurationStatus) Size() (n int) {
  1030  	if m == nil {
  1031  		return 0
  1032  	}
  1033  	var l int
  1034  	_ = l
  1035  	if m.Index != 0 {
  1036  		n += 1 + sovConfiguration(uint64(m.Index))
  1037  	}
  1038  	return n
  1039  }
  1040  
  1041  func (m *AppliedConfigurationStatus) Size() (n int) {
  1042  	if m == nil {
  1043  		return 0
  1044  	}
  1045  	var l int
  1046  	_ = l
  1047  	if m.Index != 0 {
  1048  		n += 1 + sovConfiguration(uint64(m.Index))
  1049  	}
  1050  	l = m.Mastership.Size()
  1051  	n += 1 + l + sovConfiguration(uint64(l))
  1052  	if len(m.Values) > 0 {
  1053  		for k, v := range m.Values {
  1054  			_ = k
  1055  			_ = v
  1056  			l = 0
  1057  			if v != nil {
  1058  				l = v.Size()
  1059  				l += 1 + sovConfiguration(uint64(l))
  1060  			}
  1061  			mapEntrySize := 1 + len(k) + sovConfiguration(uint64(len(k))) + l
  1062  			n += mapEntrySize + 1 + sovConfiguration(uint64(mapEntrySize))
  1063  		}
  1064  	}
  1065  	return n
  1066  }
  1067  
  1068  func (m *MastershipInfo) Size() (n int) {
  1069  	if m == nil {
  1070  		return 0
  1071  	}
  1072  	var l int
  1073  	_ = l
  1074  	l = len(m.Master)
  1075  	if l > 0 {
  1076  		n += 1 + l + sovConfiguration(uint64(l))
  1077  	}
  1078  	if m.Term != 0 {
  1079  		n += 1 + sovConfiguration(uint64(m.Term))
  1080  	}
  1081  	return n
  1082  }
  1083  
  1084  func (m *ConfigurationEvent) Size() (n int) {
  1085  	if m == nil {
  1086  		return 0
  1087  	}
  1088  	var l int
  1089  	_ = l
  1090  	if m.Type != 0 {
  1091  		n += 1 + sovConfiguration(uint64(m.Type))
  1092  	}
  1093  	l = m.Configuration.Size()
  1094  	n += 1 + l + sovConfiguration(uint64(l))
  1095  	return n
  1096  }
  1097  
  1098  func sovConfiguration(x uint64) (n int) {
  1099  	return (math_bits.Len64(x|1) + 6) / 7
  1100  }
  1101  func sozConfiguration(x uint64) (n int) {
  1102  	return sovConfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1103  }
  1104  func (m *Configuration) Unmarshal(dAtA []byte) error {
  1105  	l := len(dAtA)
  1106  	iNdEx := 0
  1107  	for iNdEx < l {
  1108  		preIndex := iNdEx
  1109  		var wire uint64
  1110  		for shift := uint(0); ; shift += 7 {
  1111  			if shift >= 64 {
  1112  				return ErrIntOverflowConfiguration
  1113  			}
  1114  			if iNdEx >= l {
  1115  				return io.ErrUnexpectedEOF
  1116  			}
  1117  			b := dAtA[iNdEx]
  1118  			iNdEx++
  1119  			wire |= uint64(b&0x7F) << shift
  1120  			if b < 0x80 {
  1121  				break
  1122  			}
  1123  		}
  1124  		fieldNum := int32(wire >> 3)
  1125  		wireType := int(wire & 0x7)
  1126  		if wireType == 4 {
  1127  			return fmt.Errorf("proto: Configuration: wiretype end group for non-group")
  1128  		}
  1129  		if fieldNum <= 0 {
  1130  			return fmt.Errorf("proto: Configuration: illegal tag %d (wire type %d)", fieldNum, wire)
  1131  		}
  1132  		switch fieldNum {
  1133  		case 1:
  1134  			if wireType != 2 {
  1135  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1136  			}
  1137  			var msglen int
  1138  			for shift := uint(0); ; shift += 7 {
  1139  				if shift >= 64 {
  1140  					return ErrIntOverflowConfiguration
  1141  				}
  1142  				if iNdEx >= l {
  1143  					return io.ErrUnexpectedEOF
  1144  				}
  1145  				b := dAtA[iNdEx]
  1146  				iNdEx++
  1147  				msglen |= int(b&0x7F) << shift
  1148  				if b < 0x80 {
  1149  					break
  1150  				}
  1151  			}
  1152  			if msglen < 0 {
  1153  				return ErrInvalidLengthConfiguration
  1154  			}
  1155  			postIndex := iNdEx + msglen
  1156  			if postIndex < 0 {
  1157  				return ErrInvalidLengthConfiguration
  1158  			}
  1159  			if postIndex > l {
  1160  				return io.ErrUnexpectedEOF
  1161  			}
  1162  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1163  				return err
  1164  			}
  1165  			iNdEx = postIndex
  1166  		case 2:
  1167  			if wireType != 2 {
  1168  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1169  			}
  1170  			var stringLen uint64
  1171  			for shift := uint(0); ; shift += 7 {
  1172  				if shift >= 64 {
  1173  					return ErrIntOverflowConfiguration
  1174  				}
  1175  				if iNdEx >= l {
  1176  					return io.ErrUnexpectedEOF
  1177  				}
  1178  				b := dAtA[iNdEx]
  1179  				iNdEx++
  1180  				stringLen |= uint64(b&0x7F) << shift
  1181  				if b < 0x80 {
  1182  					break
  1183  				}
  1184  			}
  1185  			intStringLen := int(stringLen)
  1186  			if intStringLen < 0 {
  1187  				return ErrInvalidLengthConfiguration
  1188  			}
  1189  			postIndex := iNdEx + intStringLen
  1190  			if postIndex < 0 {
  1191  				return ErrInvalidLengthConfiguration
  1192  			}
  1193  			if postIndex > l {
  1194  				return io.ErrUnexpectedEOF
  1195  			}
  1196  			m.ID = ConfigurationID(dAtA[iNdEx:postIndex])
  1197  			iNdEx = postIndex
  1198  		case 3:
  1199  			if wireType != 2 {
  1200  				return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType)
  1201  			}
  1202  			var stringLen uint64
  1203  			for shift := uint(0); ; shift += 7 {
  1204  				if shift >= 64 {
  1205  					return ErrIntOverflowConfiguration
  1206  				}
  1207  				if iNdEx >= l {
  1208  					return io.ErrUnexpectedEOF
  1209  				}
  1210  				b := dAtA[iNdEx]
  1211  				iNdEx++
  1212  				stringLen |= uint64(b&0x7F) << shift
  1213  				if b < 0x80 {
  1214  					break
  1215  				}
  1216  			}
  1217  			intStringLen := int(stringLen)
  1218  			if intStringLen < 0 {
  1219  				return ErrInvalidLengthConfiguration
  1220  			}
  1221  			postIndex := iNdEx + intStringLen
  1222  			if postIndex < 0 {
  1223  				return ErrInvalidLengthConfiguration
  1224  			}
  1225  			if postIndex > l {
  1226  				return io.ErrUnexpectedEOF
  1227  			}
  1228  			m.TargetID = TargetID(dAtA[iNdEx:postIndex])
  1229  			iNdEx = postIndex
  1230  		case 4:
  1231  			if wireType != 2 {
  1232  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  1233  			}
  1234  			var msglen int
  1235  			for shift := uint(0); ; shift += 7 {
  1236  				if shift >= 64 {
  1237  					return ErrIntOverflowConfiguration
  1238  				}
  1239  				if iNdEx >= l {
  1240  					return io.ErrUnexpectedEOF
  1241  				}
  1242  				b := dAtA[iNdEx]
  1243  				iNdEx++
  1244  				msglen |= int(b&0x7F) << shift
  1245  				if b < 0x80 {
  1246  					break
  1247  				}
  1248  			}
  1249  			if msglen < 0 {
  1250  				return ErrInvalidLengthConfiguration
  1251  			}
  1252  			postIndex := iNdEx + msglen
  1253  			if postIndex < 0 {
  1254  				return ErrInvalidLengthConfiguration
  1255  			}
  1256  			if postIndex > l {
  1257  				return io.ErrUnexpectedEOF
  1258  			}
  1259  			if m.Values == nil {
  1260  				m.Values = make(map[string]*PathValue)
  1261  			}
  1262  			var mapkey string
  1263  			var mapvalue *PathValue
  1264  			for iNdEx < postIndex {
  1265  				entryPreIndex := iNdEx
  1266  				var wire uint64
  1267  				for shift := uint(0); ; shift += 7 {
  1268  					if shift >= 64 {
  1269  						return ErrIntOverflowConfiguration
  1270  					}
  1271  					if iNdEx >= l {
  1272  						return io.ErrUnexpectedEOF
  1273  					}
  1274  					b := dAtA[iNdEx]
  1275  					iNdEx++
  1276  					wire |= uint64(b&0x7F) << shift
  1277  					if b < 0x80 {
  1278  						break
  1279  					}
  1280  				}
  1281  				fieldNum := int32(wire >> 3)
  1282  				if fieldNum == 1 {
  1283  					var stringLenmapkey uint64
  1284  					for shift := uint(0); ; shift += 7 {
  1285  						if shift >= 64 {
  1286  							return ErrIntOverflowConfiguration
  1287  						}
  1288  						if iNdEx >= l {
  1289  							return io.ErrUnexpectedEOF
  1290  						}
  1291  						b := dAtA[iNdEx]
  1292  						iNdEx++
  1293  						stringLenmapkey |= uint64(b&0x7F) << shift
  1294  						if b < 0x80 {
  1295  							break
  1296  						}
  1297  					}
  1298  					intStringLenmapkey := int(stringLenmapkey)
  1299  					if intStringLenmapkey < 0 {
  1300  						return ErrInvalidLengthConfiguration
  1301  					}
  1302  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1303  					if postStringIndexmapkey < 0 {
  1304  						return ErrInvalidLengthConfiguration
  1305  					}
  1306  					if postStringIndexmapkey > l {
  1307  						return io.ErrUnexpectedEOF
  1308  					}
  1309  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1310  					iNdEx = postStringIndexmapkey
  1311  				} else if fieldNum == 2 {
  1312  					var mapmsglen int
  1313  					for shift := uint(0); ; shift += 7 {
  1314  						if shift >= 64 {
  1315  							return ErrIntOverflowConfiguration
  1316  						}
  1317  						if iNdEx >= l {
  1318  							return io.ErrUnexpectedEOF
  1319  						}
  1320  						b := dAtA[iNdEx]
  1321  						iNdEx++
  1322  						mapmsglen |= int(b&0x7F) << shift
  1323  						if b < 0x80 {
  1324  							break
  1325  						}
  1326  					}
  1327  					if mapmsglen < 0 {
  1328  						return ErrInvalidLengthConfiguration
  1329  					}
  1330  					postmsgIndex := iNdEx + mapmsglen
  1331  					if postmsgIndex < 0 {
  1332  						return ErrInvalidLengthConfiguration
  1333  					}
  1334  					if postmsgIndex > l {
  1335  						return io.ErrUnexpectedEOF
  1336  					}
  1337  					mapvalue = &PathValue{}
  1338  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1339  						return err
  1340  					}
  1341  					iNdEx = postmsgIndex
  1342  				} else {
  1343  					iNdEx = entryPreIndex
  1344  					skippy, err := skipConfiguration(dAtA[iNdEx:])
  1345  					if err != nil {
  1346  						return err
  1347  					}
  1348  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  1349  						return ErrInvalidLengthConfiguration
  1350  					}
  1351  					if (iNdEx + skippy) > postIndex {
  1352  						return io.ErrUnexpectedEOF
  1353  					}
  1354  					iNdEx += skippy
  1355  				}
  1356  			}
  1357  			m.Values[mapkey] = mapvalue
  1358  			iNdEx = postIndex
  1359  		case 5:
  1360  			if wireType != 0 {
  1361  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  1362  			}
  1363  			m.Index = 0
  1364  			for shift := uint(0); ; shift += 7 {
  1365  				if shift >= 64 {
  1366  					return ErrIntOverflowConfiguration
  1367  				}
  1368  				if iNdEx >= l {
  1369  					return io.ErrUnexpectedEOF
  1370  				}
  1371  				b := dAtA[iNdEx]
  1372  				iNdEx++
  1373  				m.Index |= Index(b&0x7F) << shift
  1374  				if b < 0x80 {
  1375  					break
  1376  				}
  1377  			}
  1378  		case 6:
  1379  			if wireType != 2 {
  1380  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1381  			}
  1382  			var msglen int
  1383  			for shift := uint(0); ; shift += 7 {
  1384  				if shift >= 64 {
  1385  					return ErrIntOverflowConfiguration
  1386  				}
  1387  				if iNdEx >= l {
  1388  					return io.ErrUnexpectedEOF
  1389  				}
  1390  				b := dAtA[iNdEx]
  1391  				iNdEx++
  1392  				msglen |= int(b&0x7F) << shift
  1393  				if b < 0x80 {
  1394  					break
  1395  				}
  1396  			}
  1397  			if msglen < 0 {
  1398  				return ErrInvalidLengthConfiguration
  1399  			}
  1400  			postIndex := iNdEx + msglen
  1401  			if postIndex < 0 {
  1402  				return ErrInvalidLengthConfiguration
  1403  			}
  1404  			if postIndex > l {
  1405  				return io.ErrUnexpectedEOF
  1406  			}
  1407  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1408  				return err
  1409  			}
  1410  			iNdEx = postIndex
  1411  		case 7:
  1412  			if wireType != 2 {
  1413  				return fmt.Errorf("proto: wrong wireType = %d for field TargetTypeVersion", wireType)
  1414  			}
  1415  			var msglen int
  1416  			for shift := uint(0); ; shift += 7 {
  1417  				if shift >= 64 {
  1418  					return ErrIntOverflowConfiguration
  1419  				}
  1420  				if iNdEx >= l {
  1421  					return io.ErrUnexpectedEOF
  1422  				}
  1423  				b := dAtA[iNdEx]
  1424  				iNdEx++
  1425  				msglen |= int(b&0x7F) << shift
  1426  				if b < 0x80 {
  1427  					break
  1428  				}
  1429  			}
  1430  			if msglen < 0 {
  1431  				return ErrInvalidLengthConfiguration
  1432  			}
  1433  			postIndex := iNdEx + msglen
  1434  			if postIndex < 0 {
  1435  				return ErrInvalidLengthConfiguration
  1436  			}
  1437  			if postIndex > l {
  1438  				return io.ErrUnexpectedEOF
  1439  			}
  1440  			if err := m.TargetTypeVersion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1441  				return err
  1442  			}
  1443  			iNdEx = postIndex
  1444  		default:
  1445  			iNdEx = preIndex
  1446  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  1447  			if err != nil {
  1448  				return err
  1449  			}
  1450  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1451  				return ErrInvalidLengthConfiguration
  1452  			}
  1453  			if (iNdEx + skippy) > l {
  1454  				return io.ErrUnexpectedEOF
  1455  			}
  1456  			iNdEx += skippy
  1457  		}
  1458  	}
  1459  
  1460  	if iNdEx > l {
  1461  		return io.ErrUnexpectedEOF
  1462  	}
  1463  	return nil
  1464  }
  1465  func (m *ConfigurationStatus) Unmarshal(dAtA []byte) error {
  1466  	l := len(dAtA)
  1467  	iNdEx := 0
  1468  	for iNdEx < l {
  1469  		preIndex := iNdEx
  1470  		var wire uint64
  1471  		for shift := uint(0); ; shift += 7 {
  1472  			if shift >= 64 {
  1473  				return ErrIntOverflowConfiguration
  1474  			}
  1475  			if iNdEx >= l {
  1476  				return io.ErrUnexpectedEOF
  1477  			}
  1478  			b := dAtA[iNdEx]
  1479  			iNdEx++
  1480  			wire |= uint64(b&0x7F) << shift
  1481  			if b < 0x80 {
  1482  				break
  1483  			}
  1484  		}
  1485  		fieldNum := int32(wire >> 3)
  1486  		wireType := int(wire & 0x7)
  1487  		if wireType == 4 {
  1488  			return fmt.Errorf("proto: ConfigurationStatus: wiretype end group for non-group")
  1489  		}
  1490  		if fieldNum <= 0 {
  1491  			return fmt.Errorf("proto: ConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1492  		}
  1493  		switch fieldNum {
  1494  		case 1:
  1495  			if wireType != 0 {
  1496  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1497  			}
  1498  			m.State = 0
  1499  			for shift := uint(0); ; shift += 7 {
  1500  				if shift >= 64 {
  1501  					return ErrIntOverflowConfiguration
  1502  				}
  1503  				if iNdEx >= l {
  1504  					return io.ErrUnexpectedEOF
  1505  				}
  1506  				b := dAtA[iNdEx]
  1507  				iNdEx++
  1508  				m.State |= ConfigurationStatus_State(b&0x7F) << shift
  1509  				if b < 0x80 {
  1510  					break
  1511  				}
  1512  			}
  1513  		case 2:
  1514  			if wireType != 2 {
  1515  				return fmt.Errorf("proto: wrong wireType = %d for field Mastership", wireType)
  1516  			}
  1517  			var msglen int
  1518  			for shift := uint(0); ; shift += 7 {
  1519  				if shift >= 64 {
  1520  					return ErrIntOverflowConfiguration
  1521  				}
  1522  				if iNdEx >= l {
  1523  					return io.ErrUnexpectedEOF
  1524  				}
  1525  				b := dAtA[iNdEx]
  1526  				iNdEx++
  1527  				msglen |= int(b&0x7F) << shift
  1528  				if b < 0x80 {
  1529  					break
  1530  				}
  1531  			}
  1532  			if msglen < 0 {
  1533  				return ErrInvalidLengthConfiguration
  1534  			}
  1535  			postIndex := iNdEx + msglen
  1536  			if postIndex < 0 {
  1537  				return ErrInvalidLengthConfiguration
  1538  			}
  1539  			if postIndex > l {
  1540  				return io.ErrUnexpectedEOF
  1541  			}
  1542  			if err := m.Mastership.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1543  				return err
  1544  			}
  1545  			iNdEx = postIndex
  1546  		case 3:
  1547  			if wireType != 2 {
  1548  				return fmt.Errorf("proto: wrong wireType = %d for field Proposed", wireType)
  1549  			}
  1550  			var msglen int
  1551  			for shift := uint(0); ; shift += 7 {
  1552  				if shift >= 64 {
  1553  					return ErrIntOverflowConfiguration
  1554  				}
  1555  				if iNdEx >= l {
  1556  					return io.ErrUnexpectedEOF
  1557  				}
  1558  				b := dAtA[iNdEx]
  1559  				iNdEx++
  1560  				msglen |= int(b&0x7F) << shift
  1561  				if b < 0x80 {
  1562  					break
  1563  				}
  1564  			}
  1565  			if msglen < 0 {
  1566  				return ErrInvalidLengthConfiguration
  1567  			}
  1568  			postIndex := iNdEx + msglen
  1569  			if postIndex < 0 {
  1570  				return ErrInvalidLengthConfiguration
  1571  			}
  1572  			if postIndex > l {
  1573  				return io.ErrUnexpectedEOF
  1574  			}
  1575  			if err := m.Proposed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1576  				return err
  1577  			}
  1578  			iNdEx = postIndex
  1579  		case 4:
  1580  			if wireType != 2 {
  1581  				return fmt.Errorf("proto: wrong wireType = %d for field Committed", wireType)
  1582  			}
  1583  			var msglen int
  1584  			for shift := uint(0); ; shift += 7 {
  1585  				if shift >= 64 {
  1586  					return ErrIntOverflowConfiguration
  1587  				}
  1588  				if iNdEx >= l {
  1589  					return io.ErrUnexpectedEOF
  1590  				}
  1591  				b := dAtA[iNdEx]
  1592  				iNdEx++
  1593  				msglen |= int(b&0x7F) << shift
  1594  				if b < 0x80 {
  1595  					break
  1596  				}
  1597  			}
  1598  			if msglen < 0 {
  1599  				return ErrInvalidLengthConfiguration
  1600  			}
  1601  			postIndex := iNdEx + msglen
  1602  			if postIndex < 0 {
  1603  				return ErrInvalidLengthConfiguration
  1604  			}
  1605  			if postIndex > l {
  1606  				return io.ErrUnexpectedEOF
  1607  			}
  1608  			if err := m.Committed.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1609  				return err
  1610  			}
  1611  			iNdEx = postIndex
  1612  		case 5:
  1613  			if wireType != 2 {
  1614  				return fmt.Errorf("proto: wrong wireType = %d for field Applied", wireType)
  1615  			}
  1616  			var msglen int
  1617  			for shift := uint(0); ; shift += 7 {
  1618  				if shift >= 64 {
  1619  					return ErrIntOverflowConfiguration
  1620  				}
  1621  				if iNdEx >= l {
  1622  					return io.ErrUnexpectedEOF
  1623  				}
  1624  				b := dAtA[iNdEx]
  1625  				iNdEx++
  1626  				msglen |= int(b&0x7F) << shift
  1627  				if b < 0x80 {
  1628  					break
  1629  				}
  1630  			}
  1631  			if msglen < 0 {
  1632  				return ErrInvalidLengthConfiguration
  1633  			}
  1634  			postIndex := iNdEx + msglen
  1635  			if postIndex < 0 {
  1636  				return ErrInvalidLengthConfiguration
  1637  			}
  1638  			if postIndex > l {
  1639  				return io.ErrUnexpectedEOF
  1640  			}
  1641  			if err := m.Applied.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1642  				return err
  1643  			}
  1644  			iNdEx = postIndex
  1645  		default:
  1646  			iNdEx = preIndex
  1647  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  1648  			if err != nil {
  1649  				return err
  1650  			}
  1651  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1652  				return ErrInvalidLengthConfiguration
  1653  			}
  1654  			if (iNdEx + skippy) > l {
  1655  				return io.ErrUnexpectedEOF
  1656  			}
  1657  			iNdEx += skippy
  1658  		}
  1659  	}
  1660  
  1661  	if iNdEx > l {
  1662  		return io.ErrUnexpectedEOF
  1663  	}
  1664  	return nil
  1665  }
  1666  func (m *ProposedConfigurationStatus) Unmarshal(dAtA []byte) error {
  1667  	l := len(dAtA)
  1668  	iNdEx := 0
  1669  	for iNdEx < l {
  1670  		preIndex := iNdEx
  1671  		var wire uint64
  1672  		for shift := uint(0); ; shift += 7 {
  1673  			if shift >= 64 {
  1674  				return ErrIntOverflowConfiguration
  1675  			}
  1676  			if iNdEx >= l {
  1677  				return io.ErrUnexpectedEOF
  1678  			}
  1679  			b := dAtA[iNdEx]
  1680  			iNdEx++
  1681  			wire |= uint64(b&0x7F) << shift
  1682  			if b < 0x80 {
  1683  				break
  1684  			}
  1685  		}
  1686  		fieldNum := int32(wire >> 3)
  1687  		wireType := int(wire & 0x7)
  1688  		if wireType == 4 {
  1689  			return fmt.Errorf("proto: ProposedConfigurationStatus: wiretype end group for non-group")
  1690  		}
  1691  		if fieldNum <= 0 {
  1692  			return fmt.Errorf("proto: ProposedConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1693  		}
  1694  		switch fieldNum {
  1695  		case 1:
  1696  			if wireType != 0 {
  1697  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  1698  			}
  1699  			m.Index = 0
  1700  			for shift := uint(0); ; shift += 7 {
  1701  				if shift >= 64 {
  1702  					return ErrIntOverflowConfiguration
  1703  				}
  1704  				if iNdEx >= l {
  1705  					return io.ErrUnexpectedEOF
  1706  				}
  1707  				b := dAtA[iNdEx]
  1708  				iNdEx++
  1709  				m.Index |= Index(b&0x7F) << shift
  1710  				if b < 0x80 {
  1711  					break
  1712  				}
  1713  			}
  1714  		default:
  1715  			iNdEx = preIndex
  1716  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  1717  			if err != nil {
  1718  				return err
  1719  			}
  1720  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1721  				return ErrInvalidLengthConfiguration
  1722  			}
  1723  			if (iNdEx + skippy) > l {
  1724  				return io.ErrUnexpectedEOF
  1725  			}
  1726  			iNdEx += skippy
  1727  		}
  1728  	}
  1729  
  1730  	if iNdEx > l {
  1731  		return io.ErrUnexpectedEOF
  1732  	}
  1733  	return nil
  1734  }
  1735  func (m *CommittedConfigurationStatus) Unmarshal(dAtA []byte) error {
  1736  	l := len(dAtA)
  1737  	iNdEx := 0
  1738  	for iNdEx < l {
  1739  		preIndex := iNdEx
  1740  		var wire uint64
  1741  		for shift := uint(0); ; shift += 7 {
  1742  			if shift >= 64 {
  1743  				return ErrIntOverflowConfiguration
  1744  			}
  1745  			if iNdEx >= l {
  1746  				return io.ErrUnexpectedEOF
  1747  			}
  1748  			b := dAtA[iNdEx]
  1749  			iNdEx++
  1750  			wire |= uint64(b&0x7F) << shift
  1751  			if b < 0x80 {
  1752  				break
  1753  			}
  1754  		}
  1755  		fieldNum := int32(wire >> 3)
  1756  		wireType := int(wire & 0x7)
  1757  		if wireType == 4 {
  1758  			return fmt.Errorf("proto: CommittedConfigurationStatus: wiretype end group for non-group")
  1759  		}
  1760  		if fieldNum <= 0 {
  1761  			return fmt.Errorf("proto: CommittedConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1762  		}
  1763  		switch fieldNum {
  1764  		case 1:
  1765  			if wireType != 0 {
  1766  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  1767  			}
  1768  			m.Index = 0
  1769  			for shift := uint(0); ; shift += 7 {
  1770  				if shift >= 64 {
  1771  					return ErrIntOverflowConfiguration
  1772  				}
  1773  				if iNdEx >= l {
  1774  					return io.ErrUnexpectedEOF
  1775  				}
  1776  				b := dAtA[iNdEx]
  1777  				iNdEx++
  1778  				m.Index |= Index(b&0x7F) << shift
  1779  				if b < 0x80 {
  1780  					break
  1781  				}
  1782  			}
  1783  		default:
  1784  			iNdEx = preIndex
  1785  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  1786  			if err != nil {
  1787  				return err
  1788  			}
  1789  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1790  				return ErrInvalidLengthConfiguration
  1791  			}
  1792  			if (iNdEx + skippy) > l {
  1793  				return io.ErrUnexpectedEOF
  1794  			}
  1795  			iNdEx += skippy
  1796  		}
  1797  	}
  1798  
  1799  	if iNdEx > l {
  1800  		return io.ErrUnexpectedEOF
  1801  	}
  1802  	return nil
  1803  }
  1804  func (m *AppliedConfigurationStatus) Unmarshal(dAtA []byte) error {
  1805  	l := len(dAtA)
  1806  	iNdEx := 0
  1807  	for iNdEx < l {
  1808  		preIndex := iNdEx
  1809  		var wire uint64
  1810  		for shift := uint(0); ; shift += 7 {
  1811  			if shift >= 64 {
  1812  				return ErrIntOverflowConfiguration
  1813  			}
  1814  			if iNdEx >= l {
  1815  				return io.ErrUnexpectedEOF
  1816  			}
  1817  			b := dAtA[iNdEx]
  1818  			iNdEx++
  1819  			wire |= uint64(b&0x7F) << shift
  1820  			if b < 0x80 {
  1821  				break
  1822  			}
  1823  		}
  1824  		fieldNum := int32(wire >> 3)
  1825  		wireType := int(wire & 0x7)
  1826  		if wireType == 4 {
  1827  			return fmt.Errorf("proto: AppliedConfigurationStatus: wiretype end group for non-group")
  1828  		}
  1829  		if fieldNum <= 0 {
  1830  			return fmt.Errorf("proto: AppliedConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1831  		}
  1832  		switch fieldNum {
  1833  		case 1:
  1834  			if wireType != 0 {
  1835  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  1836  			}
  1837  			m.Index = 0
  1838  			for shift := uint(0); ; shift += 7 {
  1839  				if shift >= 64 {
  1840  					return ErrIntOverflowConfiguration
  1841  				}
  1842  				if iNdEx >= l {
  1843  					return io.ErrUnexpectedEOF
  1844  				}
  1845  				b := dAtA[iNdEx]
  1846  				iNdEx++
  1847  				m.Index |= Index(b&0x7F) << shift
  1848  				if b < 0x80 {
  1849  					break
  1850  				}
  1851  			}
  1852  		case 2:
  1853  			if wireType != 2 {
  1854  				return fmt.Errorf("proto: wrong wireType = %d for field Mastership", wireType)
  1855  			}
  1856  			var msglen int
  1857  			for shift := uint(0); ; shift += 7 {
  1858  				if shift >= 64 {
  1859  					return ErrIntOverflowConfiguration
  1860  				}
  1861  				if iNdEx >= l {
  1862  					return io.ErrUnexpectedEOF
  1863  				}
  1864  				b := dAtA[iNdEx]
  1865  				iNdEx++
  1866  				msglen |= int(b&0x7F) << shift
  1867  				if b < 0x80 {
  1868  					break
  1869  				}
  1870  			}
  1871  			if msglen < 0 {
  1872  				return ErrInvalidLengthConfiguration
  1873  			}
  1874  			postIndex := iNdEx + msglen
  1875  			if postIndex < 0 {
  1876  				return ErrInvalidLengthConfiguration
  1877  			}
  1878  			if postIndex > l {
  1879  				return io.ErrUnexpectedEOF
  1880  			}
  1881  			if err := m.Mastership.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1882  				return err
  1883  			}
  1884  			iNdEx = postIndex
  1885  		case 3:
  1886  			if wireType != 2 {
  1887  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  1888  			}
  1889  			var msglen int
  1890  			for shift := uint(0); ; shift += 7 {
  1891  				if shift >= 64 {
  1892  					return ErrIntOverflowConfiguration
  1893  				}
  1894  				if iNdEx >= l {
  1895  					return io.ErrUnexpectedEOF
  1896  				}
  1897  				b := dAtA[iNdEx]
  1898  				iNdEx++
  1899  				msglen |= int(b&0x7F) << shift
  1900  				if b < 0x80 {
  1901  					break
  1902  				}
  1903  			}
  1904  			if msglen < 0 {
  1905  				return ErrInvalidLengthConfiguration
  1906  			}
  1907  			postIndex := iNdEx + msglen
  1908  			if postIndex < 0 {
  1909  				return ErrInvalidLengthConfiguration
  1910  			}
  1911  			if postIndex > l {
  1912  				return io.ErrUnexpectedEOF
  1913  			}
  1914  			if m.Values == nil {
  1915  				m.Values = make(map[string]*PathValue)
  1916  			}
  1917  			var mapkey string
  1918  			var mapvalue *PathValue
  1919  			for iNdEx < postIndex {
  1920  				entryPreIndex := iNdEx
  1921  				var wire uint64
  1922  				for shift := uint(0); ; shift += 7 {
  1923  					if shift >= 64 {
  1924  						return ErrIntOverflowConfiguration
  1925  					}
  1926  					if iNdEx >= l {
  1927  						return io.ErrUnexpectedEOF
  1928  					}
  1929  					b := dAtA[iNdEx]
  1930  					iNdEx++
  1931  					wire |= uint64(b&0x7F) << shift
  1932  					if b < 0x80 {
  1933  						break
  1934  					}
  1935  				}
  1936  				fieldNum := int32(wire >> 3)
  1937  				if fieldNum == 1 {
  1938  					var stringLenmapkey uint64
  1939  					for shift := uint(0); ; shift += 7 {
  1940  						if shift >= 64 {
  1941  							return ErrIntOverflowConfiguration
  1942  						}
  1943  						if iNdEx >= l {
  1944  							return io.ErrUnexpectedEOF
  1945  						}
  1946  						b := dAtA[iNdEx]
  1947  						iNdEx++
  1948  						stringLenmapkey |= uint64(b&0x7F) << shift
  1949  						if b < 0x80 {
  1950  							break
  1951  						}
  1952  					}
  1953  					intStringLenmapkey := int(stringLenmapkey)
  1954  					if intStringLenmapkey < 0 {
  1955  						return ErrInvalidLengthConfiguration
  1956  					}
  1957  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1958  					if postStringIndexmapkey < 0 {
  1959  						return ErrInvalidLengthConfiguration
  1960  					}
  1961  					if postStringIndexmapkey > l {
  1962  						return io.ErrUnexpectedEOF
  1963  					}
  1964  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1965  					iNdEx = postStringIndexmapkey
  1966  				} else if fieldNum == 2 {
  1967  					var mapmsglen int
  1968  					for shift := uint(0); ; shift += 7 {
  1969  						if shift >= 64 {
  1970  							return ErrIntOverflowConfiguration
  1971  						}
  1972  						if iNdEx >= l {
  1973  							return io.ErrUnexpectedEOF
  1974  						}
  1975  						b := dAtA[iNdEx]
  1976  						iNdEx++
  1977  						mapmsglen |= int(b&0x7F) << shift
  1978  						if b < 0x80 {
  1979  							break
  1980  						}
  1981  					}
  1982  					if mapmsglen < 0 {
  1983  						return ErrInvalidLengthConfiguration
  1984  					}
  1985  					postmsgIndex := iNdEx + mapmsglen
  1986  					if postmsgIndex < 0 {
  1987  						return ErrInvalidLengthConfiguration
  1988  					}
  1989  					if postmsgIndex > l {
  1990  						return io.ErrUnexpectedEOF
  1991  					}
  1992  					mapvalue = &PathValue{}
  1993  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1994  						return err
  1995  					}
  1996  					iNdEx = postmsgIndex
  1997  				} else {
  1998  					iNdEx = entryPreIndex
  1999  					skippy, err := skipConfiguration(dAtA[iNdEx:])
  2000  					if err != nil {
  2001  						return err
  2002  					}
  2003  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2004  						return ErrInvalidLengthConfiguration
  2005  					}
  2006  					if (iNdEx + skippy) > postIndex {
  2007  						return io.ErrUnexpectedEOF
  2008  					}
  2009  					iNdEx += skippy
  2010  				}
  2011  			}
  2012  			m.Values[mapkey] = mapvalue
  2013  			iNdEx = postIndex
  2014  		default:
  2015  			iNdEx = preIndex
  2016  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  2017  			if err != nil {
  2018  				return err
  2019  			}
  2020  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2021  				return ErrInvalidLengthConfiguration
  2022  			}
  2023  			if (iNdEx + skippy) > l {
  2024  				return io.ErrUnexpectedEOF
  2025  			}
  2026  			iNdEx += skippy
  2027  		}
  2028  	}
  2029  
  2030  	if iNdEx > l {
  2031  		return io.ErrUnexpectedEOF
  2032  	}
  2033  	return nil
  2034  }
  2035  func (m *MastershipInfo) Unmarshal(dAtA []byte) error {
  2036  	l := len(dAtA)
  2037  	iNdEx := 0
  2038  	for iNdEx < l {
  2039  		preIndex := iNdEx
  2040  		var wire uint64
  2041  		for shift := uint(0); ; shift += 7 {
  2042  			if shift >= 64 {
  2043  				return ErrIntOverflowConfiguration
  2044  			}
  2045  			if iNdEx >= l {
  2046  				return io.ErrUnexpectedEOF
  2047  			}
  2048  			b := dAtA[iNdEx]
  2049  			iNdEx++
  2050  			wire |= uint64(b&0x7F) << shift
  2051  			if b < 0x80 {
  2052  				break
  2053  			}
  2054  		}
  2055  		fieldNum := int32(wire >> 3)
  2056  		wireType := int(wire & 0x7)
  2057  		if wireType == 4 {
  2058  			return fmt.Errorf("proto: MastershipInfo: wiretype end group for non-group")
  2059  		}
  2060  		if fieldNum <= 0 {
  2061  			return fmt.Errorf("proto: MastershipInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2062  		}
  2063  		switch fieldNum {
  2064  		case 1:
  2065  			if wireType != 2 {
  2066  				return fmt.Errorf("proto: wrong wireType = %d for field Master", wireType)
  2067  			}
  2068  			var stringLen uint64
  2069  			for shift := uint(0); ; shift += 7 {
  2070  				if shift >= 64 {
  2071  					return ErrIntOverflowConfiguration
  2072  				}
  2073  				if iNdEx >= l {
  2074  					return io.ErrUnexpectedEOF
  2075  				}
  2076  				b := dAtA[iNdEx]
  2077  				iNdEx++
  2078  				stringLen |= uint64(b&0x7F) << shift
  2079  				if b < 0x80 {
  2080  					break
  2081  				}
  2082  			}
  2083  			intStringLen := int(stringLen)
  2084  			if intStringLen < 0 {
  2085  				return ErrInvalidLengthConfiguration
  2086  			}
  2087  			postIndex := iNdEx + intStringLen
  2088  			if postIndex < 0 {
  2089  				return ErrInvalidLengthConfiguration
  2090  			}
  2091  			if postIndex > l {
  2092  				return io.ErrUnexpectedEOF
  2093  			}
  2094  			m.Master = string(dAtA[iNdEx:postIndex])
  2095  			iNdEx = postIndex
  2096  		case 2:
  2097  			if wireType != 0 {
  2098  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  2099  			}
  2100  			m.Term = 0
  2101  			for shift := uint(0); ; shift += 7 {
  2102  				if shift >= 64 {
  2103  					return ErrIntOverflowConfiguration
  2104  				}
  2105  				if iNdEx >= l {
  2106  					return io.ErrUnexpectedEOF
  2107  				}
  2108  				b := dAtA[iNdEx]
  2109  				iNdEx++
  2110  				m.Term |= MastershipTerm(b&0x7F) << shift
  2111  				if b < 0x80 {
  2112  					break
  2113  				}
  2114  			}
  2115  		default:
  2116  			iNdEx = preIndex
  2117  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  2118  			if err != nil {
  2119  				return err
  2120  			}
  2121  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2122  				return ErrInvalidLengthConfiguration
  2123  			}
  2124  			if (iNdEx + skippy) > l {
  2125  				return io.ErrUnexpectedEOF
  2126  			}
  2127  			iNdEx += skippy
  2128  		}
  2129  	}
  2130  
  2131  	if iNdEx > l {
  2132  		return io.ErrUnexpectedEOF
  2133  	}
  2134  	return nil
  2135  }
  2136  func (m *ConfigurationEvent) Unmarshal(dAtA []byte) error {
  2137  	l := len(dAtA)
  2138  	iNdEx := 0
  2139  	for iNdEx < l {
  2140  		preIndex := iNdEx
  2141  		var wire uint64
  2142  		for shift := uint(0); ; shift += 7 {
  2143  			if shift >= 64 {
  2144  				return ErrIntOverflowConfiguration
  2145  			}
  2146  			if iNdEx >= l {
  2147  				return io.ErrUnexpectedEOF
  2148  			}
  2149  			b := dAtA[iNdEx]
  2150  			iNdEx++
  2151  			wire |= uint64(b&0x7F) << shift
  2152  			if b < 0x80 {
  2153  				break
  2154  			}
  2155  		}
  2156  		fieldNum := int32(wire >> 3)
  2157  		wireType := int(wire & 0x7)
  2158  		if wireType == 4 {
  2159  			return fmt.Errorf("proto: ConfigurationEvent: wiretype end group for non-group")
  2160  		}
  2161  		if fieldNum <= 0 {
  2162  			return fmt.Errorf("proto: ConfigurationEvent: illegal tag %d (wire type %d)", fieldNum, wire)
  2163  		}
  2164  		switch fieldNum {
  2165  		case 1:
  2166  			if wireType != 0 {
  2167  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2168  			}
  2169  			m.Type = 0
  2170  			for shift := uint(0); ; shift += 7 {
  2171  				if shift >= 64 {
  2172  					return ErrIntOverflowConfiguration
  2173  				}
  2174  				if iNdEx >= l {
  2175  					return io.ErrUnexpectedEOF
  2176  				}
  2177  				b := dAtA[iNdEx]
  2178  				iNdEx++
  2179  				m.Type |= ConfigurationEvent_EventType(b&0x7F) << shift
  2180  				if b < 0x80 {
  2181  					break
  2182  				}
  2183  			}
  2184  		case 2:
  2185  			if wireType != 2 {
  2186  				return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType)
  2187  			}
  2188  			var msglen int
  2189  			for shift := uint(0); ; shift += 7 {
  2190  				if shift >= 64 {
  2191  					return ErrIntOverflowConfiguration
  2192  				}
  2193  				if iNdEx >= l {
  2194  					return io.ErrUnexpectedEOF
  2195  				}
  2196  				b := dAtA[iNdEx]
  2197  				iNdEx++
  2198  				msglen |= int(b&0x7F) << shift
  2199  				if b < 0x80 {
  2200  					break
  2201  				}
  2202  			}
  2203  			if msglen < 0 {
  2204  				return ErrInvalidLengthConfiguration
  2205  			}
  2206  			postIndex := iNdEx + msglen
  2207  			if postIndex < 0 {
  2208  				return ErrInvalidLengthConfiguration
  2209  			}
  2210  			if postIndex > l {
  2211  				return io.ErrUnexpectedEOF
  2212  			}
  2213  			if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2214  				return err
  2215  			}
  2216  			iNdEx = postIndex
  2217  		default:
  2218  			iNdEx = preIndex
  2219  			skippy, err := skipConfiguration(dAtA[iNdEx:])
  2220  			if err != nil {
  2221  				return err
  2222  			}
  2223  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2224  				return ErrInvalidLengthConfiguration
  2225  			}
  2226  			if (iNdEx + skippy) > l {
  2227  				return io.ErrUnexpectedEOF
  2228  			}
  2229  			iNdEx += skippy
  2230  		}
  2231  	}
  2232  
  2233  	if iNdEx > l {
  2234  		return io.ErrUnexpectedEOF
  2235  	}
  2236  	return nil
  2237  }
  2238  func skipConfiguration(dAtA []byte) (n int, err error) {
  2239  	l := len(dAtA)
  2240  	iNdEx := 0
  2241  	depth := 0
  2242  	for iNdEx < l {
  2243  		var wire uint64
  2244  		for shift := uint(0); ; shift += 7 {
  2245  			if shift >= 64 {
  2246  				return 0, ErrIntOverflowConfiguration
  2247  			}
  2248  			if iNdEx >= l {
  2249  				return 0, io.ErrUnexpectedEOF
  2250  			}
  2251  			b := dAtA[iNdEx]
  2252  			iNdEx++
  2253  			wire |= (uint64(b) & 0x7F) << shift
  2254  			if b < 0x80 {
  2255  				break
  2256  			}
  2257  		}
  2258  		wireType := int(wire & 0x7)
  2259  		switch wireType {
  2260  		case 0:
  2261  			for shift := uint(0); ; shift += 7 {
  2262  				if shift >= 64 {
  2263  					return 0, ErrIntOverflowConfiguration
  2264  				}
  2265  				if iNdEx >= l {
  2266  					return 0, io.ErrUnexpectedEOF
  2267  				}
  2268  				iNdEx++
  2269  				if dAtA[iNdEx-1] < 0x80 {
  2270  					break
  2271  				}
  2272  			}
  2273  		case 1:
  2274  			iNdEx += 8
  2275  		case 2:
  2276  			var length int
  2277  			for shift := uint(0); ; shift += 7 {
  2278  				if shift >= 64 {
  2279  					return 0, ErrIntOverflowConfiguration
  2280  				}
  2281  				if iNdEx >= l {
  2282  					return 0, io.ErrUnexpectedEOF
  2283  				}
  2284  				b := dAtA[iNdEx]
  2285  				iNdEx++
  2286  				length |= (int(b) & 0x7F) << shift
  2287  				if b < 0x80 {
  2288  					break
  2289  				}
  2290  			}
  2291  			if length < 0 {
  2292  				return 0, ErrInvalidLengthConfiguration
  2293  			}
  2294  			iNdEx += length
  2295  		case 3:
  2296  			depth++
  2297  		case 4:
  2298  			if depth == 0 {
  2299  				return 0, ErrUnexpectedEndOfGroupConfiguration
  2300  			}
  2301  			depth--
  2302  		case 5:
  2303  			iNdEx += 4
  2304  		default:
  2305  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2306  		}
  2307  		if iNdEx < 0 {
  2308  			return 0, ErrInvalidLengthConfiguration
  2309  		}
  2310  		if depth == 0 {
  2311  			return iNdEx, nil
  2312  		}
  2313  	}
  2314  	return 0, io.ErrUnexpectedEOF
  2315  }
  2316  
  2317  var (
  2318  	ErrInvalidLengthConfiguration        = fmt.Errorf("proto: negative length found during unmarshaling")
  2319  	ErrIntOverflowConfiguration          = fmt.Errorf("proto: integer overflow")
  2320  	ErrUnexpectedEndOfGroupConfiguration = fmt.Errorf("proto: unexpected end of group")
  2321  )