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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/config/v2/proposal.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  	_ "github.com/gogo/protobuf/types"
    11  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  	time "time"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  var _ = time.Kitchen
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  type ProposalInitializePhase_State int32
    31  
    32  const (
    33  	ProposalInitializePhase_INITIALIZING ProposalInitializePhase_State = 0
    34  	ProposalInitializePhase_INITIALIZED  ProposalInitializePhase_State = 1
    35  )
    36  
    37  var ProposalInitializePhase_State_name = map[int32]string{
    38  	0: "INITIALIZING",
    39  	1: "INITIALIZED",
    40  }
    41  
    42  var ProposalInitializePhase_State_value = map[string]int32{
    43  	"INITIALIZING": 0,
    44  	"INITIALIZED":  1,
    45  }
    46  
    47  func (x ProposalInitializePhase_State) String() string {
    48  	return proto.EnumName(ProposalInitializePhase_State_name, int32(x))
    49  }
    50  
    51  func (ProposalInitializePhase_State) EnumDescriptor() ([]byte, []int) {
    52  	return fileDescriptor_4000ba20b19ba7e8, []int{6, 0}
    53  }
    54  
    55  type ProposalValidatePhase_State int32
    56  
    57  const (
    58  	ProposalValidatePhase_VALIDATING ProposalValidatePhase_State = 0
    59  	ProposalValidatePhase_VALIDATED  ProposalValidatePhase_State = 1
    60  	ProposalValidatePhase_FAILED     ProposalValidatePhase_State = 2
    61  )
    62  
    63  var ProposalValidatePhase_State_name = map[int32]string{
    64  	0: "VALIDATING",
    65  	1: "VALIDATED",
    66  	2: "FAILED",
    67  }
    68  
    69  var ProposalValidatePhase_State_value = map[string]int32{
    70  	"VALIDATING": 0,
    71  	"VALIDATED":  1,
    72  	"FAILED":     2,
    73  }
    74  
    75  func (x ProposalValidatePhase_State) String() string {
    76  	return proto.EnumName(ProposalValidatePhase_State_name, int32(x))
    77  }
    78  
    79  func (ProposalValidatePhase_State) EnumDescriptor() ([]byte, []int) {
    80  	return fileDescriptor_4000ba20b19ba7e8, []int{7, 0}
    81  }
    82  
    83  type ProposalCommitPhase_State int32
    84  
    85  const (
    86  	ProposalCommitPhase_COMMITTING ProposalCommitPhase_State = 0
    87  	ProposalCommitPhase_COMMITTED  ProposalCommitPhase_State = 1
    88  )
    89  
    90  var ProposalCommitPhase_State_name = map[int32]string{
    91  	0: "COMMITTING",
    92  	1: "COMMITTED",
    93  }
    94  
    95  var ProposalCommitPhase_State_value = map[string]int32{
    96  	"COMMITTING": 0,
    97  	"COMMITTED":  1,
    98  }
    99  
   100  func (x ProposalCommitPhase_State) String() string {
   101  	return proto.EnumName(ProposalCommitPhase_State_name, int32(x))
   102  }
   103  
   104  func (ProposalCommitPhase_State) EnumDescriptor() ([]byte, []int) {
   105  	return fileDescriptor_4000ba20b19ba7e8, []int{8, 0}
   106  }
   107  
   108  type ProposalApplyPhase_State int32
   109  
   110  const (
   111  	ProposalApplyPhase_APPLYING ProposalApplyPhase_State = 0
   112  	ProposalApplyPhase_APPLIED  ProposalApplyPhase_State = 1
   113  	ProposalApplyPhase_FAILED   ProposalApplyPhase_State = 2
   114  )
   115  
   116  var ProposalApplyPhase_State_name = map[int32]string{
   117  	0: "APPLYING",
   118  	1: "APPLIED",
   119  	2: "FAILED",
   120  }
   121  
   122  var ProposalApplyPhase_State_value = map[string]int32{
   123  	"APPLYING": 0,
   124  	"APPLIED":  1,
   125  	"FAILED":   2,
   126  }
   127  
   128  func (x ProposalApplyPhase_State) String() string {
   129  	return proto.EnumName(ProposalApplyPhase_State_name, int32(x))
   130  }
   131  
   132  func (ProposalApplyPhase_State) EnumDescriptor() ([]byte, []int) {
   133  	return fileDescriptor_4000ba20b19ba7e8, []int{9, 0}
   134  }
   135  
   136  type ProposalAbortPhase_State int32
   137  
   138  const (
   139  	ProposalAbortPhase_ABORTING ProposalAbortPhase_State = 0
   140  	ProposalAbortPhase_ABORTED  ProposalAbortPhase_State = 1
   141  )
   142  
   143  var ProposalAbortPhase_State_name = map[int32]string{
   144  	0: "ABORTING",
   145  	1: "ABORTED",
   146  }
   147  
   148  var ProposalAbortPhase_State_value = map[string]int32{
   149  	"ABORTING": 0,
   150  	"ABORTED":  1,
   151  }
   152  
   153  func (x ProposalAbortPhase_State) String() string {
   154  	return proto.EnumName(ProposalAbortPhase_State_name, int32(x))
   155  }
   156  
   157  func (ProposalAbortPhase_State) EnumDescriptor() ([]byte, []int) {
   158  	return fileDescriptor_4000ba20b19ba7e8, []int{10, 0}
   159  }
   160  
   161  // EventType proposal event types for proposal store
   162  type ProposalEvent_EventType int32
   163  
   164  const (
   165  	ProposalEvent_UNKNOWN  ProposalEvent_EventType = 0
   166  	ProposalEvent_CREATED  ProposalEvent_EventType = 1
   167  	ProposalEvent_UPDATED  ProposalEvent_EventType = 2
   168  	ProposalEvent_DELETED  ProposalEvent_EventType = 3
   169  	ProposalEvent_REPLAYED ProposalEvent_EventType = 4
   170  )
   171  
   172  var ProposalEvent_EventType_name = map[int32]string{
   173  	0: "UNKNOWN",
   174  	1: "CREATED",
   175  	2: "UPDATED",
   176  	3: "DELETED",
   177  	4: "REPLAYED",
   178  }
   179  
   180  var ProposalEvent_EventType_value = map[string]int32{
   181  	"UNKNOWN":  0,
   182  	"CREATED":  1,
   183  	"UPDATED":  2,
   184  	"DELETED":  3,
   185  	"REPLAYED": 4,
   186  }
   187  
   188  func (x ProposalEvent_EventType) String() string {
   189  	return proto.EnumName(ProposalEvent_EventType_name, int32(x))
   190  }
   191  
   192  func (ProposalEvent_EventType) EnumDescriptor() ([]byte, []int) {
   193  	return fileDescriptor_4000ba20b19ba7e8, []int{11, 0}
   194  }
   195  
   196  type Proposal struct {
   197  	ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3,embedded=meta" json:"meta"`
   198  	// 'id' is the unique identifier of the proposal
   199  	ID ProposalID `protobuf:"bytes,2,opt,name=id,proto3,casttype=ProposalID" json:"id,omitempty"`
   200  	// 'target_id' is the proposal's target identifier
   201  	TargetID TargetID `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3,casttype=TargetID" json:"target_id,omitempty"`
   202  	// 'transaction_index' is the unique index of the transaction
   203  	TransactionIndex Index `protobuf:"varint,4,opt,name=transaction_index,json=transactionIndex,proto3,casttype=Index" json:"transaction_index,omitempty"`
   204  	// 'details' is the proposal details
   205  	//
   206  	// Types that are valid to be assigned to Details:
   207  	//	*Proposal_Change
   208  	//	*Proposal_Rollback
   209  	Details isProposal_Details `protobuf_oneof:"details"`
   210  	// 'status' is the current lifecycle status of the proposal
   211  	Status            ProposalStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status"`
   212  	TargetTypeVersion `protobuf:"bytes,8,opt,name=target_info,json=targetInfo,proto3,embedded=target_info" json:"target_info"`
   213  }
   214  
   215  func (m *Proposal) Reset()         { *m = Proposal{} }
   216  func (m *Proposal) String() string { return proto.CompactTextString(m) }
   217  func (*Proposal) ProtoMessage()    {}
   218  func (*Proposal) Descriptor() ([]byte, []int) {
   219  	return fileDescriptor_4000ba20b19ba7e8, []int{0}
   220  }
   221  func (m *Proposal) XXX_Unmarshal(b []byte) error {
   222  	return m.Unmarshal(b)
   223  }
   224  func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   225  	if deterministic {
   226  		return xxx_messageInfo_Proposal.Marshal(b, m, deterministic)
   227  	} else {
   228  		b = b[:cap(b)]
   229  		n, err := m.MarshalToSizedBuffer(b)
   230  		if err != nil {
   231  			return nil, err
   232  		}
   233  		return b[:n], nil
   234  	}
   235  }
   236  func (m *Proposal) XXX_Merge(src proto.Message) {
   237  	xxx_messageInfo_Proposal.Merge(m, src)
   238  }
   239  func (m *Proposal) XXX_Size() int {
   240  	return m.Size()
   241  }
   242  func (m *Proposal) XXX_DiscardUnknown() {
   243  	xxx_messageInfo_Proposal.DiscardUnknown(m)
   244  }
   245  
   246  var xxx_messageInfo_Proposal proto.InternalMessageInfo
   247  
   248  type isProposal_Details interface {
   249  	isProposal_Details()
   250  	MarshalTo([]byte) (int, error)
   251  	Size() int
   252  }
   253  
   254  type Proposal_Change struct {
   255  	Change *ChangeProposal `protobuf:"bytes,5,opt,name=change,proto3,oneof" json:"change,omitempty"`
   256  }
   257  type Proposal_Rollback struct {
   258  	Rollback *RollbackProposal `protobuf:"bytes,6,opt,name=rollback,proto3,oneof" json:"rollback,omitempty"`
   259  }
   260  
   261  func (*Proposal_Change) isProposal_Details()   {}
   262  func (*Proposal_Rollback) isProposal_Details() {}
   263  
   264  func (m *Proposal) GetDetails() isProposal_Details {
   265  	if m != nil {
   266  		return m.Details
   267  	}
   268  	return nil
   269  }
   270  
   271  func (m *Proposal) GetID() ProposalID {
   272  	if m != nil {
   273  		return m.ID
   274  	}
   275  	return ""
   276  }
   277  
   278  func (m *Proposal) GetTargetID() TargetID {
   279  	if m != nil {
   280  		return m.TargetID
   281  	}
   282  	return ""
   283  }
   284  
   285  func (m *Proposal) GetTransactionIndex() Index {
   286  	if m != nil {
   287  		return m.TransactionIndex
   288  	}
   289  	return 0
   290  }
   291  
   292  func (m *Proposal) GetChange() *ChangeProposal {
   293  	if x, ok := m.GetDetails().(*Proposal_Change); ok {
   294  		return x.Change
   295  	}
   296  	return nil
   297  }
   298  
   299  func (m *Proposal) GetRollback() *RollbackProposal {
   300  	if x, ok := m.GetDetails().(*Proposal_Rollback); ok {
   301  		return x.Rollback
   302  	}
   303  	return nil
   304  }
   305  
   306  func (m *Proposal) GetStatus() ProposalStatus {
   307  	if m != nil {
   308  		return m.Status
   309  	}
   310  	return ProposalStatus{}
   311  }
   312  
   313  // XXX_OneofWrappers is for the internal use of the proto package.
   314  func (*Proposal) XXX_OneofWrappers() []interface{} {
   315  	return []interface{}{
   316  		(*Proposal_Change)(nil),
   317  		(*Proposal_Rollback)(nil),
   318  	}
   319  }
   320  
   321  type ChangeProposal struct {
   322  	// 'changes' is the proposed change values
   323  	Values map[string]*PathValue `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"`
   324  }
   325  
   326  func (m *ChangeProposal) Reset()         { *m = ChangeProposal{} }
   327  func (m *ChangeProposal) String() string { return proto.CompactTextString(m) }
   328  func (*ChangeProposal) ProtoMessage()    {}
   329  func (*ChangeProposal) Descriptor() ([]byte, []int) {
   330  	return fileDescriptor_4000ba20b19ba7e8, []int{1}
   331  }
   332  func (m *ChangeProposal) XXX_Unmarshal(b []byte) error {
   333  	return m.Unmarshal(b)
   334  }
   335  func (m *ChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   336  	if deterministic {
   337  		return xxx_messageInfo_ChangeProposal.Marshal(b, m, deterministic)
   338  	} else {
   339  		b = b[:cap(b)]
   340  		n, err := m.MarshalToSizedBuffer(b)
   341  		if err != nil {
   342  			return nil, err
   343  		}
   344  		return b[:n], nil
   345  	}
   346  }
   347  func (m *ChangeProposal) XXX_Merge(src proto.Message) {
   348  	xxx_messageInfo_ChangeProposal.Merge(m, src)
   349  }
   350  func (m *ChangeProposal) XXX_Size() int {
   351  	return m.Size()
   352  }
   353  func (m *ChangeProposal) XXX_DiscardUnknown() {
   354  	xxx_messageInfo_ChangeProposal.DiscardUnknown(m)
   355  }
   356  
   357  var xxx_messageInfo_ChangeProposal proto.InternalMessageInfo
   358  
   359  func (m *ChangeProposal) GetValues() map[string]*PathValue {
   360  	if m != nil {
   361  		return m.Values
   362  	}
   363  	return nil
   364  }
   365  
   366  type RollbackProposal struct {
   367  	// 'rollback_index' is the index of the transaction to roll back
   368  	RollbackIndex Index `protobuf:"varint,1,opt,name=rollback_index,json=rollbackIndex,proto3,casttype=Index" json:"rollback_index,omitempty"`
   369  }
   370  
   371  func (m *RollbackProposal) Reset()         { *m = RollbackProposal{} }
   372  func (m *RollbackProposal) String() string { return proto.CompactTextString(m) }
   373  func (*RollbackProposal) ProtoMessage()    {}
   374  func (*RollbackProposal) Descriptor() ([]byte, []int) {
   375  	return fileDescriptor_4000ba20b19ba7e8, []int{2}
   376  }
   377  func (m *RollbackProposal) XXX_Unmarshal(b []byte) error {
   378  	return m.Unmarshal(b)
   379  }
   380  func (m *RollbackProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   381  	if deterministic {
   382  		return xxx_messageInfo_RollbackProposal.Marshal(b, m, deterministic)
   383  	} else {
   384  		b = b[:cap(b)]
   385  		n, err := m.MarshalToSizedBuffer(b)
   386  		if err != nil {
   387  			return nil, err
   388  		}
   389  		return b[:n], nil
   390  	}
   391  }
   392  func (m *RollbackProposal) XXX_Merge(src proto.Message) {
   393  	xxx_messageInfo_RollbackProposal.Merge(m, src)
   394  }
   395  func (m *RollbackProposal) XXX_Size() int {
   396  	return m.Size()
   397  }
   398  func (m *RollbackProposal) XXX_DiscardUnknown() {
   399  	xxx_messageInfo_RollbackProposal.DiscardUnknown(m)
   400  }
   401  
   402  var xxx_messageInfo_RollbackProposal proto.InternalMessageInfo
   403  
   404  func (m *RollbackProposal) GetRollbackIndex() Index {
   405  	if m != nil {
   406  		return m.RollbackIndex
   407  	}
   408  	return 0
   409  }
   410  
   411  // ProposalStatus is the status of a Proposal
   412  type ProposalStatus struct {
   413  	// 'phases' is the proposal phases
   414  	Phases ProposalPhases `protobuf:"bytes,1,opt,name=phases,proto3" json:"phases"`
   415  	// 'prev_index' is the index of the previous proposal associated with this target
   416  	PrevIndex Index `protobuf:"varint,2,opt,name=prev_index,json=prevIndex,proto3,casttype=Index" json:"prev_index,omitempty"`
   417  	// 'next_index' is the index of the next proposal associated with this target
   418  	NextIndex Index `protobuf:"varint,3,opt,name=next_index,json=nextIndex,proto3,casttype=Index" json:"next_index,omitempty"`
   419  	// 'rollback_index' is a reference to the index to which to roll back
   420  	RollbackIndex Index `protobuf:"varint,4,opt,name=rollback_index,json=rollbackIndex,proto3,casttype=Index" json:"rollback_index,omitempty"`
   421  	// 'rollback_values' is the set of values to use to roll back the proposal
   422  	RollbackValues map[string]*PathValue `protobuf:"bytes,5,rep,name=rollback_values,json=rollbackValues,proto3" json:"rollback_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   423  }
   424  
   425  func (m *ProposalStatus) Reset()         { *m = ProposalStatus{} }
   426  func (m *ProposalStatus) String() string { return proto.CompactTextString(m) }
   427  func (*ProposalStatus) ProtoMessage()    {}
   428  func (*ProposalStatus) Descriptor() ([]byte, []int) {
   429  	return fileDescriptor_4000ba20b19ba7e8, []int{3}
   430  }
   431  func (m *ProposalStatus) XXX_Unmarshal(b []byte) error {
   432  	return m.Unmarshal(b)
   433  }
   434  func (m *ProposalStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   435  	if deterministic {
   436  		return xxx_messageInfo_ProposalStatus.Marshal(b, m, deterministic)
   437  	} else {
   438  		b = b[:cap(b)]
   439  		n, err := m.MarshalToSizedBuffer(b)
   440  		if err != nil {
   441  			return nil, err
   442  		}
   443  		return b[:n], nil
   444  	}
   445  }
   446  func (m *ProposalStatus) XXX_Merge(src proto.Message) {
   447  	xxx_messageInfo_ProposalStatus.Merge(m, src)
   448  }
   449  func (m *ProposalStatus) XXX_Size() int {
   450  	return m.Size()
   451  }
   452  func (m *ProposalStatus) XXX_DiscardUnknown() {
   453  	xxx_messageInfo_ProposalStatus.DiscardUnknown(m)
   454  }
   455  
   456  var xxx_messageInfo_ProposalStatus proto.InternalMessageInfo
   457  
   458  func (m *ProposalStatus) GetPhases() ProposalPhases {
   459  	if m != nil {
   460  		return m.Phases
   461  	}
   462  	return ProposalPhases{}
   463  }
   464  
   465  func (m *ProposalStatus) GetPrevIndex() Index {
   466  	if m != nil {
   467  		return m.PrevIndex
   468  	}
   469  	return 0
   470  }
   471  
   472  func (m *ProposalStatus) GetNextIndex() Index {
   473  	if m != nil {
   474  		return m.NextIndex
   475  	}
   476  	return 0
   477  }
   478  
   479  func (m *ProposalStatus) GetRollbackIndex() Index {
   480  	if m != nil {
   481  		return m.RollbackIndex
   482  	}
   483  	return 0
   484  }
   485  
   486  func (m *ProposalStatus) GetRollbackValues() map[string]*PathValue {
   487  	if m != nil {
   488  		return m.RollbackValues
   489  	}
   490  	return nil
   491  }
   492  
   493  type ProposalPhases struct {
   494  	// 'initialize' is the proposal initialization phase status
   495  	Initialize *ProposalInitializePhase `protobuf:"bytes,1,opt,name=initialize,proto3" json:"initialize,omitempty"`
   496  	// 'validate' is the proposal validation phase status
   497  	Validate *ProposalValidatePhase `protobuf:"bytes,2,opt,name=validate,proto3" json:"validate,omitempty"`
   498  	// 'commit' is the proposal commit phase status
   499  	Commit *ProposalCommitPhase `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
   500  	// 'apply' is the proposal apply phase status
   501  	Apply *ProposalApplyPhase `protobuf:"bytes,4,opt,name=apply,proto3" json:"apply,omitempty"`
   502  	// 'abort' is the proposal abort phase status
   503  	Abort *ProposalAbortPhase `protobuf:"bytes,5,opt,name=abort,proto3" json:"abort,omitempty"`
   504  }
   505  
   506  func (m *ProposalPhases) Reset()         { *m = ProposalPhases{} }
   507  func (m *ProposalPhases) String() string { return proto.CompactTextString(m) }
   508  func (*ProposalPhases) ProtoMessage()    {}
   509  func (*ProposalPhases) Descriptor() ([]byte, []int) {
   510  	return fileDescriptor_4000ba20b19ba7e8, []int{4}
   511  }
   512  func (m *ProposalPhases) XXX_Unmarshal(b []byte) error {
   513  	return m.Unmarshal(b)
   514  }
   515  func (m *ProposalPhases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   516  	if deterministic {
   517  		return xxx_messageInfo_ProposalPhases.Marshal(b, m, deterministic)
   518  	} else {
   519  		b = b[:cap(b)]
   520  		n, err := m.MarshalToSizedBuffer(b)
   521  		if err != nil {
   522  			return nil, err
   523  		}
   524  		return b[:n], nil
   525  	}
   526  }
   527  func (m *ProposalPhases) XXX_Merge(src proto.Message) {
   528  	xxx_messageInfo_ProposalPhases.Merge(m, src)
   529  }
   530  func (m *ProposalPhases) XXX_Size() int {
   531  	return m.Size()
   532  }
   533  func (m *ProposalPhases) XXX_DiscardUnknown() {
   534  	xxx_messageInfo_ProposalPhases.DiscardUnknown(m)
   535  }
   536  
   537  var xxx_messageInfo_ProposalPhases proto.InternalMessageInfo
   538  
   539  func (m *ProposalPhases) GetInitialize() *ProposalInitializePhase {
   540  	if m != nil {
   541  		return m.Initialize
   542  	}
   543  	return nil
   544  }
   545  
   546  func (m *ProposalPhases) GetValidate() *ProposalValidatePhase {
   547  	if m != nil {
   548  		return m.Validate
   549  	}
   550  	return nil
   551  }
   552  
   553  func (m *ProposalPhases) GetCommit() *ProposalCommitPhase {
   554  	if m != nil {
   555  		return m.Commit
   556  	}
   557  	return nil
   558  }
   559  
   560  func (m *ProposalPhases) GetApply() *ProposalApplyPhase {
   561  	if m != nil {
   562  		return m.Apply
   563  	}
   564  	return nil
   565  }
   566  
   567  func (m *ProposalPhases) GetAbort() *ProposalAbortPhase {
   568  	if m != nil {
   569  		return m.Abort
   570  	}
   571  	return nil
   572  }
   573  
   574  type ProposalPhaseStatus struct {
   575  	Start *time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start,omitempty"`
   576  	End   *time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end,omitempty"`
   577  }
   578  
   579  func (m *ProposalPhaseStatus) Reset()         { *m = ProposalPhaseStatus{} }
   580  func (m *ProposalPhaseStatus) String() string { return proto.CompactTextString(m) }
   581  func (*ProposalPhaseStatus) ProtoMessage()    {}
   582  func (*ProposalPhaseStatus) Descriptor() ([]byte, []int) {
   583  	return fileDescriptor_4000ba20b19ba7e8, []int{5}
   584  }
   585  func (m *ProposalPhaseStatus) XXX_Unmarshal(b []byte) error {
   586  	return m.Unmarshal(b)
   587  }
   588  func (m *ProposalPhaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   589  	if deterministic {
   590  		return xxx_messageInfo_ProposalPhaseStatus.Marshal(b, m, deterministic)
   591  	} else {
   592  		b = b[:cap(b)]
   593  		n, err := m.MarshalToSizedBuffer(b)
   594  		if err != nil {
   595  			return nil, err
   596  		}
   597  		return b[:n], nil
   598  	}
   599  }
   600  func (m *ProposalPhaseStatus) XXX_Merge(src proto.Message) {
   601  	xxx_messageInfo_ProposalPhaseStatus.Merge(m, src)
   602  }
   603  func (m *ProposalPhaseStatus) XXX_Size() int {
   604  	return m.Size()
   605  }
   606  func (m *ProposalPhaseStatus) XXX_DiscardUnknown() {
   607  	xxx_messageInfo_ProposalPhaseStatus.DiscardUnknown(m)
   608  }
   609  
   610  var xxx_messageInfo_ProposalPhaseStatus proto.InternalMessageInfo
   611  
   612  func (m *ProposalPhaseStatus) GetStart() *time.Time {
   613  	if m != nil {
   614  		return m.Start
   615  	}
   616  	return nil
   617  }
   618  
   619  func (m *ProposalPhaseStatus) GetEnd() *time.Time {
   620  	if m != nil {
   621  		return m.End
   622  	}
   623  	return nil
   624  }
   625  
   626  type ProposalInitializePhase struct {
   627  	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
   628  	State               ProposalInitializePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalInitializePhase_State" json:"state,omitempty"`
   629  }
   630  
   631  func (m *ProposalInitializePhase) Reset()         { *m = ProposalInitializePhase{} }
   632  func (m *ProposalInitializePhase) String() string { return proto.CompactTextString(m) }
   633  func (*ProposalInitializePhase) ProtoMessage()    {}
   634  func (*ProposalInitializePhase) Descriptor() ([]byte, []int) {
   635  	return fileDescriptor_4000ba20b19ba7e8, []int{6}
   636  }
   637  func (m *ProposalInitializePhase) XXX_Unmarshal(b []byte) error {
   638  	return m.Unmarshal(b)
   639  }
   640  func (m *ProposalInitializePhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   641  	if deterministic {
   642  		return xxx_messageInfo_ProposalInitializePhase.Marshal(b, m, deterministic)
   643  	} else {
   644  		b = b[:cap(b)]
   645  		n, err := m.MarshalToSizedBuffer(b)
   646  		if err != nil {
   647  			return nil, err
   648  		}
   649  		return b[:n], nil
   650  	}
   651  }
   652  func (m *ProposalInitializePhase) XXX_Merge(src proto.Message) {
   653  	xxx_messageInfo_ProposalInitializePhase.Merge(m, src)
   654  }
   655  func (m *ProposalInitializePhase) XXX_Size() int {
   656  	return m.Size()
   657  }
   658  func (m *ProposalInitializePhase) XXX_DiscardUnknown() {
   659  	xxx_messageInfo_ProposalInitializePhase.DiscardUnknown(m)
   660  }
   661  
   662  var xxx_messageInfo_ProposalInitializePhase proto.InternalMessageInfo
   663  
   664  func (m *ProposalInitializePhase) GetState() ProposalInitializePhase_State {
   665  	if m != nil {
   666  		return m.State
   667  	}
   668  	return ProposalInitializePhase_INITIALIZING
   669  }
   670  
   671  type ProposalValidatePhase struct {
   672  	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
   673  	State               ProposalValidatePhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalValidatePhase_State" json:"state,omitempty"`
   674  	Failure             *Failure                    `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
   675  }
   676  
   677  func (m *ProposalValidatePhase) Reset()         { *m = ProposalValidatePhase{} }
   678  func (m *ProposalValidatePhase) String() string { return proto.CompactTextString(m) }
   679  func (*ProposalValidatePhase) ProtoMessage()    {}
   680  func (*ProposalValidatePhase) Descriptor() ([]byte, []int) {
   681  	return fileDescriptor_4000ba20b19ba7e8, []int{7}
   682  }
   683  func (m *ProposalValidatePhase) XXX_Unmarshal(b []byte) error {
   684  	return m.Unmarshal(b)
   685  }
   686  func (m *ProposalValidatePhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   687  	if deterministic {
   688  		return xxx_messageInfo_ProposalValidatePhase.Marshal(b, m, deterministic)
   689  	} else {
   690  		b = b[:cap(b)]
   691  		n, err := m.MarshalToSizedBuffer(b)
   692  		if err != nil {
   693  			return nil, err
   694  		}
   695  		return b[:n], nil
   696  	}
   697  }
   698  func (m *ProposalValidatePhase) XXX_Merge(src proto.Message) {
   699  	xxx_messageInfo_ProposalValidatePhase.Merge(m, src)
   700  }
   701  func (m *ProposalValidatePhase) XXX_Size() int {
   702  	return m.Size()
   703  }
   704  func (m *ProposalValidatePhase) XXX_DiscardUnknown() {
   705  	xxx_messageInfo_ProposalValidatePhase.DiscardUnknown(m)
   706  }
   707  
   708  var xxx_messageInfo_ProposalValidatePhase proto.InternalMessageInfo
   709  
   710  func (m *ProposalValidatePhase) GetState() ProposalValidatePhase_State {
   711  	if m != nil {
   712  		return m.State
   713  	}
   714  	return ProposalValidatePhase_VALIDATING
   715  }
   716  
   717  func (m *ProposalValidatePhase) GetFailure() *Failure {
   718  	if m != nil {
   719  		return m.Failure
   720  	}
   721  	return nil
   722  }
   723  
   724  type ProposalCommitPhase struct {
   725  	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
   726  	State               ProposalCommitPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalCommitPhase_State" json:"state,omitempty"`
   727  }
   728  
   729  func (m *ProposalCommitPhase) Reset()         { *m = ProposalCommitPhase{} }
   730  func (m *ProposalCommitPhase) String() string { return proto.CompactTextString(m) }
   731  func (*ProposalCommitPhase) ProtoMessage()    {}
   732  func (*ProposalCommitPhase) Descriptor() ([]byte, []int) {
   733  	return fileDescriptor_4000ba20b19ba7e8, []int{8}
   734  }
   735  func (m *ProposalCommitPhase) XXX_Unmarshal(b []byte) error {
   736  	return m.Unmarshal(b)
   737  }
   738  func (m *ProposalCommitPhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   739  	if deterministic {
   740  		return xxx_messageInfo_ProposalCommitPhase.Marshal(b, m, deterministic)
   741  	} else {
   742  		b = b[:cap(b)]
   743  		n, err := m.MarshalToSizedBuffer(b)
   744  		if err != nil {
   745  			return nil, err
   746  		}
   747  		return b[:n], nil
   748  	}
   749  }
   750  func (m *ProposalCommitPhase) XXX_Merge(src proto.Message) {
   751  	xxx_messageInfo_ProposalCommitPhase.Merge(m, src)
   752  }
   753  func (m *ProposalCommitPhase) XXX_Size() int {
   754  	return m.Size()
   755  }
   756  func (m *ProposalCommitPhase) XXX_DiscardUnknown() {
   757  	xxx_messageInfo_ProposalCommitPhase.DiscardUnknown(m)
   758  }
   759  
   760  var xxx_messageInfo_ProposalCommitPhase proto.InternalMessageInfo
   761  
   762  func (m *ProposalCommitPhase) GetState() ProposalCommitPhase_State {
   763  	if m != nil {
   764  		return m.State
   765  	}
   766  	return ProposalCommitPhase_COMMITTING
   767  }
   768  
   769  type ProposalApplyPhase struct {
   770  	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
   771  	State               ProposalApplyPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalApplyPhase_State" json:"state,omitempty"`
   772  	Term                MastershipTerm           `protobuf:"varint,3,opt,name=term,proto3,casttype=MastershipTerm" json:"term,omitempty"`
   773  	Failure             *Failure                 `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"`
   774  }
   775  
   776  func (m *ProposalApplyPhase) Reset()         { *m = ProposalApplyPhase{} }
   777  func (m *ProposalApplyPhase) String() string { return proto.CompactTextString(m) }
   778  func (*ProposalApplyPhase) ProtoMessage()    {}
   779  func (*ProposalApplyPhase) Descriptor() ([]byte, []int) {
   780  	return fileDescriptor_4000ba20b19ba7e8, []int{9}
   781  }
   782  func (m *ProposalApplyPhase) XXX_Unmarshal(b []byte) error {
   783  	return m.Unmarshal(b)
   784  }
   785  func (m *ProposalApplyPhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   786  	if deterministic {
   787  		return xxx_messageInfo_ProposalApplyPhase.Marshal(b, m, deterministic)
   788  	} else {
   789  		b = b[:cap(b)]
   790  		n, err := m.MarshalToSizedBuffer(b)
   791  		if err != nil {
   792  			return nil, err
   793  		}
   794  		return b[:n], nil
   795  	}
   796  }
   797  func (m *ProposalApplyPhase) XXX_Merge(src proto.Message) {
   798  	xxx_messageInfo_ProposalApplyPhase.Merge(m, src)
   799  }
   800  func (m *ProposalApplyPhase) XXX_Size() int {
   801  	return m.Size()
   802  }
   803  func (m *ProposalApplyPhase) XXX_DiscardUnknown() {
   804  	xxx_messageInfo_ProposalApplyPhase.DiscardUnknown(m)
   805  }
   806  
   807  var xxx_messageInfo_ProposalApplyPhase proto.InternalMessageInfo
   808  
   809  func (m *ProposalApplyPhase) GetState() ProposalApplyPhase_State {
   810  	if m != nil {
   811  		return m.State
   812  	}
   813  	return ProposalApplyPhase_APPLYING
   814  }
   815  
   816  func (m *ProposalApplyPhase) GetTerm() MastershipTerm {
   817  	if m != nil {
   818  		return m.Term
   819  	}
   820  	return 0
   821  }
   822  
   823  func (m *ProposalApplyPhase) GetFailure() *Failure {
   824  	if m != nil {
   825  		return m.Failure
   826  	}
   827  	return nil
   828  }
   829  
   830  type ProposalAbortPhase struct {
   831  	ProposalPhaseStatus `protobuf:"bytes,1,opt,name=status,proto3,embedded=status" json:"status"`
   832  	State               ProposalAbortPhase_State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.v2.ProposalAbortPhase_State" json:"state,omitempty"`
   833  }
   834  
   835  func (m *ProposalAbortPhase) Reset()         { *m = ProposalAbortPhase{} }
   836  func (m *ProposalAbortPhase) String() string { return proto.CompactTextString(m) }
   837  func (*ProposalAbortPhase) ProtoMessage()    {}
   838  func (*ProposalAbortPhase) Descriptor() ([]byte, []int) {
   839  	return fileDescriptor_4000ba20b19ba7e8, []int{10}
   840  }
   841  func (m *ProposalAbortPhase) XXX_Unmarshal(b []byte) error {
   842  	return m.Unmarshal(b)
   843  }
   844  func (m *ProposalAbortPhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   845  	if deterministic {
   846  		return xxx_messageInfo_ProposalAbortPhase.Marshal(b, m, deterministic)
   847  	} else {
   848  		b = b[:cap(b)]
   849  		n, err := m.MarshalToSizedBuffer(b)
   850  		if err != nil {
   851  			return nil, err
   852  		}
   853  		return b[:n], nil
   854  	}
   855  }
   856  func (m *ProposalAbortPhase) XXX_Merge(src proto.Message) {
   857  	xxx_messageInfo_ProposalAbortPhase.Merge(m, src)
   858  }
   859  func (m *ProposalAbortPhase) XXX_Size() int {
   860  	return m.Size()
   861  }
   862  func (m *ProposalAbortPhase) XXX_DiscardUnknown() {
   863  	xxx_messageInfo_ProposalAbortPhase.DiscardUnknown(m)
   864  }
   865  
   866  var xxx_messageInfo_ProposalAbortPhase proto.InternalMessageInfo
   867  
   868  func (m *ProposalAbortPhase) GetState() ProposalAbortPhase_State {
   869  	if m != nil {
   870  		return m.State
   871  	}
   872  	return ProposalAbortPhase_ABORTING
   873  }
   874  
   875  // ProposalEvent proposal store event
   876  type ProposalEvent struct {
   877  	Type     ProposalEvent_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=onos.config.v2.ProposalEvent_EventType" json:"type,omitempty"`
   878  	Proposal Proposal                `protobuf:"bytes,2,opt,name=proposal,proto3" json:"proposal"`
   879  }
   880  
   881  func (m *ProposalEvent) Reset()         { *m = ProposalEvent{} }
   882  func (m *ProposalEvent) String() string { return proto.CompactTextString(m) }
   883  func (*ProposalEvent) ProtoMessage()    {}
   884  func (*ProposalEvent) Descriptor() ([]byte, []int) {
   885  	return fileDescriptor_4000ba20b19ba7e8, []int{11}
   886  }
   887  func (m *ProposalEvent) XXX_Unmarshal(b []byte) error {
   888  	return m.Unmarshal(b)
   889  }
   890  func (m *ProposalEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   891  	if deterministic {
   892  		return xxx_messageInfo_ProposalEvent.Marshal(b, m, deterministic)
   893  	} else {
   894  		b = b[:cap(b)]
   895  		n, err := m.MarshalToSizedBuffer(b)
   896  		if err != nil {
   897  			return nil, err
   898  		}
   899  		return b[:n], nil
   900  	}
   901  }
   902  func (m *ProposalEvent) XXX_Merge(src proto.Message) {
   903  	xxx_messageInfo_ProposalEvent.Merge(m, src)
   904  }
   905  func (m *ProposalEvent) XXX_Size() int {
   906  	return m.Size()
   907  }
   908  func (m *ProposalEvent) XXX_DiscardUnknown() {
   909  	xxx_messageInfo_ProposalEvent.DiscardUnknown(m)
   910  }
   911  
   912  var xxx_messageInfo_ProposalEvent proto.InternalMessageInfo
   913  
   914  func (m *ProposalEvent) GetType() ProposalEvent_EventType {
   915  	if m != nil {
   916  		return m.Type
   917  	}
   918  	return ProposalEvent_UNKNOWN
   919  }
   920  
   921  func (m *ProposalEvent) GetProposal() Proposal {
   922  	if m != nil {
   923  		return m.Proposal
   924  	}
   925  	return Proposal{}
   926  }
   927  
   928  func init() {
   929  	proto.RegisterEnum("onos.config.v2.ProposalInitializePhase_State", ProposalInitializePhase_State_name, ProposalInitializePhase_State_value)
   930  	proto.RegisterEnum("onos.config.v2.ProposalValidatePhase_State", ProposalValidatePhase_State_name, ProposalValidatePhase_State_value)
   931  	proto.RegisterEnum("onos.config.v2.ProposalCommitPhase_State", ProposalCommitPhase_State_name, ProposalCommitPhase_State_value)
   932  	proto.RegisterEnum("onos.config.v2.ProposalApplyPhase_State", ProposalApplyPhase_State_name, ProposalApplyPhase_State_value)
   933  	proto.RegisterEnum("onos.config.v2.ProposalAbortPhase_State", ProposalAbortPhase_State_name, ProposalAbortPhase_State_value)
   934  	proto.RegisterEnum("onos.config.v2.ProposalEvent_EventType", ProposalEvent_EventType_name, ProposalEvent_EventType_value)
   935  	proto.RegisterType((*Proposal)(nil), "onos.config.v2.Proposal")
   936  	proto.RegisterType((*ChangeProposal)(nil), "onos.config.v2.ChangeProposal")
   937  	proto.RegisterMapType((map[string]*PathValue)(nil), "onos.config.v2.ChangeProposal.ValuesEntry")
   938  	proto.RegisterType((*RollbackProposal)(nil), "onos.config.v2.RollbackProposal")
   939  	proto.RegisterType((*ProposalStatus)(nil), "onos.config.v2.ProposalStatus")
   940  	proto.RegisterMapType((map[string]*PathValue)(nil), "onos.config.v2.ProposalStatus.RollbackValuesEntry")
   941  	proto.RegisterType((*ProposalPhases)(nil), "onos.config.v2.ProposalPhases")
   942  	proto.RegisterType((*ProposalPhaseStatus)(nil), "onos.config.v2.ProposalPhaseStatus")
   943  	proto.RegisterType((*ProposalInitializePhase)(nil), "onos.config.v2.ProposalInitializePhase")
   944  	proto.RegisterType((*ProposalValidatePhase)(nil), "onos.config.v2.ProposalValidatePhase")
   945  	proto.RegisterType((*ProposalCommitPhase)(nil), "onos.config.v2.ProposalCommitPhase")
   946  	proto.RegisterType((*ProposalApplyPhase)(nil), "onos.config.v2.ProposalApplyPhase")
   947  	proto.RegisterType((*ProposalAbortPhase)(nil), "onos.config.v2.ProposalAbortPhase")
   948  	proto.RegisterType((*ProposalEvent)(nil), "onos.config.v2.ProposalEvent")
   949  }
   950  
   951  func init() { proto.RegisterFile("onos/config/v2/proposal.proto", fileDescriptor_4000ba20b19ba7e8) }
   952  
   953  var fileDescriptor_4000ba20b19ba7e8 = []byte{
   954  	// 1146 bytes of a gzipped FileDescriptorProto
   955  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6f, 0x1b, 0x45,
   956  	0x14, 0xf6, 0xae, 0x7f, 0xc4, 0x7e, 0x6e, 0x5d, 0x33, 0x2d, 0xea, 0x62, 0xc0, 0x0e, 0x0b, 0x14,
   957  	0x53, 0xc4, 0x1a, 0x16, 0x51, 0x45, 0x2d, 0x2a, 0xb2, 0x63, 0xb7, 0xac, 0x70, 0x12, 0x6b, 0x31,
   958  	0x41, 0x05, 0xa4, 0x6a, 0x63, 0x4f, 0x9c, 0xa5, 0xf6, 0xee, 0x6a, 0x77, 0x62, 0x35, 0xdc, 0xb8,
   959  	0x71, 0xa3, 0x7f, 0x05, 0x07, 0xfe, 0x09, 0x4e, 0x48, 0xbd, 0x20, 0x85, 0x13, 0x9c, 0x0c, 0x4a,
   960  	0x6e, 0xfc, 0x09, 0x39, 0xa1, 0xf9, 0xb1, 0x9b, 0x5d, 0x27, 0x76, 0x73, 0x88, 0xb8, 0x58, 0x3b,
   961  	0xf3, 0xbe, 0xef, 0xcd, 0xbc, 0xef, 0x7b, 0x33, 0x63, 0x78, 0xdd, 0x75, 0xdc, 0xa0, 0x31, 0x70,
   962  	0x9d, 0x5d, 0x7b, 0xd4, 0x98, 0xea, 0x0d, 0xcf, 0x77, 0x3d, 0x37, 0xb0, 0xc6, 0x9a, 0xe7, 0xbb,
   963  	0xc4, 0x45, 0x25, 0x1a, 0xd6, 0x78, 0x58, 0x9b, 0xea, 0x95, 0x1b, 0x23, 0x77, 0xe4, 0xb2, 0x50,
   964  	0x83, 0x7e, 0x71, 0x54, 0xe5, 0xd5, 0xb9, 0x24, 0xee, 0xce, 0x77, 0x78, 0x40, 0x44, 0xb0, 0x32,
   965  	0x17, 0x9c, 0x5a, 0xe3, 0x7d, 0x2c, 0x62, 0xaf, 0xcd, 0xc5, 0x76, 0x2d, 0x7b, 0xbc, 0xef, 0x87,
   966  	0xd1, 0xda, 0xc8, 0x75, 0x47, 0x63, 0xdc, 0x60, 0xa3, 0x9d, 0xfd, 0xdd, 0x06, 0xb1, 0x27, 0x38,
   967  	0x20, 0xd6, 0xc4, 0xe3, 0x00, 0xf5, 0xdf, 0x34, 0xe4, 0x7b, 0x62, 0xc3, 0x68, 0x0d, 0x32, 0x13,
   968  	0x4c, 0x2c, 0x45, 0x5a, 0x95, 0xea, 0x45, 0xbd, 0xa2, 0x25, 0x77, 0xae, 0x6d, 0xb1, 0x3d, 0x6d,
   969  	0x60, 0x62, 0xb5, 0xf2, 0xcf, 0x67, 0xb5, 0xd4, 0xe1, 0xac, 0x26, 0x99, 0x8c, 0x81, 0xde, 0x02,
   970  	0xd9, 0x1e, 0x2a, 0xf2, 0xaa, 0x54, 0x2f, 0xb4, 0x6e, 0x1c, 0xcd, 0x6a, 0xb2, 0xd1, 0x3e, 0x99,
   971  	0xd5, 0x20, 0xcc, 0x6c, 0xb4, 0x4d, 0xd9, 0x1e, 0xa2, 0x8f, 0xa1, 0x40, 0x2c, 0x7f, 0x84, 0xc9,
   972  	0x63, 0x7b, 0xa8, 0xa4, 0x19, 0x58, 0x39, 0x9a, 0xd5, 0xf2, 0x7d, 0x36, 0xc9, 0x28, 0xd1, 0xb7,
   973  	0x99, 0xe7, 0x50, 0x63, 0x88, 0xee, 0xc0, 0x4b, 0xc4, 0xb7, 0x9c, 0xc0, 0x1a, 0x10, 0xdb, 0x75,
   974  	0x1e, 0xdb, 0xce, 0x10, 0x3f, 0x55, 0x32, 0xab, 0x52, 0x3d, 0xd3, 0x2a, 0x9c, 0xcc, 0x6a, 0x59,
   975  	0x83, 0x4e, 0x98, 0xe5, 0x18, 0x86, 0xcd, 0xa0, 0x35, 0xc8, 0x0d, 0xf6, 0x2c, 0x67, 0x84, 0x95,
   976  	0x2c, 0x2b, 0xa8, 0x3a, 0x5f, 0xd0, 0x3a, 0x8b, 0x86, 0x9b, 0xfc, 0x2c, 0x65, 0x0a, 0x3c, 0xba,
   977  	0x0f, 0x79, 0xdf, 0x1d, 0x8f, 0x77, 0xac, 0xc1, 0x13, 0x25, 0xc7, 0xb8, 0xab, 0xf3, 0x5c, 0x53,
   978  	0xc4, 0x63, 0xec, 0x88, 0x83, 0x3e, 0x81, 0x5c, 0x40, 0x2c, 0xb2, 0x1f, 0x28, 0x2b, 0xe7, 0xaf,
   979  	0x1c, 0xb2, 0xbe, 0x60, 0xa8, 0x56, 0x86, 0xca, 0x69, 0x0a, 0x0e, 0xea, 0x42, 0x31, 0x94, 0xc9,
   980  	0xd9, 0x75, 0x95, 0x3c, 0x4b, 0xf1, 0xc6, 0x7c, 0x0a, 0x2e, 0x54, 0xff, 0xc0, 0xc3, 0xdb, 0xd8,
   981  	0x0f, 0x6c, 0xd7, 0x89, 0x99, 0x02, 0x42, 0x3b, 0x67, 0xd7, 0x6d, 0x15, 0x60, 0x65, 0x88, 0x89,
   982  	0x65, 0x8f, 0x03, 0xf5, 0x17, 0x09, 0x4a, 0xc9, 0x9a, 0x51, 0x0b, 0x72, 0xac, 0x9b, 0x02, 0x45,
   983  	0x5a, 0x4d, 0xd7, 0x8b, 0xfa, 0xed, 0xe5, 0x1a, 0x69, 0xdb, 0x0c, 0xdc, 0x71, 0x88, 0x7f, 0x60,
   984  	0x0a, 0x66, 0xa5, 0x0f, 0xc5, 0xd8, 0x34, 0x2a, 0x43, 0xfa, 0x09, 0x3e, 0x60, 0x4d, 0x54, 0x30,
   985  	0xe9, 0x27, 0x6a, 0x40, 0x96, 0x41, 0x59, 0x83, 0x14, 0xf5, 0x57, 0xce, 0xa8, 0x61, 0x91, 0x3d,
   986  	0x96, 0xc1, 0xe4, 0xb8, 0xbb, 0xf2, 0x9a, 0xa4, 0xb6, 0xa1, 0x3c, 0xaf, 0x31, 0xfa, 0x00, 0x4a,
   987  	0xa1, 0xc6, 0xa2, 0x0d, 0xa4, 0xf9, 0x36, 0xb8, 0x1a, 0x02, 0xd8, 0x50, 0xfd, 0x29, 0x0d, 0xa5,
   988  	0xa4, 0xd8, 0xd4, 0x1c, 0x6f, 0xcf, 0x0a, 0x58, 0xc9, 0x4b, 0xcd, 0xe9, 0x31, 0x54, 0x68, 0x0e,
   989  	0xe7, 0xa0, 0x3a, 0x80, 0xe7, 0xe3, 0xa9, 0x58, 0x5e, 0x9e, 0x5f, 0xbe, 0x40, 0x83, 0xbc, 0xfd,
   990  	0xea, 0x00, 0x0e, 0x7e, 0x4a, 0x04, 0x32, 0x7d, 0x06, 0x49, 0x83, 0x1c, 0x79, 0xb6, 0xac, 0xcc,
   991  	0xf2, 0xb2, 0xd0, 0x37, 0x70, 0x2d, 0x62, 0x08, 0xff, 0xb2, 0xcc, 0x3f, 0x7d, 0x79, 0xa7, 0x45,
   992  	0x6d, 0x1b, 0xf7, 0x31, 0x5a, 0x9c, 0x4f, 0x56, 0xbe, 0x85, 0xeb, 0xe7, 0xc0, 0x2e, 0xcb, 0xd7,
   993  	0xdf, 0xe5, 0x53, 0x47, 0xb8, 0xc2, 0xe8, 0x21, 0x80, 0xed, 0xd8, 0xc4, 0xb6, 0xc6, 0xf6, 0xf7,
   994  	0x58, 0xb8, 0xf2, 0xce, 0xa2, 0x42, 0x8c, 0x08, 0xc9, 0xd8, 0x66, 0x8c, 0x8a, 0x9a, 0x90, 0x9f,
   995  	0x5a, 0x63, 0x7b, 0x68, 0x91, 0x70, 0x4f, 0x6f, 0x2f, 0x4a, 0xb3, 0x2d, 0x70, 0x3c, 0x49, 0x44,
   996  	0x43, 0xf7, 0x20, 0x37, 0x70, 0x27, 0x13, 0x9b, 0x30, 0xc7, 0x8a, 0xfa, 0x9b, 0x8b, 0x12, 0xac,
   997  	0x33, 0x14, 0xa7, 0x0b, 0x0a, 0x5a, 0x83, 0xac, 0xe5, 0x79, 0xe3, 0x03, 0xe6, 0x5f, 0x51, 0x57,
   998  	0x17, 0x71, 0x9b, 0x14, 0xc4, 0xa9, 0x9c, 0xc0, 0x98, 0x3b, 0xae, 0x4f, 0xc4, 0x55, 0xb5, 0x98,
   999  	0x49, 0x41, 0x21, 0x93, 0x7e, 0xab, 0x3f, 0x48, 0x70, 0x3d, 0xa1, 0xa7, 0x68, 0xf3, 0x3b, 0x90,
  1000  	0x0d, 0x88, 0xe5, 0x93, 0xe8, 0x36, 0xe7, 0x4f, 0x81, 0x16, 0x3e, 0x05, 0x5a, 0x3f, 0x7c, 0x0a,
  1001  	0x5a, 0x99, 0x67, 0x7f, 0xd7, 0x24, 0x93, 0xc3, 0x91, 0x0e, 0x69, 0xec, 0x0c, 0x85, 0x7c, 0x2f,
  1002  	0x66, 0x51, 0xb0, 0xfa, 0x87, 0x04, 0x37, 0x17, 0xf8, 0x83, 0x3a, 0xd1, 0x5d, 0x28, 0x2d, 0x17,
  1003  	0x34, 0xb6, 0xf9, 0xd8, 0x55, 0x16, 0x5e, 0x8a, 0xeb, 0xac, 0x1c, 0xe1, 0x6b, 0x49, 0x7f, 0xff,
  1004  	0x82, 0xed, 0xa1, 0xd1, 0x84, 0xd8, 0xe4, 0x5c, 0xf5, 0x36, 0x64, 0xd9, 0x18, 0x95, 0xe1, 0x8a,
  1005  	0xb1, 0x69, 0xf4, 0x8d, 0x66, 0xd7, 0xf8, 0xda, 0xd8, 0x7c, 0x58, 0x4e, 0xa1, 0x6b, 0x50, 0x8c,
  1006  	0x66, 0x3a, 0xed, 0xb2, 0xa4, 0xfe, 0x28, 0xc3, 0xcb, 0xe7, 0x36, 0xcb, 0x65, 0x55, 0xd4, 0x4c,
  1007  	0x56, 0xf4, 0xde, 0x85, 0x3a, 0x35, 0x51, 0x0f, 0xfa, 0x10, 0x56, 0xc4, 0x7b, 0x2f, 0xba, 0xf5,
  1008  	0xe6, 0x7c, 0x92, 0x07, 0x3c, 0x6c, 0x86, 0x38, 0x55, 0x0f, 0x25, 0x28, 0x01, 0x6c, 0x37, 0xbb,
  1009  	0x46, 0xbb, 0xd9, 0xe7, 0x02, 0x5c, 0x85, 0x82, 0x18, 0xd3, 0xf2, 0x11, 0x40, 0xee, 0x41, 0xd3,
  1010  	0xe8, 0x76, 0xda, 0x65, 0x59, 0xfd, 0x2d, 0xd6, 0x62, 0xb1, 0xb6, 0xbf, 0x2c, 0x21, 0x3e, 0x4d,
  1011  	0x0a, 0xf1, 0xee, 0x05, 0x4e, 0x5c, 0xd2, 0xd6, 0x5b, 0xb1, 0x9a, 0xd6, 0xb7, 0x36, 0x36, 0x8c,
  1012  	0xfe, 0x69, 0x4d, 0x62, 0xcc, 0x2c, 0xfd, 0x59, 0x06, 0x74, 0xf6, 0x08, 0x5e, 0x56, 0x19, 0xf7,
  1013  	0x93, 0x65, 0xd4, 0x5f, 0x7c, 0xf8, 0x93, 0x66, 0xde, 0x82, 0x0c, 0xc1, 0xfe, 0x44, 0xbc, 0x14,
  1014  	0xe8, 0x64, 0x56, 0x2b, 0x6d, 0x58, 0x01, 0xc1, 0x7e, 0xb0, 0x67, 0x7b, 0x7d, 0xec, 0x4f, 0x4c,
  1015  	0x16, 0x8f, 0x9b, 0x9e, 0xb9, 0xa0, 0xe9, 0x5a, 0x28, 0xd0, 0x15, 0xc8, 0x37, 0x7b, 0xbd, 0xee,
  1016  	0x23, 0x2e, 0x4f, 0x11, 0x56, 0xe8, 0xc8, 0x38, 0x63, 0xf8, 0xaf, 0x52, 0x4c, 0xa8, 0xe8, 0xc6,
  1017  	0xf9, 0xdf, 0x85, 0x8a, 0x56, 0x4e, 0xda, 0xad, 0xc6, 0xab, 0x69, 0x6d, 0x99, 0xfd, 0xd3, 0x6a,
  1018  	0xe8, 0x88, 0x59, 0xfd, 0xa7, 0x04, 0x57, 0xc3, 0x3c, 0x9d, 0x29, 0x76, 0x08, 0xba, 0x07, 0x19,
  1019  	0x72, 0xe0, 0xf1, 0xe7, 0xa5, 0xb4, 0xf8, 0x79, 0x61, 0x60, 0x8d, 0xfd, 0xd2, 0xff, 0x56, 0x26,
  1020  	0x23, 0xa1, 0xbb, 0x90, 0x0f, 0xff, 0xd6, 0x8b, 0x9b, 0x51, 0x59, 0x94, 0x40, 0xfc, 0x5f, 0x88,
  1021  	0xf0, 0xea, 0x06, 0x14, 0xa2, 0x74, 0x74, 0x93, 0x5f, 0x6e, 0x7e, 0xbe, 0xb9, 0xf5, 0xd5, 0x26,
  1022  	0xdf, 0xf1, 0xba, 0xd9, 0x11, 0x07, 0x8e, 0x46, 0x7a, 0xfc, 0xf4, 0xc9, 0x74, 0xd0, 0xee, 0x74,
  1023  	0x3b, 0x74, 0x90, 0xa6, 0x65, 0x9a, 0x9d, 0x5e, 0xb7, 0xf9, 0xa8, 0xd3, 0x2e, 0x67, 0x5a, 0xca,
  1024  	0xf3, 0xa3, 0xaa, 0x74, 0x78, 0x54, 0x95, 0xfe, 0x39, 0xaa, 0x4a, 0xcf, 0x8e, 0xab, 0xa9, 0xc3,
  1025  	0xe3, 0x6a, 0xea, 0xaf, 0xe3, 0x6a, 0x6a, 0x27, 0xc7, 0x2e, 0xe9, 0x8f, 0xfe, 0x0b, 0x00, 0x00,
  1026  	0xff, 0xff, 0x8e, 0x4f, 0x32, 0x42, 0x91, 0x0c, 0x00, 0x00,
  1027  }
  1028  
  1029  func (m *Proposal) Marshal() (dAtA []byte, err error) {
  1030  	size := m.Size()
  1031  	dAtA = make([]byte, size)
  1032  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1033  	if err != nil {
  1034  		return nil, err
  1035  	}
  1036  	return dAtA[:n], nil
  1037  }
  1038  
  1039  func (m *Proposal) MarshalTo(dAtA []byte) (int, error) {
  1040  	size := m.Size()
  1041  	return m.MarshalToSizedBuffer(dAtA[:size])
  1042  }
  1043  
  1044  func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1045  	i := len(dAtA)
  1046  	_ = i
  1047  	var l int
  1048  	_ = l
  1049  	{
  1050  		size, err := m.TargetTypeVersion.MarshalToSizedBuffer(dAtA[:i])
  1051  		if err != nil {
  1052  			return 0, err
  1053  		}
  1054  		i -= size
  1055  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1056  	}
  1057  	i--
  1058  	dAtA[i] = 0x42
  1059  	{
  1060  		size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  1061  		if err != nil {
  1062  			return 0, err
  1063  		}
  1064  		i -= size
  1065  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1066  	}
  1067  	i--
  1068  	dAtA[i] = 0x3a
  1069  	if m.Details != nil {
  1070  		{
  1071  			size := m.Details.Size()
  1072  			i -= size
  1073  			if _, err := m.Details.MarshalTo(dAtA[i:]); err != nil {
  1074  				return 0, err
  1075  			}
  1076  		}
  1077  	}
  1078  	if m.TransactionIndex != 0 {
  1079  		i = encodeVarintProposal(dAtA, i, uint64(m.TransactionIndex))
  1080  		i--
  1081  		dAtA[i] = 0x20
  1082  	}
  1083  	if len(m.TargetID) > 0 {
  1084  		i -= len(m.TargetID)
  1085  		copy(dAtA[i:], m.TargetID)
  1086  		i = encodeVarintProposal(dAtA, i, uint64(len(m.TargetID)))
  1087  		i--
  1088  		dAtA[i] = 0x1a
  1089  	}
  1090  	if len(m.ID) > 0 {
  1091  		i -= len(m.ID)
  1092  		copy(dAtA[i:], m.ID)
  1093  		i = encodeVarintProposal(dAtA, i, uint64(len(m.ID)))
  1094  		i--
  1095  		dAtA[i] = 0x12
  1096  	}
  1097  	{
  1098  		size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  1099  		if err != nil {
  1100  			return 0, err
  1101  		}
  1102  		i -= size
  1103  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1104  	}
  1105  	i--
  1106  	dAtA[i] = 0xa
  1107  	return len(dAtA) - i, nil
  1108  }
  1109  
  1110  func (m *Proposal_Change) MarshalTo(dAtA []byte) (int, error) {
  1111  	size := m.Size()
  1112  	return m.MarshalToSizedBuffer(dAtA[:size])
  1113  }
  1114  
  1115  func (m *Proposal_Change) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1116  	i := len(dAtA)
  1117  	if m.Change != nil {
  1118  		{
  1119  			size, err := m.Change.MarshalToSizedBuffer(dAtA[:i])
  1120  			if err != nil {
  1121  				return 0, err
  1122  			}
  1123  			i -= size
  1124  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1125  		}
  1126  		i--
  1127  		dAtA[i] = 0x2a
  1128  	}
  1129  	return len(dAtA) - i, nil
  1130  }
  1131  func (m *Proposal_Rollback) MarshalTo(dAtA []byte) (int, error) {
  1132  	size := m.Size()
  1133  	return m.MarshalToSizedBuffer(dAtA[:size])
  1134  }
  1135  
  1136  func (m *Proposal_Rollback) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1137  	i := len(dAtA)
  1138  	if m.Rollback != nil {
  1139  		{
  1140  			size, err := m.Rollback.MarshalToSizedBuffer(dAtA[:i])
  1141  			if err != nil {
  1142  				return 0, err
  1143  			}
  1144  			i -= size
  1145  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1146  		}
  1147  		i--
  1148  		dAtA[i] = 0x32
  1149  	}
  1150  	return len(dAtA) - i, nil
  1151  }
  1152  func (m *ChangeProposal) Marshal() (dAtA []byte, err error) {
  1153  	size := m.Size()
  1154  	dAtA = make([]byte, size)
  1155  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1156  	if err != nil {
  1157  		return nil, err
  1158  	}
  1159  	return dAtA[:n], nil
  1160  }
  1161  
  1162  func (m *ChangeProposal) MarshalTo(dAtA []byte) (int, error) {
  1163  	size := m.Size()
  1164  	return m.MarshalToSizedBuffer(dAtA[:size])
  1165  }
  1166  
  1167  func (m *ChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1168  	i := len(dAtA)
  1169  	_ = i
  1170  	var l int
  1171  	_ = l
  1172  	if len(m.Values) > 0 {
  1173  		for k := range m.Values {
  1174  			v := m.Values[k]
  1175  			baseI := i
  1176  			if v != nil {
  1177  				{
  1178  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  1179  					if err != nil {
  1180  						return 0, err
  1181  					}
  1182  					i -= size
  1183  					i = encodeVarintProposal(dAtA, i, uint64(size))
  1184  				}
  1185  				i--
  1186  				dAtA[i] = 0x12
  1187  			}
  1188  			i -= len(k)
  1189  			copy(dAtA[i:], k)
  1190  			i = encodeVarintProposal(dAtA, i, uint64(len(k)))
  1191  			i--
  1192  			dAtA[i] = 0xa
  1193  			i = encodeVarintProposal(dAtA, i, uint64(baseI-i))
  1194  			i--
  1195  			dAtA[i] = 0xa
  1196  		}
  1197  	}
  1198  	return len(dAtA) - i, nil
  1199  }
  1200  
  1201  func (m *RollbackProposal) Marshal() (dAtA []byte, err error) {
  1202  	size := m.Size()
  1203  	dAtA = make([]byte, size)
  1204  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1205  	if err != nil {
  1206  		return nil, err
  1207  	}
  1208  	return dAtA[:n], nil
  1209  }
  1210  
  1211  func (m *RollbackProposal) MarshalTo(dAtA []byte) (int, error) {
  1212  	size := m.Size()
  1213  	return m.MarshalToSizedBuffer(dAtA[:size])
  1214  }
  1215  
  1216  func (m *RollbackProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1217  	i := len(dAtA)
  1218  	_ = i
  1219  	var l int
  1220  	_ = l
  1221  	if m.RollbackIndex != 0 {
  1222  		i = encodeVarintProposal(dAtA, i, uint64(m.RollbackIndex))
  1223  		i--
  1224  		dAtA[i] = 0x8
  1225  	}
  1226  	return len(dAtA) - i, nil
  1227  }
  1228  
  1229  func (m *ProposalStatus) Marshal() (dAtA []byte, err error) {
  1230  	size := m.Size()
  1231  	dAtA = make([]byte, size)
  1232  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1233  	if err != nil {
  1234  		return nil, err
  1235  	}
  1236  	return dAtA[:n], nil
  1237  }
  1238  
  1239  func (m *ProposalStatus) MarshalTo(dAtA []byte) (int, error) {
  1240  	size := m.Size()
  1241  	return m.MarshalToSizedBuffer(dAtA[:size])
  1242  }
  1243  
  1244  func (m *ProposalStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1245  	i := len(dAtA)
  1246  	_ = i
  1247  	var l int
  1248  	_ = l
  1249  	if len(m.RollbackValues) > 0 {
  1250  		for k := range m.RollbackValues {
  1251  			v := m.RollbackValues[k]
  1252  			baseI := i
  1253  			if v != nil {
  1254  				{
  1255  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  1256  					if err != nil {
  1257  						return 0, err
  1258  					}
  1259  					i -= size
  1260  					i = encodeVarintProposal(dAtA, i, uint64(size))
  1261  				}
  1262  				i--
  1263  				dAtA[i] = 0x12
  1264  			}
  1265  			i -= len(k)
  1266  			copy(dAtA[i:], k)
  1267  			i = encodeVarintProposal(dAtA, i, uint64(len(k)))
  1268  			i--
  1269  			dAtA[i] = 0xa
  1270  			i = encodeVarintProposal(dAtA, i, uint64(baseI-i))
  1271  			i--
  1272  			dAtA[i] = 0x2a
  1273  		}
  1274  	}
  1275  	if m.RollbackIndex != 0 {
  1276  		i = encodeVarintProposal(dAtA, i, uint64(m.RollbackIndex))
  1277  		i--
  1278  		dAtA[i] = 0x20
  1279  	}
  1280  	if m.NextIndex != 0 {
  1281  		i = encodeVarintProposal(dAtA, i, uint64(m.NextIndex))
  1282  		i--
  1283  		dAtA[i] = 0x18
  1284  	}
  1285  	if m.PrevIndex != 0 {
  1286  		i = encodeVarintProposal(dAtA, i, uint64(m.PrevIndex))
  1287  		i--
  1288  		dAtA[i] = 0x10
  1289  	}
  1290  	{
  1291  		size, err := m.Phases.MarshalToSizedBuffer(dAtA[:i])
  1292  		if err != nil {
  1293  			return 0, err
  1294  		}
  1295  		i -= size
  1296  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1297  	}
  1298  	i--
  1299  	dAtA[i] = 0xa
  1300  	return len(dAtA) - i, nil
  1301  }
  1302  
  1303  func (m *ProposalPhases) Marshal() (dAtA []byte, err error) {
  1304  	size := m.Size()
  1305  	dAtA = make([]byte, size)
  1306  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1307  	if err != nil {
  1308  		return nil, err
  1309  	}
  1310  	return dAtA[:n], nil
  1311  }
  1312  
  1313  func (m *ProposalPhases) MarshalTo(dAtA []byte) (int, error) {
  1314  	size := m.Size()
  1315  	return m.MarshalToSizedBuffer(dAtA[:size])
  1316  }
  1317  
  1318  func (m *ProposalPhases) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1319  	i := len(dAtA)
  1320  	_ = i
  1321  	var l int
  1322  	_ = l
  1323  	if m.Abort != nil {
  1324  		{
  1325  			size, err := m.Abort.MarshalToSizedBuffer(dAtA[:i])
  1326  			if err != nil {
  1327  				return 0, err
  1328  			}
  1329  			i -= size
  1330  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1331  		}
  1332  		i--
  1333  		dAtA[i] = 0x2a
  1334  	}
  1335  	if m.Apply != nil {
  1336  		{
  1337  			size, err := m.Apply.MarshalToSizedBuffer(dAtA[:i])
  1338  			if err != nil {
  1339  				return 0, err
  1340  			}
  1341  			i -= size
  1342  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1343  		}
  1344  		i--
  1345  		dAtA[i] = 0x22
  1346  	}
  1347  	if m.Commit != nil {
  1348  		{
  1349  			size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i])
  1350  			if err != nil {
  1351  				return 0, err
  1352  			}
  1353  			i -= size
  1354  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1355  		}
  1356  		i--
  1357  		dAtA[i] = 0x1a
  1358  	}
  1359  	if m.Validate != nil {
  1360  		{
  1361  			size, err := m.Validate.MarshalToSizedBuffer(dAtA[:i])
  1362  			if err != nil {
  1363  				return 0, err
  1364  			}
  1365  			i -= size
  1366  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1367  		}
  1368  		i--
  1369  		dAtA[i] = 0x12
  1370  	}
  1371  	if m.Initialize != nil {
  1372  		{
  1373  			size, err := m.Initialize.MarshalToSizedBuffer(dAtA[:i])
  1374  			if err != nil {
  1375  				return 0, err
  1376  			}
  1377  			i -= size
  1378  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1379  		}
  1380  		i--
  1381  		dAtA[i] = 0xa
  1382  	}
  1383  	return len(dAtA) - i, nil
  1384  }
  1385  
  1386  func (m *ProposalPhaseStatus) Marshal() (dAtA []byte, err error) {
  1387  	size := m.Size()
  1388  	dAtA = make([]byte, size)
  1389  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1390  	if err != nil {
  1391  		return nil, err
  1392  	}
  1393  	return dAtA[:n], nil
  1394  }
  1395  
  1396  func (m *ProposalPhaseStatus) MarshalTo(dAtA []byte) (int, error) {
  1397  	size := m.Size()
  1398  	return m.MarshalToSizedBuffer(dAtA[:size])
  1399  }
  1400  
  1401  func (m *ProposalPhaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1402  	i := len(dAtA)
  1403  	_ = i
  1404  	var l int
  1405  	_ = l
  1406  	if m.End != nil {
  1407  		n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.End):])
  1408  		if err14 != nil {
  1409  			return 0, err14
  1410  		}
  1411  		i -= n14
  1412  		i = encodeVarintProposal(dAtA, i, uint64(n14))
  1413  		i--
  1414  		dAtA[i] = 0x12
  1415  	}
  1416  	if m.Start != nil {
  1417  		n15, err15 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start):])
  1418  		if err15 != nil {
  1419  			return 0, err15
  1420  		}
  1421  		i -= n15
  1422  		i = encodeVarintProposal(dAtA, i, uint64(n15))
  1423  		i--
  1424  		dAtA[i] = 0xa
  1425  	}
  1426  	return len(dAtA) - i, nil
  1427  }
  1428  
  1429  func (m *ProposalInitializePhase) Marshal() (dAtA []byte, err error) {
  1430  	size := m.Size()
  1431  	dAtA = make([]byte, size)
  1432  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1433  	if err != nil {
  1434  		return nil, err
  1435  	}
  1436  	return dAtA[:n], nil
  1437  }
  1438  
  1439  func (m *ProposalInitializePhase) MarshalTo(dAtA []byte) (int, error) {
  1440  	size := m.Size()
  1441  	return m.MarshalToSizedBuffer(dAtA[:size])
  1442  }
  1443  
  1444  func (m *ProposalInitializePhase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1445  	i := len(dAtA)
  1446  	_ = i
  1447  	var l int
  1448  	_ = l
  1449  	if m.State != 0 {
  1450  		i = encodeVarintProposal(dAtA, i, uint64(m.State))
  1451  		i--
  1452  		dAtA[i] = 0x10
  1453  	}
  1454  	{
  1455  		size, err := m.ProposalPhaseStatus.MarshalToSizedBuffer(dAtA[:i])
  1456  		if err != nil {
  1457  			return 0, err
  1458  		}
  1459  		i -= size
  1460  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1461  	}
  1462  	i--
  1463  	dAtA[i] = 0xa
  1464  	return len(dAtA) - i, nil
  1465  }
  1466  
  1467  func (m *ProposalValidatePhase) Marshal() (dAtA []byte, err error) {
  1468  	size := m.Size()
  1469  	dAtA = make([]byte, size)
  1470  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1471  	if err != nil {
  1472  		return nil, err
  1473  	}
  1474  	return dAtA[:n], nil
  1475  }
  1476  
  1477  func (m *ProposalValidatePhase) MarshalTo(dAtA []byte) (int, error) {
  1478  	size := m.Size()
  1479  	return m.MarshalToSizedBuffer(dAtA[:size])
  1480  }
  1481  
  1482  func (m *ProposalValidatePhase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1483  	i := len(dAtA)
  1484  	_ = i
  1485  	var l int
  1486  	_ = l
  1487  	if m.Failure != nil {
  1488  		{
  1489  			size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i])
  1490  			if err != nil {
  1491  				return 0, err
  1492  			}
  1493  			i -= size
  1494  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1495  		}
  1496  		i--
  1497  		dAtA[i] = 0x1a
  1498  	}
  1499  	if m.State != 0 {
  1500  		i = encodeVarintProposal(dAtA, i, uint64(m.State))
  1501  		i--
  1502  		dAtA[i] = 0x10
  1503  	}
  1504  	{
  1505  		size, err := m.ProposalPhaseStatus.MarshalToSizedBuffer(dAtA[:i])
  1506  		if err != nil {
  1507  			return 0, err
  1508  		}
  1509  		i -= size
  1510  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1511  	}
  1512  	i--
  1513  	dAtA[i] = 0xa
  1514  	return len(dAtA) - i, nil
  1515  }
  1516  
  1517  func (m *ProposalCommitPhase) Marshal() (dAtA []byte, err error) {
  1518  	size := m.Size()
  1519  	dAtA = make([]byte, size)
  1520  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1521  	if err != nil {
  1522  		return nil, err
  1523  	}
  1524  	return dAtA[:n], nil
  1525  }
  1526  
  1527  func (m *ProposalCommitPhase) MarshalTo(dAtA []byte) (int, error) {
  1528  	size := m.Size()
  1529  	return m.MarshalToSizedBuffer(dAtA[:size])
  1530  }
  1531  
  1532  func (m *ProposalCommitPhase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1533  	i := len(dAtA)
  1534  	_ = i
  1535  	var l int
  1536  	_ = l
  1537  	if m.State != 0 {
  1538  		i = encodeVarintProposal(dAtA, i, uint64(m.State))
  1539  		i--
  1540  		dAtA[i] = 0x10
  1541  	}
  1542  	{
  1543  		size, err := m.ProposalPhaseStatus.MarshalToSizedBuffer(dAtA[:i])
  1544  		if err != nil {
  1545  			return 0, err
  1546  		}
  1547  		i -= size
  1548  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1549  	}
  1550  	i--
  1551  	dAtA[i] = 0xa
  1552  	return len(dAtA) - i, nil
  1553  }
  1554  
  1555  func (m *ProposalApplyPhase) Marshal() (dAtA []byte, err error) {
  1556  	size := m.Size()
  1557  	dAtA = make([]byte, size)
  1558  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1559  	if err != nil {
  1560  		return nil, err
  1561  	}
  1562  	return dAtA[:n], nil
  1563  }
  1564  
  1565  func (m *ProposalApplyPhase) MarshalTo(dAtA []byte) (int, error) {
  1566  	size := m.Size()
  1567  	return m.MarshalToSizedBuffer(dAtA[:size])
  1568  }
  1569  
  1570  func (m *ProposalApplyPhase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1571  	i := len(dAtA)
  1572  	_ = i
  1573  	var l int
  1574  	_ = l
  1575  	if m.Failure != nil {
  1576  		{
  1577  			size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i])
  1578  			if err != nil {
  1579  				return 0, err
  1580  			}
  1581  			i -= size
  1582  			i = encodeVarintProposal(dAtA, i, uint64(size))
  1583  		}
  1584  		i--
  1585  		dAtA[i] = 0x22
  1586  	}
  1587  	if m.Term != 0 {
  1588  		i = encodeVarintProposal(dAtA, i, uint64(m.Term))
  1589  		i--
  1590  		dAtA[i] = 0x18
  1591  	}
  1592  	if m.State != 0 {
  1593  		i = encodeVarintProposal(dAtA, i, uint64(m.State))
  1594  		i--
  1595  		dAtA[i] = 0x10
  1596  	}
  1597  	{
  1598  		size, err := m.ProposalPhaseStatus.MarshalToSizedBuffer(dAtA[:i])
  1599  		if err != nil {
  1600  			return 0, err
  1601  		}
  1602  		i -= size
  1603  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1604  	}
  1605  	i--
  1606  	dAtA[i] = 0xa
  1607  	return len(dAtA) - i, nil
  1608  }
  1609  
  1610  func (m *ProposalAbortPhase) Marshal() (dAtA []byte, err error) {
  1611  	size := m.Size()
  1612  	dAtA = make([]byte, size)
  1613  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1614  	if err != nil {
  1615  		return nil, err
  1616  	}
  1617  	return dAtA[:n], nil
  1618  }
  1619  
  1620  func (m *ProposalAbortPhase) MarshalTo(dAtA []byte) (int, error) {
  1621  	size := m.Size()
  1622  	return m.MarshalToSizedBuffer(dAtA[:size])
  1623  }
  1624  
  1625  func (m *ProposalAbortPhase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1626  	i := len(dAtA)
  1627  	_ = i
  1628  	var l int
  1629  	_ = l
  1630  	if m.State != 0 {
  1631  		i = encodeVarintProposal(dAtA, i, uint64(m.State))
  1632  		i--
  1633  		dAtA[i] = 0x10
  1634  	}
  1635  	{
  1636  		size, err := m.ProposalPhaseStatus.MarshalToSizedBuffer(dAtA[:i])
  1637  		if err != nil {
  1638  			return 0, err
  1639  		}
  1640  		i -= size
  1641  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1642  	}
  1643  	i--
  1644  	dAtA[i] = 0xa
  1645  	return len(dAtA) - i, nil
  1646  }
  1647  
  1648  func (m *ProposalEvent) Marshal() (dAtA []byte, err error) {
  1649  	size := m.Size()
  1650  	dAtA = make([]byte, size)
  1651  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1652  	if err != nil {
  1653  		return nil, err
  1654  	}
  1655  	return dAtA[:n], nil
  1656  }
  1657  
  1658  func (m *ProposalEvent) MarshalTo(dAtA []byte) (int, error) {
  1659  	size := m.Size()
  1660  	return m.MarshalToSizedBuffer(dAtA[:size])
  1661  }
  1662  
  1663  func (m *ProposalEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1664  	i := len(dAtA)
  1665  	_ = i
  1666  	var l int
  1667  	_ = l
  1668  	{
  1669  		size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  1670  		if err != nil {
  1671  			return 0, err
  1672  		}
  1673  		i -= size
  1674  		i = encodeVarintProposal(dAtA, i, uint64(size))
  1675  	}
  1676  	i--
  1677  	dAtA[i] = 0x12
  1678  	if m.Type != 0 {
  1679  		i = encodeVarintProposal(dAtA, i, uint64(m.Type))
  1680  		i--
  1681  		dAtA[i] = 0x8
  1682  	}
  1683  	return len(dAtA) - i, nil
  1684  }
  1685  
  1686  func encodeVarintProposal(dAtA []byte, offset int, v uint64) int {
  1687  	offset -= sovProposal(v)
  1688  	base := offset
  1689  	for v >= 1<<7 {
  1690  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1691  		v >>= 7
  1692  		offset++
  1693  	}
  1694  	dAtA[offset] = uint8(v)
  1695  	return base
  1696  }
  1697  func (m *Proposal) Size() (n int) {
  1698  	if m == nil {
  1699  		return 0
  1700  	}
  1701  	var l int
  1702  	_ = l
  1703  	l = m.ObjectMeta.Size()
  1704  	n += 1 + l + sovProposal(uint64(l))
  1705  	l = len(m.ID)
  1706  	if l > 0 {
  1707  		n += 1 + l + sovProposal(uint64(l))
  1708  	}
  1709  	l = len(m.TargetID)
  1710  	if l > 0 {
  1711  		n += 1 + l + sovProposal(uint64(l))
  1712  	}
  1713  	if m.TransactionIndex != 0 {
  1714  		n += 1 + sovProposal(uint64(m.TransactionIndex))
  1715  	}
  1716  	if m.Details != nil {
  1717  		n += m.Details.Size()
  1718  	}
  1719  	l = m.Status.Size()
  1720  	n += 1 + l + sovProposal(uint64(l))
  1721  	l = m.TargetTypeVersion.Size()
  1722  	n += 1 + l + sovProposal(uint64(l))
  1723  	return n
  1724  }
  1725  
  1726  func (m *Proposal_Change) Size() (n int) {
  1727  	if m == nil {
  1728  		return 0
  1729  	}
  1730  	var l int
  1731  	_ = l
  1732  	if m.Change != nil {
  1733  		l = m.Change.Size()
  1734  		n += 1 + l + sovProposal(uint64(l))
  1735  	}
  1736  	return n
  1737  }
  1738  func (m *Proposal_Rollback) Size() (n int) {
  1739  	if m == nil {
  1740  		return 0
  1741  	}
  1742  	var l int
  1743  	_ = l
  1744  	if m.Rollback != nil {
  1745  		l = m.Rollback.Size()
  1746  		n += 1 + l + sovProposal(uint64(l))
  1747  	}
  1748  	return n
  1749  }
  1750  func (m *ChangeProposal) Size() (n int) {
  1751  	if m == nil {
  1752  		return 0
  1753  	}
  1754  	var l int
  1755  	_ = l
  1756  	if len(m.Values) > 0 {
  1757  		for k, v := range m.Values {
  1758  			_ = k
  1759  			_ = v
  1760  			l = 0
  1761  			if v != nil {
  1762  				l = v.Size()
  1763  				l += 1 + sovProposal(uint64(l))
  1764  			}
  1765  			mapEntrySize := 1 + len(k) + sovProposal(uint64(len(k))) + l
  1766  			n += mapEntrySize + 1 + sovProposal(uint64(mapEntrySize))
  1767  		}
  1768  	}
  1769  	return n
  1770  }
  1771  
  1772  func (m *RollbackProposal) Size() (n int) {
  1773  	if m == nil {
  1774  		return 0
  1775  	}
  1776  	var l int
  1777  	_ = l
  1778  	if m.RollbackIndex != 0 {
  1779  		n += 1 + sovProposal(uint64(m.RollbackIndex))
  1780  	}
  1781  	return n
  1782  }
  1783  
  1784  func (m *ProposalStatus) Size() (n int) {
  1785  	if m == nil {
  1786  		return 0
  1787  	}
  1788  	var l int
  1789  	_ = l
  1790  	l = m.Phases.Size()
  1791  	n += 1 + l + sovProposal(uint64(l))
  1792  	if m.PrevIndex != 0 {
  1793  		n += 1 + sovProposal(uint64(m.PrevIndex))
  1794  	}
  1795  	if m.NextIndex != 0 {
  1796  		n += 1 + sovProposal(uint64(m.NextIndex))
  1797  	}
  1798  	if m.RollbackIndex != 0 {
  1799  		n += 1 + sovProposal(uint64(m.RollbackIndex))
  1800  	}
  1801  	if len(m.RollbackValues) > 0 {
  1802  		for k, v := range m.RollbackValues {
  1803  			_ = k
  1804  			_ = v
  1805  			l = 0
  1806  			if v != nil {
  1807  				l = v.Size()
  1808  				l += 1 + sovProposal(uint64(l))
  1809  			}
  1810  			mapEntrySize := 1 + len(k) + sovProposal(uint64(len(k))) + l
  1811  			n += mapEntrySize + 1 + sovProposal(uint64(mapEntrySize))
  1812  		}
  1813  	}
  1814  	return n
  1815  }
  1816  
  1817  func (m *ProposalPhases) Size() (n int) {
  1818  	if m == nil {
  1819  		return 0
  1820  	}
  1821  	var l int
  1822  	_ = l
  1823  	if m.Initialize != nil {
  1824  		l = m.Initialize.Size()
  1825  		n += 1 + l + sovProposal(uint64(l))
  1826  	}
  1827  	if m.Validate != nil {
  1828  		l = m.Validate.Size()
  1829  		n += 1 + l + sovProposal(uint64(l))
  1830  	}
  1831  	if m.Commit != nil {
  1832  		l = m.Commit.Size()
  1833  		n += 1 + l + sovProposal(uint64(l))
  1834  	}
  1835  	if m.Apply != nil {
  1836  		l = m.Apply.Size()
  1837  		n += 1 + l + sovProposal(uint64(l))
  1838  	}
  1839  	if m.Abort != nil {
  1840  		l = m.Abort.Size()
  1841  		n += 1 + l + sovProposal(uint64(l))
  1842  	}
  1843  	return n
  1844  }
  1845  
  1846  func (m *ProposalPhaseStatus) Size() (n int) {
  1847  	if m == nil {
  1848  		return 0
  1849  	}
  1850  	var l int
  1851  	_ = l
  1852  	if m.Start != nil {
  1853  		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start)
  1854  		n += 1 + l + sovProposal(uint64(l))
  1855  	}
  1856  	if m.End != nil {
  1857  		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.End)
  1858  		n += 1 + l + sovProposal(uint64(l))
  1859  	}
  1860  	return n
  1861  }
  1862  
  1863  func (m *ProposalInitializePhase) Size() (n int) {
  1864  	if m == nil {
  1865  		return 0
  1866  	}
  1867  	var l int
  1868  	_ = l
  1869  	l = m.ProposalPhaseStatus.Size()
  1870  	n += 1 + l + sovProposal(uint64(l))
  1871  	if m.State != 0 {
  1872  		n += 1 + sovProposal(uint64(m.State))
  1873  	}
  1874  	return n
  1875  }
  1876  
  1877  func (m *ProposalValidatePhase) Size() (n int) {
  1878  	if m == nil {
  1879  		return 0
  1880  	}
  1881  	var l int
  1882  	_ = l
  1883  	l = m.ProposalPhaseStatus.Size()
  1884  	n += 1 + l + sovProposal(uint64(l))
  1885  	if m.State != 0 {
  1886  		n += 1 + sovProposal(uint64(m.State))
  1887  	}
  1888  	if m.Failure != nil {
  1889  		l = m.Failure.Size()
  1890  		n += 1 + l + sovProposal(uint64(l))
  1891  	}
  1892  	return n
  1893  }
  1894  
  1895  func (m *ProposalCommitPhase) Size() (n int) {
  1896  	if m == nil {
  1897  		return 0
  1898  	}
  1899  	var l int
  1900  	_ = l
  1901  	l = m.ProposalPhaseStatus.Size()
  1902  	n += 1 + l + sovProposal(uint64(l))
  1903  	if m.State != 0 {
  1904  		n += 1 + sovProposal(uint64(m.State))
  1905  	}
  1906  	return n
  1907  }
  1908  
  1909  func (m *ProposalApplyPhase) Size() (n int) {
  1910  	if m == nil {
  1911  		return 0
  1912  	}
  1913  	var l int
  1914  	_ = l
  1915  	l = m.ProposalPhaseStatus.Size()
  1916  	n += 1 + l + sovProposal(uint64(l))
  1917  	if m.State != 0 {
  1918  		n += 1 + sovProposal(uint64(m.State))
  1919  	}
  1920  	if m.Term != 0 {
  1921  		n += 1 + sovProposal(uint64(m.Term))
  1922  	}
  1923  	if m.Failure != nil {
  1924  		l = m.Failure.Size()
  1925  		n += 1 + l + sovProposal(uint64(l))
  1926  	}
  1927  	return n
  1928  }
  1929  
  1930  func (m *ProposalAbortPhase) Size() (n int) {
  1931  	if m == nil {
  1932  		return 0
  1933  	}
  1934  	var l int
  1935  	_ = l
  1936  	l = m.ProposalPhaseStatus.Size()
  1937  	n += 1 + l + sovProposal(uint64(l))
  1938  	if m.State != 0 {
  1939  		n += 1 + sovProposal(uint64(m.State))
  1940  	}
  1941  	return n
  1942  }
  1943  
  1944  func (m *ProposalEvent) Size() (n int) {
  1945  	if m == nil {
  1946  		return 0
  1947  	}
  1948  	var l int
  1949  	_ = l
  1950  	if m.Type != 0 {
  1951  		n += 1 + sovProposal(uint64(m.Type))
  1952  	}
  1953  	l = m.Proposal.Size()
  1954  	n += 1 + l + sovProposal(uint64(l))
  1955  	return n
  1956  }
  1957  
  1958  func sovProposal(x uint64) (n int) {
  1959  	return (math_bits.Len64(x|1) + 6) / 7
  1960  }
  1961  func sozProposal(x uint64) (n int) {
  1962  	return sovProposal(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1963  }
  1964  func (m *Proposal) Unmarshal(dAtA []byte) error {
  1965  	l := len(dAtA)
  1966  	iNdEx := 0
  1967  	for iNdEx < l {
  1968  		preIndex := iNdEx
  1969  		var wire uint64
  1970  		for shift := uint(0); ; shift += 7 {
  1971  			if shift >= 64 {
  1972  				return ErrIntOverflowProposal
  1973  			}
  1974  			if iNdEx >= l {
  1975  				return io.ErrUnexpectedEOF
  1976  			}
  1977  			b := dAtA[iNdEx]
  1978  			iNdEx++
  1979  			wire |= uint64(b&0x7F) << shift
  1980  			if b < 0x80 {
  1981  				break
  1982  			}
  1983  		}
  1984  		fieldNum := int32(wire >> 3)
  1985  		wireType := int(wire & 0x7)
  1986  		if wireType == 4 {
  1987  			return fmt.Errorf("proto: Proposal: wiretype end group for non-group")
  1988  		}
  1989  		if fieldNum <= 0 {
  1990  			return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire)
  1991  		}
  1992  		switch fieldNum {
  1993  		case 1:
  1994  			if wireType != 2 {
  1995  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  1996  			}
  1997  			var msglen int
  1998  			for shift := uint(0); ; shift += 7 {
  1999  				if shift >= 64 {
  2000  					return ErrIntOverflowProposal
  2001  				}
  2002  				if iNdEx >= l {
  2003  					return io.ErrUnexpectedEOF
  2004  				}
  2005  				b := dAtA[iNdEx]
  2006  				iNdEx++
  2007  				msglen |= int(b&0x7F) << shift
  2008  				if b < 0x80 {
  2009  					break
  2010  				}
  2011  			}
  2012  			if msglen < 0 {
  2013  				return ErrInvalidLengthProposal
  2014  			}
  2015  			postIndex := iNdEx + msglen
  2016  			if postIndex < 0 {
  2017  				return ErrInvalidLengthProposal
  2018  			}
  2019  			if postIndex > l {
  2020  				return io.ErrUnexpectedEOF
  2021  			}
  2022  			if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2023  				return err
  2024  			}
  2025  			iNdEx = postIndex
  2026  		case 2:
  2027  			if wireType != 2 {
  2028  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2029  			}
  2030  			var stringLen uint64
  2031  			for shift := uint(0); ; shift += 7 {
  2032  				if shift >= 64 {
  2033  					return ErrIntOverflowProposal
  2034  				}
  2035  				if iNdEx >= l {
  2036  					return io.ErrUnexpectedEOF
  2037  				}
  2038  				b := dAtA[iNdEx]
  2039  				iNdEx++
  2040  				stringLen |= uint64(b&0x7F) << shift
  2041  				if b < 0x80 {
  2042  					break
  2043  				}
  2044  			}
  2045  			intStringLen := int(stringLen)
  2046  			if intStringLen < 0 {
  2047  				return ErrInvalidLengthProposal
  2048  			}
  2049  			postIndex := iNdEx + intStringLen
  2050  			if postIndex < 0 {
  2051  				return ErrInvalidLengthProposal
  2052  			}
  2053  			if postIndex > l {
  2054  				return io.ErrUnexpectedEOF
  2055  			}
  2056  			m.ID = ProposalID(dAtA[iNdEx:postIndex])
  2057  			iNdEx = postIndex
  2058  		case 3:
  2059  			if wireType != 2 {
  2060  				return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType)
  2061  			}
  2062  			var stringLen uint64
  2063  			for shift := uint(0); ; shift += 7 {
  2064  				if shift >= 64 {
  2065  					return ErrIntOverflowProposal
  2066  				}
  2067  				if iNdEx >= l {
  2068  					return io.ErrUnexpectedEOF
  2069  				}
  2070  				b := dAtA[iNdEx]
  2071  				iNdEx++
  2072  				stringLen |= uint64(b&0x7F) << shift
  2073  				if b < 0x80 {
  2074  					break
  2075  				}
  2076  			}
  2077  			intStringLen := int(stringLen)
  2078  			if intStringLen < 0 {
  2079  				return ErrInvalidLengthProposal
  2080  			}
  2081  			postIndex := iNdEx + intStringLen
  2082  			if postIndex < 0 {
  2083  				return ErrInvalidLengthProposal
  2084  			}
  2085  			if postIndex > l {
  2086  				return io.ErrUnexpectedEOF
  2087  			}
  2088  			m.TargetID = TargetID(dAtA[iNdEx:postIndex])
  2089  			iNdEx = postIndex
  2090  		case 4:
  2091  			if wireType != 0 {
  2092  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionIndex", wireType)
  2093  			}
  2094  			m.TransactionIndex = 0
  2095  			for shift := uint(0); ; shift += 7 {
  2096  				if shift >= 64 {
  2097  					return ErrIntOverflowProposal
  2098  				}
  2099  				if iNdEx >= l {
  2100  					return io.ErrUnexpectedEOF
  2101  				}
  2102  				b := dAtA[iNdEx]
  2103  				iNdEx++
  2104  				m.TransactionIndex |= Index(b&0x7F) << shift
  2105  				if b < 0x80 {
  2106  					break
  2107  				}
  2108  			}
  2109  		case 5:
  2110  			if wireType != 2 {
  2111  				return fmt.Errorf("proto: wrong wireType = %d for field Change", wireType)
  2112  			}
  2113  			var msglen int
  2114  			for shift := uint(0); ; shift += 7 {
  2115  				if shift >= 64 {
  2116  					return ErrIntOverflowProposal
  2117  				}
  2118  				if iNdEx >= l {
  2119  					return io.ErrUnexpectedEOF
  2120  				}
  2121  				b := dAtA[iNdEx]
  2122  				iNdEx++
  2123  				msglen |= int(b&0x7F) << shift
  2124  				if b < 0x80 {
  2125  					break
  2126  				}
  2127  			}
  2128  			if msglen < 0 {
  2129  				return ErrInvalidLengthProposal
  2130  			}
  2131  			postIndex := iNdEx + msglen
  2132  			if postIndex < 0 {
  2133  				return ErrInvalidLengthProposal
  2134  			}
  2135  			if postIndex > l {
  2136  				return io.ErrUnexpectedEOF
  2137  			}
  2138  			v := &ChangeProposal{}
  2139  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2140  				return err
  2141  			}
  2142  			m.Details = &Proposal_Change{v}
  2143  			iNdEx = postIndex
  2144  		case 6:
  2145  			if wireType != 2 {
  2146  				return fmt.Errorf("proto: wrong wireType = %d for field Rollback", wireType)
  2147  			}
  2148  			var msglen int
  2149  			for shift := uint(0); ; shift += 7 {
  2150  				if shift >= 64 {
  2151  					return ErrIntOverflowProposal
  2152  				}
  2153  				if iNdEx >= l {
  2154  					return io.ErrUnexpectedEOF
  2155  				}
  2156  				b := dAtA[iNdEx]
  2157  				iNdEx++
  2158  				msglen |= int(b&0x7F) << shift
  2159  				if b < 0x80 {
  2160  					break
  2161  				}
  2162  			}
  2163  			if msglen < 0 {
  2164  				return ErrInvalidLengthProposal
  2165  			}
  2166  			postIndex := iNdEx + msglen
  2167  			if postIndex < 0 {
  2168  				return ErrInvalidLengthProposal
  2169  			}
  2170  			if postIndex > l {
  2171  				return io.ErrUnexpectedEOF
  2172  			}
  2173  			v := &RollbackProposal{}
  2174  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2175  				return err
  2176  			}
  2177  			m.Details = &Proposal_Rollback{v}
  2178  			iNdEx = postIndex
  2179  		case 7:
  2180  			if wireType != 2 {
  2181  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  2182  			}
  2183  			var msglen int
  2184  			for shift := uint(0); ; shift += 7 {
  2185  				if shift >= 64 {
  2186  					return ErrIntOverflowProposal
  2187  				}
  2188  				if iNdEx >= l {
  2189  					return io.ErrUnexpectedEOF
  2190  				}
  2191  				b := dAtA[iNdEx]
  2192  				iNdEx++
  2193  				msglen |= int(b&0x7F) << shift
  2194  				if b < 0x80 {
  2195  					break
  2196  				}
  2197  			}
  2198  			if msglen < 0 {
  2199  				return ErrInvalidLengthProposal
  2200  			}
  2201  			postIndex := iNdEx + msglen
  2202  			if postIndex < 0 {
  2203  				return ErrInvalidLengthProposal
  2204  			}
  2205  			if postIndex > l {
  2206  				return io.ErrUnexpectedEOF
  2207  			}
  2208  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2209  				return err
  2210  			}
  2211  			iNdEx = postIndex
  2212  		case 8:
  2213  			if wireType != 2 {
  2214  				return fmt.Errorf("proto: wrong wireType = %d for field TargetTypeVersion", wireType)
  2215  			}
  2216  			var msglen int
  2217  			for shift := uint(0); ; shift += 7 {
  2218  				if shift >= 64 {
  2219  					return ErrIntOverflowProposal
  2220  				}
  2221  				if iNdEx >= l {
  2222  					return io.ErrUnexpectedEOF
  2223  				}
  2224  				b := dAtA[iNdEx]
  2225  				iNdEx++
  2226  				msglen |= int(b&0x7F) << shift
  2227  				if b < 0x80 {
  2228  					break
  2229  				}
  2230  			}
  2231  			if msglen < 0 {
  2232  				return ErrInvalidLengthProposal
  2233  			}
  2234  			postIndex := iNdEx + msglen
  2235  			if postIndex < 0 {
  2236  				return ErrInvalidLengthProposal
  2237  			}
  2238  			if postIndex > l {
  2239  				return io.ErrUnexpectedEOF
  2240  			}
  2241  			if err := m.TargetTypeVersion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2242  				return err
  2243  			}
  2244  			iNdEx = postIndex
  2245  		default:
  2246  			iNdEx = preIndex
  2247  			skippy, err := skipProposal(dAtA[iNdEx:])
  2248  			if err != nil {
  2249  				return err
  2250  			}
  2251  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2252  				return ErrInvalidLengthProposal
  2253  			}
  2254  			if (iNdEx + skippy) > l {
  2255  				return io.ErrUnexpectedEOF
  2256  			}
  2257  			iNdEx += skippy
  2258  		}
  2259  	}
  2260  
  2261  	if iNdEx > l {
  2262  		return io.ErrUnexpectedEOF
  2263  	}
  2264  	return nil
  2265  }
  2266  func (m *ChangeProposal) Unmarshal(dAtA []byte) error {
  2267  	l := len(dAtA)
  2268  	iNdEx := 0
  2269  	for iNdEx < l {
  2270  		preIndex := iNdEx
  2271  		var wire uint64
  2272  		for shift := uint(0); ; shift += 7 {
  2273  			if shift >= 64 {
  2274  				return ErrIntOverflowProposal
  2275  			}
  2276  			if iNdEx >= l {
  2277  				return io.ErrUnexpectedEOF
  2278  			}
  2279  			b := dAtA[iNdEx]
  2280  			iNdEx++
  2281  			wire |= uint64(b&0x7F) << shift
  2282  			if b < 0x80 {
  2283  				break
  2284  			}
  2285  		}
  2286  		fieldNum := int32(wire >> 3)
  2287  		wireType := int(wire & 0x7)
  2288  		if wireType == 4 {
  2289  			return fmt.Errorf("proto: ChangeProposal: wiretype end group for non-group")
  2290  		}
  2291  		if fieldNum <= 0 {
  2292  			return fmt.Errorf("proto: ChangeProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  2293  		}
  2294  		switch fieldNum {
  2295  		case 1:
  2296  			if wireType != 2 {
  2297  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  2298  			}
  2299  			var msglen int
  2300  			for shift := uint(0); ; shift += 7 {
  2301  				if shift >= 64 {
  2302  					return ErrIntOverflowProposal
  2303  				}
  2304  				if iNdEx >= l {
  2305  					return io.ErrUnexpectedEOF
  2306  				}
  2307  				b := dAtA[iNdEx]
  2308  				iNdEx++
  2309  				msglen |= int(b&0x7F) << shift
  2310  				if b < 0x80 {
  2311  					break
  2312  				}
  2313  			}
  2314  			if msglen < 0 {
  2315  				return ErrInvalidLengthProposal
  2316  			}
  2317  			postIndex := iNdEx + msglen
  2318  			if postIndex < 0 {
  2319  				return ErrInvalidLengthProposal
  2320  			}
  2321  			if postIndex > l {
  2322  				return io.ErrUnexpectedEOF
  2323  			}
  2324  			if m.Values == nil {
  2325  				m.Values = make(map[string]*PathValue)
  2326  			}
  2327  			var mapkey string
  2328  			var mapvalue *PathValue
  2329  			for iNdEx < postIndex {
  2330  				entryPreIndex := iNdEx
  2331  				var wire uint64
  2332  				for shift := uint(0); ; shift += 7 {
  2333  					if shift >= 64 {
  2334  						return ErrIntOverflowProposal
  2335  					}
  2336  					if iNdEx >= l {
  2337  						return io.ErrUnexpectedEOF
  2338  					}
  2339  					b := dAtA[iNdEx]
  2340  					iNdEx++
  2341  					wire |= uint64(b&0x7F) << shift
  2342  					if b < 0x80 {
  2343  						break
  2344  					}
  2345  				}
  2346  				fieldNum := int32(wire >> 3)
  2347  				if fieldNum == 1 {
  2348  					var stringLenmapkey uint64
  2349  					for shift := uint(0); ; shift += 7 {
  2350  						if shift >= 64 {
  2351  							return ErrIntOverflowProposal
  2352  						}
  2353  						if iNdEx >= l {
  2354  							return io.ErrUnexpectedEOF
  2355  						}
  2356  						b := dAtA[iNdEx]
  2357  						iNdEx++
  2358  						stringLenmapkey |= uint64(b&0x7F) << shift
  2359  						if b < 0x80 {
  2360  							break
  2361  						}
  2362  					}
  2363  					intStringLenmapkey := int(stringLenmapkey)
  2364  					if intStringLenmapkey < 0 {
  2365  						return ErrInvalidLengthProposal
  2366  					}
  2367  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2368  					if postStringIndexmapkey < 0 {
  2369  						return ErrInvalidLengthProposal
  2370  					}
  2371  					if postStringIndexmapkey > l {
  2372  						return io.ErrUnexpectedEOF
  2373  					}
  2374  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2375  					iNdEx = postStringIndexmapkey
  2376  				} else if fieldNum == 2 {
  2377  					var mapmsglen int
  2378  					for shift := uint(0); ; shift += 7 {
  2379  						if shift >= 64 {
  2380  							return ErrIntOverflowProposal
  2381  						}
  2382  						if iNdEx >= l {
  2383  							return io.ErrUnexpectedEOF
  2384  						}
  2385  						b := dAtA[iNdEx]
  2386  						iNdEx++
  2387  						mapmsglen |= int(b&0x7F) << shift
  2388  						if b < 0x80 {
  2389  							break
  2390  						}
  2391  					}
  2392  					if mapmsglen < 0 {
  2393  						return ErrInvalidLengthProposal
  2394  					}
  2395  					postmsgIndex := iNdEx + mapmsglen
  2396  					if postmsgIndex < 0 {
  2397  						return ErrInvalidLengthProposal
  2398  					}
  2399  					if postmsgIndex > l {
  2400  						return io.ErrUnexpectedEOF
  2401  					}
  2402  					mapvalue = &PathValue{}
  2403  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2404  						return err
  2405  					}
  2406  					iNdEx = postmsgIndex
  2407  				} else {
  2408  					iNdEx = entryPreIndex
  2409  					skippy, err := skipProposal(dAtA[iNdEx:])
  2410  					if err != nil {
  2411  						return err
  2412  					}
  2413  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2414  						return ErrInvalidLengthProposal
  2415  					}
  2416  					if (iNdEx + skippy) > postIndex {
  2417  						return io.ErrUnexpectedEOF
  2418  					}
  2419  					iNdEx += skippy
  2420  				}
  2421  			}
  2422  			m.Values[mapkey] = mapvalue
  2423  			iNdEx = postIndex
  2424  		default:
  2425  			iNdEx = preIndex
  2426  			skippy, err := skipProposal(dAtA[iNdEx:])
  2427  			if err != nil {
  2428  				return err
  2429  			}
  2430  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2431  				return ErrInvalidLengthProposal
  2432  			}
  2433  			if (iNdEx + skippy) > l {
  2434  				return io.ErrUnexpectedEOF
  2435  			}
  2436  			iNdEx += skippy
  2437  		}
  2438  	}
  2439  
  2440  	if iNdEx > l {
  2441  		return io.ErrUnexpectedEOF
  2442  	}
  2443  	return nil
  2444  }
  2445  func (m *RollbackProposal) Unmarshal(dAtA []byte) error {
  2446  	l := len(dAtA)
  2447  	iNdEx := 0
  2448  	for iNdEx < l {
  2449  		preIndex := iNdEx
  2450  		var wire uint64
  2451  		for shift := uint(0); ; shift += 7 {
  2452  			if shift >= 64 {
  2453  				return ErrIntOverflowProposal
  2454  			}
  2455  			if iNdEx >= l {
  2456  				return io.ErrUnexpectedEOF
  2457  			}
  2458  			b := dAtA[iNdEx]
  2459  			iNdEx++
  2460  			wire |= uint64(b&0x7F) << shift
  2461  			if b < 0x80 {
  2462  				break
  2463  			}
  2464  		}
  2465  		fieldNum := int32(wire >> 3)
  2466  		wireType := int(wire & 0x7)
  2467  		if wireType == 4 {
  2468  			return fmt.Errorf("proto: RollbackProposal: wiretype end group for non-group")
  2469  		}
  2470  		if fieldNum <= 0 {
  2471  			return fmt.Errorf("proto: RollbackProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  2472  		}
  2473  		switch fieldNum {
  2474  		case 1:
  2475  			if wireType != 0 {
  2476  				return fmt.Errorf("proto: wrong wireType = %d for field RollbackIndex", wireType)
  2477  			}
  2478  			m.RollbackIndex = 0
  2479  			for shift := uint(0); ; shift += 7 {
  2480  				if shift >= 64 {
  2481  					return ErrIntOverflowProposal
  2482  				}
  2483  				if iNdEx >= l {
  2484  					return io.ErrUnexpectedEOF
  2485  				}
  2486  				b := dAtA[iNdEx]
  2487  				iNdEx++
  2488  				m.RollbackIndex |= Index(b&0x7F) << shift
  2489  				if b < 0x80 {
  2490  					break
  2491  				}
  2492  			}
  2493  		default:
  2494  			iNdEx = preIndex
  2495  			skippy, err := skipProposal(dAtA[iNdEx:])
  2496  			if err != nil {
  2497  				return err
  2498  			}
  2499  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2500  				return ErrInvalidLengthProposal
  2501  			}
  2502  			if (iNdEx + skippy) > l {
  2503  				return io.ErrUnexpectedEOF
  2504  			}
  2505  			iNdEx += skippy
  2506  		}
  2507  	}
  2508  
  2509  	if iNdEx > l {
  2510  		return io.ErrUnexpectedEOF
  2511  	}
  2512  	return nil
  2513  }
  2514  func (m *ProposalStatus) Unmarshal(dAtA []byte) error {
  2515  	l := len(dAtA)
  2516  	iNdEx := 0
  2517  	for iNdEx < l {
  2518  		preIndex := iNdEx
  2519  		var wire uint64
  2520  		for shift := uint(0); ; shift += 7 {
  2521  			if shift >= 64 {
  2522  				return ErrIntOverflowProposal
  2523  			}
  2524  			if iNdEx >= l {
  2525  				return io.ErrUnexpectedEOF
  2526  			}
  2527  			b := dAtA[iNdEx]
  2528  			iNdEx++
  2529  			wire |= uint64(b&0x7F) << shift
  2530  			if b < 0x80 {
  2531  				break
  2532  			}
  2533  		}
  2534  		fieldNum := int32(wire >> 3)
  2535  		wireType := int(wire & 0x7)
  2536  		if wireType == 4 {
  2537  			return fmt.Errorf("proto: ProposalStatus: wiretype end group for non-group")
  2538  		}
  2539  		if fieldNum <= 0 {
  2540  			return fmt.Errorf("proto: ProposalStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  2541  		}
  2542  		switch fieldNum {
  2543  		case 1:
  2544  			if wireType != 2 {
  2545  				return fmt.Errorf("proto: wrong wireType = %d for field Phases", wireType)
  2546  			}
  2547  			var msglen int
  2548  			for shift := uint(0); ; shift += 7 {
  2549  				if shift >= 64 {
  2550  					return ErrIntOverflowProposal
  2551  				}
  2552  				if iNdEx >= l {
  2553  					return io.ErrUnexpectedEOF
  2554  				}
  2555  				b := dAtA[iNdEx]
  2556  				iNdEx++
  2557  				msglen |= int(b&0x7F) << shift
  2558  				if b < 0x80 {
  2559  					break
  2560  				}
  2561  			}
  2562  			if msglen < 0 {
  2563  				return ErrInvalidLengthProposal
  2564  			}
  2565  			postIndex := iNdEx + msglen
  2566  			if postIndex < 0 {
  2567  				return ErrInvalidLengthProposal
  2568  			}
  2569  			if postIndex > l {
  2570  				return io.ErrUnexpectedEOF
  2571  			}
  2572  			if err := m.Phases.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2573  				return err
  2574  			}
  2575  			iNdEx = postIndex
  2576  		case 2:
  2577  			if wireType != 0 {
  2578  				return fmt.Errorf("proto: wrong wireType = %d for field PrevIndex", wireType)
  2579  			}
  2580  			m.PrevIndex = 0
  2581  			for shift := uint(0); ; shift += 7 {
  2582  				if shift >= 64 {
  2583  					return ErrIntOverflowProposal
  2584  				}
  2585  				if iNdEx >= l {
  2586  					return io.ErrUnexpectedEOF
  2587  				}
  2588  				b := dAtA[iNdEx]
  2589  				iNdEx++
  2590  				m.PrevIndex |= Index(b&0x7F) << shift
  2591  				if b < 0x80 {
  2592  					break
  2593  				}
  2594  			}
  2595  		case 3:
  2596  			if wireType != 0 {
  2597  				return fmt.Errorf("proto: wrong wireType = %d for field NextIndex", wireType)
  2598  			}
  2599  			m.NextIndex = 0
  2600  			for shift := uint(0); ; shift += 7 {
  2601  				if shift >= 64 {
  2602  					return ErrIntOverflowProposal
  2603  				}
  2604  				if iNdEx >= l {
  2605  					return io.ErrUnexpectedEOF
  2606  				}
  2607  				b := dAtA[iNdEx]
  2608  				iNdEx++
  2609  				m.NextIndex |= Index(b&0x7F) << shift
  2610  				if b < 0x80 {
  2611  					break
  2612  				}
  2613  			}
  2614  		case 4:
  2615  			if wireType != 0 {
  2616  				return fmt.Errorf("proto: wrong wireType = %d for field RollbackIndex", wireType)
  2617  			}
  2618  			m.RollbackIndex = 0
  2619  			for shift := uint(0); ; shift += 7 {
  2620  				if shift >= 64 {
  2621  					return ErrIntOverflowProposal
  2622  				}
  2623  				if iNdEx >= l {
  2624  					return io.ErrUnexpectedEOF
  2625  				}
  2626  				b := dAtA[iNdEx]
  2627  				iNdEx++
  2628  				m.RollbackIndex |= Index(b&0x7F) << shift
  2629  				if b < 0x80 {
  2630  					break
  2631  				}
  2632  			}
  2633  		case 5:
  2634  			if wireType != 2 {
  2635  				return fmt.Errorf("proto: wrong wireType = %d for field RollbackValues", wireType)
  2636  			}
  2637  			var msglen int
  2638  			for shift := uint(0); ; shift += 7 {
  2639  				if shift >= 64 {
  2640  					return ErrIntOverflowProposal
  2641  				}
  2642  				if iNdEx >= l {
  2643  					return io.ErrUnexpectedEOF
  2644  				}
  2645  				b := dAtA[iNdEx]
  2646  				iNdEx++
  2647  				msglen |= int(b&0x7F) << shift
  2648  				if b < 0x80 {
  2649  					break
  2650  				}
  2651  			}
  2652  			if msglen < 0 {
  2653  				return ErrInvalidLengthProposal
  2654  			}
  2655  			postIndex := iNdEx + msglen
  2656  			if postIndex < 0 {
  2657  				return ErrInvalidLengthProposal
  2658  			}
  2659  			if postIndex > l {
  2660  				return io.ErrUnexpectedEOF
  2661  			}
  2662  			if m.RollbackValues == nil {
  2663  				m.RollbackValues = make(map[string]*PathValue)
  2664  			}
  2665  			var mapkey string
  2666  			var mapvalue *PathValue
  2667  			for iNdEx < postIndex {
  2668  				entryPreIndex := iNdEx
  2669  				var wire uint64
  2670  				for shift := uint(0); ; shift += 7 {
  2671  					if shift >= 64 {
  2672  						return ErrIntOverflowProposal
  2673  					}
  2674  					if iNdEx >= l {
  2675  						return io.ErrUnexpectedEOF
  2676  					}
  2677  					b := dAtA[iNdEx]
  2678  					iNdEx++
  2679  					wire |= uint64(b&0x7F) << shift
  2680  					if b < 0x80 {
  2681  						break
  2682  					}
  2683  				}
  2684  				fieldNum := int32(wire >> 3)
  2685  				if fieldNum == 1 {
  2686  					var stringLenmapkey uint64
  2687  					for shift := uint(0); ; shift += 7 {
  2688  						if shift >= 64 {
  2689  							return ErrIntOverflowProposal
  2690  						}
  2691  						if iNdEx >= l {
  2692  							return io.ErrUnexpectedEOF
  2693  						}
  2694  						b := dAtA[iNdEx]
  2695  						iNdEx++
  2696  						stringLenmapkey |= uint64(b&0x7F) << shift
  2697  						if b < 0x80 {
  2698  							break
  2699  						}
  2700  					}
  2701  					intStringLenmapkey := int(stringLenmapkey)
  2702  					if intStringLenmapkey < 0 {
  2703  						return ErrInvalidLengthProposal
  2704  					}
  2705  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2706  					if postStringIndexmapkey < 0 {
  2707  						return ErrInvalidLengthProposal
  2708  					}
  2709  					if postStringIndexmapkey > l {
  2710  						return io.ErrUnexpectedEOF
  2711  					}
  2712  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2713  					iNdEx = postStringIndexmapkey
  2714  				} else if fieldNum == 2 {
  2715  					var mapmsglen int
  2716  					for shift := uint(0); ; shift += 7 {
  2717  						if shift >= 64 {
  2718  							return ErrIntOverflowProposal
  2719  						}
  2720  						if iNdEx >= l {
  2721  							return io.ErrUnexpectedEOF
  2722  						}
  2723  						b := dAtA[iNdEx]
  2724  						iNdEx++
  2725  						mapmsglen |= int(b&0x7F) << shift
  2726  						if b < 0x80 {
  2727  							break
  2728  						}
  2729  					}
  2730  					if mapmsglen < 0 {
  2731  						return ErrInvalidLengthProposal
  2732  					}
  2733  					postmsgIndex := iNdEx + mapmsglen
  2734  					if postmsgIndex < 0 {
  2735  						return ErrInvalidLengthProposal
  2736  					}
  2737  					if postmsgIndex > l {
  2738  						return io.ErrUnexpectedEOF
  2739  					}
  2740  					mapvalue = &PathValue{}
  2741  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2742  						return err
  2743  					}
  2744  					iNdEx = postmsgIndex
  2745  				} else {
  2746  					iNdEx = entryPreIndex
  2747  					skippy, err := skipProposal(dAtA[iNdEx:])
  2748  					if err != nil {
  2749  						return err
  2750  					}
  2751  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  2752  						return ErrInvalidLengthProposal
  2753  					}
  2754  					if (iNdEx + skippy) > postIndex {
  2755  						return io.ErrUnexpectedEOF
  2756  					}
  2757  					iNdEx += skippy
  2758  				}
  2759  			}
  2760  			m.RollbackValues[mapkey] = mapvalue
  2761  			iNdEx = postIndex
  2762  		default:
  2763  			iNdEx = preIndex
  2764  			skippy, err := skipProposal(dAtA[iNdEx:])
  2765  			if err != nil {
  2766  				return err
  2767  			}
  2768  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2769  				return ErrInvalidLengthProposal
  2770  			}
  2771  			if (iNdEx + skippy) > l {
  2772  				return io.ErrUnexpectedEOF
  2773  			}
  2774  			iNdEx += skippy
  2775  		}
  2776  	}
  2777  
  2778  	if iNdEx > l {
  2779  		return io.ErrUnexpectedEOF
  2780  	}
  2781  	return nil
  2782  }
  2783  func (m *ProposalPhases) Unmarshal(dAtA []byte) error {
  2784  	l := len(dAtA)
  2785  	iNdEx := 0
  2786  	for iNdEx < l {
  2787  		preIndex := iNdEx
  2788  		var wire uint64
  2789  		for shift := uint(0); ; shift += 7 {
  2790  			if shift >= 64 {
  2791  				return ErrIntOverflowProposal
  2792  			}
  2793  			if iNdEx >= l {
  2794  				return io.ErrUnexpectedEOF
  2795  			}
  2796  			b := dAtA[iNdEx]
  2797  			iNdEx++
  2798  			wire |= uint64(b&0x7F) << shift
  2799  			if b < 0x80 {
  2800  				break
  2801  			}
  2802  		}
  2803  		fieldNum := int32(wire >> 3)
  2804  		wireType := int(wire & 0x7)
  2805  		if wireType == 4 {
  2806  			return fmt.Errorf("proto: ProposalPhases: wiretype end group for non-group")
  2807  		}
  2808  		if fieldNum <= 0 {
  2809  			return fmt.Errorf("proto: ProposalPhases: illegal tag %d (wire type %d)", fieldNum, wire)
  2810  		}
  2811  		switch fieldNum {
  2812  		case 1:
  2813  			if wireType != 2 {
  2814  				return fmt.Errorf("proto: wrong wireType = %d for field Initialize", wireType)
  2815  			}
  2816  			var msglen int
  2817  			for shift := uint(0); ; shift += 7 {
  2818  				if shift >= 64 {
  2819  					return ErrIntOverflowProposal
  2820  				}
  2821  				if iNdEx >= l {
  2822  					return io.ErrUnexpectedEOF
  2823  				}
  2824  				b := dAtA[iNdEx]
  2825  				iNdEx++
  2826  				msglen |= int(b&0x7F) << shift
  2827  				if b < 0x80 {
  2828  					break
  2829  				}
  2830  			}
  2831  			if msglen < 0 {
  2832  				return ErrInvalidLengthProposal
  2833  			}
  2834  			postIndex := iNdEx + msglen
  2835  			if postIndex < 0 {
  2836  				return ErrInvalidLengthProposal
  2837  			}
  2838  			if postIndex > l {
  2839  				return io.ErrUnexpectedEOF
  2840  			}
  2841  			if m.Initialize == nil {
  2842  				m.Initialize = &ProposalInitializePhase{}
  2843  			}
  2844  			if err := m.Initialize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2845  				return err
  2846  			}
  2847  			iNdEx = postIndex
  2848  		case 2:
  2849  			if wireType != 2 {
  2850  				return fmt.Errorf("proto: wrong wireType = %d for field Validate", wireType)
  2851  			}
  2852  			var msglen int
  2853  			for shift := uint(0); ; shift += 7 {
  2854  				if shift >= 64 {
  2855  					return ErrIntOverflowProposal
  2856  				}
  2857  				if iNdEx >= l {
  2858  					return io.ErrUnexpectedEOF
  2859  				}
  2860  				b := dAtA[iNdEx]
  2861  				iNdEx++
  2862  				msglen |= int(b&0x7F) << shift
  2863  				if b < 0x80 {
  2864  					break
  2865  				}
  2866  			}
  2867  			if msglen < 0 {
  2868  				return ErrInvalidLengthProposal
  2869  			}
  2870  			postIndex := iNdEx + msglen
  2871  			if postIndex < 0 {
  2872  				return ErrInvalidLengthProposal
  2873  			}
  2874  			if postIndex > l {
  2875  				return io.ErrUnexpectedEOF
  2876  			}
  2877  			if m.Validate == nil {
  2878  				m.Validate = &ProposalValidatePhase{}
  2879  			}
  2880  			if err := m.Validate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2881  				return err
  2882  			}
  2883  			iNdEx = postIndex
  2884  		case 3:
  2885  			if wireType != 2 {
  2886  				return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  2887  			}
  2888  			var msglen int
  2889  			for shift := uint(0); ; shift += 7 {
  2890  				if shift >= 64 {
  2891  					return ErrIntOverflowProposal
  2892  				}
  2893  				if iNdEx >= l {
  2894  					return io.ErrUnexpectedEOF
  2895  				}
  2896  				b := dAtA[iNdEx]
  2897  				iNdEx++
  2898  				msglen |= int(b&0x7F) << shift
  2899  				if b < 0x80 {
  2900  					break
  2901  				}
  2902  			}
  2903  			if msglen < 0 {
  2904  				return ErrInvalidLengthProposal
  2905  			}
  2906  			postIndex := iNdEx + msglen
  2907  			if postIndex < 0 {
  2908  				return ErrInvalidLengthProposal
  2909  			}
  2910  			if postIndex > l {
  2911  				return io.ErrUnexpectedEOF
  2912  			}
  2913  			if m.Commit == nil {
  2914  				m.Commit = &ProposalCommitPhase{}
  2915  			}
  2916  			if err := m.Commit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2917  				return err
  2918  			}
  2919  			iNdEx = postIndex
  2920  		case 4:
  2921  			if wireType != 2 {
  2922  				return fmt.Errorf("proto: wrong wireType = %d for field Apply", wireType)
  2923  			}
  2924  			var msglen int
  2925  			for shift := uint(0); ; shift += 7 {
  2926  				if shift >= 64 {
  2927  					return ErrIntOverflowProposal
  2928  				}
  2929  				if iNdEx >= l {
  2930  					return io.ErrUnexpectedEOF
  2931  				}
  2932  				b := dAtA[iNdEx]
  2933  				iNdEx++
  2934  				msglen |= int(b&0x7F) << shift
  2935  				if b < 0x80 {
  2936  					break
  2937  				}
  2938  			}
  2939  			if msglen < 0 {
  2940  				return ErrInvalidLengthProposal
  2941  			}
  2942  			postIndex := iNdEx + msglen
  2943  			if postIndex < 0 {
  2944  				return ErrInvalidLengthProposal
  2945  			}
  2946  			if postIndex > l {
  2947  				return io.ErrUnexpectedEOF
  2948  			}
  2949  			if m.Apply == nil {
  2950  				m.Apply = &ProposalApplyPhase{}
  2951  			}
  2952  			if err := m.Apply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2953  				return err
  2954  			}
  2955  			iNdEx = postIndex
  2956  		case 5:
  2957  			if wireType != 2 {
  2958  				return fmt.Errorf("proto: wrong wireType = %d for field Abort", wireType)
  2959  			}
  2960  			var msglen int
  2961  			for shift := uint(0); ; shift += 7 {
  2962  				if shift >= 64 {
  2963  					return ErrIntOverflowProposal
  2964  				}
  2965  				if iNdEx >= l {
  2966  					return io.ErrUnexpectedEOF
  2967  				}
  2968  				b := dAtA[iNdEx]
  2969  				iNdEx++
  2970  				msglen |= int(b&0x7F) << shift
  2971  				if b < 0x80 {
  2972  					break
  2973  				}
  2974  			}
  2975  			if msglen < 0 {
  2976  				return ErrInvalidLengthProposal
  2977  			}
  2978  			postIndex := iNdEx + msglen
  2979  			if postIndex < 0 {
  2980  				return ErrInvalidLengthProposal
  2981  			}
  2982  			if postIndex > l {
  2983  				return io.ErrUnexpectedEOF
  2984  			}
  2985  			if m.Abort == nil {
  2986  				m.Abort = &ProposalAbortPhase{}
  2987  			}
  2988  			if err := m.Abort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2989  				return err
  2990  			}
  2991  			iNdEx = postIndex
  2992  		default:
  2993  			iNdEx = preIndex
  2994  			skippy, err := skipProposal(dAtA[iNdEx:])
  2995  			if err != nil {
  2996  				return err
  2997  			}
  2998  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2999  				return ErrInvalidLengthProposal
  3000  			}
  3001  			if (iNdEx + skippy) > l {
  3002  				return io.ErrUnexpectedEOF
  3003  			}
  3004  			iNdEx += skippy
  3005  		}
  3006  	}
  3007  
  3008  	if iNdEx > l {
  3009  		return io.ErrUnexpectedEOF
  3010  	}
  3011  	return nil
  3012  }
  3013  func (m *ProposalPhaseStatus) Unmarshal(dAtA []byte) error {
  3014  	l := len(dAtA)
  3015  	iNdEx := 0
  3016  	for iNdEx < l {
  3017  		preIndex := iNdEx
  3018  		var wire uint64
  3019  		for shift := uint(0); ; shift += 7 {
  3020  			if shift >= 64 {
  3021  				return ErrIntOverflowProposal
  3022  			}
  3023  			if iNdEx >= l {
  3024  				return io.ErrUnexpectedEOF
  3025  			}
  3026  			b := dAtA[iNdEx]
  3027  			iNdEx++
  3028  			wire |= uint64(b&0x7F) << shift
  3029  			if b < 0x80 {
  3030  				break
  3031  			}
  3032  		}
  3033  		fieldNum := int32(wire >> 3)
  3034  		wireType := int(wire & 0x7)
  3035  		if wireType == 4 {
  3036  			return fmt.Errorf("proto: ProposalPhaseStatus: wiretype end group for non-group")
  3037  		}
  3038  		if fieldNum <= 0 {
  3039  			return fmt.Errorf("proto: ProposalPhaseStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  3040  		}
  3041  		switch fieldNum {
  3042  		case 1:
  3043  			if wireType != 2 {
  3044  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  3045  			}
  3046  			var msglen int
  3047  			for shift := uint(0); ; shift += 7 {
  3048  				if shift >= 64 {
  3049  					return ErrIntOverflowProposal
  3050  				}
  3051  				if iNdEx >= l {
  3052  					return io.ErrUnexpectedEOF
  3053  				}
  3054  				b := dAtA[iNdEx]
  3055  				iNdEx++
  3056  				msglen |= int(b&0x7F) << shift
  3057  				if b < 0x80 {
  3058  					break
  3059  				}
  3060  			}
  3061  			if msglen < 0 {
  3062  				return ErrInvalidLengthProposal
  3063  			}
  3064  			postIndex := iNdEx + msglen
  3065  			if postIndex < 0 {
  3066  				return ErrInvalidLengthProposal
  3067  			}
  3068  			if postIndex > l {
  3069  				return io.ErrUnexpectedEOF
  3070  			}
  3071  			if m.Start == nil {
  3072  				m.Start = new(time.Time)
  3073  			}
  3074  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Start, dAtA[iNdEx:postIndex]); err != nil {
  3075  				return err
  3076  			}
  3077  			iNdEx = postIndex
  3078  		case 2:
  3079  			if wireType != 2 {
  3080  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  3081  			}
  3082  			var msglen int
  3083  			for shift := uint(0); ; shift += 7 {
  3084  				if shift >= 64 {
  3085  					return ErrIntOverflowProposal
  3086  				}
  3087  				if iNdEx >= l {
  3088  					return io.ErrUnexpectedEOF
  3089  				}
  3090  				b := dAtA[iNdEx]
  3091  				iNdEx++
  3092  				msglen |= int(b&0x7F) << shift
  3093  				if b < 0x80 {
  3094  					break
  3095  				}
  3096  			}
  3097  			if msglen < 0 {
  3098  				return ErrInvalidLengthProposal
  3099  			}
  3100  			postIndex := iNdEx + msglen
  3101  			if postIndex < 0 {
  3102  				return ErrInvalidLengthProposal
  3103  			}
  3104  			if postIndex > l {
  3105  				return io.ErrUnexpectedEOF
  3106  			}
  3107  			if m.End == nil {
  3108  				m.End = new(time.Time)
  3109  			}
  3110  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.End, dAtA[iNdEx:postIndex]); err != nil {
  3111  				return err
  3112  			}
  3113  			iNdEx = postIndex
  3114  		default:
  3115  			iNdEx = preIndex
  3116  			skippy, err := skipProposal(dAtA[iNdEx:])
  3117  			if err != nil {
  3118  				return err
  3119  			}
  3120  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3121  				return ErrInvalidLengthProposal
  3122  			}
  3123  			if (iNdEx + skippy) > l {
  3124  				return io.ErrUnexpectedEOF
  3125  			}
  3126  			iNdEx += skippy
  3127  		}
  3128  	}
  3129  
  3130  	if iNdEx > l {
  3131  		return io.ErrUnexpectedEOF
  3132  	}
  3133  	return nil
  3134  }
  3135  func (m *ProposalInitializePhase) Unmarshal(dAtA []byte) error {
  3136  	l := len(dAtA)
  3137  	iNdEx := 0
  3138  	for iNdEx < l {
  3139  		preIndex := iNdEx
  3140  		var wire uint64
  3141  		for shift := uint(0); ; shift += 7 {
  3142  			if shift >= 64 {
  3143  				return ErrIntOverflowProposal
  3144  			}
  3145  			if iNdEx >= l {
  3146  				return io.ErrUnexpectedEOF
  3147  			}
  3148  			b := dAtA[iNdEx]
  3149  			iNdEx++
  3150  			wire |= uint64(b&0x7F) << shift
  3151  			if b < 0x80 {
  3152  				break
  3153  			}
  3154  		}
  3155  		fieldNum := int32(wire >> 3)
  3156  		wireType := int(wire & 0x7)
  3157  		if wireType == 4 {
  3158  			return fmt.Errorf("proto: ProposalInitializePhase: wiretype end group for non-group")
  3159  		}
  3160  		if fieldNum <= 0 {
  3161  			return fmt.Errorf("proto: ProposalInitializePhase: illegal tag %d (wire type %d)", fieldNum, wire)
  3162  		}
  3163  		switch fieldNum {
  3164  		case 1:
  3165  			if wireType != 2 {
  3166  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPhaseStatus", wireType)
  3167  			}
  3168  			var msglen int
  3169  			for shift := uint(0); ; shift += 7 {
  3170  				if shift >= 64 {
  3171  					return ErrIntOverflowProposal
  3172  				}
  3173  				if iNdEx >= l {
  3174  					return io.ErrUnexpectedEOF
  3175  				}
  3176  				b := dAtA[iNdEx]
  3177  				iNdEx++
  3178  				msglen |= int(b&0x7F) << shift
  3179  				if b < 0x80 {
  3180  					break
  3181  				}
  3182  			}
  3183  			if msglen < 0 {
  3184  				return ErrInvalidLengthProposal
  3185  			}
  3186  			postIndex := iNdEx + msglen
  3187  			if postIndex < 0 {
  3188  				return ErrInvalidLengthProposal
  3189  			}
  3190  			if postIndex > l {
  3191  				return io.ErrUnexpectedEOF
  3192  			}
  3193  			if err := m.ProposalPhaseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3194  				return err
  3195  			}
  3196  			iNdEx = postIndex
  3197  		case 2:
  3198  			if wireType != 0 {
  3199  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  3200  			}
  3201  			m.State = 0
  3202  			for shift := uint(0); ; shift += 7 {
  3203  				if shift >= 64 {
  3204  					return ErrIntOverflowProposal
  3205  				}
  3206  				if iNdEx >= l {
  3207  					return io.ErrUnexpectedEOF
  3208  				}
  3209  				b := dAtA[iNdEx]
  3210  				iNdEx++
  3211  				m.State |= ProposalInitializePhase_State(b&0x7F) << shift
  3212  				if b < 0x80 {
  3213  					break
  3214  				}
  3215  			}
  3216  		default:
  3217  			iNdEx = preIndex
  3218  			skippy, err := skipProposal(dAtA[iNdEx:])
  3219  			if err != nil {
  3220  				return err
  3221  			}
  3222  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3223  				return ErrInvalidLengthProposal
  3224  			}
  3225  			if (iNdEx + skippy) > l {
  3226  				return io.ErrUnexpectedEOF
  3227  			}
  3228  			iNdEx += skippy
  3229  		}
  3230  	}
  3231  
  3232  	if iNdEx > l {
  3233  		return io.ErrUnexpectedEOF
  3234  	}
  3235  	return nil
  3236  }
  3237  func (m *ProposalValidatePhase) Unmarshal(dAtA []byte) error {
  3238  	l := len(dAtA)
  3239  	iNdEx := 0
  3240  	for iNdEx < l {
  3241  		preIndex := iNdEx
  3242  		var wire uint64
  3243  		for shift := uint(0); ; shift += 7 {
  3244  			if shift >= 64 {
  3245  				return ErrIntOverflowProposal
  3246  			}
  3247  			if iNdEx >= l {
  3248  				return io.ErrUnexpectedEOF
  3249  			}
  3250  			b := dAtA[iNdEx]
  3251  			iNdEx++
  3252  			wire |= uint64(b&0x7F) << shift
  3253  			if b < 0x80 {
  3254  				break
  3255  			}
  3256  		}
  3257  		fieldNum := int32(wire >> 3)
  3258  		wireType := int(wire & 0x7)
  3259  		if wireType == 4 {
  3260  			return fmt.Errorf("proto: ProposalValidatePhase: wiretype end group for non-group")
  3261  		}
  3262  		if fieldNum <= 0 {
  3263  			return fmt.Errorf("proto: ProposalValidatePhase: illegal tag %d (wire type %d)", fieldNum, wire)
  3264  		}
  3265  		switch fieldNum {
  3266  		case 1:
  3267  			if wireType != 2 {
  3268  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPhaseStatus", wireType)
  3269  			}
  3270  			var msglen int
  3271  			for shift := uint(0); ; shift += 7 {
  3272  				if shift >= 64 {
  3273  					return ErrIntOverflowProposal
  3274  				}
  3275  				if iNdEx >= l {
  3276  					return io.ErrUnexpectedEOF
  3277  				}
  3278  				b := dAtA[iNdEx]
  3279  				iNdEx++
  3280  				msglen |= int(b&0x7F) << shift
  3281  				if b < 0x80 {
  3282  					break
  3283  				}
  3284  			}
  3285  			if msglen < 0 {
  3286  				return ErrInvalidLengthProposal
  3287  			}
  3288  			postIndex := iNdEx + msglen
  3289  			if postIndex < 0 {
  3290  				return ErrInvalidLengthProposal
  3291  			}
  3292  			if postIndex > l {
  3293  				return io.ErrUnexpectedEOF
  3294  			}
  3295  			if err := m.ProposalPhaseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3296  				return err
  3297  			}
  3298  			iNdEx = postIndex
  3299  		case 2:
  3300  			if wireType != 0 {
  3301  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  3302  			}
  3303  			m.State = 0
  3304  			for shift := uint(0); ; shift += 7 {
  3305  				if shift >= 64 {
  3306  					return ErrIntOverflowProposal
  3307  				}
  3308  				if iNdEx >= l {
  3309  					return io.ErrUnexpectedEOF
  3310  				}
  3311  				b := dAtA[iNdEx]
  3312  				iNdEx++
  3313  				m.State |= ProposalValidatePhase_State(b&0x7F) << shift
  3314  				if b < 0x80 {
  3315  					break
  3316  				}
  3317  			}
  3318  		case 3:
  3319  			if wireType != 2 {
  3320  				return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
  3321  			}
  3322  			var msglen int
  3323  			for shift := uint(0); ; shift += 7 {
  3324  				if shift >= 64 {
  3325  					return ErrIntOverflowProposal
  3326  				}
  3327  				if iNdEx >= l {
  3328  					return io.ErrUnexpectedEOF
  3329  				}
  3330  				b := dAtA[iNdEx]
  3331  				iNdEx++
  3332  				msglen |= int(b&0x7F) << shift
  3333  				if b < 0x80 {
  3334  					break
  3335  				}
  3336  			}
  3337  			if msglen < 0 {
  3338  				return ErrInvalidLengthProposal
  3339  			}
  3340  			postIndex := iNdEx + msglen
  3341  			if postIndex < 0 {
  3342  				return ErrInvalidLengthProposal
  3343  			}
  3344  			if postIndex > l {
  3345  				return io.ErrUnexpectedEOF
  3346  			}
  3347  			if m.Failure == nil {
  3348  				m.Failure = &Failure{}
  3349  			}
  3350  			if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3351  				return err
  3352  			}
  3353  			iNdEx = postIndex
  3354  		default:
  3355  			iNdEx = preIndex
  3356  			skippy, err := skipProposal(dAtA[iNdEx:])
  3357  			if err != nil {
  3358  				return err
  3359  			}
  3360  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3361  				return ErrInvalidLengthProposal
  3362  			}
  3363  			if (iNdEx + skippy) > l {
  3364  				return io.ErrUnexpectedEOF
  3365  			}
  3366  			iNdEx += skippy
  3367  		}
  3368  	}
  3369  
  3370  	if iNdEx > l {
  3371  		return io.ErrUnexpectedEOF
  3372  	}
  3373  	return nil
  3374  }
  3375  func (m *ProposalCommitPhase) Unmarshal(dAtA []byte) error {
  3376  	l := len(dAtA)
  3377  	iNdEx := 0
  3378  	for iNdEx < l {
  3379  		preIndex := iNdEx
  3380  		var wire uint64
  3381  		for shift := uint(0); ; shift += 7 {
  3382  			if shift >= 64 {
  3383  				return ErrIntOverflowProposal
  3384  			}
  3385  			if iNdEx >= l {
  3386  				return io.ErrUnexpectedEOF
  3387  			}
  3388  			b := dAtA[iNdEx]
  3389  			iNdEx++
  3390  			wire |= uint64(b&0x7F) << shift
  3391  			if b < 0x80 {
  3392  				break
  3393  			}
  3394  		}
  3395  		fieldNum := int32(wire >> 3)
  3396  		wireType := int(wire & 0x7)
  3397  		if wireType == 4 {
  3398  			return fmt.Errorf("proto: ProposalCommitPhase: wiretype end group for non-group")
  3399  		}
  3400  		if fieldNum <= 0 {
  3401  			return fmt.Errorf("proto: ProposalCommitPhase: illegal tag %d (wire type %d)", fieldNum, wire)
  3402  		}
  3403  		switch fieldNum {
  3404  		case 1:
  3405  			if wireType != 2 {
  3406  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPhaseStatus", wireType)
  3407  			}
  3408  			var msglen int
  3409  			for shift := uint(0); ; shift += 7 {
  3410  				if shift >= 64 {
  3411  					return ErrIntOverflowProposal
  3412  				}
  3413  				if iNdEx >= l {
  3414  					return io.ErrUnexpectedEOF
  3415  				}
  3416  				b := dAtA[iNdEx]
  3417  				iNdEx++
  3418  				msglen |= int(b&0x7F) << shift
  3419  				if b < 0x80 {
  3420  					break
  3421  				}
  3422  			}
  3423  			if msglen < 0 {
  3424  				return ErrInvalidLengthProposal
  3425  			}
  3426  			postIndex := iNdEx + msglen
  3427  			if postIndex < 0 {
  3428  				return ErrInvalidLengthProposal
  3429  			}
  3430  			if postIndex > l {
  3431  				return io.ErrUnexpectedEOF
  3432  			}
  3433  			if err := m.ProposalPhaseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3434  				return err
  3435  			}
  3436  			iNdEx = postIndex
  3437  		case 2:
  3438  			if wireType != 0 {
  3439  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  3440  			}
  3441  			m.State = 0
  3442  			for shift := uint(0); ; shift += 7 {
  3443  				if shift >= 64 {
  3444  					return ErrIntOverflowProposal
  3445  				}
  3446  				if iNdEx >= l {
  3447  					return io.ErrUnexpectedEOF
  3448  				}
  3449  				b := dAtA[iNdEx]
  3450  				iNdEx++
  3451  				m.State |= ProposalCommitPhase_State(b&0x7F) << shift
  3452  				if b < 0x80 {
  3453  					break
  3454  				}
  3455  			}
  3456  		default:
  3457  			iNdEx = preIndex
  3458  			skippy, err := skipProposal(dAtA[iNdEx:])
  3459  			if err != nil {
  3460  				return err
  3461  			}
  3462  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3463  				return ErrInvalidLengthProposal
  3464  			}
  3465  			if (iNdEx + skippy) > l {
  3466  				return io.ErrUnexpectedEOF
  3467  			}
  3468  			iNdEx += skippy
  3469  		}
  3470  	}
  3471  
  3472  	if iNdEx > l {
  3473  		return io.ErrUnexpectedEOF
  3474  	}
  3475  	return nil
  3476  }
  3477  func (m *ProposalApplyPhase) Unmarshal(dAtA []byte) error {
  3478  	l := len(dAtA)
  3479  	iNdEx := 0
  3480  	for iNdEx < l {
  3481  		preIndex := iNdEx
  3482  		var wire uint64
  3483  		for shift := uint(0); ; shift += 7 {
  3484  			if shift >= 64 {
  3485  				return ErrIntOverflowProposal
  3486  			}
  3487  			if iNdEx >= l {
  3488  				return io.ErrUnexpectedEOF
  3489  			}
  3490  			b := dAtA[iNdEx]
  3491  			iNdEx++
  3492  			wire |= uint64(b&0x7F) << shift
  3493  			if b < 0x80 {
  3494  				break
  3495  			}
  3496  		}
  3497  		fieldNum := int32(wire >> 3)
  3498  		wireType := int(wire & 0x7)
  3499  		if wireType == 4 {
  3500  			return fmt.Errorf("proto: ProposalApplyPhase: wiretype end group for non-group")
  3501  		}
  3502  		if fieldNum <= 0 {
  3503  			return fmt.Errorf("proto: ProposalApplyPhase: illegal tag %d (wire type %d)", fieldNum, wire)
  3504  		}
  3505  		switch fieldNum {
  3506  		case 1:
  3507  			if wireType != 2 {
  3508  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPhaseStatus", wireType)
  3509  			}
  3510  			var msglen int
  3511  			for shift := uint(0); ; shift += 7 {
  3512  				if shift >= 64 {
  3513  					return ErrIntOverflowProposal
  3514  				}
  3515  				if iNdEx >= l {
  3516  					return io.ErrUnexpectedEOF
  3517  				}
  3518  				b := dAtA[iNdEx]
  3519  				iNdEx++
  3520  				msglen |= int(b&0x7F) << shift
  3521  				if b < 0x80 {
  3522  					break
  3523  				}
  3524  			}
  3525  			if msglen < 0 {
  3526  				return ErrInvalidLengthProposal
  3527  			}
  3528  			postIndex := iNdEx + msglen
  3529  			if postIndex < 0 {
  3530  				return ErrInvalidLengthProposal
  3531  			}
  3532  			if postIndex > l {
  3533  				return io.ErrUnexpectedEOF
  3534  			}
  3535  			if err := m.ProposalPhaseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3536  				return err
  3537  			}
  3538  			iNdEx = postIndex
  3539  		case 2:
  3540  			if wireType != 0 {
  3541  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  3542  			}
  3543  			m.State = 0
  3544  			for shift := uint(0); ; shift += 7 {
  3545  				if shift >= 64 {
  3546  					return ErrIntOverflowProposal
  3547  				}
  3548  				if iNdEx >= l {
  3549  					return io.ErrUnexpectedEOF
  3550  				}
  3551  				b := dAtA[iNdEx]
  3552  				iNdEx++
  3553  				m.State |= ProposalApplyPhase_State(b&0x7F) << shift
  3554  				if b < 0x80 {
  3555  					break
  3556  				}
  3557  			}
  3558  		case 3:
  3559  			if wireType != 0 {
  3560  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  3561  			}
  3562  			m.Term = 0
  3563  			for shift := uint(0); ; shift += 7 {
  3564  				if shift >= 64 {
  3565  					return ErrIntOverflowProposal
  3566  				}
  3567  				if iNdEx >= l {
  3568  					return io.ErrUnexpectedEOF
  3569  				}
  3570  				b := dAtA[iNdEx]
  3571  				iNdEx++
  3572  				m.Term |= MastershipTerm(b&0x7F) << shift
  3573  				if b < 0x80 {
  3574  					break
  3575  				}
  3576  			}
  3577  		case 4:
  3578  			if wireType != 2 {
  3579  				return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
  3580  			}
  3581  			var msglen int
  3582  			for shift := uint(0); ; shift += 7 {
  3583  				if shift >= 64 {
  3584  					return ErrIntOverflowProposal
  3585  				}
  3586  				if iNdEx >= l {
  3587  					return io.ErrUnexpectedEOF
  3588  				}
  3589  				b := dAtA[iNdEx]
  3590  				iNdEx++
  3591  				msglen |= int(b&0x7F) << shift
  3592  				if b < 0x80 {
  3593  					break
  3594  				}
  3595  			}
  3596  			if msglen < 0 {
  3597  				return ErrInvalidLengthProposal
  3598  			}
  3599  			postIndex := iNdEx + msglen
  3600  			if postIndex < 0 {
  3601  				return ErrInvalidLengthProposal
  3602  			}
  3603  			if postIndex > l {
  3604  				return io.ErrUnexpectedEOF
  3605  			}
  3606  			if m.Failure == nil {
  3607  				m.Failure = &Failure{}
  3608  			}
  3609  			if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3610  				return err
  3611  			}
  3612  			iNdEx = postIndex
  3613  		default:
  3614  			iNdEx = preIndex
  3615  			skippy, err := skipProposal(dAtA[iNdEx:])
  3616  			if err != nil {
  3617  				return err
  3618  			}
  3619  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3620  				return ErrInvalidLengthProposal
  3621  			}
  3622  			if (iNdEx + skippy) > l {
  3623  				return io.ErrUnexpectedEOF
  3624  			}
  3625  			iNdEx += skippy
  3626  		}
  3627  	}
  3628  
  3629  	if iNdEx > l {
  3630  		return io.ErrUnexpectedEOF
  3631  	}
  3632  	return nil
  3633  }
  3634  func (m *ProposalAbortPhase) Unmarshal(dAtA []byte) error {
  3635  	l := len(dAtA)
  3636  	iNdEx := 0
  3637  	for iNdEx < l {
  3638  		preIndex := iNdEx
  3639  		var wire uint64
  3640  		for shift := uint(0); ; shift += 7 {
  3641  			if shift >= 64 {
  3642  				return ErrIntOverflowProposal
  3643  			}
  3644  			if iNdEx >= l {
  3645  				return io.ErrUnexpectedEOF
  3646  			}
  3647  			b := dAtA[iNdEx]
  3648  			iNdEx++
  3649  			wire |= uint64(b&0x7F) << shift
  3650  			if b < 0x80 {
  3651  				break
  3652  			}
  3653  		}
  3654  		fieldNum := int32(wire >> 3)
  3655  		wireType := int(wire & 0x7)
  3656  		if wireType == 4 {
  3657  			return fmt.Errorf("proto: ProposalAbortPhase: wiretype end group for non-group")
  3658  		}
  3659  		if fieldNum <= 0 {
  3660  			return fmt.Errorf("proto: ProposalAbortPhase: illegal tag %d (wire type %d)", fieldNum, wire)
  3661  		}
  3662  		switch fieldNum {
  3663  		case 1:
  3664  			if wireType != 2 {
  3665  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPhaseStatus", wireType)
  3666  			}
  3667  			var msglen int
  3668  			for shift := uint(0); ; shift += 7 {
  3669  				if shift >= 64 {
  3670  					return ErrIntOverflowProposal
  3671  				}
  3672  				if iNdEx >= l {
  3673  					return io.ErrUnexpectedEOF
  3674  				}
  3675  				b := dAtA[iNdEx]
  3676  				iNdEx++
  3677  				msglen |= int(b&0x7F) << shift
  3678  				if b < 0x80 {
  3679  					break
  3680  				}
  3681  			}
  3682  			if msglen < 0 {
  3683  				return ErrInvalidLengthProposal
  3684  			}
  3685  			postIndex := iNdEx + msglen
  3686  			if postIndex < 0 {
  3687  				return ErrInvalidLengthProposal
  3688  			}
  3689  			if postIndex > l {
  3690  				return io.ErrUnexpectedEOF
  3691  			}
  3692  			if err := m.ProposalPhaseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3693  				return err
  3694  			}
  3695  			iNdEx = postIndex
  3696  		case 2:
  3697  			if wireType != 0 {
  3698  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  3699  			}
  3700  			m.State = 0
  3701  			for shift := uint(0); ; shift += 7 {
  3702  				if shift >= 64 {
  3703  					return ErrIntOverflowProposal
  3704  				}
  3705  				if iNdEx >= l {
  3706  					return io.ErrUnexpectedEOF
  3707  				}
  3708  				b := dAtA[iNdEx]
  3709  				iNdEx++
  3710  				m.State |= ProposalAbortPhase_State(b&0x7F) << shift
  3711  				if b < 0x80 {
  3712  					break
  3713  				}
  3714  			}
  3715  		default:
  3716  			iNdEx = preIndex
  3717  			skippy, err := skipProposal(dAtA[iNdEx:])
  3718  			if err != nil {
  3719  				return err
  3720  			}
  3721  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3722  				return ErrInvalidLengthProposal
  3723  			}
  3724  			if (iNdEx + skippy) > l {
  3725  				return io.ErrUnexpectedEOF
  3726  			}
  3727  			iNdEx += skippy
  3728  		}
  3729  	}
  3730  
  3731  	if iNdEx > l {
  3732  		return io.ErrUnexpectedEOF
  3733  	}
  3734  	return nil
  3735  }
  3736  func (m *ProposalEvent) Unmarshal(dAtA []byte) error {
  3737  	l := len(dAtA)
  3738  	iNdEx := 0
  3739  	for iNdEx < l {
  3740  		preIndex := iNdEx
  3741  		var wire uint64
  3742  		for shift := uint(0); ; shift += 7 {
  3743  			if shift >= 64 {
  3744  				return ErrIntOverflowProposal
  3745  			}
  3746  			if iNdEx >= l {
  3747  				return io.ErrUnexpectedEOF
  3748  			}
  3749  			b := dAtA[iNdEx]
  3750  			iNdEx++
  3751  			wire |= uint64(b&0x7F) << shift
  3752  			if b < 0x80 {
  3753  				break
  3754  			}
  3755  		}
  3756  		fieldNum := int32(wire >> 3)
  3757  		wireType := int(wire & 0x7)
  3758  		if wireType == 4 {
  3759  			return fmt.Errorf("proto: ProposalEvent: wiretype end group for non-group")
  3760  		}
  3761  		if fieldNum <= 0 {
  3762  			return fmt.Errorf("proto: ProposalEvent: illegal tag %d (wire type %d)", fieldNum, wire)
  3763  		}
  3764  		switch fieldNum {
  3765  		case 1:
  3766  			if wireType != 0 {
  3767  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3768  			}
  3769  			m.Type = 0
  3770  			for shift := uint(0); ; shift += 7 {
  3771  				if shift >= 64 {
  3772  					return ErrIntOverflowProposal
  3773  				}
  3774  				if iNdEx >= l {
  3775  					return io.ErrUnexpectedEOF
  3776  				}
  3777  				b := dAtA[iNdEx]
  3778  				iNdEx++
  3779  				m.Type |= ProposalEvent_EventType(b&0x7F) << shift
  3780  				if b < 0x80 {
  3781  					break
  3782  				}
  3783  			}
  3784  		case 2:
  3785  			if wireType != 2 {
  3786  				return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  3787  			}
  3788  			var msglen int
  3789  			for shift := uint(0); ; shift += 7 {
  3790  				if shift >= 64 {
  3791  					return ErrIntOverflowProposal
  3792  				}
  3793  				if iNdEx >= l {
  3794  					return io.ErrUnexpectedEOF
  3795  				}
  3796  				b := dAtA[iNdEx]
  3797  				iNdEx++
  3798  				msglen |= int(b&0x7F) << shift
  3799  				if b < 0x80 {
  3800  					break
  3801  				}
  3802  			}
  3803  			if msglen < 0 {
  3804  				return ErrInvalidLengthProposal
  3805  			}
  3806  			postIndex := iNdEx + msglen
  3807  			if postIndex < 0 {
  3808  				return ErrInvalidLengthProposal
  3809  			}
  3810  			if postIndex > l {
  3811  				return io.ErrUnexpectedEOF
  3812  			}
  3813  			if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3814  				return err
  3815  			}
  3816  			iNdEx = postIndex
  3817  		default:
  3818  			iNdEx = preIndex
  3819  			skippy, err := skipProposal(dAtA[iNdEx:])
  3820  			if err != nil {
  3821  				return err
  3822  			}
  3823  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3824  				return ErrInvalidLengthProposal
  3825  			}
  3826  			if (iNdEx + skippy) > l {
  3827  				return io.ErrUnexpectedEOF
  3828  			}
  3829  			iNdEx += skippy
  3830  		}
  3831  	}
  3832  
  3833  	if iNdEx > l {
  3834  		return io.ErrUnexpectedEOF
  3835  	}
  3836  	return nil
  3837  }
  3838  func skipProposal(dAtA []byte) (n int, err error) {
  3839  	l := len(dAtA)
  3840  	iNdEx := 0
  3841  	depth := 0
  3842  	for iNdEx < l {
  3843  		var wire uint64
  3844  		for shift := uint(0); ; shift += 7 {
  3845  			if shift >= 64 {
  3846  				return 0, ErrIntOverflowProposal
  3847  			}
  3848  			if iNdEx >= l {
  3849  				return 0, io.ErrUnexpectedEOF
  3850  			}
  3851  			b := dAtA[iNdEx]
  3852  			iNdEx++
  3853  			wire |= (uint64(b) & 0x7F) << shift
  3854  			if b < 0x80 {
  3855  				break
  3856  			}
  3857  		}
  3858  		wireType := int(wire & 0x7)
  3859  		switch wireType {
  3860  		case 0:
  3861  			for shift := uint(0); ; shift += 7 {
  3862  				if shift >= 64 {
  3863  					return 0, ErrIntOverflowProposal
  3864  				}
  3865  				if iNdEx >= l {
  3866  					return 0, io.ErrUnexpectedEOF
  3867  				}
  3868  				iNdEx++
  3869  				if dAtA[iNdEx-1] < 0x80 {
  3870  					break
  3871  				}
  3872  			}
  3873  		case 1:
  3874  			iNdEx += 8
  3875  		case 2:
  3876  			var length int
  3877  			for shift := uint(0); ; shift += 7 {
  3878  				if shift >= 64 {
  3879  					return 0, ErrIntOverflowProposal
  3880  				}
  3881  				if iNdEx >= l {
  3882  					return 0, io.ErrUnexpectedEOF
  3883  				}
  3884  				b := dAtA[iNdEx]
  3885  				iNdEx++
  3886  				length |= (int(b) & 0x7F) << shift
  3887  				if b < 0x80 {
  3888  					break
  3889  				}
  3890  			}
  3891  			if length < 0 {
  3892  				return 0, ErrInvalidLengthProposal
  3893  			}
  3894  			iNdEx += length
  3895  		case 3:
  3896  			depth++
  3897  		case 4:
  3898  			if depth == 0 {
  3899  				return 0, ErrUnexpectedEndOfGroupProposal
  3900  			}
  3901  			depth--
  3902  		case 5:
  3903  			iNdEx += 4
  3904  		default:
  3905  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3906  		}
  3907  		if iNdEx < 0 {
  3908  			return 0, ErrInvalidLengthProposal
  3909  		}
  3910  		if depth == 0 {
  3911  			return iNdEx, nil
  3912  		}
  3913  	}
  3914  	return 0, io.ErrUnexpectedEOF
  3915  }
  3916  
  3917  var (
  3918  	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
  3919  	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
  3920  	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
  3921  )