github.com/Finschia/finschia-sdk@v0.48.1/x/upgrade/types/upgrade.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/upgrade/v1beta1/upgrade.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 types "github.com/Finschia/finschia-sdk/codec/types" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 12 _ "google.golang.org/protobuf/types/known/timestamppb" 13 io "io" 14 math "math" 15 math_bits "math/bits" 16 time "time" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 var _ = time.Kitchen 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 // Plan specifies information about a planned upgrade and when it should occur. 32 type Plan struct { 33 // Sets the name for the upgrade. This name will be used by the upgraded 34 // version of the software to apply any special "on-upgrade" commands during 35 // the first BeginBlock method after the upgrade is applied. It is also used 36 // to detect whether a software version can handle a given upgrade. If no 37 // upgrade handler with this name has been set in the software, it will be 38 // assumed that the software is out-of-date when the upgrade Time or Height is 39 // reached and the software will exit. 40 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 41 // Deprecated: Time based upgrades have been deprecated. Time based upgrade logic 42 // has been removed from the SDK. 43 // If this field is not empty, an error will be thrown. 44 Time time.Time `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time"` // Deprecated: Do not use. 45 // The height at which the upgrade must be performed. 46 // Only used if Time is not set. 47 Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 48 // Any application specific upgrade info to be included on-chain 49 // such as a git commit that validators could automatically upgrade to 50 Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` 51 // Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been 52 // moved to the IBC module in the sub module 02-client. 53 // If this field is not empty, an error will be thrown. 54 UpgradedClientState *types.Any `protobuf:"bytes,5,opt,name=upgraded_client_state,json=upgradedClientState,proto3" json:"upgraded_client_state,omitempty" yaml:"upgraded_client_state"` // Deprecated: Do not use. 55 } 56 57 func (m *Plan) Reset() { *m = Plan{} } 58 func (*Plan) ProtoMessage() {} 59 func (*Plan) Descriptor() ([]byte, []int) { 60 return fileDescriptor_ccf2a7d4d7b48dca, []int{0} 61 } 62 func (m *Plan) XXX_Unmarshal(b []byte) error { 63 return m.Unmarshal(b) 64 } 65 func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 66 if deterministic { 67 return xxx_messageInfo_Plan.Marshal(b, m, deterministic) 68 } else { 69 b = b[:cap(b)] 70 n, err := m.MarshalToSizedBuffer(b) 71 if err != nil { 72 return nil, err 73 } 74 return b[:n], nil 75 } 76 } 77 func (m *Plan) XXX_Merge(src proto.Message) { 78 xxx_messageInfo_Plan.Merge(m, src) 79 } 80 func (m *Plan) XXX_Size() int { 81 return m.Size() 82 } 83 func (m *Plan) XXX_DiscardUnknown() { 84 xxx_messageInfo_Plan.DiscardUnknown(m) 85 } 86 87 var xxx_messageInfo_Plan proto.InternalMessageInfo 88 89 // SoftwareUpgradeProposal is a gov Content type for initiating a software 90 // upgrade. 91 type SoftwareUpgradeProposal struct { 92 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 93 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 94 Plan Plan `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan"` 95 } 96 97 func (m *SoftwareUpgradeProposal) Reset() { *m = SoftwareUpgradeProposal{} } 98 func (*SoftwareUpgradeProposal) ProtoMessage() {} 99 func (*SoftwareUpgradeProposal) Descriptor() ([]byte, []int) { 100 return fileDescriptor_ccf2a7d4d7b48dca, []int{1} 101 } 102 func (m *SoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error { 103 return m.Unmarshal(b) 104 } 105 func (m *SoftwareUpgradeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 106 if deterministic { 107 return xxx_messageInfo_SoftwareUpgradeProposal.Marshal(b, m, deterministic) 108 } else { 109 b = b[:cap(b)] 110 n, err := m.MarshalToSizedBuffer(b) 111 if err != nil { 112 return nil, err 113 } 114 return b[:n], nil 115 } 116 } 117 func (m *SoftwareUpgradeProposal) XXX_Merge(src proto.Message) { 118 xxx_messageInfo_SoftwareUpgradeProposal.Merge(m, src) 119 } 120 func (m *SoftwareUpgradeProposal) XXX_Size() int { 121 return m.Size() 122 } 123 func (m *SoftwareUpgradeProposal) XXX_DiscardUnknown() { 124 xxx_messageInfo_SoftwareUpgradeProposal.DiscardUnknown(m) 125 } 126 127 var xxx_messageInfo_SoftwareUpgradeProposal proto.InternalMessageInfo 128 129 // CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software 130 // upgrade. 131 type CancelSoftwareUpgradeProposal struct { 132 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` 133 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 134 } 135 136 func (m *CancelSoftwareUpgradeProposal) Reset() { *m = CancelSoftwareUpgradeProposal{} } 137 func (*CancelSoftwareUpgradeProposal) ProtoMessage() {} 138 func (*CancelSoftwareUpgradeProposal) Descriptor() ([]byte, []int) { 139 return fileDescriptor_ccf2a7d4d7b48dca, []int{2} 140 } 141 func (m *CancelSoftwareUpgradeProposal) XXX_Unmarshal(b []byte) error { 142 return m.Unmarshal(b) 143 } 144 func (m *CancelSoftwareUpgradeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 145 if deterministic { 146 return xxx_messageInfo_CancelSoftwareUpgradeProposal.Marshal(b, m, deterministic) 147 } else { 148 b = b[:cap(b)] 149 n, err := m.MarshalToSizedBuffer(b) 150 if err != nil { 151 return nil, err 152 } 153 return b[:n], nil 154 } 155 } 156 func (m *CancelSoftwareUpgradeProposal) XXX_Merge(src proto.Message) { 157 xxx_messageInfo_CancelSoftwareUpgradeProposal.Merge(m, src) 158 } 159 func (m *CancelSoftwareUpgradeProposal) XXX_Size() int { 160 return m.Size() 161 } 162 func (m *CancelSoftwareUpgradeProposal) XXX_DiscardUnknown() { 163 xxx_messageInfo_CancelSoftwareUpgradeProposal.DiscardUnknown(m) 164 } 165 166 var xxx_messageInfo_CancelSoftwareUpgradeProposal proto.InternalMessageInfo 167 168 // ModuleVersion specifies a module and its consensus version. 169 // 170 // Since: cosmos-sdk 0.43 171 type ModuleVersion struct { 172 // name of the app module 173 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 174 // consensus version of the app module 175 Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` 176 } 177 178 func (m *ModuleVersion) Reset() { *m = ModuleVersion{} } 179 func (m *ModuleVersion) String() string { return proto.CompactTextString(m) } 180 func (*ModuleVersion) ProtoMessage() {} 181 func (*ModuleVersion) Descriptor() ([]byte, []int) { 182 return fileDescriptor_ccf2a7d4d7b48dca, []int{3} 183 } 184 func (m *ModuleVersion) XXX_Unmarshal(b []byte) error { 185 return m.Unmarshal(b) 186 } 187 func (m *ModuleVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 188 if deterministic { 189 return xxx_messageInfo_ModuleVersion.Marshal(b, m, deterministic) 190 } else { 191 b = b[:cap(b)] 192 n, err := m.MarshalToSizedBuffer(b) 193 if err != nil { 194 return nil, err 195 } 196 return b[:n], nil 197 } 198 } 199 func (m *ModuleVersion) XXX_Merge(src proto.Message) { 200 xxx_messageInfo_ModuleVersion.Merge(m, src) 201 } 202 func (m *ModuleVersion) XXX_Size() int { 203 return m.Size() 204 } 205 func (m *ModuleVersion) XXX_DiscardUnknown() { 206 xxx_messageInfo_ModuleVersion.DiscardUnknown(m) 207 } 208 209 var xxx_messageInfo_ModuleVersion proto.InternalMessageInfo 210 211 func init() { 212 proto.RegisterType((*Plan)(nil), "cosmos.upgrade.v1beta1.Plan") 213 proto.RegisterType((*SoftwareUpgradeProposal)(nil), "cosmos.upgrade.v1beta1.SoftwareUpgradeProposal") 214 proto.RegisterType((*CancelSoftwareUpgradeProposal)(nil), "cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal") 215 proto.RegisterType((*ModuleVersion)(nil), "cosmos.upgrade.v1beta1.ModuleVersion") 216 } 217 218 func init() { 219 proto.RegisterFile("cosmos/upgrade/v1beta1/upgrade.proto", fileDescriptor_ccf2a7d4d7b48dca) 220 } 221 222 var fileDescriptor_ccf2a7d4d7b48dca = []byte{ 223 // 466 bytes of a gzipped FileDescriptorProto 224 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x31, 0x6f, 0x13, 0x31, 225 0x14, 0x3e, 0xd3, 0x6b, 0xa1, 0x8e, 0x58, 0x4c, 0x28, 0x47, 0x54, 0xee, 0xa2, 0x13, 0x43, 0x16, 226 0xce, 0xb4, 0x48, 0x0c, 0xd9, 0x48, 0x25, 0x98, 0x40, 0xd5, 0x15, 0x18, 0x58, 0x2a, 0xe7, 0xce, 227 0xb9, 0x58, 0xf8, 0xec, 0xd3, 0xd9, 0x29, 0xe4, 0x5f, 0x54, 0x62, 0x61, 0xec, 0xcf, 0xc9, 0xd8, 228 0x91, 0x29, 0x40, 0xb2, 0x30, 0x33, 0x32, 0x21, 0xdb, 0x77, 0x28, 0x82, 0x8c, 0x6c, 0xdf, 0x7b, 229 0xef, 0x7b, 0xdf, 0xf7, 0xfc, 0x9e, 0x0c, 0x1f, 0x66, 0x52, 0x95, 0x52, 0xe1, 0x59, 0x55, 0xd4, 230 0x24, 0xa7, 0xf8, 0xe2, 0x68, 0x4c, 0x35, 0x39, 0x6a, 0xe3, 0xa4, 0xaa, 0xa5, 0x96, 0xe8, 0xc0, 231 0xb1, 0x92, 0x36, 0xdb, 0xb0, 0x7a, 0xf7, 0x0b, 0x29, 0x0b, 0x4e, 0xb1, 0x65, 0x8d, 0x67, 0x13, 232 0x4c, 0xc4, 0xdc, 0xb5, 0xf4, 0xba, 0x85, 0x2c, 0xa4, 0x85, 0xd8, 0xa0, 0x26, 0x1b, 0xfd, 0xdd, 233 0xa0, 0x59, 0x49, 0x95, 0x26, 0x65, 0xe5, 0x08, 0xf1, 0x2f, 0x00, 0xfd, 0x53, 0x4e, 0x04, 0x42, 234 0xd0, 0x17, 0xa4, 0xa4, 0x01, 0xe8, 0x83, 0xc1, 0x7e, 0x6a, 0x31, 0x1a, 0x42, 0xdf, 0xf0, 0x83, 235 0x1b, 0x7d, 0x30, 0xe8, 0x1c, 0xf7, 0x12, 0x27, 0x96, 0xb4, 0x62, 0xc9, 0xeb, 0x56, 0x6c, 0x04, 236 0x17, 0xcb, 0xc8, 0xbb, 0xfc, 0x1a, 0x81, 0x00, 0xa4, 0xb6, 0x07, 0x1d, 0xc0, 0xbd, 0x29, 0x65, 237 0xc5, 0x54, 0x07, 0x3b, 0x7d, 0x30, 0xd8, 0x49, 0x9b, 0xc8, 0xf8, 0x30, 0x31, 0x91, 0x81, 0xef, 238 0x7c, 0x0c, 0x46, 0x1c, 0xde, 0x6d, 0x5e, 0x9a, 0x9f, 0x67, 0x9c, 0x51, 0xa1, 0xcf, 0x95, 0x26, 239 0x9a, 0x06, 0xbb, 0xd6, 0xb8, 0xfb, 0x8f, 0xf1, 0x33, 0x31, 0x1f, 0xc5, 0x3f, 0x97, 0xd1, 0xe1, 240 0x9c, 0x94, 0x7c, 0x18, 0x6f, 0x6d, 0x8e, 0x03, 0x90, 0xde, 0x69, 0x2b, 0x27, 0xb6, 0x70, 0x66, 241 0xf2, 0xc3, 0x5b, 0x9f, 0xaf, 0x22, 0xef, 0xc7, 0x55, 0x04, 0xe2, 0x4f, 0x00, 0xde, 0x3b, 0x93, 242 0x13, 0xfd, 0x81, 0xd4, 0xf4, 0x8d, 0x63, 0x9e, 0xd6, 0xb2, 0x92, 0x8a, 0x70, 0xd4, 0x85, 0xbb, 243 0x9a, 0x69, 0xde, 0x2e, 0xc4, 0x05, 0xa8, 0x0f, 0x3b, 0x39, 0x55, 0x59, 0xcd, 0x2a, 0xcd, 0xa4, 244 0xb0, 0x8b, 0xd9, 0x4f, 0x37, 0x53, 0xe8, 0x29, 0xf4, 0x2b, 0x4e, 0x84, 0x7d, 0x75, 0xe7, 0xf8, 245 0x30, 0xd9, 0x7e, 0xc9, 0xc4, 0xec, 0x7c, 0xe4, 0x9b, 0xad, 0xa5, 0x96, 0xbf, 0x31, 0x15, 0x81, 246 0x0f, 0x4e, 0x88, 0xc8, 0x28, 0xff, 0xcf, 0xa3, 0x6d, 0x58, 0xbc, 0x80, 0xb7, 0x5f, 0xca, 0x7c, 247 0xc6, 0xe9, 0x5b, 0x5a, 0x2b, 0x33, 0xf5, 0xb6, 0xeb, 0x07, 0xf0, 0xe6, 0x85, 0x2b, 0x5b, 0x31, 248 0x3f, 0x6d, 0x43, 0x2b, 0x04, 0x8c, 0xd0, 0xe8, 0xd5, 0xe2, 0x7b, 0xe8, 0x2d, 0x56, 0x21, 0xb8, 249 0x5e, 0x85, 0xe0, 0xdb, 0x2a, 0x04, 0x97, 0xeb, 0xd0, 0xbb, 0x5e, 0x87, 0xde, 0x97, 0x75, 0xe8, 250 0xbd, 0x7b, 0x5c, 0x30, 0x3d, 0x9d, 0x8d, 0x93, 0x4c, 0x96, 0xf8, 0x39, 0x13, 0x2a, 0x9b, 0x32, 251 0x82, 0x27, 0x0d, 0x78, 0xa4, 0xf2, 0xf7, 0xf8, 0xe3, 0x9f, 0x8f, 0xa0, 0xe7, 0x15, 0x55, 0xe3, 252 0x3d, 0x7b, 0xe2, 0x27, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xeb, 0xbf, 0x26, 0x27, 0x03, 253 0x00, 0x00, 254 } 255 256 func (this *Plan) Equal(that interface{}) bool { 257 if that == nil { 258 return this == nil 259 } 260 261 that1, ok := that.(*Plan) 262 if !ok { 263 that2, ok := that.(Plan) 264 if ok { 265 that1 = &that2 266 } else { 267 return false 268 } 269 } 270 if that1 == nil { 271 return this == nil 272 } else if this == nil { 273 return false 274 } 275 if this.Name != that1.Name { 276 return false 277 } 278 if !this.Time.Equal(that1.Time) { 279 return false 280 } 281 if this.Height != that1.Height { 282 return false 283 } 284 if this.Info != that1.Info { 285 return false 286 } 287 if !this.UpgradedClientState.Equal(that1.UpgradedClientState) { 288 return false 289 } 290 return true 291 } 292 func (this *SoftwareUpgradeProposal) Equal(that interface{}) bool { 293 if that == nil { 294 return this == nil 295 } 296 297 that1, ok := that.(*SoftwareUpgradeProposal) 298 if !ok { 299 that2, ok := that.(SoftwareUpgradeProposal) 300 if ok { 301 that1 = &that2 302 } else { 303 return false 304 } 305 } 306 if that1 == nil { 307 return this == nil 308 } else if this == nil { 309 return false 310 } 311 if this.Title != that1.Title { 312 return false 313 } 314 if this.Description != that1.Description { 315 return false 316 } 317 if !this.Plan.Equal(&that1.Plan) { 318 return false 319 } 320 return true 321 } 322 func (this *CancelSoftwareUpgradeProposal) Equal(that interface{}) bool { 323 if that == nil { 324 return this == nil 325 } 326 327 that1, ok := that.(*CancelSoftwareUpgradeProposal) 328 if !ok { 329 that2, ok := that.(CancelSoftwareUpgradeProposal) 330 if ok { 331 that1 = &that2 332 } else { 333 return false 334 } 335 } 336 if that1 == nil { 337 return this == nil 338 } else if this == nil { 339 return false 340 } 341 if this.Title != that1.Title { 342 return false 343 } 344 if this.Description != that1.Description { 345 return false 346 } 347 return true 348 } 349 func (this *ModuleVersion) Equal(that interface{}) bool { 350 if that == nil { 351 return this == nil 352 } 353 354 that1, ok := that.(*ModuleVersion) 355 if !ok { 356 that2, ok := that.(ModuleVersion) 357 if ok { 358 that1 = &that2 359 } else { 360 return false 361 } 362 } 363 if that1 == nil { 364 return this == nil 365 } else if this == nil { 366 return false 367 } 368 if this.Name != that1.Name { 369 return false 370 } 371 if this.Version != that1.Version { 372 return false 373 } 374 return true 375 } 376 func (m *Plan) Marshal() (dAtA []byte, err error) { 377 size := m.Size() 378 dAtA = make([]byte, size) 379 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 380 if err != nil { 381 return nil, err 382 } 383 return dAtA[:n], nil 384 } 385 386 func (m *Plan) MarshalTo(dAtA []byte) (int, error) { 387 size := m.Size() 388 return m.MarshalToSizedBuffer(dAtA[:size]) 389 } 390 391 func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) { 392 i := len(dAtA) 393 _ = i 394 var l int 395 _ = l 396 if m.UpgradedClientState != nil { 397 { 398 size, err := m.UpgradedClientState.MarshalToSizedBuffer(dAtA[:i]) 399 if err != nil { 400 return 0, err 401 } 402 i -= size 403 i = encodeVarintUpgrade(dAtA, i, uint64(size)) 404 } 405 i-- 406 dAtA[i] = 0x2a 407 } 408 if len(m.Info) > 0 { 409 i -= len(m.Info) 410 copy(dAtA[i:], m.Info) 411 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Info))) 412 i-- 413 dAtA[i] = 0x22 414 } 415 if m.Height != 0 { 416 i = encodeVarintUpgrade(dAtA, i, uint64(m.Height)) 417 i-- 418 dAtA[i] = 0x18 419 } 420 n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) 421 if err2 != nil { 422 return 0, err2 423 } 424 i -= n2 425 i = encodeVarintUpgrade(dAtA, i, uint64(n2)) 426 i-- 427 dAtA[i] = 0x12 428 if len(m.Name) > 0 { 429 i -= len(m.Name) 430 copy(dAtA[i:], m.Name) 431 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Name))) 432 i-- 433 dAtA[i] = 0xa 434 } 435 return len(dAtA) - i, nil 436 } 437 438 func (m *SoftwareUpgradeProposal) Marshal() (dAtA []byte, err error) { 439 size := m.Size() 440 dAtA = make([]byte, size) 441 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 442 if err != nil { 443 return nil, err 444 } 445 return dAtA[:n], nil 446 } 447 448 func (m *SoftwareUpgradeProposal) MarshalTo(dAtA []byte) (int, error) { 449 size := m.Size() 450 return m.MarshalToSizedBuffer(dAtA[:size]) 451 } 452 453 func (m *SoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 454 i := len(dAtA) 455 _ = i 456 var l int 457 _ = l 458 { 459 size, err := m.Plan.MarshalToSizedBuffer(dAtA[:i]) 460 if err != nil { 461 return 0, err 462 } 463 i -= size 464 i = encodeVarintUpgrade(dAtA, i, uint64(size)) 465 } 466 i-- 467 dAtA[i] = 0x1a 468 if len(m.Description) > 0 { 469 i -= len(m.Description) 470 copy(dAtA[i:], m.Description) 471 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Description))) 472 i-- 473 dAtA[i] = 0x12 474 } 475 if len(m.Title) > 0 { 476 i -= len(m.Title) 477 copy(dAtA[i:], m.Title) 478 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title))) 479 i-- 480 dAtA[i] = 0xa 481 } 482 return len(dAtA) - i, nil 483 } 484 485 func (m *CancelSoftwareUpgradeProposal) Marshal() (dAtA []byte, err error) { 486 size := m.Size() 487 dAtA = make([]byte, size) 488 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 489 if err != nil { 490 return nil, err 491 } 492 return dAtA[:n], nil 493 } 494 495 func (m *CancelSoftwareUpgradeProposal) MarshalTo(dAtA []byte) (int, error) { 496 size := m.Size() 497 return m.MarshalToSizedBuffer(dAtA[:size]) 498 } 499 500 func (m *CancelSoftwareUpgradeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { 501 i := len(dAtA) 502 _ = i 503 var l int 504 _ = l 505 if len(m.Description) > 0 { 506 i -= len(m.Description) 507 copy(dAtA[i:], m.Description) 508 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Description))) 509 i-- 510 dAtA[i] = 0x12 511 } 512 if len(m.Title) > 0 { 513 i -= len(m.Title) 514 copy(dAtA[i:], m.Title) 515 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Title))) 516 i-- 517 dAtA[i] = 0xa 518 } 519 return len(dAtA) - i, nil 520 } 521 522 func (m *ModuleVersion) Marshal() (dAtA []byte, err error) { 523 size := m.Size() 524 dAtA = make([]byte, size) 525 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 526 if err != nil { 527 return nil, err 528 } 529 return dAtA[:n], nil 530 } 531 532 func (m *ModuleVersion) MarshalTo(dAtA []byte) (int, error) { 533 size := m.Size() 534 return m.MarshalToSizedBuffer(dAtA[:size]) 535 } 536 537 func (m *ModuleVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { 538 i := len(dAtA) 539 _ = i 540 var l int 541 _ = l 542 if m.Version != 0 { 543 i = encodeVarintUpgrade(dAtA, i, uint64(m.Version)) 544 i-- 545 dAtA[i] = 0x10 546 } 547 if len(m.Name) > 0 { 548 i -= len(m.Name) 549 copy(dAtA[i:], m.Name) 550 i = encodeVarintUpgrade(dAtA, i, uint64(len(m.Name))) 551 i-- 552 dAtA[i] = 0xa 553 } 554 return len(dAtA) - i, nil 555 } 556 557 func encodeVarintUpgrade(dAtA []byte, offset int, v uint64) int { 558 offset -= sovUpgrade(v) 559 base := offset 560 for v >= 1<<7 { 561 dAtA[offset] = uint8(v&0x7f | 0x80) 562 v >>= 7 563 offset++ 564 } 565 dAtA[offset] = uint8(v) 566 return base 567 } 568 func (m *Plan) Size() (n int) { 569 if m == nil { 570 return 0 571 } 572 var l int 573 _ = l 574 l = len(m.Name) 575 if l > 0 { 576 n += 1 + l + sovUpgrade(uint64(l)) 577 } 578 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) 579 n += 1 + l + sovUpgrade(uint64(l)) 580 if m.Height != 0 { 581 n += 1 + sovUpgrade(uint64(m.Height)) 582 } 583 l = len(m.Info) 584 if l > 0 { 585 n += 1 + l + sovUpgrade(uint64(l)) 586 } 587 if m.UpgradedClientState != nil { 588 l = m.UpgradedClientState.Size() 589 n += 1 + l + sovUpgrade(uint64(l)) 590 } 591 return n 592 } 593 594 func (m *SoftwareUpgradeProposal) Size() (n int) { 595 if m == nil { 596 return 0 597 } 598 var l int 599 _ = l 600 l = len(m.Title) 601 if l > 0 { 602 n += 1 + l + sovUpgrade(uint64(l)) 603 } 604 l = len(m.Description) 605 if l > 0 { 606 n += 1 + l + sovUpgrade(uint64(l)) 607 } 608 l = m.Plan.Size() 609 n += 1 + l + sovUpgrade(uint64(l)) 610 return n 611 } 612 613 func (m *CancelSoftwareUpgradeProposal) Size() (n int) { 614 if m == nil { 615 return 0 616 } 617 var l int 618 _ = l 619 l = len(m.Title) 620 if l > 0 { 621 n += 1 + l + sovUpgrade(uint64(l)) 622 } 623 l = len(m.Description) 624 if l > 0 { 625 n += 1 + l + sovUpgrade(uint64(l)) 626 } 627 return n 628 } 629 630 func (m *ModuleVersion) Size() (n int) { 631 if m == nil { 632 return 0 633 } 634 var l int 635 _ = l 636 l = len(m.Name) 637 if l > 0 { 638 n += 1 + l + sovUpgrade(uint64(l)) 639 } 640 if m.Version != 0 { 641 n += 1 + sovUpgrade(uint64(m.Version)) 642 } 643 return n 644 } 645 646 func sovUpgrade(x uint64) (n int) { 647 return (math_bits.Len64(x|1) + 6) / 7 648 } 649 func sozUpgrade(x uint64) (n int) { 650 return sovUpgrade(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 651 } 652 func (m *Plan) Unmarshal(dAtA []byte) error { 653 l := len(dAtA) 654 iNdEx := 0 655 for iNdEx < l { 656 preIndex := iNdEx 657 var wire uint64 658 for shift := uint(0); ; shift += 7 { 659 if shift >= 64 { 660 return ErrIntOverflowUpgrade 661 } 662 if iNdEx >= l { 663 return io.ErrUnexpectedEOF 664 } 665 b := dAtA[iNdEx] 666 iNdEx++ 667 wire |= uint64(b&0x7F) << shift 668 if b < 0x80 { 669 break 670 } 671 } 672 fieldNum := int32(wire >> 3) 673 wireType := int(wire & 0x7) 674 if wireType == 4 { 675 return fmt.Errorf("proto: Plan: wiretype end group for non-group") 676 } 677 if fieldNum <= 0 { 678 return fmt.Errorf("proto: Plan: illegal tag %d (wire type %d)", fieldNum, wire) 679 } 680 switch fieldNum { 681 case 1: 682 if wireType != 2 { 683 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 684 } 685 var stringLen uint64 686 for shift := uint(0); ; shift += 7 { 687 if shift >= 64 { 688 return ErrIntOverflowUpgrade 689 } 690 if iNdEx >= l { 691 return io.ErrUnexpectedEOF 692 } 693 b := dAtA[iNdEx] 694 iNdEx++ 695 stringLen |= uint64(b&0x7F) << shift 696 if b < 0x80 { 697 break 698 } 699 } 700 intStringLen := int(stringLen) 701 if intStringLen < 0 { 702 return ErrInvalidLengthUpgrade 703 } 704 postIndex := iNdEx + intStringLen 705 if postIndex < 0 { 706 return ErrInvalidLengthUpgrade 707 } 708 if postIndex > l { 709 return io.ErrUnexpectedEOF 710 } 711 m.Name = string(dAtA[iNdEx:postIndex]) 712 iNdEx = postIndex 713 case 2: 714 if wireType != 2 { 715 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 716 } 717 var msglen int 718 for shift := uint(0); ; shift += 7 { 719 if shift >= 64 { 720 return ErrIntOverflowUpgrade 721 } 722 if iNdEx >= l { 723 return io.ErrUnexpectedEOF 724 } 725 b := dAtA[iNdEx] 726 iNdEx++ 727 msglen |= int(b&0x7F) << shift 728 if b < 0x80 { 729 break 730 } 731 } 732 if msglen < 0 { 733 return ErrInvalidLengthUpgrade 734 } 735 postIndex := iNdEx + msglen 736 if postIndex < 0 { 737 return ErrInvalidLengthUpgrade 738 } 739 if postIndex > l { 740 return io.ErrUnexpectedEOF 741 } 742 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { 743 return err 744 } 745 iNdEx = postIndex 746 case 3: 747 if wireType != 0 { 748 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 749 } 750 m.Height = 0 751 for shift := uint(0); ; shift += 7 { 752 if shift >= 64 { 753 return ErrIntOverflowUpgrade 754 } 755 if iNdEx >= l { 756 return io.ErrUnexpectedEOF 757 } 758 b := dAtA[iNdEx] 759 iNdEx++ 760 m.Height |= int64(b&0x7F) << shift 761 if b < 0x80 { 762 break 763 } 764 } 765 case 4: 766 if wireType != 2 { 767 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 768 } 769 var stringLen uint64 770 for shift := uint(0); ; shift += 7 { 771 if shift >= 64 { 772 return ErrIntOverflowUpgrade 773 } 774 if iNdEx >= l { 775 return io.ErrUnexpectedEOF 776 } 777 b := dAtA[iNdEx] 778 iNdEx++ 779 stringLen |= uint64(b&0x7F) << shift 780 if b < 0x80 { 781 break 782 } 783 } 784 intStringLen := int(stringLen) 785 if intStringLen < 0 { 786 return ErrInvalidLengthUpgrade 787 } 788 postIndex := iNdEx + intStringLen 789 if postIndex < 0 { 790 return ErrInvalidLengthUpgrade 791 } 792 if postIndex > l { 793 return io.ErrUnexpectedEOF 794 } 795 m.Info = string(dAtA[iNdEx:postIndex]) 796 iNdEx = postIndex 797 case 5: 798 if wireType != 2 { 799 return fmt.Errorf("proto: wrong wireType = %d for field UpgradedClientState", wireType) 800 } 801 var msglen int 802 for shift := uint(0); ; shift += 7 { 803 if shift >= 64 { 804 return ErrIntOverflowUpgrade 805 } 806 if iNdEx >= l { 807 return io.ErrUnexpectedEOF 808 } 809 b := dAtA[iNdEx] 810 iNdEx++ 811 msglen |= int(b&0x7F) << shift 812 if b < 0x80 { 813 break 814 } 815 } 816 if msglen < 0 { 817 return ErrInvalidLengthUpgrade 818 } 819 postIndex := iNdEx + msglen 820 if postIndex < 0 { 821 return ErrInvalidLengthUpgrade 822 } 823 if postIndex > l { 824 return io.ErrUnexpectedEOF 825 } 826 if m.UpgradedClientState == nil { 827 m.UpgradedClientState = &types.Any{} 828 } 829 if err := m.UpgradedClientState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 830 return err 831 } 832 iNdEx = postIndex 833 default: 834 iNdEx = preIndex 835 skippy, err := skipUpgrade(dAtA[iNdEx:]) 836 if err != nil { 837 return err 838 } 839 if (skippy < 0) || (iNdEx+skippy) < 0 { 840 return ErrInvalidLengthUpgrade 841 } 842 if (iNdEx + skippy) > l { 843 return io.ErrUnexpectedEOF 844 } 845 iNdEx += skippy 846 } 847 } 848 849 if iNdEx > l { 850 return io.ErrUnexpectedEOF 851 } 852 return nil 853 } 854 func (m *SoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { 855 l := len(dAtA) 856 iNdEx := 0 857 for iNdEx < l { 858 preIndex := iNdEx 859 var wire uint64 860 for shift := uint(0); ; shift += 7 { 861 if shift >= 64 { 862 return ErrIntOverflowUpgrade 863 } 864 if iNdEx >= l { 865 return io.ErrUnexpectedEOF 866 } 867 b := dAtA[iNdEx] 868 iNdEx++ 869 wire |= uint64(b&0x7F) << shift 870 if b < 0x80 { 871 break 872 } 873 } 874 fieldNum := int32(wire >> 3) 875 wireType := int(wire & 0x7) 876 if wireType == 4 { 877 return fmt.Errorf("proto: SoftwareUpgradeProposal: wiretype end group for non-group") 878 } 879 if fieldNum <= 0 { 880 return fmt.Errorf("proto: SoftwareUpgradeProposal: illegal tag %d (wire type %d)", fieldNum, wire) 881 } 882 switch fieldNum { 883 case 1: 884 if wireType != 2 { 885 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 886 } 887 var stringLen uint64 888 for shift := uint(0); ; shift += 7 { 889 if shift >= 64 { 890 return ErrIntOverflowUpgrade 891 } 892 if iNdEx >= l { 893 return io.ErrUnexpectedEOF 894 } 895 b := dAtA[iNdEx] 896 iNdEx++ 897 stringLen |= uint64(b&0x7F) << shift 898 if b < 0x80 { 899 break 900 } 901 } 902 intStringLen := int(stringLen) 903 if intStringLen < 0 { 904 return ErrInvalidLengthUpgrade 905 } 906 postIndex := iNdEx + intStringLen 907 if postIndex < 0 { 908 return ErrInvalidLengthUpgrade 909 } 910 if postIndex > l { 911 return io.ErrUnexpectedEOF 912 } 913 m.Title = string(dAtA[iNdEx:postIndex]) 914 iNdEx = postIndex 915 case 2: 916 if wireType != 2 { 917 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 918 } 919 var stringLen uint64 920 for shift := uint(0); ; shift += 7 { 921 if shift >= 64 { 922 return ErrIntOverflowUpgrade 923 } 924 if iNdEx >= l { 925 return io.ErrUnexpectedEOF 926 } 927 b := dAtA[iNdEx] 928 iNdEx++ 929 stringLen |= uint64(b&0x7F) << shift 930 if b < 0x80 { 931 break 932 } 933 } 934 intStringLen := int(stringLen) 935 if intStringLen < 0 { 936 return ErrInvalidLengthUpgrade 937 } 938 postIndex := iNdEx + intStringLen 939 if postIndex < 0 { 940 return ErrInvalidLengthUpgrade 941 } 942 if postIndex > l { 943 return io.ErrUnexpectedEOF 944 } 945 m.Description = string(dAtA[iNdEx:postIndex]) 946 iNdEx = postIndex 947 case 3: 948 if wireType != 2 { 949 return fmt.Errorf("proto: wrong wireType = %d for field Plan", wireType) 950 } 951 var msglen int 952 for shift := uint(0); ; shift += 7 { 953 if shift >= 64 { 954 return ErrIntOverflowUpgrade 955 } 956 if iNdEx >= l { 957 return io.ErrUnexpectedEOF 958 } 959 b := dAtA[iNdEx] 960 iNdEx++ 961 msglen |= int(b&0x7F) << shift 962 if b < 0x80 { 963 break 964 } 965 } 966 if msglen < 0 { 967 return ErrInvalidLengthUpgrade 968 } 969 postIndex := iNdEx + msglen 970 if postIndex < 0 { 971 return ErrInvalidLengthUpgrade 972 } 973 if postIndex > l { 974 return io.ErrUnexpectedEOF 975 } 976 if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 977 return err 978 } 979 iNdEx = postIndex 980 default: 981 iNdEx = preIndex 982 skippy, err := skipUpgrade(dAtA[iNdEx:]) 983 if err != nil { 984 return err 985 } 986 if (skippy < 0) || (iNdEx+skippy) < 0 { 987 return ErrInvalidLengthUpgrade 988 } 989 if (iNdEx + skippy) > l { 990 return io.ErrUnexpectedEOF 991 } 992 iNdEx += skippy 993 } 994 } 995 996 if iNdEx > l { 997 return io.ErrUnexpectedEOF 998 } 999 return nil 1000 } 1001 func (m *CancelSoftwareUpgradeProposal) Unmarshal(dAtA []byte) error { 1002 l := len(dAtA) 1003 iNdEx := 0 1004 for iNdEx < l { 1005 preIndex := iNdEx 1006 var wire uint64 1007 for shift := uint(0); ; shift += 7 { 1008 if shift >= 64 { 1009 return ErrIntOverflowUpgrade 1010 } 1011 if iNdEx >= l { 1012 return io.ErrUnexpectedEOF 1013 } 1014 b := dAtA[iNdEx] 1015 iNdEx++ 1016 wire |= uint64(b&0x7F) << shift 1017 if b < 0x80 { 1018 break 1019 } 1020 } 1021 fieldNum := int32(wire >> 3) 1022 wireType := int(wire & 0x7) 1023 if wireType == 4 { 1024 return fmt.Errorf("proto: CancelSoftwareUpgradeProposal: wiretype end group for non-group") 1025 } 1026 if fieldNum <= 0 { 1027 return fmt.Errorf("proto: CancelSoftwareUpgradeProposal: illegal tag %d (wire type %d)", fieldNum, wire) 1028 } 1029 switch fieldNum { 1030 case 1: 1031 if wireType != 2 { 1032 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 1033 } 1034 var stringLen uint64 1035 for shift := uint(0); ; shift += 7 { 1036 if shift >= 64 { 1037 return ErrIntOverflowUpgrade 1038 } 1039 if iNdEx >= l { 1040 return io.ErrUnexpectedEOF 1041 } 1042 b := dAtA[iNdEx] 1043 iNdEx++ 1044 stringLen |= uint64(b&0x7F) << shift 1045 if b < 0x80 { 1046 break 1047 } 1048 } 1049 intStringLen := int(stringLen) 1050 if intStringLen < 0 { 1051 return ErrInvalidLengthUpgrade 1052 } 1053 postIndex := iNdEx + intStringLen 1054 if postIndex < 0 { 1055 return ErrInvalidLengthUpgrade 1056 } 1057 if postIndex > l { 1058 return io.ErrUnexpectedEOF 1059 } 1060 m.Title = string(dAtA[iNdEx:postIndex]) 1061 iNdEx = postIndex 1062 case 2: 1063 if wireType != 2 { 1064 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 1065 } 1066 var stringLen uint64 1067 for shift := uint(0); ; shift += 7 { 1068 if shift >= 64 { 1069 return ErrIntOverflowUpgrade 1070 } 1071 if iNdEx >= l { 1072 return io.ErrUnexpectedEOF 1073 } 1074 b := dAtA[iNdEx] 1075 iNdEx++ 1076 stringLen |= uint64(b&0x7F) << shift 1077 if b < 0x80 { 1078 break 1079 } 1080 } 1081 intStringLen := int(stringLen) 1082 if intStringLen < 0 { 1083 return ErrInvalidLengthUpgrade 1084 } 1085 postIndex := iNdEx + intStringLen 1086 if postIndex < 0 { 1087 return ErrInvalidLengthUpgrade 1088 } 1089 if postIndex > l { 1090 return io.ErrUnexpectedEOF 1091 } 1092 m.Description = string(dAtA[iNdEx:postIndex]) 1093 iNdEx = postIndex 1094 default: 1095 iNdEx = preIndex 1096 skippy, err := skipUpgrade(dAtA[iNdEx:]) 1097 if err != nil { 1098 return err 1099 } 1100 if (skippy < 0) || (iNdEx+skippy) < 0 { 1101 return ErrInvalidLengthUpgrade 1102 } 1103 if (iNdEx + skippy) > l { 1104 return io.ErrUnexpectedEOF 1105 } 1106 iNdEx += skippy 1107 } 1108 } 1109 1110 if iNdEx > l { 1111 return io.ErrUnexpectedEOF 1112 } 1113 return nil 1114 } 1115 func (m *ModuleVersion) Unmarshal(dAtA []byte) error { 1116 l := len(dAtA) 1117 iNdEx := 0 1118 for iNdEx < l { 1119 preIndex := iNdEx 1120 var wire uint64 1121 for shift := uint(0); ; shift += 7 { 1122 if shift >= 64 { 1123 return ErrIntOverflowUpgrade 1124 } 1125 if iNdEx >= l { 1126 return io.ErrUnexpectedEOF 1127 } 1128 b := dAtA[iNdEx] 1129 iNdEx++ 1130 wire |= uint64(b&0x7F) << shift 1131 if b < 0x80 { 1132 break 1133 } 1134 } 1135 fieldNum := int32(wire >> 3) 1136 wireType := int(wire & 0x7) 1137 if wireType == 4 { 1138 return fmt.Errorf("proto: ModuleVersion: wiretype end group for non-group") 1139 } 1140 if fieldNum <= 0 { 1141 return fmt.Errorf("proto: ModuleVersion: illegal tag %d (wire type %d)", fieldNum, wire) 1142 } 1143 switch fieldNum { 1144 case 1: 1145 if wireType != 2 { 1146 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1147 } 1148 var stringLen uint64 1149 for shift := uint(0); ; shift += 7 { 1150 if shift >= 64 { 1151 return ErrIntOverflowUpgrade 1152 } 1153 if iNdEx >= l { 1154 return io.ErrUnexpectedEOF 1155 } 1156 b := dAtA[iNdEx] 1157 iNdEx++ 1158 stringLen |= uint64(b&0x7F) << shift 1159 if b < 0x80 { 1160 break 1161 } 1162 } 1163 intStringLen := int(stringLen) 1164 if intStringLen < 0 { 1165 return ErrInvalidLengthUpgrade 1166 } 1167 postIndex := iNdEx + intStringLen 1168 if postIndex < 0 { 1169 return ErrInvalidLengthUpgrade 1170 } 1171 if postIndex > l { 1172 return io.ErrUnexpectedEOF 1173 } 1174 m.Name = string(dAtA[iNdEx:postIndex]) 1175 iNdEx = postIndex 1176 case 2: 1177 if wireType != 0 { 1178 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 1179 } 1180 m.Version = 0 1181 for shift := uint(0); ; shift += 7 { 1182 if shift >= 64 { 1183 return ErrIntOverflowUpgrade 1184 } 1185 if iNdEx >= l { 1186 return io.ErrUnexpectedEOF 1187 } 1188 b := dAtA[iNdEx] 1189 iNdEx++ 1190 m.Version |= uint64(b&0x7F) << shift 1191 if b < 0x80 { 1192 break 1193 } 1194 } 1195 default: 1196 iNdEx = preIndex 1197 skippy, err := skipUpgrade(dAtA[iNdEx:]) 1198 if err != nil { 1199 return err 1200 } 1201 if (skippy < 0) || (iNdEx+skippy) < 0 { 1202 return ErrInvalidLengthUpgrade 1203 } 1204 if (iNdEx + skippy) > l { 1205 return io.ErrUnexpectedEOF 1206 } 1207 iNdEx += skippy 1208 } 1209 } 1210 1211 if iNdEx > l { 1212 return io.ErrUnexpectedEOF 1213 } 1214 return nil 1215 } 1216 func skipUpgrade(dAtA []byte) (n int, err error) { 1217 l := len(dAtA) 1218 iNdEx := 0 1219 depth := 0 1220 for iNdEx < l { 1221 var wire uint64 1222 for shift := uint(0); ; shift += 7 { 1223 if shift >= 64 { 1224 return 0, ErrIntOverflowUpgrade 1225 } 1226 if iNdEx >= l { 1227 return 0, io.ErrUnexpectedEOF 1228 } 1229 b := dAtA[iNdEx] 1230 iNdEx++ 1231 wire |= (uint64(b) & 0x7F) << shift 1232 if b < 0x80 { 1233 break 1234 } 1235 } 1236 wireType := int(wire & 0x7) 1237 switch wireType { 1238 case 0: 1239 for shift := uint(0); ; shift += 7 { 1240 if shift >= 64 { 1241 return 0, ErrIntOverflowUpgrade 1242 } 1243 if iNdEx >= l { 1244 return 0, io.ErrUnexpectedEOF 1245 } 1246 iNdEx++ 1247 if dAtA[iNdEx-1] < 0x80 { 1248 break 1249 } 1250 } 1251 case 1: 1252 iNdEx += 8 1253 case 2: 1254 var length int 1255 for shift := uint(0); ; shift += 7 { 1256 if shift >= 64 { 1257 return 0, ErrIntOverflowUpgrade 1258 } 1259 if iNdEx >= l { 1260 return 0, io.ErrUnexpectedEOF 1261 } 1262 b := dAtA[iNdEx] 1263 iNdEx++ 1264 length |= (int(b) & 0x7F) << shift 1265 if b < 0x80 { 1266 break 1267 } 1268 } 1269 if length < 0 { 1270 return 0, ErrInvalidLengthUpgrade 1271 } 1272 iNdEx += length 1273 case 3: 1274 depth++ 1275 case 4: 1276 if depth == 0 { 1277 return 0, ErrUnexpectedEndOfGroupUpgrade 1278 } 1279 depth-- 1280 case 5: 1281 iNdEx += 4 1282 default: 1283 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1284 } 1285 if iNdEx < 0 { 1286 return 0, ErrInvalidLengthUpgrade 1287 } 1288 if depth == 0 { 1289 return iNdEx, nil 1290 } 1291 } 1292 return 0, io.ErrUnexpectedEOF 1293 } 1294 1295 var ( 1296 ErrInvalidLengthUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") 1297 ErrIntOverflowUpgrade = fmt.Errorf("proto: integer overflow") 1298 ErrUnexpectedEndOfGroupUpgrade = fmt.Errorf("proto: unexpected end of group") 1299 )