github.com/argoproj/argo-cd/v2@v2.10.9/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  	_ "google.golang.org/genproto/googleapis/api/annotations"
    15  	grpc "google.golang.org/grpc"
    16  	codes "google.golang.org/grpc/codes"
    17  	status "google.golang.org/grpc/status"
    18  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    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  	KustomizeVersion     string   `protobuf:"bytes,10,opt,name=KustomizeVersion,proto3" json:"KustomizeVersion,omitempty"`
    46  	HelmVersion          string   `protobuf:"bytes,11,opt,name=HelmVersion,proto3" json:"HelmVersion,omitempty"`
    47  	KubectlVersion       string   `protobuf:"bytes,12,opt,name=KubectlVersion,proto3" json:"KubectlVersion,omitempty"`
    48  	JsonnetVersion       string   `protobuf:"bytes,13,opt,name=JsonnetVersion,proto3" json:"JsonnetVersion,omitempty"`
    49  	ExtraBuildInfo       string   `protobuf:"bytes,14,opt,name=ExtraBuildInfo,proto3" json:"ExtraBuildInfo,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) GetKustomizeVersion() string {
   145  	if m != nil {
   146  		return m.KustomizeVersion
   147  	}
   148  	return ""
   149  }
   150  
   151  func (m *VersionMessage) GetHelmVersion() string {
   152  	if m != nil {
   153  		return m.HelmVersion
   154  	}
   155  	return ""
   156  }
   157  
   158  func (m *VersionMessage) GetKubectlVersion() string {
   159  	if m != nil {
   160  		return m.KubectlVersion
   161  	}
   162  	return ""
   163  }
   164  
   165  func (m *VersionMessage) GetJsonnetVersion() string {
   166  	if m != nil {
   167  		return m.JsonnetVersion
   168  	}
   169  	return ""
   170  }
   171  
   172  func (m *VersionMessage) GetExtraBuildInfo() string {
   173  	if m != nil {
   174  		return m.ExtraBuildInfo
   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  	// 415 bytes of a gzipped FileDescriptorProto
   187  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xd1, 0x6a, 0x14, 0x31,
   188  	0x18, 0x85, 0x99, 0x56, 0x77, 0xdb, 0x74, 0x5d, 0x24, 0x48, 0x0d, 0xeb, 0xb2, 0x94, 0xbd, 0x10,
   189  	0x11, 0x9c, 0x81, 0xea, 0x13, 0x6c, 0x2d, 0x55, 0x8b, 0x50, 0xac, 0x78, 0xe1, 0x5d, 0x66, 0xfa,
   190  	0xef, 0x18, 0x9d, 0xe4, 0x1f, 0x32, 0xff, 0x2c, 0xea, 0xa5, 0xaf, 0xe0, 0xfb, 0x78, 0xed, 0xa5,
   191  	0xe0, 0x0b, 0xc8, 0xe2, 0x83, 0x48, 0x92, 0xc9, 0xe8, 0xd8, 0xab, 0xcd, 0x39, 0xe7, 0xdb, 0x43,
   192  	0x98, 0x13, 0x36, 0x6f, 0xc0, 0x6e, 0xc0, 0x66, 0x1b, 0xb0, 0x8d, 0x42, 0x13, 0x7f, 0xd3, 0xda,
   193  	0x22, 0x21, 0x1f, 0x77, 0x72, 0x36, 0x2f, 0x11, 0xcb, 0x0a, 0x32, 0x59, 0xab, 0x4c, 0x1a, 0x83,
   194  	0x24, 0x49, 0xa1, 0x69, 0x02, 0x36, 0xbb, 0xd7, 0xa5, 0x5e, 0xe5, 0xed, 0x3a, 0x03, 0x5d, 0xd3,
   195  	0xa7, 0x10, 0x2e, 0xbf, 0xed, 0xb2, 0xe9, 0x9b, 0x50, 0xf3, 0x12, 0x9a, 0x46, 0x96, 0xc0, 0x05,
   196  	0x1b, 0x77, 0x8e, 0x48, 0x8e, 0x92, 0x07, 0xfb, 0xaf, 0xa2, 0xe4, 0x73, 0xb6, 0xbf, 0x6a, 0x55,
   197  	0x75, 0xf5, 0x54, 0x12, 0x88, 0x1d, 0x9f, 0xfd, 0x35, 0x5c, 0x7a, 0xa6, 0xe8, 0x04, 0xb5, 0x56,
   198  	0x24, 0x76, 0x43, 0xda, 0x1b, 0xfc, 0x90, 0x8d, 0xce, 0x14, 0xbd, 0x96, 0xa5, 0xb8, 0xe1, 0xa3,
   199  	0x4e, 0xf1, 0x25, 0x9b, 0xb8, 0x93, 0x05, 0xb8, 0x24, 0x57, 0x7b, 0xd3, 0xa7, 0x03, 0xcf, 0x37,
   200  	0x63, 0xbc, 0xd3, 0xa8, 0x6b, 0x8e, 0x06, 0x9f, 0xb1, 0xbd, 0x13, 0xd4, 0xb5, 0xaa, 0xc0, 0x8a,
   201  	0xb1, 0x0f, 0x7b, 0xed, 0xb2, 0x8b, 0x4a, 0xd2, 0x1a, 0xad, 0x16, 0x7b, 0x21, 0x8b, 0x9a, 0x3f,
   202  	0x64, 0xb7, 0xcf, 0xdb, 0x86, 0x50, 0xab, 0xcf, 0x10, 0xcb, 0x99, 0x67, 0xae, 0xf9, 0xfc, 0x88,
   203  	0x1d, 0x3c, 0x83, 0x4a, 0x47, 0xec, 0xc0, 0x63, 0xff, 0x5a, 0xfc, 0x3e, 0x9b, 0x9e, 0xb7, 0x39,
   204  	0x14, 0x54, 0x45, 0x68, 0xe2, 0xa1, 0xff, 0x5c, 0xc7, 0xbd, 0x68, 0xd0, 0x18, 0xa0, 0xc8, 0xdd,
   205  	0x0a, 0xdc, 0xd0, 0x75, 0xdc, 0xe9, 0x47, 0xb2, 0xd2, 0x7f, 0xdf, 0xe7, 0x66, 0x8d, 0x62, 0x1a,
   206  	0xb8, 0xa1, 0x7b, 0x9c, 0xf7, 0xfb, 0x5d, 0x82, 0xdd, 0xa8, 0x02, 0xf8, 0x45, 0xbf, 0x1f, 0x3f,
   207  	0x4c, 0xc3, 0xf6, 0x69, 0xdc, 0x3e, 0x3d, 0x75, 0xdb, 0xcf, 0xee, 0xa6, 0xf1, 0x25, 0x0d, 0xb7,
   208  	0x5f, 0xde, 0xf9, 0xf2, 0xf3, 0xf7, 0xd7, 0x9d, 0x29, 0x9f, 0xf8, 0xb7, 0xd4, 0x41, 0xab, 0xd5,
   209  	0xf7, 0xed, 0x22, 0xf9, 0xb1, 0x5d, 0x24, 0xbf, 0xb6, 0x8b, 0xe4, 0xed, 0x93, 0x52, 0xd1, 0xbb,
   210  	0x36, 0x4f, 0x0b, 0xd4, 0x99, 0xb4, 0x25, 0xd6, 0x16, 0xdf, 0xfb, 0xc3, 0xa3, 0xe2, 0x2a, 0xdb,
   211  	0x1c, 0x67, 0xf5, 0x87, 0xd2, 0xfd, 0xbb, 0xa8, 0x14, 0x18, 0x8a, 0x1d, 0xf9, 0xc8, 0x5f, 0xe1,
   212  	0xf1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x21, 0xc0, 0xd1, 0xd3, 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 *emptypb.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 *emptypb.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, *emptypb.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 *emptypb.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(emptypb.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.(*emptypb.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.ExtraBuildInfo) > 0 {
   322  		i -= len(m.ExtraBuildInfo)
   323  		copy(dAtA[i:], m.ExtraBuildInfo)
   324  		i = encodeVarintVersion(dAtA, i, uint64(len(m.ExtraBuildInfo)))
   325  		i--
   326  		dAtA[i] = 0x72
   327  	}
   328  	if len(m.JsonnetVersion) > 0 {
   329  		i -= len(m.JsonnetVersion)
   330  		copy(dAtA[i:], m.JsonnetVersion)
   331  		i = encodeVarintVersion(dAtA, i, uint64(len(m.JsonnetVersion)))
   332  		i--
   333  		dAtA[i] = 0x6a
   334  	}
   335  	if len(m.KubectlVersion) > 0 {
   336  		i -= len(m.KubectlVersion)
   337  		copy(dAtA[i:], m.KubectlVersion)
   338  		i = encodeVarintVersion(dAtA, i, uint64(len(m.KubectlVersion)))
   339  		i--
   340  		dAtA[i] = 0x62
   341  	}
   342  	if len(m.HelmVersion) > 0 {
   343  		i -= len(m.HelmVersion)
   344  		copy(dAtA[i:], m.HelmVersion)
   345  		i = encodeVarintVersion(dAtA, i, uint64(len(m.HelmVersion)))
   346  		i--
   347  		dAtA[i] = 0x5a
   348  	}
   349  	if len(m.KustomizeVersion) > 0 {
   350  		i -= len(m.KustomizeVersion)
   351  		copy(dAtA[i:], m.KustomizeVersion)
   352  		i = encodeVarintVersion(dAtA, i, uint64(len(m.KustomizeVersion)))
   353  		i--
   354  		dAtA[i] = 0x52
   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.KustomizeVersion)
   465  	if l > 0 {
   466  		n += 1 + l + sovVersion(uint64(l))
   467  	}
   468  	l = len(m.HelmVersion)
   469  	if l > 0 {
   470  		n += 1 + l + sovVersion(uint64(l))
   471  	}
   472  	l = len(m.KubectlVersion)
   473  	if l > 0 {
   474  		n += 1 + l + sovVersion(uint64(l))
   475  	}
   476  	l = len(m.JsonnetVersion)
   477  	if l > 0 {
   478  		n += 1 + l + sovVersion(uint64(l))
   479  	}
   480  	l = len(m.ExtraBuildInfo)
   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 10:
   782  			if wireType != 2 {
   783  				return fmt.Errorf("proto: wrong wireType = %d for field KustomizeVersion", 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.KustomizeVersion = string(dAtA[iNdEx:postIndex])
   812  			iNdEx = postIndex
   813  		case 11:
   814  			if wireType != 2 {
   815  				return fmt.Errorf("proto: wrong wireType = %d for field HelmVersion", 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.HelmVersion = string(dAtA[iNdEx:postIndex])
   844  			iNdEx = postIndex
   845  		case 12:
   846  			if wireType != 2 {
   847  				return fmt.Errorf("proto: wrong wireType = %d for field KubectlVersion", 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.KubectlVersion = string(dAtA[iNdEx:postIndex])
   876  			iNdEx = postIndex
   877  		case 13:
   878  			if wireType != 2 {
   879  				return fmt.Errorf("proto: wrong wireType = %d for field JsonnetVersion", 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.JsonnetVersion = string(dAtA[iNdEx:postIndex])
   908  			iNdEx = postIndex
   909  		case 14:
   910  			if wireType != 2 {
   911  				return fmt.Errorf("proto: wrong wireType = %d for field ExtraBuildInfo", 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.ExtraBuildInfo = 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) || (iNdEx+skippy) < 0 {
   948  				return ErrInvalidLengthVersion
   949  			}
   950  			if (iNdEx + skippy) > l {
   951  				return io.ErrUnexpectedEOF
   952  			}
   953  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   954  			iNdEx += skippy
   955  		}
   956  	}
   957  
   958  	if iNdEx > l {
   959  		return io.ErrUnexpectedEOF
   960  	}
   961  	return nil
   962  }
   963  func skipVersion(dAtA []byte) (n int, err error) {
   964  	l := len(dAtA)
   965  	iNdEx := 0
   966  	depth := 0
   967  	for iNdEx < l {
   968  		var wire uint64
   969  		for shift := uint(0); ; shift += 7 {
   970  			if shift >= 64 {
   971  				return 0, ErrIntOverflowVersion
   972  			}
   973  			if iNdEx >= l {
   974  				return 0, io.ErrUnexpectedEOF
   975  			}
   976  			b := dAtA[iNdEx]
   977  			iNdEx++
   978  			wire |= (uint64(b) & 0x7F) << shift
   979  			if b < 0x80 {
   980  				break
   981  			}
   982  		}
   983  		wireType := int(wire & 0x7)
   984  		switch wireType {
   985  		case 0:
   986  			for shift := uint(0); ; shift += 7 {
   987  				if shift >= 64 {
   988  					return 0, ErrIntOverflowVersion
   989  				}
   990  				if iNdEx >= l {
   991  					return 0, io.ErrUnexpectedEOF
   992  				}
   993  				iNdEx++
   994  				if dAtA[iNdEx-1] < 0x80 {
   995  					break
   996  				}
   997  			}
   998  		case 1:
   999  			iNdEx += 8
  1000  		case 2:
  1001  			var length int
  1002  			for shift := uint(0); ; shift += 7 {
  1003  				if shift >= 64 {
  1004  					return 0, ErrIntOverflowVersion
  1005  				}
  1006  				if iNdEx >= l {
  1007  					return 0, io.ErrUnexpectedEOF
  1008  				}
  1009  				b := dAtA[iNdEx]
  1010  				iNdEx++
  1011  				length |= (int(b) & 0x7F) << shift
  1012  				if b < 0x80 {
  1013  					break
  1014  				}
  1015  			}
  1016  			if length < 0 {
  1017  				return 0, ErrInvalidLengthVersion
  1018  			}
  1019  			iNdEx += length
  1020  		case 3:
  1021  			depth++
  1022  		case 4:
  1023  			if depth == 0 {
  1024  				return 0, ErrUnexpectedEndOfGroupVersion
  1025  			}
  1026  			depth--
  1027  		case 5:
  1028  			iNdEx += 4
  1029  		default:
  1030  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1031  		}
  1032  		if iNdEx < 0 {
  1033  			return 0, ErrInvalidLengthVersion
  1034  		}
  1035  		if depth == 0 {
  1036  			return iNdEx, nil
  1037  		}
  1038  	}
  1039  	return 0, io.ErrUnexpectedEOF
  1040  }
  1041  
  1042  var (
  1043  	ErrInvalidLengthVersion        = fmt.Errorf("proto: negative length found during unmarshaling")
  1044  	ErrIntOverflowVersion          = fmt.Errorf("proto: integer overflow")
  1045  	ErrUnexpectedEndOfGroupVersion = fmt.Errorf("proto: unexpected end of group")
  1046  )