github.com/Finschia/finschia-sdk@v0.48.1/x/authz/genesis.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/authz/v1beta1/genesis.proto 3 4 package authz 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 io "io" 11 math "math" 12 math_bits "math/bits" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 // GenesisState defines the authz module's genesis state. 27 type GenesisState struct { 28 Authorization []GrantAuthorization `protobuf:"bytes,1,rep,name=authorization,proto3" json:"authorization"` 29 } 30 31 func (m *GenesisState) Reset() { *m = GenesisState{} } 32 func (m *GenesisState) String() string { return proto.CompactTextString(m) } 33 func (*GenesisState) ProtoMessage() {} 34 func (*GenesisState) Descriptor() ([]byte, []int) { 35 return fileDescriptor_4c2fbb971da7c892, []int{0} 36 } 37 func (m *GenesisState) XXX_Unmarshal(b []byte) error { 38 return m.Unmarshal(b) 39 } 40 func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 41 if deterministic { 42 return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) 43 } else { 44 b = b[:cap(b)] 45 n, err := m.MarshalToSizedBuffer(b) 46 if err != nil { 47 return nil, err 48 } 49 return b[:n], nil 50 } 51 } 52 func (m *GenesisState) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_GenesisState.Merge(m, src) 54 } 55 func (m *GenesisState) XXX_Size() int { 56 return m.Size() 57 } 58 func (m *GenesisState) XXX_DiscardUnknown() { 59 xxx_messageInfo_GenesisState.DiscardUnknown(m) 60 } 61 62 var xxx_messageInfo_GenesisState proto.InternalMessageInfo 63 64 func (m *GenesisState) GetAuthorization() []GrantAuthorization { 65 if m != nil { 66 return m.Authorization 67 } 68 return nil 69 } 70 71 func init() { 72 proto.RegisterType((*GenesisState)(nil), "cosmos.authz.v1beta1.GenesisState") 73 } 74 75 func init() { 76 proto.RegisterFile("cosmos/authz/v1beta1/genesis.proto", fileDescriptor_4c2fbb971da7c892) 77 } 78 79 var fileDescriptor_4c2fbb971da7c892 = []byte{ 80 // 214 bytes of a gzipped FileDescriptorProto 81 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xce, 0x2f, 0xce, 82 0xcd, 0x2f, 0xd6, 0x4f, 0x2c, 0x2d, 0xc9, 0xa8, 0xd2, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 83 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 84 0x81, 0xa8, 0xd1, 0x03, 0xab, 0xd1, 0x83, 0xaa, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 85 0xd0, 0x07, 0xb1, 0x20, 0x6a, 0xa5, 0x14, 0xb0, 0x9a, 0x07, 0xd1, 0x09, 0x56, 0xa1, 0x94, 0xc2, 86 0xc5, 0xe3, 0x0e, 0x31, 0x3e, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0x28, 0x84, 0x8b, 0x17, 0x24, 0x9d, 87 0x5f, 0x94, 0x59, 0x95, 0x58, 0x92, 0x99, 0x9f, 0x27, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0xa4, 88 0xa1, 0x87, 0xcd, 0x56, 0x3d, 0xf7, 0xa2, 0xc4, 0xbc, 0x12, 0x47, 0x64, 0xf5, 0x4e, 0x2c, 0x27, 89 0xee, 0xc9, 0x33, 0x04, 0xa1, 0x1a, 0xe2, 0xe4, 0x74, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 90 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 91 0x72, 0x0c, 0x51, 0x1a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x6e, 92 0x99, 0x79, 0xc5, 0xc9, 0x19, 0x99, 0x89, 0xfa, 0x69, 0x50, 0x86, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 93 0x05, 0xc4, 0xbd, 0x49, 0x6c, 0x60, 0x07, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x04, 0x39, 94 0xcb, 0xfc, 0x24, 0x01, 0x00, 0x00, 95 } 96 97 func (m *GenesisState) Marshal() (dAtA []byte, err error) { 98 size := m.Size() 99 dAtA = make([]byte, size) 100 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 101 if err != nil { 102 return nil, err 103 } 104 return dAtA[:n], nil 105 } 106 107 func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { 108 size := m.Size() 109 return m.MarshalToSizedBuffer(dAtA[:size]) 110 } 111 112 func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 113 i := len(dAtA) 114 _ = i 115 var l int 116 _ = l 117 if len(m.Authorization) > 0 { 118 for iNdEx := len(m.Authorization) - 1; iNdEx >= 0; iNdEx-- { 119 { 120 size, err := m.Authorization[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 121 if err != nil { 122 return 0, err 123 } 124 i -= size 125 i = encodeVarintGenesis(dAtA, i, uint64(size)) 126 } 127 i-- 128 dAtA[i] = 0xa 129 } 130 } 131 return len(dAtA) - i, nil 132 } 133 134 func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { 135 offset -= sovGenesis(v) 136 base := offset 137 for v >= 1<<7 { 138 dAtA[offset] = uint8(v&0x7f | 0x80) 139 v >>= 7 140 offset++ 141 } 142 dAtA[offset] = uint8(v) 143 return base 144 } 145 func (m *GenesisState) Size() (n int) { 146 if m == nil { 147 return 0 148 } 149 var l int 150 _ = l 151 if len(m.Authorization) > 0 { 152 for _, e := range m.Authorization { 153 l = e.Size() 154 n += 1 + l + sovGenesis(uint64(l)) 155 } 156 } 157 return n 158 } 159 160 func sovGenesis(x uint64) (n int) { 161 return (math_bits.Len64(x|1) + 6) / 7 162 } 163 func sozGenesis(x uint64) (n int) { 164 return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 165 } 166 func (m *GenesisState) Unmarshal(dAtA []byte) error { 167 l := len(dAtA) 168 iNdEx := 0 169 for iNdEx < l { 170 preIndex := iNdEx 171 var wire uint64 172 for shift := uint(0); ; shift += 7 { 173 if shift >= 64 { 174 return ErrIntOverflowGenesis 175 } 176 if iNdEx >= l { 177 return io.ErrUnexpectedEOF 178 } 179 b := dAtA[iNdEx] 180 iNdEx++ 181 wire |= uint64(b&0x7F) << shift 182 if b < 0x80 { 183 break 184 } 185 } 186 fieldNum := int32(wire >> 3) 187 wireType := int(wire & 0x7) 188 if wireType == 4 { 189 return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") 190 } 191 if fieldNum <= 0 { 192 return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) 193 } 194 switch fieldNum { 195 case 1: 196 if wireType != 2 { 197 return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) 198 } 199 var msglen int 200 for shift := uint(0); ; shift += 7 { 201 if shift >= 64 { 202 return ErrIntOverflowGenesis 203 } 204 if iNdEx >= l { 205 return io.ErrUnexpectedEOF 206 } 207 b := dAtA[iNdEx] 208 iNdEx++ 209 msglen |= int(b&0x7F) << shift 210 if b < 0x80 { 211 break 212 } 213 } 214 if msglen < 0 { 215 return ErrInvalidLengthGenesis 216 } 217 postIndex := iNdEx + msglen 218 if postIndex < 0 { 219 return ErrInvalidLengthGenesis 220 } 221 if postIndex > l { 222 return io.ErrUnexpectedEOF 223 } 224 m.Authorization = append(m.Authorization, GrantAuthorization{}) 225 if err := m.Authorization[len(m.Authorization)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 226 return err 227 } 228 iNdEx = postIndex 229 default: 230 iNdEx = preIndex 231 skippy, err := skipGenesis(dAtA[iNdEx:]) 232 if err != nil { 233 return err 234 } 235 if (skippy < 0) || (iNdEx+skippy) < 0 { 236 return ErrInvalidLengthGenesis 237 } 238 if (iNdEx + skippy) > l { 239 return io.ErrUnexpectedEOF 240 } 241 iNdEx += skippy 242 } 243 } 244 245 if iNdEx > l { 246 return io.ErrUnexpectedEOF 247 } 248 return nil 249 } 250 func skipGenesis(dAtA []byte) (n int, err error) { 251 l := len(dAtA) 252 iNdEx := 0 253 depth := 0 254 for iNdEx < l { 255 var wire uint64 256 for shift := uint(0); ; shift += 7 { 257 if shift >= 64 { 258 return 0, ErrIntOverflowGenesis 259 } 260 if iNdEx >= l { 261 return 0, io.ErrUnexpectedEOF 262 } 263 b := dAtA[iNdEx] 264 iNdEx++ 265 wire |= (uint64(b) & 0x7F) << shift 266 if b < 0x80 { 267 break 268 } 269 } 270 wireType := int(wire & 0x7) 271 switch wireType { 272 case 0: 273 for shift := uint(0); ; shift += 7 { 274 if shift >= 64 { 275 return 0, ErrIntOverflowGenesis 276 } 277 if iNdEx >= l { 278 return 0, io.ErrUnexpectedEOF 279 } 280 iNdEx++ 281 if dAtA[iNdEx-1] < 0x80 { 282 break 283 } 284 } 285 case 1: 286 iNdEx += 8 287 case 2: 288 var length int 289 for shift := uint(0); ; shift += 7 { 290 if shift >= 64 { 291 return 0, ErrIntOverflowGenesis 292 } 293 if iNdEx >= l { 294 return 0, io.ErrUnexpectedEOF 295 } 296 b := dAtA[iNdEx] 297 iNdEx++ 298 length |= (int(b) & 0x7F) << shift 299 if b < 0x80 { 300 break 301 } 302 } 303 if length < 0 { 304 return 0, ErrInvalidLengthGenesis 305 } 306 iNdEx += length 307 case 3: 308 depth++ 309 case 4: 310 if depth == 0 { 311 return 0, ErrUnexpectedEndOfGroupGenesis 312 } 313 depth-- 314 case 5: 315 iNdEx += 4 316 default: 317 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 318 } 319 if iNdEx < 0 { 320 return 0, ErrInvalidLengthGenesis 321 } 322 if depth == 0 { 323 return iNdEx, nil 324 } 325 } 326 return 0, io.ErrUnexpectedEOF 327 } 328 329 var ( 330 ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") 331 ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") 332 ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") 333 )