github.com/cockroachdb/cockroachdb-parser@v0.23.3-0.20240213214944-911057d40c9a/pkg/build/info.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: build/info.proto 3 4 package build 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 // Info describes build information for this CockroachDB binary. 27 type Info struct { 28 // go_version is the version of the Go toolchain used to compile this executable. 29 GoVersion string `protobuf:"bytes,1,opt,name=go_version,json=goVersion" json:"go_version"` 30 // tag is the binary version for the revision of the source code for 31 // this executable. This used to be the git tag for the build, but 32 // has since moved to the contents of the `version.txt` file. 33 Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag"` 34 // time is the time at which the build started. 35 Time string `protobuf:"bytes,3,opt,name=time" json:"time"` 36 // revision is the git commit identifier for the source code of this executable. 37 Revision string `protobuf:"bytes,4,opt,name=revision" json:"revision"` 38 // cgo_compiler is the C/C++ compiler used to build non-go dependencies. 39 CgoCompiler string `protobuf:"bytes,5,opt,name=cgo_compiler,json=cgoCompiler" json:"cgo_compiler"` 40 // cgo_target_triple is the platform identifier that identifies the cross-compilation target for C/C++ components. 41 CgoTargetTriple string `protobuf:"bytes,10,opt,name=cgo_target_triple,json=cgoTargetTriple" json:"cgo_target_triple"` 42 // platform is the platform identifiers that identifies the cross-compilation target for Go code. 43 Platform string `protobuf:"bytes,6,opt,name=platform" json:"platform"` 44 // distribution indicates which licensing conditions apply (OSS: full open source; CCL: includes CCL code). 45 Distribution string `protobuf:"bytes,7,opt,name=distribution" json:"distribution"` 46 // type indicates whether this is a development or release build. 47 Type string `protobuf:"bytes,8,opt,name=type" json:"type"` 48 // channel identifies through which product channel the executable was released. 49 Channel string `protobuf:"bytes,9,opt,name=channel" json:"channel"` 50 // env_channel identifies the product channel as overridden by the COCKROACH_CHANNEL environment variable. 51 EnvChannel string `protobuf:"bytes,11,opt,name=env_channel,json=envChannel" json:"env_channel"` 52 // enabled_assertions returns the value of 'CrdbTestBuild' (true iff compiled with 'crdb_test' tag) 53 EnabledAssertions bool `protobuf:"varint,12,opt,name=enabled_assertions,json=enabledAssertions" json:"enabled_assertions"` 54 // dependencies exists to allow tests that run against old clusters 55 // to unmarshal JSON containing this field. The tag is unimportant, 56 // but the field name must remain unchanged. 57 // 58 // alternatively, we could set jsonpb.Unmarshaler.AllowUnknownFields 59 // to true in httputil.doJSONRequest, but that comes at the expense 60 // of run-time type checking, which is nice to have. 61 Dependencies *string `protobuf:"bytes,10000,opt,name=dependencies" json:"dependencies,omitempty"` 62 } 63 64 func (m *Info) Reset() { *m = Info{} } 65 func (m *Info) String() string { return proto.CompactTextString(m) } 66 func (*Info) ProtoMessage() {} 67 func (*Info) Descriptor() ([]byte, []int) { 68 return fileDescriptor_4e07f274d5866c11, []int{0} 69 } 70 func (m *Info) XXX_Unmarshal(b []byte) error { 71 return m.Unmarshal(b) 72 } 73 func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 74 b = b[:cap(b)] 75 n, err := m.MarshalToSizedBuffer(b) 76 if err != nil { 77 return nil, err 78 } 79 return b[:n], nil 80 } 81 func (m *Info) XXX_Merge(src proto.Message) { 82 xxx_messageInfo_Info.Merge(m, src) 83 } 84 func (m *Info) XXX_Size() int { 85 return m.Size() 86 } 87 func (m *Info) XXX_DiscardUnknown() { 88 xxx_messageInfo_Info.DiscardUnknown(m) 89 } 90 91 var xxx_messageInfo_Info proto.InternalMessageInfo 92 93 func init() { 94 proto.RegisterType((*Info)(nil), "cockroach.parser.build.Info") 95 } 96 97 func init() { proto.RegisterFile("build/info.proto", fileDescriptor_4e07f274d5866c11) } 98 99 var fileDescriptor_4e07f274d5866c11 = []byte{ 100 // 386 bytes of a gzipped FileDescriptorProto 101 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xc1, 0x6a, 0x1b, 0x31, 102 0x10, 0x40, 0x77, 0x6b, 0xb7, 0xb1, 0xc7, 0x86, 0x34, 0xa2, 0x14, 0xd1, 0x83, 0x6a, 0x1a, 0x4a, 103 0x4d, 0x0f, 0xde, 0x42, 0xbf, 0xa0, 0xc9, 0xa9, 0x50, 0x7a, 0x08, 0xa1, 0x87, 0x5e, 0x96, 0x5d, 104 0xed, 0x58, 0x16, 0x59, 0x6b, 0x84, 0x56, 0x36, 0xe4, 0x2f, 0xf2, 0x59, 0x3e, 0xe6, 0x98, 0x53, 105 0x69, 0xec, 0x1f, 0x29, 0x2b, 0xaf, 0x5d, 0xf9, 0x26, 0xde, 0x7b, 0x68, 0x24, 0x18, 0x78, 0x5d, 106 0xae, 0x74, 0x5d, 0x65, 0xda, 0xcc, 0x69, 0x66, 0x1d, 0x79, 0x62, 0xe7, 0x92, 0xe4, 0x9d, 0xa3, 107 0x42, 0x2e, 0x66, 0xc1, 0xbd, 0x7b, 0xa3, 0x48, 0x51, 0x70, 0x59, 0x7b, 0xda, 0x67, 0x1f, 0x9e, 108 0x7b, 0xd0, 0xff, 0x6e, 0xe6, 0xc4, 0x2e, 0x01, 0x14, 0xe5, 0x6b, 0x74, 0x8d, 0x26, 0xc3, 0xd3, 109 0x49, 0x3a, 0x1d, 0x5e, 0xf5, 0x37, 0x7f, 0xde, 0x27, 0x37, 0x43, 0x45, 0xbf, 0xf6, 0x98, 0xbd, 110 0x85, 0x9e, 0x2f, 0x14, 0x7f, 0x11, 0xd9, 0x16, 0x30, 0x0e, 0x7d, 0xaf, 0x97, 0xc8, 0x7b, 0x91, 111 0x08, 0x84, 0x4d, 0x60, 0xe0, 0x70, 0xad, 0xc3, 0xa5, 0xfd, 0xc8, 0x1e, 0x29, 0xfb, 0x04, 0x63, 112 0xa9, 0x28, 0x97, 0xb4, 0xb4, 0xba, 0x46, 0xc7, 0x5f, 0x46, 0xd5, 0x48, 0x2a, 0xba, 0xee, 0x04, 113 0xfb, 0x02, 0x17, 0x6d, 0xe8, 0x0b, 0xa7, 0xd0, 0xe7, 0xde, 0x69, 0x5b, 0x23, 0x87, 0xa8, 0x3e, 114 0x97, 0x8a, 0x6e, 0x83, 0xbd, 0x0d, 0xb2, 0x1d, 0x6e, 0xeb, 0xc2, 0xcf, 0xc9, 0x2d, 0xf9, 0xab, 115 0x78, 0xf8, 0x81, 0xb2, 0x29, 0x8c, 0x2b, 0xdd, 0x78, 0xa7, 0xcb, 0x95, 0x6f, 0x9f, 0x78, 0x16, 116 0x55, 0x27, 0x26, 0x7c, 0xf1, 0xde, 0x22, 0x1f, 0x9c, 0x7c, 0xf1, 0xde, 0x22, 0x13, 0x70, 0x26, 117 0x17, 0x85, 0x31, 0x58, 0xf3, 0x61, 0x24, 0x0f, 0x90, 0x7d, 0x84, 0x11, 0x9a, 0x75, 0x7e, 0x68, 118 0x46, 0x51, 0x03, 0x68, 0xd6, 0xd7, 0x5d, 0xf6, 0x15, 0x18, 0x9a, 0xa2, 0xac, 0xb1, 0xca, 0x8b, 119 0xa6, 0x41, 0xd7, 0x4e, 0x6d, 0xf8, 0x78, 0x92, 0x4e, 0x07, 0x5d, 0x7d, 0xd1, 0xf9, 0x6f, 0x47, 120 0xcd, 0x2e, 0x61, 0x5c, 0xa1, 0x45, 0x53, 0xa1, 0x91, 0x1a, 0x1b, 0xfe, 0xf0, 0xb3, 0xbd, 0xfd, 121 0xe6, 0x04, 0x5e, 0xfd, 0xd8, 0x3c, 0x8b, 0x64, 0xb3, 0x15, 0xe9, 0xe3, 0x56, 0xa4, 0x4f, 0x5b, 122 0x91, 0xfe, 0xdd, 0x8a, 0xf4, 0x61, 0x27, 0x92, 0xc7, 0x9d, 0x48, 0x9e, 0x76, 0x22, 0xf9, 0xfd, 123 0x59, 0x69, 0xbf, 0x58, 0x95, 0x33, 0x49, 0xcb, 0xec, 0xb8, 0x37, 0x55, 0xf9, 0xff, 0x9c, 0xd9, 124 0x3b, 0x95, 0x85, 0x3d, 0xfa, 0x17, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x99, 0x80, 0x4a, 0x6b, 0x02, 125 0x00, 0x00, 126 } 127 128 func (m *Info) Marshal() (dAtA []byte, err error) { 129 size := m.Size() 130 dAtA = make([]byte, size) 131 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 132 if err != nil { 133 return nil, err 134 } 135 return dAtA[:n], nil 136 } 137 138 func (m *Info) MarshalTo(dAtA []byte) (int, error) { 139 size := m.Size() 140 return m.MarshalToSizedBuffer(dAtA[:size]) 141 } 142 143 func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 144 i := len(dAtA) 145 _ = i 146 var l int 147 _ = l 148 if m.Dependencies != nil { 149 i -= len(*m.Dependencies) 150 copy(dAtA[i:], *m.Dependencies) 151 i = encodeVarintInfo(dAtA, i, uint64(len(*m.Dependencies))) 152 i-- 153 dAtA[i] = 0x4 154 i-- 155 dAtA[i] = 0xf1 156 i-- 157 dAtA[i] = 0x82 158 } 159 i-- 160 if m.EnabledAssertions { 161 dAtA[i] = 1 162 } else { 163 dAtA[i] = 0 164 } 165 i-- 166 dAtA[i] = 0x60 167 i -= len(m.EnvChannel) 168 copy(dAtA[i:], m.EnvChannel) 169 i = encodeVarintInfo(dAtA, i, uint64(len(m.EnvChannel))) 170 i-- 171 dAtA[i] = 0x5a 172 i -= len(m.CgoTargetTriple) 173 copy(dAtA[i:], m.CgoTargetTriple) 174 i = encodeVarintInfo(dAtA, i, uint64(len(m.CgoTargetTriple))) 175 i-- 176 dAtA[i] = 0x52 177 i -= len(m.Channel) 178 copy(dAtA[i:], m.Channel) 179 i = encodeVarintInfo(dAtA, i, uint64(len(m.Channel))) 180 i-- 181 dAtA[i] = 0x4a 182 i -= len(m.Type) 183 copy(dAtA[i:], m.Type) 184 i = encodeVarintInfo(dAtA, i, uint64(len(m.Type))) 185 i-- 186 dAtA[i] = 0x42 187 i -= len(m.Distribution) 188 copy(dAtA[i:], m.Distribution) 189 i = encodeVarintInfo(dAtA, i, uint64(len(m.Distribution))) 190 i-- 191 dAtA[i] = 0x3a 192 i -= len(m.Platform) 193 copy(dAtA[i:], m.Platform) 194 i = encodeVarintInfo(dAtA, i, uint64(len(m.Platform))) 195 i-- 196 dAtA[i] = 0x32 197 i -= len(m.CgoCompiler) 198 copy(dAtA[i:], m.CgoCompiler) 199 i = encodeVarintInfo(dAtA, i, uint64(len(m.CgoCompiler))) 200 i-- 201 dAtA[i] = 0x2a 202 i -= len(m.Revision) 203 copy(dAtA[i:], m.Revision) 204 i = encodeVarintInfo(dAtA, i, uint64(len(m.Revision))) 205 i-- 206 dAtA[i] = 0x22 207 i -= len(m.Time) 208 copy(dAtA[i:], m.Time) 209 i = encodeVarintInfo(dAtA, i, uint64(len(m.Time))) 210 i-- 211 dAtA[i] = 0x1a 212 i -= len(m.Tag) 213 copy(dAtA[i:], m.Tag) 214 i = encodeVarintInfo(dAtA, i, uint64(len(m.Tag))) 215 i-- 216 dAtA[i] = 0x12 217 i -= len(m.GoVersion) 218 copy(dAtA[i:], m.GoVersion) 219 i = encodeVarintInfo(dAtA, i, uint64(len(m.GoVersion))) 220 i-- 221 dAtA[i] = 0xa 222 return len(dAtA) - i, nil 223 } 224 225 func encodeVarintInfo(dAtA []byte, offset int, v uint64) int { 226 offset -= sovInfo(v) 227 base := offset 228 for v >= 1<<7 { 229 dAtA[offset] = uint8(v&0x7f | 0x80) 230 v >>= 7 231 offset++ 232 } 233 dAtA[offset] = uint8(v) 234 return base 235 } 236 func (m *Info) Size() (n int) { 237 if m == nil { 238 return 0 239 } 240 var l int 241 _ = l 242 l = len(m.GoVersion) 243 n += 1 + l + sovInfo(uint64(l)) 244 l = len(m.Tag) 245 n += 1 + l + sovInfo(uint64(l)) 246 l = len(m.Time) 247 n += 1 + l + sovInfo(uint64(l)) 248 l = len(m.Revision) 249 n += 1 + l + sovInfo(uint64(l)) 250 l = len(m.CgoCompiler) 251 n += 1 + l + sovInfo(uint64(l)) 252 l = len(m.Platform) 253 n += 1 + l + sovInfo(uint64(l)) 254 l = len(m.Distribution) 255 n += 1 + l + sovInfo(uint64(l)) 256 l = len(m.Type) 257 n += 1 + l + sovInfo(uint64(l)) 258 l = len(m.Channel) 259 n += 1 + l + sovInfo(uint64(l)) 260 l = len(m.CgoTargetTriple) 261 n += 1 + l + sovInfo(uint64(l)) 262 l = len(m.EnvChannel) 263 n += 1 + l + sovInfo(uint64(l)) 264 n += 2 265 if m.Dependencies != nil { 266 l = len(*m.Dependencies) 267 n += 3 + l + sovInfo(uint64(l)) 268 } 269 return n 270 } 271 272 func sovInfo(x uint64) (n int) { 273 return (math_bits.Len64(x|1) + 6) / 7 274 } 275 func sozInfo(x uint64) (n int) { 276 return sovInfo(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 277 } 278 func (m *Info) Unmarshal(dAtA []byte) error { 279 l := len(dAtA) 280 iNdEx := 0 281 for iNdEx < l { 282 preIndex := iNdEx 283 var wire uint64 284 for shift := uint(0); ; shift += 7 { 285 if shift >= 64 { 286 return ErrIntOverflowInfo 287 } 288 if iNdEx >= l { 289 return io.ErrUnexpectedEOF 290 } 291 b := dAtA[iNdEx] 292 iNdEx++ 293 wire |= uint64(b&0x7F) << shift 294 if b < 0x80 { 295 break 296 } 297 } 298 fieldNum := int32(wire >> 3) 299 wireType := int(wire & 0x7) 300 if wireType == 4 { 301 return fmt.Errorf("proto: Info: wiretype end group for non-group") 302 } 303 if fieldNum <= 0 { 304 return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) 305 } 306 switch fieldNum { 307 case 1: 308 if wireType != 2 { 309 return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType) 310 } 311 var stringLen uint64 312 for shift := uint(0); ; shift += 7 { 313 if shift >= 64 { 314 return ErrIntOverflowInfo 315 } 316 if iNdEx >= l { 317 return io.ErrUnexpectedEOF 318 } 319 b := dAtA[iNdEx] 320 iNdEx++ 321 stringLen |= uint64(b&0x7F) << shift 322 if b < 0x80 { 323 break 324 } 325 } 326 intStringLen := int(stringLen) 327 if intStringLen < 0 { 328 return ErrInvalidLengthInfo 329 } 330 postIndex := iNdEx + intStringLen 331 if postIndex < 0 { 332 return ErrInvalidLengthInfo 333 } 334 if postIndex > l { 335 return io.ErrUnexpectedEOF 336 } 337 m.GoVersion = string(dAtA[iNdEx:postIndex]) 338 iNdEx = postIndex 339 case 2: 340 if wireType != 2 { 341 return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) 342 } 343 var stringLen uint64 344 for shift := uint(0); ; shift += 7 { 345 if shift >= 64 { 346 return ErrIntOverflowInfo 347 } 348 if iNdEx >= l { 349 return io.ErrUnexpectedEOF 350 } 351 b := dAtA[iNdEx] 352 iNdEx++ 353 stringLen |= uint64(b&0x7F) << shift 354 if b < 0x80 { 355 break 356 } 357 } 358 intStringLen := int(stringLen) 359 if intStringLen < 0 { 360 return ErrInvalidLengthInfo 361 } 362 postIndex := iNdEx + intStringLen 363 if postIndex < 0 { 364 return ErrInvalidLengthInfo 365 } 366 if postIndex > l { 367 return io.ErrUnexpectedEOF 368 } 369 m.Tag = string(dAtA[iNdEx:postIndex]) 370 iNdEx = postIndex 371 case 3: 372 if wireType != 2 { 373 return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) 374 } 375 var stringLen uint64 376 for shift := uint(0); ; shift += 7 { 377 if shift >= 64 { 378 return ErrIntOverflowInfo 379 } 380 if iNdEx >= l { 381 return io.ErrUnexpectedEOF 382 } 383 b := dAtA[iNdEx] 384 iNdEx++ 385 stringLen |= uint64(b&0x7F) << shift 386 if b < 0x80 { 387 break 388 } 389 } 390 intStringLen := int(stringLen) 391 if intStringLen < 0 { 392 return ErrInvalidLengthInfo 393 } 394 postIndex := iNdEx + intStringLen 395 if postIndex < 0 { 396 return ErrInvalidLengthInfo 397 } 398 if postIndex > l { 399 return io.ErrUnexpectedEOF 400 } 401 m.Time = string(dAtA[iNdEx:postIndex]) 402 iNdEx = postIndex 403 case 4: 404 if wireType != 2 { 405 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 406 } 407 var stringLen uint64 408 for shift := uint(0); ; shift += 7 { 409 if shift >= 64 { 410 return ErrIntOverflowInfo 411 } 412 if iNdEx >= l { 413 return io.ErrUnexpectedEOF 414 } 415 b := dAtA[iNdEx] 416 iNdEx++ 417 stringLen |= uint64(b&0x7F) << shift 418 if b < 0x80 { 419 break 420 } 421 } 422 intStringLen := int(stringLen) 423 if intStringLen < 0 { 424 return ErrInvalidLengthInfo 425 } 426 postIndex := iNdEx + intStringLen 427 if postIndex < 0 { 428 return ErrInvalidLengthInfo 429 } 430 if postIndex > l { 431 return io.ErrUnexpectedEOF 432 } 433 m.Revision = string(dAtA[iNdEx:postIndex]) 434 iNdEx = postIndex 435 case 5: 436 if wireType != 2 { 437 return fmt.Errorf("proto: wrong wireType = %d for field CgoCompiler", wireType) 438 } 439 var stringLen uint64 440 for shift := uint(0); ; shift += 7 { 441 if shift >= 64 { 442 return ErrIntOverflowInfo 443 } 444 if iNdEx >= l { 445 return io.ErrUnexpectedEOF 446 } 447 b := dAtA[iNdEx] 448 iNdEx++ 449 stringLen |= uint64(b&0x7F) << shift 450 if b < 0x80 { 451 break 452 } 453 } 454 intStringLen := int(stringLen) 455 if intStringLen < 0 { 456 return ErrInvalidLengthInfo 457 } 458 postIndex := iNdEx + intStringLen 459 if postIndex < 0 { 460 return ErrInvalidLengthInfo 461 } 462 if postIndex > l { 463 return io.ErrUnexpectedEOF 464 } 465 m.CgoCompiler = string(dAtA[iNdEx:postIndex]) 466 iNdEx = postIndex 467 case 6: 468 if wireType != 2 { 469 return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType) 470 } 471 var stringLen uint64 472 for shift := uint(0); ; shift += 7 { 473 if shift >= 64 { 474 return ErrIntOverflowInfo 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 ErrInvalidLengthInfo 489 } 490 postIndex := iNdEx + intStringLen 491 if postIndex < 0 { 492 return ErrInvalidLengthInfo 493 } 494 if postIndex > l { 495 return io.ErrUnexpectedEOF 496 } 497 m.Platform = string(dAtA[iNdEx:postIndex]) 498 iNdEx = postIndex 499 case 7: 500 if wireType != 2 { 501 return fmt.Errorf("proto: wrong wireType = %d for field Distribution", wireType) 502 } 503 var stringLen uint64 504 for shift := uint(0); ; shift += 7 { 505 if shift >= 64 { 506 return ErrIntOverflowInfo 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 ErrInvalidLengthInfo 521 } 522 postIndex := iNdEx + intStringLen 523 if postIndex < 0 { 524 return ErrInvalidLengthInfo 525 } 526 if postIndex > l { 527 return io.ErrUnexpectedEOF 528 } 529 m.Distribution = string(dAtA[iNdEx:postIndex]) 530 iNdEx = postIndex 531 case 8: 532 if wireType != 2 { 533 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 534 } 535 var stringLen uint64 536 for shift := uint(0); ; shift += 7 { 537 if shift >= 64 { 538 return ErrIntOverflowInfo 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 ErrInvalidLengthInfo 553 } 554 postIndex := iNdEx + intStringLen 555 if postIndex < 0 { 556 return ErrInvalidLengthInfo 557 } 558 if postIndex > l { 559 return io.ErrUnexpectedEOF 560 } 561 m.Type = string(dAtA[iNdEx:postIndex]) 562 iNdEx = postIndex 563 case 9: 564 if wireType != 2 { 565 return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) 566 } 567 var stringLen uint64 568 for shift := uint(0); ; shift += 7 { 569 if shift >= 64 { 570 return ErrIntOverflowInfo 571 } 572 if iNdEx >= l { 573 return io.ErrUnexpectedEOF 574 } 575 b := dAtA[iNdEx] 576 iNdEx++ 577 stringLen |= uint64(b&0x7F) << shift 578 if b < 0x80 { 579 break 580 } 581 } 582 intStringLen := int(stringLen) 583 if intStringLen < 0 { 584 return ErrInvalidLengthInfo 585 } 586 postIndex := iNdEx + intStringLen 587 if postIndex < 0 { 588 return ErrInvalidLengthInfo 589 } 590 if postIndex > l { 591 return io.ErrUnexpectedEOF 592 } 593 m.Channel = string(dAtA[iNdEx:postIndex]) 594 iNdEx = postIndex 595 case 10: 596 if wireType != 2 { 597 return fmt.Errorf("proto: wrong wireType = %d for field CgoTargetTriple", wireType) 598 } 599 var stringLen uint64 600 for shift := uint(0); ; shift += 7 { 601 if shift >= 64 { 602 return ErrIntOverflowInfo 603 } 604 if iNdEx >= l { 605 return io.ErrUnexpectedEOF 606 } 607 b := dAtA[iNdEx] 608 iNdEx++ 609 stringLen |= uint64(b&0x7F) << shift 610 if b < 0x80 { 611 break 612 } 613 } 614 intStringLen := int(stringLen) 615 if intStringLen < 0 { 616 return ErrInvalidLengthInfo 617 } 618 postIndex := iNdEx + intStringLen 619 if postIndex < 0 { 620 return ErrInvalidLengthInfo 621 } 622 if postIndex > l { 623 return io.ErrUnexpectedEOF 624 } 625 m.CgoTargetTriple = string(dAtA[iNdEx:postIndex]) 626 iNdEx = postIndex 627 case 11: 628 if wireType != 2 { 629 return fmt.Errorf("proto: wrong wireType = %d for field EnvChannel", wireType) 630 } 631 var stringLen uint64 632 for shift := uint(0); ; shift += 7 { 633 if shift >= 64 { 634 return ErrIntOverflowInfo 635 } 636 if iNdEx >= l { 637 return io.ErrUnexpectedEOF 638 } 639 b := dAtA[iNdEx] 640 iNdEx++ 641 stringLen |= uint64(b&0x7F) << shift 642 if b < 0x80 { 643 break 644 } 645 } 646 intStringLen := int(stringLen) 647 if intStringLen < 0 { 648 return ErrInvalidLengthInfo 649 } 650 postIndex := iNdEx + intStringLen 651 if postIndex < 0 { 652 return ErrInvalidLengthInfo 653 } 654 if postIndex > l { 655 return io.ErrUnexpectedEOF 656 } 657 m.EnvChannel = string(dAtA[iNdEx:postIndex]) 658 iNdEx = postIndex 659 case 12: 660 if wireType != 0 { 661 return fmt.Errorf("proto: wrong wireType = %d for field EnabledAssertions", wireType) 662 } 663 var v int 664 for shift := uint(0); ; shift += 7 { 665 if shift >= 64 { 666 return ErrIntOverflowInfo 667 } 668 if iNdEx >= l { 669 return io.ErrUnexpectedEOF 670 } 671 b := dAtA[iNdEx] 672 iNdEx++ 673 v |= int(b&0x7F) << shift 674 if b < 0x80 { 675 break 676 } 677 } 678 m.EnabledAssertions = bool(v != 0) 679 case 10000: 680 if wireType != 2 { 681 return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType) 682 } 683 var stringLen uint64 684 for shift := uint(0); ; shift += 7 { 685 if shift >= 64 { 686 return ErrIntOverflowInfo 687 } 688 if iNdEx >= l { 689 return io.ErrUnexpectedEOF 690 } 691 b := dAtA[iNdEx] 692 iNdEx++ 693 stringLen |= uint64(b&0x7F) << shift 694 if b < 0x80 { 695 break 696 } 697 } 698 intStringLen := int(stringLen) 699 if intStringLen < 0 { 700 return ErrInvalidLengthInfo 701 } 702 postIndex := iNdEx + intStringLen 703 if postIndex < 0 { 704 return ErrInvalidLengthInfo 705 } 706 if postIndex > l { 707 return io.ErrUnexpectedEOF 708 } 709 s := string(dAtA[iNdEx:postIndex]) 710 m.Dependencies = &s 711 iNdEx = postIndex 712 default: 713 iNdEx = preIndex 714 skippy, err := skipInfo(dAtA[iNdEx:]) 715 if err != nil { 716 return err 717 } 718 if (skippy < 0) || (iNdEx+skippy) < 0 { 719 return ErrInvalidLengthInfo 720 } 721 if (iNdEx + skippy) > l { 722 return io.ErrUnexpectedEOF 723 } 724 iNdEx += skippy 725 } 726 } 727 728 if iNdEx > l { 729 return io.ErrUnexpectedEOF 730 } 731 return nil 732 } 733 func skipInfo(dAtA []byte) (n int, err error) { 734 l := len(dAtA) 735 iNdEx := 0 736 depth := 0 737 for iNdEx < l { 738 var wire uint64 739 for shift := uint(0); ; shift += 7 { 740 if shift >= 64 { 741 return 0, ErrIntOverflowInfo 742 } 743 if iNdEx >= l { 744 return 0, io.ErrUnexpectedEOF 745 } 746 b := dAtA[iNdEx] 747 iNdEx++ 748 wire |= (uint64(b) & 0x7F) << shift 749 if b < 0x80 { 750 break 751 } 752 } 753 wireType := int(wire & 0x7) 754 switch wireType { 755 case 0: 756 for shift := uint(0); ; shift += 7 { 757 if shift >= 64 { 758 return 0, ErrIntOverflowInfo 759 } 760 if iNdEx >= l { 761 return 0, io.ErrUnexpectedEOF 762 } 763 iNdEx++ 764 if dAtA[iNdEx-1] < 0x80 { 765 break 766 } 767 } 768 case 1: 769 iNdEx += 8 770 case 2: 771 var length int 772 for shift := uint(0); ; shift += 7 { 773 if shift >= 64 { 774 return 0, ErrIntOverflowInfo 775 } 776 if iNdEx >= l { 777 return 0, io.ErrUnexpectedEOF 778 } 779 b := dAtA[iNdEx] 780 iNdEx++ 781 length |= (int(b) & 0x7F) << shift 782 if b < 0x80 { 783 break 784 } 785 } 786 if length < 0 { 787 return 0, ErrInvalidLengthInfo 788 } 789 iNdEx += length 790 case 3: 791 depth++ 792 case 4: 793 if depth == 0 { 794 return 0, ErrUnexpectedEndOfGroupInfo 795 } 796 depth-- 797 case 5: 798 iNdEx += 4 799 default: 800 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 801 } 802 if iNdEx < 0 { 803 return 0, ErrInvalidLengthInfo 804 } 805 if depth == 0 { 806 return iNdEx, nil 807 } 808 } 809 return 0, io.ErrUnexpectedEOF 810 } 811 812 var ( 813 ErrInvalidLengthInfo = fmt.Errorf("proto: negative length found during unmarshaling") 814 ErrIntOverflowInfo = fmt.Errorf("proto: integer overflow") 815 ErrUnexpectedEndOfGroupInfo = fmt.Errorf("proto: unexpected end of group") 816 ) 817