github.com/InjectiveLabs/sdk-go@v1.53.0/chain/peggy/types/proposal.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/peggy/v1/proposal.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/cosmos-proto"
     9  	_ "github.com/cosmos/gogoproto/gogoproto"
    10  	proto "github.com/cosmos/gogoproto/proto"
    11  	io "io"
    12  	math "math"
    13  	math_bits "math/bits"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type BlacklistEthereumAddressesProposal struct {
    28  	Title              string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    29  	Description        string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    30  	BlacklistAddresses []string `protobuf:"bytes,3,rep,name=blacklist_addresses,json=blacklistAddresses,proto3" json:"blacklist_addresses,omitempty"`
    31  }
    32  
    33  func (m *BlacklistEthereumAddressesProposal) Reset()         { *m = BlacklistEthereumAddressesProposal{} }
    34  func (m *BlacklistEthereumAddressesProposal) String() string { return proto.CompactTextString(m) }
    35  func (*BlacklistEthereumAddressesProposal) ProtoMessage()    {}
    36  func (*BlacklistEthereumAddressesProposal) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_e5b158ea063afb2f, []int{0}
    38  }
    39  func (m *BlacklistEthereumAddressesProposal) XXX_Unmarshal(b []byte) error {
    40  	return m.Unmarshal(b)
    41  }
    42  func (m *BlacklistEthereumAddressesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	if deterministic {
    44  		return xxx_messageInfo_BlacklistEthereumAddressesProposal.Marshal(b, m, deterministic)
    45  	} else {
    46  		b = b[:cap(b)]
    47  		n, err := m.MarshalToSizedBuffer(b)
    48  		if err != nil {
    49  			return nil, err
    50  		}
    51  		return b[:n], nil
    52  	}
    53  }
    54  func (m *BlacklistEthereumAddressesProposal) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_BlacklistEthereumAddressesProposal.Merge(m, src)
    56  }
    57  func (m *BlacklistEthereumAddressesProposal) XXX_Size() int {
    58  	return m.Size()
    59  }
    60  func (m *BlacklistEthereumAddressesProposal) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_BlacklistEthereumAddressesProposal.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_BlacklistEthereumAddressesProposal proto.InternalMessageInfo
    65  
    66  type RevokeEthereumBlacklistProposal struct {
    67  	Title              string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    68  	Description        string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    69  	BlacklistAddresses []string `protobuf:"bytes,3,rep,name=blacklist_addresses,json=blacklistAddresses,proto3" json:"blacklist_addresses,omitempty"`
    70  }
    71  
    72  func (m *RevokeEthereumBlacklistProposal) Reset()         { *m = RevokeEthereumBlacklistProposal{} }
    73  func (m *RevokeEthereumBlacklistProposal) String() string { return proto.CompactTextString(m) }
    74  func (*RevokeEthereumBlacklistProposal) ProtoMessage()    {}
    75  func (*RevokeEthereumBlacklistProposal) Descriptor() ([]byte, []int) {
    76  	return fileDescriptor_e5b158ea063afb2f, []int{1}
    77  }
    78  func (m *RevokeEthereumBlacklistProposal) XXX_Unmarshal(b []byte) error {
    79  	return m.Unmarshal(b)
    80  }
    81  func (m *RevokeEthereumBlacklistProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    82  	if deterministic {
    83  		return xxx_messageInfo_RevokeEthereumBlacklistProposal.Marshal(b, m, deterministic)
    84  	} else {
    85  		b = b[:cap(b)]
    86  		n, err := m.MarshalToSizedBuffer(b)
    87  		if err != nil {
    88  			return nil, err
    89  		}
    90  		return b[:n], nil
    91  	}
    92  }
    93  func (m *RevokeEthereumBlacklistProposal) XXX_Merge(src proto.Message) {
    94  	xxx_messageInfo_RevokeEthereumBlacklistProposal.Merge(m, src)
    95  }
    96  func (m *RevokeEthereumBlacklistProposal) XXX_Size() int {
    97  	return m.Size()
    98  }
    99  func (m *RevokeEthereumBlacklistProposal) XXX_DiscardUnknown() {
   100  	xxx_messageInfo_RevokeEthereumBlacklistProposal.DiscardUnknown(m)
   101  }
   102  
   103  var xxx_messageInfo_RevokeEthereumBlacklistProposal proto.InternalMessageInfo
   104  
   105  func init() {
   106  	proto.RegisterType((*BlacklistEthereumAddressesProposal)(nil), "injective.peggy.v1.BlacklistEthereumAddressesProposal")
   107  	proto.RegisterType((*RevokeEthereumBlacklistProposal)(nil), "injective.peggy.v1.RevokeEthereumBlacklistProposal")
   108  }
   109  
   110  func init() { proto.RegisterFile("injective/peggy/v1/proposal.proto", fileDescriptor_e5b158ea063afb2f) }
   111  
   112  var fileDescriptor_e5b158ea063afb2f = []byte{
   113  	// 323 bytes of a gzipped FileDescriptorProto
   114  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x52, 0x3b, 0x4e, 0xc3, 0x40,
   115  	0x10, 0xf5, 0x12, 0x81, 0x14, 0xd3, 0x99, 0x14, 0x21, 0x85, 0x13, 0x52, 0xa0, 0x34, 0xf1, 0xca,
   116  	0xa2, 0xa3, 0x23, 0x88, 0x02, 0x41, 0x81, 0x52, 0xd2, 0x44, 0xfe, 0x8c, 0x9c, 0x25, 0xb6, 0x67,
   117  	0xb5, 0x3b, 0x59, 0x29, 0x37, 0xa0, 0xe4, 0x08, 0x39, 0x03, 0x82, 0x3b, 0x20, 0xaa, 0x94, 0x94,
   118  	0x28, 0x69, 0x38, 0x06, 0xc2, 0x3f, 0xe5, 0x08, 0x74, 0xfb, 0xde, 0x3c, 0xcd, 0x7b, 0xab, 0x37,
   119  	0xf6, 0x99, 0xc8, 0x9f, 0x20, 0x22, 0x61, 0x80, 0x4b, 0x48, 0x92, 0x15, 0x37, 0x3e, 0x97, 0x0a,
   120  	0x25, 0xea, 0x20, 0xf5, 0xa4, 0x42, 0x42, 0xc7, 0x69, 0x24, 0x5e, 0x21, 0xf1, 0x8c, 0xdf, 0x3b,
   121  	0x8d, 0x50, 0x67, 0xa8, 0x67, 0x85, 0x82, 0x97, 0xa0, 0x94, 0xf7, 0x3a, 0x09, 0x26, 0x58, 0xf2,
   122  	0x7f, 0xaf, 0x92, 0x1d, 0xbe, 0x33, 0x7b, 0x38, 0x49, 0x83, 0x68, 0x91, 0x0a, 0x4d, 0x37, 0x34,
   123  	0x07, 0x05, 0xcb, 0xec, 0x2a, 0x8e, 0x15, 0x68, 0x0d, 0xfa, 0xa1, 0x72, 0x74, 0x3a, 0xf6, 0x21,
   124  	0x09, 0x4a, 0xa1, 0xcb, 0x06, 0x6c, 0xd4, 0x9e, 0x96, 0xc0, 0x19, 0xd8, 0xc7, 0x31, 0xe8, 0x48,
   125  	0x09, 0x49, 0x02, 0xf3, 0xee, 0x41, 0x31, 0xdb, 0xa7, 0x1c, 0x6e, 0x9f, 0x84, 0xf5, 0xf6, 0x59,
   126  	0x50, 0xaf, 0xed, 0xb6, 0x06, 0xad, 0x51, 0x7b, 0xea, 0x34, 0xa3, 0xc6, 0xf0, 0xf2, 0xfc, 0x79,
   127  	0xdd, 0xb7, 0x7e, 0xd6, 0x7d, 0xeb, 0xf3, 0x6d, 0xdc, 0xab, 0xf2, 0x27, 0x68, 0x3c, 0xe3, 0x87,
   128  	0x40, 0x81, 0xef, 0x5d, 0x63, 0x4e, 0x90, 0xd3, 0xf0, 0x95, 0xd9, 0xfd, 0x29, 0x18, 0x5c, 0x40,
   129  	0x1d, 0xba, 0xf9, 0xc5, 0xbf, 0x0d, 0x3d, 0x81, 0x8f, 0xad, 0xcb, 0x36, 0x5b, 0x97, 0x7d, 0x6f,
   130  	0x5d, 0xf6, 0xb2, 0x73, 0xad, 0xcd, 0xce, 0xb5, 0xbe, 0x76, 0xae, 0xf5, 0x78, 0x97, 0x08, 0x9a,
   131  	0x2f, 0x43, 0x2f, 0xc2, 0x8c, 0xdf, 0xd6, 0xb5, 0xde, 0x07, 0xa1, 0xe6, 0x4d, 0xc9, 0xe3, 0x08,
   132  	0x15, 0xec, 0xc3, 0x79, 0x20, 0x72, 0x9e, 0x61, 0xbc, 0x4c, 0x41, 0x57, 0x47, 0x42, 0x2b, 0x09,
   133  	0x3a, 0x3c, 0x2a, 0xaa, 0xbd, 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x03, 0x58, 0x94, 0x44,
   134  	0x02, 0x00, 0x00,
   135  }
   136  
   137  func (m *BlacklistEthereumAddressesProposal) Marshal() (dAtA []byte, err error) {
   138  	size := m.Size()
   139  	dAtA = make([]byte, size)
   140  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return dAtA[:n], nil
   145  }
   146  
   147  func (m *BlacklistEthereumAddressesProposal) MarshalTo(dAtA []byte) (int, error) {
   148  	size := m.Size()
   149  	return m.MarshalToSizedBuffer(dAtA[:size])
   150  }
   151  
   152  func (m *BlacklistEthereumAddressesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   153  	i := len(dAtA)
   154  	_ = i
   155  	var l int
   156  	_ = l
   157  	if len(m.BlacklistAddresses) > 0 {
   158  		for iNdEx := len(m.BlacklistAddresses) - 1; iNdEx >= 0; iNdEx-- {
   159  			i -= len(m.BlacklistAddresses[iNdEx])
   160  			copy(dAtA[i:], m.BlacklistAddresses[iNdEx])
   161  			i = encodeVarintProposal(dAtA, i, uint64(len(m.BlacklistAddresses[iNdEx])))
   162  			i--
   163  			dAtA[i] = 0x1a
   164  		}
   165  	}
   166  	if len(m.Description) > 0 {
   167  		i -= len(m.Description)
   168  		copy(dAtA[i:], m.Description)
   169  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   170  		i--
   171  		dAtA[i] = 0x12
   172  	}
   173  	if len(m.Title) > 0 {
   174  		i -= len(m.Title)
   175  		copy(dAtA[i:], m.Title)
   176  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   177  		i--
   178  		dAtA[i] = 0xa
   179  	}
   180  	return len(dAtA) - i, nil
   181  }
   182  
   183  func (m *RevokeEthereumBlacklistProposal) Marshal() (dAtA []byte, err error) {
   184  	size := m.Size()
   185  	dAtA = make([]byte, size)
   186  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   187  	if err != nil {
   188  		return nil, err
   189  	}
   190  	return dAtA[:n], nil
   191  }
   192  
   193  func (m *RevokeEthereumBlacklistProposal) MarshalTo(dAtA []byte) (int, error) {
   194  	size := m.Size()
   195  	return m.MarshalToSizedBuffer(dAtA[:size])
   196  }
   197  
   198  func (m *RevokeEthereumBlacklistProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   199  	i := len(dAtA)
   200  	_ = i
   201  	var l int
   202  	_ = l
   203  	if len(m.BlacklistAddresses) > 0 {
   204  		for iNdEx := len(m.BlacklistAddresses) - 1; iNdEx >= 0; iNdEx-- {
   205  			i -= len(m.BlacklistAddresses[iNdEx])
   206  			copy(dAtA[i:], m.BlacklistAddresses[iNdEx])
   207  			i = encodeVarintProposal(dAtA, i, uint64(len(m.BlacklistAddresses[iNdEx])))
   208  			i--
   209  			dAtA[i] = 0x1a
   210  		}
   211  	}
   212  	if len(m.Description) > 0 {
   213  		i -= len(m.Description)
   214  		copy(dAtA[i:], m.Description)
   215  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   216  		i--
   217  		dAtA[i] = 0x12
   218  	}
   219  	if len(m.Title) > 0 {
   220  		i -= len(m.Title)
   221  		copy(dAtA[i:], m.Title)
   222  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   223  		i--
   224  		dAtA[i] = 0xa
   225  	}
   226  	return len(dAtA) - i, nil
   227  }
   228  
   229  func encodeVarintProposal(dAtA []byte, offset int, v uint64) int {
   230  	offset -= sovProposal(v)
   231  	base := offset
   232  	for v >= 1<<7 {
   233  		dAtA[offset] = uint8(v&0x7f | 0x80)
   234  		v >>= 7
   235  		offset++
   236  	}
   237  	dAtA[offset] = uint8(v)
   238  	return base
   239  }
   240  func (m *BlacklistEthereumAddressesProposal) Size() (n int) {
   241  	if m == nil {
   242  		return 0
   243  	}
   244  	var l int
   245  	_ = l
   246  	l = len(m.Title)
   247  	if l > 0 {
   248  		n += 1 + l + sovProposal(uint64(l))
   249  	}
   250  	l = len(m.Description)
   251  	if l > 0 {
   252  		n += 1 + l + sovProposal(uint64(l))
   253  	}
   254  	if len(m.BlacklistAddresses) > 0 {
   255  		for _, s := range m.BlacklistAddresses {
   256  			l = len(s)
   257  			n += 1 + l + sovProposal(uint64(l))
   258  		}
   259  	}
   260  	return n
   261  }
   262  
   263  func (m *RevokeEthereumBlacklistProposal) Size() (n int) {
   264  	if m == nil {
   265  		return 0
   266  	}
   267  	var l int
   268  	_ = l
   269  	l = len(m.Title)
   270  	if l > 0 {
   271  		n += 1 + l + sovProposal(uint64(l))
   272  	}
   273  	l = len(m.Description)
   274  	if l > 0 {
   275  		n += 1 + l + sovProposal(uint64(l))
   276  	}
   277  	if len(m.BlacklistAddresses) > 0 {
   278  		for _, s := range m.BlacklistAddresses {
   279  			l = len(s)
   280  			n += 1 + l + sovProposal(uint64(l))
   281  		}
   282  	}
   283  	return n
   284  }
   285  
   286  func sovProposal(x uint64) (n int) {
   287  	return (math_bits.Len64(x|1) + 6) / 7
   288  }
   289  func sozProposal(x uint64) (n int) {
   290  	return sovProposal(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   291  }
   292  func (m *BlacklistEthereumAddressesProposal) Unmarshal(dAtA []byte) error {
   293  	l := len(dAtA)
   294  	iNdEx := 0
   295  	for iNdEx < l {
   296  		preIndex := iNdEx
   297  		var wire uint64
   298  		for shift := uint(0); ; shift += 7 {
   299  			if shift >= 64 {
   300  				return ErrIntOverflowProposal
   301  			}
   302  			if iNdEx >= l {
   303  				return io.ErrUnexpectedEOF
   304  			}
   305  			b := dAtA[iNdEx]
   306  			iNdEx++
   307  			wire |= uint64(b&0x7F) << shift
   308  			if b < 0x80 {
   309  				break
   310  			}
   311  		}
   312  		fieldNum := int32(wire >> 3)
   313  		wireType := int(wire & 0x7)
   314  		if wireType == 4 {
   315  			return fmt.Errorf("proto: BlacklistEthereumAddressesProposal: wiretype end group for non-group")
   316  		}
   317  		if fieldNum <= 0 {
   318  			return fmt.Errorf("proto: BlacklistEthereumAddressesProposal: illegal tag %d (wire type %d)", fieldNum, wire)
   319  		}
   320  		switch fieldNum {
   321  		case 1:
   322  			if wireType != 2 {
   323  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
   324  			}
   325  			var stringLen uint64
   326  			for shift := uint(0); ; shift += 7 {
   327  				if shift >= 64 {
   328  					return ErrIntOverflowProposal
   329  				}
   330  				if iNdEx >= l {
   331  					return io.ErrUnexpectedEOF
   332  				}
   333  				b := dAtA[iNdEx]
   334  				iNdEx++
   335  				stringLen |= uint64(b&0x7F) << shift
   336  				if b < 0x80 {
   337  					break
   338  				}
   339  			}
   340  			intStringLen := int(stringLen)
   341  			if intStringLen < 0 {
   342  				return ErrInvalidLengthProposal
   343  			}
   344  			postIndex := iNdEx + intStringLen
   345  			if postIndex < 0 {
   346  				return ErrInvalidLengthProposal
   347  			}
   348  			if postIndex > l {
   349  				return io.ErrUnexpectedEOF
   350  			}
   351  			m.Title = string(dAtA[iNdEx:postIndex])
   352  			iNdEx = postIndex
   353  		case 2:
   354  			if wireType != 2 {
   355  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
   356  			}
   357  			var stringLen uint64
   358  			for shift := uint(0); ; shift += 7 {
   359  				if shift >= 64 {
   360  					return ErrIntOverflowProposal
   361  				}
   362  				if iNdEx >= l {
   363  					return io.ErrUnexpectedEOF
   364  				}
   365  				b := dAtA[iNdEx]
   366  				iNdEx++
   367  				stringLen |= uint64(b&0x7F) << shift
   368  				if b < 0x80 {
   369  					break
   370  				}
   371  			}
   372  			intStringLen := int(stringLen)
   373  			if intStringLen < 0 {
   374  				return ErrInvalidLengthProposal
   375  			}
   376  			postIndex := iNdEx + intStringLen
   377  			if postIndex < 0 {
   378  				return ErrInvalidLengthProposal
   379  			}
   380  			if postIndex > l {
   381  				return io.ErrUnexpectedEOF
   382  			}
   383  			m.Description = string(dAtA[iNdEx:postIndex])
   384  			iNdEx = postIndex
   385  		case 3:
   386  			if wireType != 2 {
   387  				return fmt.Errorf("proto: wrong wireType = %d for field BlacklistAddresses", wireType)
   388  			}
   389  			var stringLen uint64
   390  			for shift := uint(0); ; shift += 7 {
   391  				if shift >= 64 {
   392  					return ErrIntOverflowProposal
   393  				}
   394  				if iNdEx >= l {
   395  					return io.ErrUnexpectedEOF
   396  				}
   397  				b := dAtA[iNdEx]
   398  				iNdEx++
   399  				stringLen |= uint64(b&0x7F) << shift
   400  				if b < 0x80 {
   401  					break
   402  				}
   403  			}
   404  			intStringLen := int(stringLen)
   405  			if intStringLen < 0 {
   406  				return ErrInvalidLengthProposal
   407  			}
   408  			postIndex := iNdEx + intStringLen
   409  			if postIndex < 0 {
   410  				return ErrInvalidLengthProposal
   411  			}
   412  			if postIndex > l {
   413  				return io.ErrUnexpectedEOF
   414  			}
   415  			m.BlacklistAddresses = append(m.BlacklistAddresses, string(dAtA[iNdEx:postIndex]))
   416  			iNdEx = postIndex
   417  		default:
   418  			iNdEx = preIndex
   419  			skippy, err := skipProposal(dAtA[iNdEx:])
   420  			if err != nil {
   421  				return err
   422  			}
   423  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   424  				return ErrInvalidLengthProposal
   425  			}
   426  			if (iNdEx + skippy) > l {
   427  				return io.ErrUnexpectedEOF
   428  			}
   429  			iNdEx += skippy
   430  		}
   431  	}
   432  
   433  	if iNdEx > l {
   434  		return io.ErrUnexpectedEOF
   435  	}
   436  	return nil
   437  }
   438  func (m *RevokeEthereumBlacklistProposal) Unmarshal(dAtA []byte) error {
   439  	l := len(dAtA)
   440  	iNdEx := 0
   441  	for iNdEx < l {
   442  		preIndex := iNdEx
   443  		var wire uint64
   444  		for shift := uint(0); ; shift += 7 {
   445  			if shift >= 64 {
   446  				return ErrIntOverflowProposal
   447  			}
   448  			if iNdEx >= l {
   449  				return io.ErrUnexpectedEOF
   450  			}
   451  			b := dAtA[iNdEx]
   452  			iNdEx++
   453  			wire |= uint64(b&0x7F) << shift
   454  			if b < 0x80 {
   455  				break
   456  			}
   457  		}
   458  		fieldNum := int32(wire >> 3)
   459  		wireType := int(wire & 0x7)
   460  		if wireType == 4 {
   461  			return fmt.Errorf("proto: RevokeEthereumBlacklistProposal: wiretype end group for non-group")
   462  		}
   463  		if fieldNum <= 0 {
   464  			return fmt.Errorf("proto: RevokeEthereumBlacklistProposal: illegal tag %d (wire type %d)", fieldNum, wire)
   465  		}
   466  		switch fieldNum {
   467  		case 1:
   468  			if wireType != 2 {
   469  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
   470  			}
   471  			var stringLen uint64
   472  			for shift := uint(0); ; shift += 7 {
   473  				if shift >= 64 {
   474  					return ErrIntOverflowProposal
   475  				}
   476  				if iNdEx >= l {
   477  					return io.ErrUnexpectedEOF
   478  				}
   479  				b := dAtA[iNdEx]
   480  				iNdEx++
   481  				stringLen |= uint64(b&0x7F) << shift
   482  				if b < 0x80 {
   483  					break
   484  				}
   485  			}
   486  			intStringLen := int(stringLen)
   487  			if intStringLen < 0 {
   488  				return ErrInvalidLengthProposal
   489  			}
   490  			postIndex := iNdEx + intStringLen
   491  			if postIndex < 0 {
   492  				return ErrInvalidLengthProposal
   493  			}
   494  			if postIndex > l {
   495  				return io.ErrUnexpectedEOF
   496  			}
   497  			m.Title = string(dAtA[iNdEx:postIndex])
   498  			iNdEx = postIndex
   499  		case 2:
   500  			if wireType != 2 {
   501  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
   502  			}
   503  			var stringLen uint64
   504  			for shift := uint(0); ; shift += 7 {
   505  				if shift >= 64 {
   506  					return ErrIntOverflowProposal
   507  				}
   508  				if iNdEx >= l {
   509  					return io.ErrUnexpectedEOF
   510  				}
   511  				b := dAtA[iNdEx]
   512  				iNdEx++
   513  				stringLen |= uint64(b&0x7F) << shift
   514  				if b < 0x80 {
   515  					break
   516  				}
   517  			}
   518  			intStringLen := int(stringLen)
   519  			if intStringLen < 0 {
   520  				return ErrInvalidLengthProposal
   521  			}
   522  			postIndex := iNdEx + intStringLen
   523  			if postIndex < 0 {
   524  				return ErrInvalidLengthProposal
   525  			}
   526  			if postIndex > l {
   527  				return io.ErrUnexpectedEOF
   528  			}
   529  			m.Description = string(dAtA[iNdEx:postIndex])
   530  			iNdEx = postIndex
   531  		case 3:
   532  			if wireType != 2 {
   533  				return fmt.Errorf("proto: wrong wireType = %d for field BlacklistAddresses", wireType)
   534  			}
   535  			var stringLen uint64
   536  			for shift := uint(0); ; shift += 7 {
   537  				if shift >= 64 {
   538  					return ErrIntOverflowProposal
   539  				}
   540  				if iNdEx >= l {
   541  					return io.ErrUnexpectedEOF
   542  				}
   543  				b := dAtA[iNdEx]
   544  				iNdEx++
   545  				stringLen |= uint64(b&0x7F) << shift
   546  				if b < 0x80 {
   547  					break
   548  				}
   549  			}
   550  			intStringLen := int(stringLen)
   551  			if intStringLen < 0 {
   552  				return ErrInvalidLengthProposal
   553  			}
   554  			postIndex := iNdEx + intStringLen
   555  			if postIndex < 0 {
   556  				return ErrInvalidLengthProposal
   557  			}
   558  			if postIndex > l {
   559  				return io.ErrUnexpectedEOF
   560  			}
   561  			m.BlacklistAddresses = append(m.BlacklistAddresses, string(dAtA[iNdEx:postIndex]))
   562  			iNdEx = postIndex
   563  		default:
   564  			iNdEx = preIndex
   565  			skippy, err := skipProposal(dAtA[iNdEx:])
   566  			if err != nil {
   567  				return err
   568  			}
   569  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   570  				return ErrInvalidLengthProposal
   571  			}
   572  			if (iNdEx + skippy) > l {
   573  				return io.ErrUnexpectedEOF
   574  			}
   575  			iNdEx += skippy
   576  		}
   577  	}
   578  
   579  	if iNdEx > l {
   580  		return io.ErrUnexpectedEOF
   581  	}
   582  	return nil
   583  }
   584  func skipProposal(dAtA []byte) (n int, err error) {
   585  	l := len(dAtA)
   586  	iNdEx := 0
   587  	depth := 0
   588  	for iNdEx < l {
   589  		var wire uint64
   590  		for shift := uint(0); ; shift += 7 {
   591  			if shift >= 64 {
   592  				return 0, ErrIntOverflowProposal
   593  			}
   594  			if iNdEx >= l {
   595  				return 0, io.ErrUnexpectedEOF
   596  			}
   597  			b := dAtA[iNdEx]
   598  			iNdEx++
   599  			wire |= (uint64(b) & 0x7F) << shift
   600  			if b < 0x80 {
   601  				break
   602  			}
   603  		}
   604  		wireType := int(wire & 0x7)
   605  		switch wireType {
   606  		case 0:
   607  			for shift := uint(0); ; shift += 7 {
   608  				if shift >= 64 {
   609  					return 0, ErrIntOverflowProposal
   610  				}
   611  				if iNdEx >= l {
   612  					return 0, io.ErrUnexpectedEOF
   613  				}
   614  				iNdEx++
   615  				if dAtA[iNdEx-1] < 0x80 {
   616  					break
   617  				}
   618  			}
   619  		case 1:
   620  			iNdEx += 8
   621  		case 2:
   622  			var length int
   623  			for shift := uint(0); ; shift += 7 {
   624  				if shift >= 64 {
   625  					return 0, ErrIntOverflowProposal
   626  				}
   627  				if iNdEx >= l {
   628  					return 0, io.ErrUnexpectedEOF
   629  				}
   630  				b := dAtA[iNdEx]
   631  				iNdEx++
   632  				length |= (int(b) & 0x7F) << shift
   633  				if b < 0x80 {
   634  					break
   635  				}
   636  			}
   637  			if length < 0 {
   638  				return 0, ErrInvalidLengthProposal
   639  			}
   640  			iNdEx += length
   641  		case 3:
   642  			depth++
   643  		case 4:
   644  			if depth == 0 {
   645  				return 0, ErrUnexpectedEndOfGroupProposal
   646  			}
   647  			depth--
   648  		case 5:
   649  			iNdEx += 4
   650  		default:
   651  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   652  		}
   653  		if iNdEx < 0 {
   654  			return 0, ErrInvalidLengthProposal
   655  		}
   656  		if depth == 0 {
   657  			return iNdEx, nil
   658  		}
   659  	}
   660  	return 0, io.ErrUnexpectedEOF
   661  }
   662  
   663  var (
   664  	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
   665  	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
   666  	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
   667  )