github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/version/version.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: server/version/version.proto 3 4 // Version Service 5 // 6 // Version Service API returns the version of the API server. 7 8 package version 9 10 import ( 11 context "context" 12 fmt "fmt" 13 proto "github.com/gogo/protobuf/proto" 14 empty "github.com/golang/protobuf/ptypes/empty" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 // VersionMessage represents version of the Argo CD API server 36 type VersionMessage struct { 37 Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` 38 BuildDate string `protobuf:"bytes,2,opt,name=BuildDate,proto3" json:"BuildDate,omitempty"` 39 GitCommit string `protobuf:"bytes,3,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"` 40 GitTag string `protobuf:"bytes,4,opt,name=GitTag,proto3" json:"GitTag,omitempty"` 41 GitTreeState string `protobuf:"bytes,5,opt,name=GitTreeState,proto3" json:"GitTreeState,omitempty"` 42 GoVersion string `protobuf:"bytes,6,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"` 43 Compiler string `protobuf:"bytes,7,opt,name=Compiler,proto3" json:"Compiler,omitempty"` 44 Platform string `protobuf:"bytes,8,opt,name=Platform,proto3" json:"Platform,omitempty"` 45 KsonnetVersion string `protobuf:"bytes,9,opt,name=KsonnetVersion,proto3" json:"KsonnetVersion,omitempty"` 46 KustomizeVersion string `protobuf:"bytes,10,opt,name=KustomizeVersion,proto3" json:"KustomizeVersion,omitempty"` 47 HelmVersion string `protobuf:"bytes,11,opt,name=HelmVersion,proto3" json:"HelmVersion,omitempty"` 48 KubectlVersion string `protobuf:"bytes,12,opt,name=KubectlVersion,proto3" json:"KubectlVersion,omitempty"` 49 JsonnetVersion string `protobuf:"bytes,13,opt,name=JsonnetVersion,proto3" json:"JsonnetVersion,omitempty"` 50 XXX_NoUnkeyedLiteral struct{} `json:"-"` 51 XXX_unrecognized []byte `json:"-"` 52 XXX_sizecache int32 `json:"-"` 53 } 54 55 func (m *VersionMessage) Reset() { *m = VersionMessage{} } 56 func (m *VersionMessage) String() string { return proto.CompactTextString(m) } 57 func (*VersionMessage) ProtoMessage() {} 58 func (*VersionMessage) Descriptor() ([]byte, []int) { 59 return fileDescriptor_8be80977d07a4107, []int{0} 60 } 61 func (m *VersionMessage) XXX_Unmarshal(b []byte) error { 62 return m.Unmarshal(b) 63 } 64 func (m *VersionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 if deterministic { 66 return xxx_messageInfo_VersionMessage.Marshal(b, m, deterministic) 67 } else { 68 b = b[:cap(b)] 69 n, err := m.MarshalToSizedBuffer(b) 70 if err != nil { 71 return nil, err 72 } 73 return b[:n], nil 74 } 75 } 76 func (m *VersionMessage) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_VersionMessage.Merge(m, src) 78 } 79 func (m *VersionMessage) XXX_Size() int { 80 return m.Size() 81 } 82 func (m *VersionMessage) XXX_DiscardUnknown() { 83 xxx_messageInfo_VersionMessage.DiscardUnknown(m) 84 } 85 86 var xxx_messageInfo_VersionMessage proto.InternalMessageInfo 87 88 func (m *VersionMessage) GetVersion() string { 89 if m != nil { 90 return m.Version 91 } 92 return "" 93 } 94 95 func (m *VersionMessage) GetBuildDate() string { 96 if m != nil { 97 return m.BuildDate 98 } 99 return "" 100 } 101 102 func (m *VersionMessage) GetGitCommit() string { 103 if m != nil { 104 return m.GitCommit 105 } 106 return "" 107 } 108 109 func (m *VersionMessage) GetGitTag() string { 110 if m != nil { 111 return m.GitTag 112 } 113 return "" 114 } 115 116 func (m *VersionMessage) GetGitTreeState() string { 117 if m != nil { 118 return m.GitTreeState 119 } 120 return "" 121 } 122 123 func (m *VersionMessage) GetGoVersion() string { 124 if m != nil { 125 return m.GoVersion 126 } 127 return "" 128 } 129 130 func (m *VersionMessage) GetCompiler() string { 131 if m != nil { 132 return m.Compiler 133 } 134 return "" 135 } 136 137 func (m *VersionMessage) GetPlatform() string { 138 if m != nil { 139 return m.Platform 140 } 141 return "" 142 } 143 144 func (m *VersionMessage) GetKsonnetVersion() string { 145 if m != nil { 146 return m.KsonnetVersion 147 } 148 return "" 149 } 150 151 func (m *VersionMessage) GetKustomizeVersion() string { 152 if m != nil { 153 return m.KustomizeVersion 154 } 155 return "" 156 } 157 158 func (m *VersionMessage) GetHelmVersion() string { 159 if m != nil { 160 return m.HelmVersion 161 } 162 return "" 163 } 164 165 func (m *VersionMessage) GetKubectlVersion() string { 166 if m != nil { 167 return m.KubectlVersion 168 } 169 return "" 170 } 171 172 func (m *VersionMessage) GetJsonnetVersion() string { 173 if m != nil { 174 return m.JsonnetVersion 175 } 176 return "" 177 } 178 179 func init() { 180 proto.RegisterType((*VersionMessage)(nil), "version.VersionMessage") 181 } 182 183 func init() { proto.RegisterFile("server/version/version.proto", fileDescriptor_8be80977d07a4107) } 184 185 var fileDescriptor_8be80977d07a4107 = []byte{ 186 // 407 bytes of a gzipped FileDescriptorProto 187 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xcd, 0x6a, 0xdb, 0x40, 188 0x14, 0x85, 0x91, 0xdd, 0xfa, 0x67, 0xec, 0x9a, 0x32, 0x14, 0x57, 0xa8, 0xc6, 0x18, 0x2f, 0x4a, 189 0x29, 0x54, 0xa2, 0xed, 0x03, 0x14, 0xec, 0x16, 0x97, 0x9a, 0x82, 0x89, 0x43, 0x16, 0xd9, 0x8d, 190 0xe4, 0x6b, 0x65, 0x12, 0x8d, 0xae, 0x18, 0x8d, 0x0c, 0xc9, 0x32, 0xaf, 0x90, 0xf7, 0xc9, 0x3a, 191 0xcb, 0x40, 0x5e, 0x20, 0x98, 0x3c, 0x48, 0xd0, 0x48, 0xa3, 0x44, 0xc9, 0x4a, 0x73, 0xcf, 0xf9, 192 0x74, 0xee, 0xc0, 0x19, 0x32, 0x4a, 0x41, 0xee, 0x40, 0x7a, 0x3b, 0x90, 0x29, 0xc7, 0xd8, 0x7c, 193 0xdd, 0x44, 0xa2, 0x42, 0xda, 0x2e, 0x47, 0x67, 0x14, 0x22, 0x86, 0x11, 0x78, 0x2c, 0xe1, 0x1e, 194 0x8b, 0x63, 0x54, 0x4c, 0x71, 0x8c, 0xd3, 0x02, 0x73, 0x3e, 0x95, 0xae, 0x9e, 0xfc, 0x6c, 0xeb, 195 0x81, 0x48, 0xd4, 0x79, 0x61, 0x4e, 0xaf, 0x9b, 0x64, 0x70, 0x54, 0xc4, 0xfc, 0x87, 0x34, 0x65, 196 0x21, 0x50, 0x9b, 0xb4, 0x4b, 0xc5, 0xb6, 0x26, 0xd6, 0x97, 0xee, 0x81, 0x19, 0xe9, 0x88, 0x74, 197 0x67, 0x19, 0x8f, 0x36, 0xbf, 0x99, 0x02, 0xbb, 0xa1, 0xbd, 0x27, 0x21, 0x77, 0x17, 0x5c, 0xcd, 198 0x51, 0x08, 0xae, 0xec, 0x66, 0xe1, 0x56, 0x02, 0x1d, 0x92, 0xd6, 0x82, 0xab, 0x43, 0x16, 0xda, 199 0x6f, 0xb4, 0x55, 0x4e, 0x74, 0x4a, 0xfa, 0xf9, 0x49, 0x02, 0xac, 0x55, 0x1e, 0xfb, 0x56, 0xbb, 200 0x35, 0x4d, 0x27, 0xa3, 0xb9, 0x53, 0xab, 0x4c, 0x36, 0x02, 0x75, 0x48, 0x67, 0x8e, 0x22, 0xe1, 201 0x11, 0x48, 0xbb, 0xad, 0xcd, 0x6a, 0xce, 0xbd, 0x55, 0xc4, 0xd4, 0x16, 0xa5, 0xb0, 0x3b, 0x85, 202 0x67, 0x66, 0xfa, 0x99, 0x0c, 0x96, 0x29, 0xc6, 0x31, 0x28, 0x13, 0xdd, 0xd5, 0xc4, 0x0b, 0x95, 203 0x7e, 0x25, 0xef, 0x97, 0x59, 0xaa, 0x50, 0xf0, 0x0b, 0x30, 0x24, 0xd1, 0xe4, 0x2b, 0x9d, 0x4e, 204 0x48, 0xef, 0x2f, 0x44, 0xc2, 0x60, 0x3d, 0x8d, 0x3d, 0x97, 0xf4, 0xd6, 0xcc, 0x87, 0x40, 0x45, 205 0x06, 0xea, 0x97, 0x5b, 0x6b, 0x6a, 0xce, 0xfd, 0xab, 0xdf, 0xee, 0x5d, 0xc1, 0xd5, 0xd5, 0x1f, 206 0x7e, 0xd5, 0xdf, 0x1a, 0xe4, 0x8e, 0x07, 0x40, 0x57, 0x55, 0x7f, 0x74, 0xe8, 0x16, 0xdd, 0xbb, 207 0xa6, 0x7b, 0xf7, 0x4f, 0xde, 0xbd, 0xf3, 0xd1, 0x35, 0x2f, 0xa9, 0xde, 0xfd, 0xf4, 0xc3, 0xe5, 208 0xdd, 0xc3, 0x55, 0x63, 0x40, 0xfb, 0xfa, 0x2d, 0x95, 0xd0, 0xec, 0xd7, 0xcd, 0x7e, 0x6c, 0xdd, 209 0xee, 0xc7, 0xd6, 0xfd, 0x7e, 0x6c, 0x1d, 0x7f, 0x0f, 0xb9, 0x3a, 0xc9, 0x7c, 0x37, 0x40, 0xe1, 210 0x31, 0x19, 0x62, 0x22, 0xf1, 0x54, 0x1f, 0xbe, 0x05, 0x1b, 0x2f, 0x39, 0x0b, 0xf3, 0x5f, 0x83, 211 0x88, 0x43, 0xac, 0x4c, 0x80, 0xdf, 0xd2, 0xfb, 0x7f, 0x3e, 0x06, 0x00, 0x00, 0xff, 0xff, 0x50, 212 0x52, 0xad, 0xa0, 0xd0, 0x02, 0x00, 0x00, 213 } 214 215 // Reference imports to suppress errors if they are not otherwise used. 216 var _ context.Context 217 var _ grpc.ClientConn 218 219 // This is a compile-time assertion to ensure that this generated file 220 // is compatible with the grpc package it is being compiled against. 221 const _ = grpc.SupportPackageIsVersion4 222 223 // VersionServiceClient is the client API for VersionService service. 224 // 225 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 226 type VersionServiceClient interface { 227 // Version returns version information of the API server 228 Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionMessage, error) 229 } 230 231 type versionServiceClient struct { 232 cc *grpc.ClientConn 233 } 234 235 func NewVersionServiceClient(cc *grpc.ClientConn) VersionServiceClient { 236 return &versionServiceClient{cc} 237 } 238 239 func (c *versionServiceClient) Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionMessage, error) { 240 out := new(VersionMessage) 241 err := c.cc.Invoke(ctx, "/version.VersionService/Version", in, out, opts...) 242 if err != nil { 243 return nil, err 244 } 245 return out, nil 246 } 247 248 // VersionServiceServer is the server API for VersionService service. 249 type VersionServiceServer interface { 250 // Version returns version information of the API server 251 Version(context.Context, *empty.Empty) (*VersionMessage, error) 252 } 253 254 // UnimplementedVersionServiceServer can be embedded to have forward compatible implementations. 255 type UnimplementedVersionServiceServer struct { 256 } 257 258 func (*UnimplementedVersionServiceServer) Version(ctx context.Context, req *empty.Empty) (*VersionMessage, error) { 259 return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") 260 } 261 262 func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer) { 263 s.RegisterService(&_VersionService_serviceDesc, srv) 264 } 265 266 func _VersionService_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 267 in := new(empty.Empty) 268 if err := dec(in); err != nil { 269 return nil, err 270 } 271 if interceptor == nil { 272 return srv.(VersionServiceServer).Version(ctx, in) 273 } 274 info := &grpc.UnaryServerInfo{ 275 Server: srv, 276 FullMethod: "/version.VersionService/Version", 277 } 278 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 279 return srv.(VersionServiceServer).Version(ctx, req.(*empty.Empty)) 280 } 281 return interceptor(ctx, in, info, handler) 282 } 283 284 var _VersionService_serviceDesc = grpc.ServiceDesc{ 285 ServiceName: "version.VersionService", 286 HandlerType: (*VersionServiceServer)(nil), 287 Methods: []grpc.MethodDesc{ 288 { 289 MethodName: "Version", 290 Handler: _VersionService_Version_Handler, 291 }, 292 }, 293 Streams: []grpc.StreamDesc{}, 294 Metadata: "server/version/version.proto", 295 } 296 297 func (m *VersionMessage) Marshal() (dAtA []byte, err error) { 298 size := m.Size() 299 dAtA = make([]byte, size) 300 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 301 if err != nil { 302 return nil, err 303 } 304 return dAtA[:n], nil 305 } 306 307 func (m *VersionMessage) MarshalTo(dAtA []byte) (int, error) { 308 size := m.Size() 309 return m.MarshalToSizedBuffer(dAtA[:size]) 310 } 311 312 func (m *VersionMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 313 i := len(dAtA) 314 _ = i 315 var l int 316 _ = l 317 if m.XXX_unrecognized != nil { 318 i -= len(m.XXX_unrecognized) 319 copy(dAtA[i:], m.XXX_unrecognized) 320 } 321 if len(m.JsonnetVersion) > 0 { 322 i -= len(m.JsonnetVersion) 323 copy(dAtA[i:], m.JsonnetVersion) 324 i = encodeVarintVersion(dAtA, i, uint64(len(m.JsonnetVersion))) 325 i-- 326 dAtA[i] = 0x6a 327 } 328 if len(m.KubectlVersion) > 0 { 329 i -= len(m.KubectlVersion) 330 copy(dAtA[i:], m.KubectlVersion) 331 i = encodeVarintVersion(dAtA, i, uint64(len(m.KubectlVersion))) 332 i-- 333 dAtA[i] = 0x62 334 } 335 if len(m.HelmVersion) > 0 { 336 i -= len(m.HelmVersion) 337 copy(dAtA[i:], m.HelmVersion) 338 i = encodeVarintVersion(dAtA, i, uint64(len(m.HelmVersion))) 339 i-- 340 dAtA[i] = 0x5a 341 } 342 if len(m.KustomizeVersion) > 0 { 343 i -= len(m.KustomizeVersion) 344 copy(dAtA[i:], m.KustomizeVersion) 345 i = encodeVarintVersion(dAtA, i, uint64(len(m.KustomizeVersion))) 346 i-- 347 dAtA[i] = 0x52 348 } 349 if len(m.KsonnetVersion) > 0 { 350 i -= len(m.KsonnetVersion) 351 copy(dAtA[i:], m.KsonnetVersion) 352 i = encodeVarintVersion(dAtA, i, uint64(len(m.KsonnetVersion))) 353 i-- 354 dAtA[i] = 0x4a 355 } 356 if len(m.Platform) > 0 { 357 i -= len(m.Platform) 358 copy(dAtA[i:], m.Platform) 359 i = encodeVarintVersion(dAtA, i, uint64(len(m.Platform))) 360 i-- 361 dAtA[i] = 0x42 362 } 363 if len(m.Compiler) > 0 { 364 i -= len(m.Compiler) 365 copy(dAtA[i:], m.Compiler) 366 i = encodeVarintVersion(dAtA, i, uint64(len(m.Compiler))) 367 i-- 368 dAtA[i] = 0x3a 369 } 370 if len(m.GoVersion) > 0 { 371 i -= len(m.GoVersion) 372 copy(dAtA[i:], m.GoVersion) 373 i = encodeVarintVersion(dAtA, i, uint64(len(m.GoVersion))) 374 i-- 375 dAtA[i] = 0x32 376 } 377 if len(m.GitTreeState) > 0 { 378 i -= len(m.GitTreeState) 379 copy(dAtA[i:], m.GitTreeState) 380 i = encodeVarintVersion(dAtA, i, uint64(len(m.GitTreeState))) 381 i-- 382 dAtA[i] = 0x2a 383 } 384 if len(m.GitTag) > 0 { 385 i -= len(m.GitTag) 386 copy(dAtA[i:], m.GitTag) 387 i = encodeVarintVersion(dAtA, i, uint64(len(m.GitTag))) 388 i-- 389 dAtA[i] = 0x22 390 } 391 if len(m.GitCommit) > 0 { 392 i -= len(m.GitCommit) 393 copy(dAtA[i:], m.GitCommit) 394 i = encodeVarintVersion(dAtA, i, uint64(len(m.GitCommit))) 395 i-- 396 dAtA[i] = 0x1a 397 } 398 if len(m.BuildDate) > 0 { 399 i -= len(m.BuildDate) 400 copy(dAtA[i:], m.BuildDate) 401 i = encodeVarintVersion(dAtA, i, uint64(len(m.BuildDate))) 402 i-- 403 dAtA[i] = 0x12 404 } 405 if len(m.Version) > 0 { 406 i -= len(m.Version) 407 copy(dAtA[i:], m.Version) 408 i = encodeVarintVersion(dAtA, i, uint64(len(m.Version))) 409 i-- 410 dAtA[i] = 0xa 411 } 412 return len(dAtA) - i, nil 413 } 414 415 func encodeVarintVersion(dAtA []byte, offset int, v uint64) int { 416 offset -= sovVersion(v) 417 base := offset 418 for v >= 1<<7 { 419 dAtA[offset] = uint8(v&0x7f | 0x80) 420 v >>= 7 421 offset++ 422 } 423 dAtA[offset] = uint8(v) 424 return base 425 } 426 func (m *VersionMessage) Size() (n int) { 427 if m == nil { 428 return 0 429 } 430 var l int 431 _ = l 432 l = len(m.Version) 433 if l > 0 { 434 n += 1 + l + sovVersion(uint64(l)) 435 } 436 l = len(m.BuildDate) 437 if l > 0 { 438 n += 1 + l + sovVersion(uint64(l)) 439 } 440 l = len(m.GitCommit) 441 if l > 0 { 442 n += 1 + l + sovVersion(uint64(l)) 443 } 444 l = len(m.GitTag) 445 if l > 0 { 446 n += 1 + l + sovVersion(uint64(l)) 447 } 448 l = len(m.GitTreeState) 449 if l > 0 { 450 n += 1 + l + sovVersion(uint64(l)) 451 } 452 l = len(m.GoVersion) 453 if l > 0 { 454 n += 1 + l + sovVersion(uint64(l)) 455 } 456 l = len(m.Compiler) 457 if l > 0 { 458 n += 1 + l + sovVersion(uint64(l)) 459 } 460 l = len(m.Platform) 461 if l > 0 { 462 n += 1 + l + sovVersion(uint64(l)) 463 } 464 l = len(m.KsonnetVersion) 465 if l > 0 { 466 n += 1 + l + sovVersion(uint64(l)) 467 } 468 l = len(m.KustomizeVersion) 469 if l > 0 { 470 n += 1 + l + sovVersion(uint64(l)) 471 } 472 l = len(m.HelmVersion) 473 if l > 0 { 474 n += 1 + l + sovVersion(uint64(l)) 475 } 476 l = len(m.KubectlVersion) 477 if l > 0 { 478 n += 1 + l + sovVersion(uint64(l)) 479 } 480 l = len(m.JsonnetVersion) 481 if l > 0 { 482 n += 1 + l + sovVersion(uint64(l)) 483 } 484 if m.XXX_unrecognized != nil { 485 n += len(m.XXX_unrecognized) 486 } 487 return n 488 } 489 490 func sovVersion(x uint64) (n int) { 491 return (math_bits.Len64(x|1) + 6) / 7 492 } 493 func sozVersion(x uint64) (n int) { 494 return sovVersion(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 495 } 496 func (m *VersionMessage) Unmarshal(dAtA []byte) error { 497 l := len(dAtA) 498 iNdEx := 0 499 for iNdEx < l { 500 preIndex := iNdEx 501 var wire uint64 502 for shift := uint(0); ; shift += 7 { 503 if shift >= 64 { 504 return ErrIntOverflowVersion 505 } 506 if iNdEx >= l { 507 return io.ErrUnexpectedEOF 508 } 509 b := dAtA[iNdEx] 510 iNdEx++ 511 wire |= uint64(b&0x7F) << shift 512 if b < 0x80 { 513 break 514 } 515 } 516 fieldNum := int32(wire >> 3) 517 wireType := int(wire & 0x7) 518 if wireType == 4 { 519 return fmt.Errorf("proto: VersionMessage: wiretype end group for non-group") 520 } 521 if fieldNum <= 0 { 522 return fmt.Errorf("proto: VersionMessage: illegal tag %d (wire type %d)", fieldNum, wire) 523 } 524 switch fieldNum { 525 case 1: 526 if wireType != 2 { 527 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 528 } 529 var stringLen uint64 530 for shift := uint(0); ; shift += 7 { 531 if shift >= 64 { 532 return ErrIntOverflowVersion 533 } 534 if iNdEx >= l { 535 return io.ErrUnexpectedEOF 536 } 537 b := dAtA[iNdEx] 538 iNdEx++ 539 stringLen |= uint64(b&0x7F) << shift 540 if b < 0x80 { 541 break 542 } 543 } 544 intStringLen := int(stringLen) 545 if intStringLen < 0 { 546 return ErrInvalidLengthVersion 547 } 548 postIndex := iNdEx + intStringLen 549 if postIndex < 0 { 550 return ErrInvalidLengthVersion 551 } 552 if postIndex > l { 553 return io.ErrUnexpectedEOF 554 } 555 m.Version = string(dAtA[iNdEx:postIndex]) 556 iNdEx = postIndex 557 case 2: 558 if wireType != 2 { 559 return fmt.Errorf("proto: wrong wireType = %d for field BuildDate", wireType) 560 } 561 var stringLen uint64 562 for shift := uint(0); ; shift += 7 { 563 if shift >= 64 { 564 return ErrIntOverflowVersion 565 } 566 if iNdEx >= l { 567 return io.ErrUnexpectedEOF 568 } 569 b := dAtA[iNdEx] 570 iNdEx++ 571 stringLen |= uint64(b&0x7F) << shift 572 if b < 0x80 { 573 break 574 } 575 } 576 intStringLen := int(stringLen) 577 if intStringLen < 0 { 578 return ErrInvalidLengthVersion 579 } 580 postIndex := iNdEx + intStringLen 581 if postIndex < 0 { 582 return ErrInvalidLengthVersion 583 } 584 if postIndex > l { 585 return io.ErrUnexpectedEOF 586 } 587 m.BuildDate = string(dAtA[iNdEx:postIndex]) 588 iNdEx = postIndex 589 case 3: 590 if wireType != 2 { 591 return fmt.Errorf("proto: wrong wireType = %d for field GitCommit", wireType) 592 } 593 var stringLen uint64 594 for shift := uint(0); ; shift += 7 { 595 if shift >= 64 { 596 return ErrIntOverflowVersion 597 } 598 if iNdEx >= l { 599 return io.ErrUnexpectedEOF 600 } 601 b := dAtA[iNdEx] 602 iNdEx++ 603 stringLen |= uint64(b&0x7F) << shift 604 if b < 0x80 { 605 break 606 } 607 } 608 intStringLen := int(stringLen) 609 if intStringLen < 0 { 610 return ErrInvalidLengthVersion 611 } 612 postIndex := iNdEx + intStringLen 613 if postIndex < 0 { 614 return ErrInvalidLengthVersion 615 } 616 if postIndex > l { 617 return io.ErrUnexpectedEOF 618 } 619 m.GitCommit = string(dAtA[iNdEx:postIndex]) 620 iNdEx = postIndex 621 case 4: 622 if wireType != 2 { 623 return fmt.Errorf("proto: wrong wireType = %d for field GitTag", wireType) 624 } 625 var stringLen uint64 626 for shift := uint(0); ; shift += 7 { 627 if shift >= 64 { 628 return ErrIntOverflowVersion 629 } 630 if iNdEx >= l { 631 return io.ErrUnexpectedEOF 632 } 633 b := dAtA[iNdEx] 634 iNdEx++ 635 stringLen |= uint64(b&0x7F) << shift 636 if b < 0x80 { 637 break 638 } 639 } 640 intStringLen := int(stringLen) 641 if intStringLen < 0 { 642 return ErrInvalidLengthVersion 643 } 644 postIndex := iNdEx + intStringLen 645 if postIndex < 0 { 646 return ErrInvalidLengthVersion 647 } 648 if postIndex > l { 649 return io.ErrUnexpectedEOF 650 } 651 m.GitTag = string(dAtA[iNdEx:postIndex]) 652 iNdEx = postIndex 653 case 5: 654 if wireType != 2 { 655 return fmt.Errorf("proto: wrong wireType = %d for field GitTreeState", wireType) 656 } 657 var stringLen uint64 658 for shift := uint(0); ; shift += 7 { 659 if shift >= 64 { 660 return ErrIntOverflowVersion 661 } 662 if iNdEx >= l { 663 return io.ErrUnexpectedEOF 664 } 665 b := dAtA[iNdEx] 666 iNdEx++ 667 stringLen |= uint64(b&0x7F) << shift 668 if b < 0x80 { 669 break 670 } 671 } 672 intStringLen := int(stringLen) 673 if intStringLen < 0 { 674 return ErrInvalidLengthVersion 675 } 676 postIndex := iNdEx + intStringLen 677 if postIndex < 0 { 678 return ErrInvalidLengthVersion 679 } 680 if postIndex > l { 681 return io.ErrUnexpectedEOF 682 } 683 m.GitTreeState = string(dAtA[iNdEx:postIndex]) 684 iNdEx = postIndex 685 case 6: 686 if wireType != 2 { 687 return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType) 688 } 689 var stringLen uint64 690 for shift := uint(0); ; shift += 7 { 691 if shift >= 64 { 692 return ErrIntOverflowVersion 693 } 694 if iNdEx >= l { 695 return io.ErrUnexpectedEOF 696 } 697 b := dAtA[iNdEx] 698 iNdEx++ 699 stringLen |= uint64(b&0x7F) << shift 700 if b < 0x80 { 701 break 702 } 703 } 704 intStringLen := int(stringLen) 705 if intStringLen < 0 { 706 return ErrInvalidLengthVersion 707 } 708 postIndex := iNdEx + intStringLen 709 if postIndex < 0 { 710 return ErrInvalidLengthVersion 711 } 712 if postIndex > l { 713 return io.ErrUnexpectedEOF 714 } 715 m.GoVersion = string(dAtA[iNdEx:postIndex]) 716 iNdEx = postIndex 717 case 7: 718 if wireType != 2 { 719 return fmt.Errorf("proto: wrong wireType = %d for field Compiler", wireType) 720 } 721 var stringLen uint64 722 for shift := uint(0); ; shift += 7 { 723 if shift >= 64 { 724 return ErrIntOverflowVersion 725 } 726 if iNdEx >= l { 727 return io.ErrUnexpectedEOF 728 } 729 b := dAtA[iNdEx] 730 iNdEx++ 731 stringLen |= uint64(b&0x7F) << shift 732 if b < 0x80 { 733 break 734 } 735 } 736 intStringLen := int(stringLen) 737 if intStringLen < 0 { 738 return ErrInvalidLengthVersion 739 } 740 postIndex := iNdEx + intStringLen 741 if postIndex < 0 { 742 return ErrInvalidLengthVersion 743 } 744 if postIndex > l { 745 return io.ErrUnexpectedEOF 746 } 747 m.Compiler = string(dAtA[iNdEx:postIndex]) 748 iNdEx = postIndex 749 case 8: 750 if wireType != 2 { 751 return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType) 752 } 753 var stringLen uint64 754 for shift := uint(0); ; shift += 7 { 755 if shift >= 64 { 756 return ErrIntOverflowVersion 757 } 758 if iNdEx >= l { 759 return io.ErrUnexpectedEOF 760 } 761 b := dAtA[iNdEx] 762 iNdEx++ 763 stringLen |= uint64(b&0x7F) << shift 764 if b < 0x80 { 765 break 766 } 767 } 768 intStringLen := int(stringLen) 769 if intStringLen < 0 { 770 return ErrInvalidLengthVersion 771 } 772 postIndex := iNdEx + intStringLen 773 if postIndex < 0 { 774 return ErrInvalidLengthVersion 775 } 776 if postIndex > l { 777 return io.ErrUnexpectedEOF 778 } 779 m.Platform = string(dAtA[iNdEx:postIndex]) 780 iNdEx = postIndex 781 case 9: 782 if wireType != 2 { 783 return fmt.Errorf("proto: wrong wireType = %d for field KsonnetVersion", wireType) 784 } 785 var stringLen uint64 786 for shift := uint(0); ; shift += 7 { 787 if shift >= 64 { 788 return ErrIntOverflowVersion 789 } 790 if iNdEx >= l { 791 return io.ErrUnexpectedEOF 792 } 793 b := dAtA[iNdEx] 794 iNdEx++ 795 stringLen |= uint64(b&0x7F) << shift 796 if b < 0x80 { 797 break 798 } 799 } 800 intStringLen := int(stringLen) 801 if intStringLen < 0 { 802 return ErrInvalidLengthVersion 803 } 804 postIndex := iNdEx + intStringLen 805 if postIndex < 0 { 806 return ErrInvalidLengthVersion 807 } 808 if postIndex > l { 809 return io.ErrUnexpectedEOF 810 } 811 m.KsonnetVersion = string(dAtA[iNdEx:postIndex]) 812 iNdEx = postIndex 813 case 10: 814 if wireType != 2 { 815 return fmt.Errorf("proto: wrong wireType = %d for field KustomizeVersion", wireType) 816 } 817 var stringLen uint64 818 for shift := uint(0); ; shift += 7 { 819 if shift >= 64 { 820 return ErrIntOverflowVersion 821 } 822 if iNdEx >= l { 823 return io.ErrUnexpectedEOF 824 } 825 b := dAtA[iNdEx] 826 iNdEx++ 827 stringLen |= uint64(b&0x7F) << shift 828 if b < 0x80 { 829 break 830 } 831 } 832 intStringLen := int(stringLen) 833 if intStringLen < 0 { 834 return ErrInvalidLengthVersion 835 } 836 postIndex := iNdEx + intStringLen 837 if postIndex < 0 { 838 return ErrInvalidLengthVersion 839 } 840 if postIndex > l { 841 return io.ErrUnexpectedEOF 842 } 843 m.KustomizeVersion = string(dAtA[iNdEx:postIndex]) 844 iNdEx = postIndex 845 case 11: 846 if wireType != 2 { 847 return fmt.Errorf("proto: wrong wireType = %d for field HelmVersion", wireType) 848 } 849 var stringLen uint64 850 for shift := uint(0); ; shift += 7 { 851 if shift >= 64 { 852 return ErrIntOverflowVersion 853 } 854 if iNdEx >= l { 855 return io.ErrUnexpectedEOF 856 } 857 b := dAtA[iNdEx] 858 iNdEx++ 859 stringLen |= uint64(b&0x7F) << shift 860 if b < 0x80 { 861 break 862 } 863 } 864 intStringLen := int(stringLen) 865 if intStringLen < 0 { 866 return ErrInvalidLengthVersion 867 } 868 postIndex := iNdEx + intStringLen 869 if postIndex < 0 { 870 return ErrInvalidLengthVersion 871 } 872 if postIndex > l { 873 return io.ErrUnexpectedEOF 874 } 875 m.HelmVersion = string(dAtA[iNdEx:postIndex]) 876 iNdEx = postIndex 877 case 12: 878 if wireType != 2 { 879 return fmt.Errorf("proto: wrong wireType = %d for field KubectlVersion", wireType) 880 } 881 var stringLen uint64 882 for shift := uint(0); ; shift += 7 { 883 if shift >= 64 { 884 return ErrIntOverflowVersion 885 } 886 if iNdEx >= l { 887 return io.ErrUnexpectedEOF 888 } 889 b := dAtA[iNdEx] 890 iNdEx++ 891 stringLen |= uint64(b&0x7F) << shift 892 if b < 0x80 { 893 break 894 } 895 } 896 intStringLen := int(stringLen) 897 if intStringLen < 0 { 898 return ErrInvalidLengthVersion 899 } 900 postIndex := iNdEx + intStringLen 901 if postIndex < 0 { 902 return ErrInvalidLengthVersion 903 } 904 if postIndex > l { 905 return io.ErrUnexpectedEOF 906 } 907 m.KubectlVersion = string(dAtA[iNdEx:postIndex]) 908 iNdEx = postIndex 909 case 13: 910 if wireType != 2 { 911 return fmt.Errorf("proto: wrong wireType = %d for field JsonnetVersion", wireType) 912 } 913 var stringLen uint64 914 for shift := uint(0); ; shift += 7 { 915 if shift >= 64 { 916 return ErrIntOverflowVersion 917 } 918 if iNdEx >= l { 919 return io.ErrUnexpectedEOF 920 } 921 b := dAtA[iNdEx] 922 iNdEx++ 923 stringLen |= uint64(b&0x7F) << shift 924 if b < 0x80 { 925 break 926 } 927 } 928 intStringLen := int(stringLen) 929 if intStringLen < 0 { 930 return ErrInvalidLengthVersion 931 } 932 postIndex := iNdEx + intStringLen 933 if postIndex < 0 { 934 return ErrInvalidLengthVersion 935 } 936 if postIndex > l { 937 return io.ErrUnexpectedEOF 938 } 939 m.JsonnetVersion = string(dAtA[iNdEx:postIndex]) 940 iNdEx = postIndex 941 default: 942 iNdEx = preIndex 943 skippy, err := skipVersion(dAtA[iNdEx:]) 944 if err != nil { 945 return err 946 } 947 if skippy < 0 { 948 return ErrInvalidLengthVersion 949 } 950 if (iNdEx + skippy) < 0 { 951 return ErrInvalidLengthVersion 952 } 953 if (iNdEx + skippy) > l { 954 return io.ErrUnexpectedEOF 955 } 956 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 957 iNdEx += skippy 958 } 959 } 960 961 if iNdEx > l { 962 return io.ErrUnexpectedEOF 963 } 964 return nil 965 } 966 func skipVersion(dAtA []byte) (n int, err error) { 967 l := len(dAtA) 968 iNdEx := 0 969 depth := 0 970 for iNdEx < l { 971 var wire uint64 972 for shift := uint(0); ; shift += 7 { 973 if shift >= 64 { 974 return 0, ErrIntOverflowVersion 975 } 976 if iNdEx >= l { 977 return 0, io.ErrUnexpectedEOF 978 } 979 b := dAtA[iNdEx] 980 iNdEx++ 981 wire |= (uint64(b) & 0x7F) << shift 982 if b < 0x80 { 983 break 984 } 985 } 986 wireType := int(wire & 0x7) 987 switch wireType { 988 case 0: 989 for shift := uint(0); ; shift += 7 { 990 if shift >= 64 { 991 return 0, ErrIntOverflowVersion 992 } 993 if iNdEx >= l { 994 return 0, io.ErrUnexpectedEOF 995 } 996 iNdEx++ 997 if dAtA[iNdEx-1] < 0x80 { 998 break 999 } 1000 } 1001 case 1: 1002 iNdEx += 8 1003 case 2: 1004 var length int 1005 for shift := uint(0); ; shift += 7 { 1006 if shift >= 64 { 1007 return 0, ErrIntOverflowVersion 1008 } 1009 if iNdEx >= l { 1010 return 0, io.ErrUnexpectedEOF 1011 } 1012 b := dAtA[iNdEx] 1013 iNdEx++ 1014 length |= (int(b) & 0x7F) << shift 1015 if b < 0x80 { 1016 break 1017 } 1018 } 1019 if length < 0 { 1020 return 0, ErrInvalidLengthVersion 1021 } 1022 iNdEx += length 1023 case 3: 1024 depth++ 1025 case 4: 1026 if depth == 0 { 1027 return 0, ErrUnexpectedEndOfGroupVersion 1028 } 1029 depth-- 1030 case 5: 1031 iNdEx += 4 1032 default: 1033 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1034 } 1035 if iNdEx < 0 { 1036 return 0, ErrInvalidLengthVersion 1037 } 1038 if depth == 0 { 1039 return iNdEx, nil 1040 } 1041 } 1042 return 0, io.ErrUnexpectedEOF 1043 } 1044 1045 var ( 1046 ErrInvalidLengthVersion = fmt.Errorf("proto: negative length found during unmarshaling") 1047 ErrIntOverflowVersion = fmt.Errorf("proto: integer overflow") 1048 ErrUnexpectedEndOfGroupVersion = fmt.Errorf("proto: unexpected end of group") 1049 )