github.com/pachyderm/pachyderm@v1.13.4/src/client/version/versionpb/version.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: client/version/versionpb/version.proto 3 4 package versionpb 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/gogo/protobuf/proto" 10 types "github.com/gogo/protobuf/types" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 io "io" 15 math "math" 16 math_bits "math/bits" 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 24 // This is a compile-time assertion to ensure that this generated file 25 // is compatible with the proto package it is being compiled against. 26 // A compilation error at this line likely means your copy of the 27 // proto package needs to be updated. 28 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 29 30 type Version struct { 31 Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` 32 Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` 33 Micro uint32 `protobuf:"varint,3,opt,name=micro,proto3" json:"micro,omitempty"` 34 Additional string `protobuf:"bytes,4,opt,name=additional,proto3" json:"additional,omitempty"` 35 XXX_NoUnkeyedLiteral struct{} `json:"-"` 36 XXX_unrecognized []byte `json:"-"` 37 XXX_sizecache int32 `json:"-"` 38 } 39 40 func (m *Version) Reset() { *m = Version{} } 41 func (m *Version) String() string { return proto.CompactTextString(m) } 42 func (*Version) ProtoMessage() {} 43 func (*Version) Descriptor() ([]byte, []int) { 44 return fileDescriptor_66657ffe705dda95, []int{0} 45 } 46 func (m *Version) XXX_Unmarshal(b []byte) error { 47 return m.Unmarshal(b) 48 } 49 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 if deterministic { 51 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 52 } else { 53 b = b[:cap(b)] 54 n, err := m.MarshalToSizedBuffer(b) 55 if err != nil { 56 return nil, err 57 } 58 return b[:n], nil 59 } 60 } 61 func (m *Version) XXX_Merge(src proto.Message) { 62 xxx_messageInfo_Version.Merge(m, src) 63 } 64 func (m *Version) XXX_Size() int { 65 return m.Size() 66 } 67 func (m *Version) XXX_DiscardUnknown() { 68 xxx_messageInfo_Version.DiscardUnknown(m) 69 } 70 71 var xxx_messageInfo_Version proto.InternalMessageInfo 72 73 func (m *Version) GetMajor() uint32 { 74 if m != nil { 75 return m.Major 76 } 77 return 0 78 } 79 80 func (m *Version) GetMinor() uint32 { 81 if m != nil { 82 return m.Minor 83 } 84 return 0 85 } 86 87 func (m *Version) GetMicro() uint32 { 88 if m != nil { 89 return m.Micro 90 } 91 return 0 92 } 93 94 func (m *Version) GetAdditional() string { 95 if m != nil { 96 return m.Additional 97 } 98 return "" 99 } 100 101 func init() { 102 proto.RegisterType((*Version)(nil), "versionpb.Version") 103 } 104 105 func init() { 106 proto.RegisterFile("client/version/versionpb/version.proto", fileDescriptor_66657ffe705dda95) 107 } 108 109 var fileDescriptor_66657ffe705dda95 = []byte{ 110 // 236 bytes of a gzipped FileDescriptorProto 111 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xce, 0xc9, 0x4c, 112 0xcd, 0x2b, 0xd1, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, 0xcc, 0xcf, 0x83, 0xd1, 0x05, 0x49, 0x30, 0x96, 113 0x5e, 0x41, 0x51, 0x7e, 0x49, 0xbe, 0x10, 0x27, 0x5c, 0x42, 0x4a, 0x3a, 0x3d, 0x3f, 0x3f, 0x3d, 114 0x27, 0x55, 0x1f, 0x2c, 0x91, 0x54, 0x9a, 0xa6, 0x9f, 0x9a, 0x5b, 0x50, 0x52, 0x09, 0x51, 0xa7, 115 0x94, 0xcd, 0xc5, 0x1e, 0x06, 0x51, 0x29, 0x24, 0xc2, 0xc5, 0x9a, 0x9b, 0x98, 0x95, 0x5f, 0x24, 116 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x1b, 0x04, 0xe1, 0x80, 0x45, 0x33, 0xf3, 0xf2, 0x8b, 0x24, 0x98, 117 0xa0, 0xa2, 0x20, 0x0e, 0x44, 0x34, 0xb9, 0x28, 0x5f, 0x82, 0x19, 0x26, 0x9a, 0x5c, 0x94, 0x2f, 118 0x24, 0xc7, 0xc5, 0x95, 0x98, 0x92, 0x92, 0x59, 0x92, 0x99, 0x9f, 0x97, 0x98, 0x23, 0xc1, 0xa2, 119 0xc0, 0xa8, 0xc1, 0x19, 0x84, 0x24, 0x62, 0xe4, 0xc8, 0xc5, 0xec, 0x18, 0xe0, 0x29, 0x64, 0xc5, 120 0xc5, 0xe5, 0x9e, 0x5a, 0x02, 0xb3, 0x56, 0x4c, 0x0f, 0xe2, 0x3e, 0x3d, 0x98, 0xfb, 0xf4, 0x5c, 121 0x41, 0xee, 0x93, 0x12, 0xd2, 0x83, 0x7b, 0x41, 0x0f, 0xaa, 0x56, 0x89, 0xc1, 0xc9, 0xf3, 0xc4, 122 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x8c, 0xb2, 0x4e, 0xcf, 0x2c, 123 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x2f, 0x48, 0x4c, 0xce, 0xa8, 0x4c, 0x49, 0x2d, 124 0x42, 0x66, 0x15, 0x17, 0x25, 0xeb, 0xe3, 0x0a, 0xb0, 0x24, 0x36, 0xb0, 0x85, 0xc6, 0x80, 0x00, 125 0x00, 0x00, 0xff, 0xff, 0x10, 0xf7, 0x6f, 0xf8, 0x53, 0x01, 0x00, 0x00, 126 } 127 128 // Reference imports to suppress errors if they are not otherwise used. 129 var _ context.Context 130 var _ grpc.ClientConn 131 132 // This is a compile-time assertion to ensure that this generated file 133 // is compatible with the grpc package it is being compiled against. 134 const _ = grpc.SupportPackageIsVersion4 135 136 // APIClient is the client API for API service. 137 // 138 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 139 type APIClient interface { 140 GetVersion(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*Version, error) 141 } 142 143 type aPIClient struct { 144 cc *grpc.ClientConn 145 } 146 147 func NewAPIClient(cc *grpc.ClientConn) APIClient { 148 return &aPIClient{cc} 149 } 150 151 func (c *aPIClient) GetVersion(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*Version, error) { 152 out := new(Version) 153 err := c.cc.Invoke(ctx, "/versionpb.API/GetVersion", in, out, opts...) 154 if err != nil { 155 return nil, err 156 } 157 return out, nil 158 } 159 160 // APIServer is the server API for API service. 161 type APIServer interface { 162 GetVersion(context.Context, *types.Empty) (*Version, error) 163 } 164 165 // UnimplementedAPIServer can be embedded to have forward compatible implementations. 166 type UnimplementedAPIServer struct { 167 } 168 169 func (*UnimplementedAPIServer) GetVersion(ctx context.Context, req *types.Empty) (*Version, error) { 170 return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") 171 } 172 173 func RegisterAPIServer(s *grpc.Server, srv APIServer) { 174 s.RegisterService(&_API_serviceDesc, srv) 175 } 176 177 func _API_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 178 in := new(types.Empty) 179 if err := dec(in); err != nil { 180 return nil, err 181 } 182 if interceptor == nil { 183 return srv.(APIServer).GetVersion(ctx, in) 184 } 185 info := &grpc.UnaryServerInfo{ 186 Server: srv, 187 FullMethod: "/versionpb.API/GetVersion", 188 } 189 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 190 return srv.(APIServer).GetVersion(ctx, req.(*types.Empty)) 191 } 192 return interceptor(ctx, in, info, handler) 193 } 194 195 var _API_serviceDesc = grpc.ServiceDesc{ 196 ServiceName: "versionpb.API", 197 HandlerType: (*APIServer)(nil), 198 Methods: []grpc.MethodDesc{ 199 { 200 MethodName: "GetVersion", 201 Handler: _API_GetVersion_Handler, 202 }, 203 }, 204 Streams: []grpc.StreamDesc{}, 205 Metadata: "client/version/versionpb/version.proto", 206 } 207 208 func (m *Version) Marshal() (dAtA []byte, err error) { 209 size := m.Size() 210 dAtA = make([]byte, size) 211 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 212 if err != nil { 213 return nil, err 214 } 215 return dAtA[:n], nil 216 } 217 218 func (m *Version) MarshalTo(dAtA []byte) (int, error) { 219 size := m.Size() 220 return m.MarshalToSizedBuffer(dAtA[:size]) 221 } 222 223 func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { 224 i := len(dAtA) 225 _ = i 226 var l int 227 _ = l 228 if m.XXX_unrecognized != nil { 229 i -= len(m.XXX_unrecognized) 230 copy(dAtA[i:], m.XXX_unrecognized) 231 } 232 if len(m.Additional) > 0 { 233 i -= len(m.Additional) 234 copy(dAtA[i:], m.Additional) 235 i = encodeVarintVersion(dAtA, i, uint64(len(m.Additional))) 236 i-- 237 dAtA[i] = 0x22 238 } 239 if m.Micro != 0 { 240 i = encodeVarintVersion(dAtA, i, uint64(m.Micro)) 241 i-- 242 dAtA[i] = 0x18 243 } 244 if m.Minor != 0 { 245 i = encodeVarintVersion(dAtA, i, uint64(m.Minor)) 246 i-- 247 dAtA[i] = 0x10 248 } 249 if m.Major != 0 { 250 i = encodeVarintVersion(dAtA, i, uint64(m.Major)) 251 i-- 252 dAtA[i] = 0x8 253 } 254 return len(dAtA) - i, nil 255 } 256 257 func encodeVarintVersion(dAtA []byte, offset int, v uint64) int { 258 offset -= sovVersion(v) 259 base := offset 260 for v >= 1<<7 { 261 dAtA[offset] = uint8(v&0x7f | 0x80) 262 v >>= 7 263 offset++ 264 } 265 dAtA[offset] = uint8(v) 266 return base 267 } 268 func (m *Version) Size() (n int) { 269 if m == nil { 270 return 0 271 } 272 var l int 273 _ = l 274 if m.Major != 0 { 275 n += 1 + sovVersion(uint64(m.Major)) 276 } 277 if m.Minor != 0 { 278 n += 1 + sovVersion(uint64(m.Minor)) 279 } 280 if m.Micro != 0 { 281 n += 1 + sovVersion(uint64(m.Micro)) 282 } 283 l = len(m.Additional) 284 if l > 0 { 285 n += 1 + l + sovVersion(uint64(l)) 286 } 287 if m.XXX_unrecognized != nil { 288 n += len(m.XXX_unrecognized) 289 } 290 return n 291 } 292 293 func sovVersion(x uint64) (n int) { 294 return (math_bits.Len64(x|1) + 6) / 7 295 } 296 func sozVersion(x uint64) (n int) { 297 return sovVersion(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 298 } 299 func (m *Version) Unmarshal(dAtA []byte) error { 300 l := len(dAtA) 301 iNdEx := 0 302 for iNdEx < l { 303 preIndex := iNdEx 304 var wire uint64 305 for shift := uint(0); ; shift += 7 { 306 if shift >= 64 { 307 return ErrIntOverflowVersion 308 } 309 if iNdEx >= l { 310 return io.ErrUnexpectedEOF 311 } 312 b := dAtA[iNdEx] 313 iNdEx++ 314 wire |= uint64(b&0x7F) << shift 315 if b < 0x80 { 316 break 317 } 318 } 319 fieldNum := int32(wire >> 3) 320 wireType := int(wire & 0x7) 321 if wireType == 4 { 322 return fmt.Errorf("proto: Version: wiretype end group for non-group") 323 } 324 if fieldNum <= 0 { 325 return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) 326 } 327 switch fieldNum { 328 case 1: 329 if wireType != 0 { 330 return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType) 331 } 332 m.Major = 0 333 for shift := uint(0); ; shift += 7 { 334 if shift >= 64 { 335 return ErrIntOverflowVersion 336 } 337 if iNdEx >= l { 338 return io.ErrUnexpectedEOF 339 } 340 b := dAtA[iNdEx] 341 iNdEx++ 342 m.Major |= uint32(b&0x7F) << shift 343 if b < 0x80 { 344 break 345 } 346 } 347 case 2: 348 if wireType != 0 { 349 return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType) 350 } 351 m.Minor = 0 352 for shift := uint(0); ; shift += 7 { 353 if shift >= 64 { 354 return ErrIntOverflowVersion 355 } 356 if iNdEx >= l { 357 return io.ErrUnexpectedEOF 358 } 359 b := dAtA[iNdEx] 360 iNdEx++ 361 m.Minor |= uint32(b&0x7F) << shift 362 if b < 0x80 { 363 break 364 } 365 } 366 case 3: 367 if wireType != 0 { 368 return fmt.Errorf("proto: wrong wireType = %d for field Micro", wireType) 369 } 370 m.Micro = 0 371 for shift := uint(0); ; shift += 7 { 372 if shift >= 64 { 373 return ErrIntOverflowVersion 374 } 375 if iNdEx >= l { 376 return io.ErrUnexpectedEOF 377 } 378 b := dAtA[iNdEx] 379 iNdEx++ 380 m.Micro |= uint32(b&0x7F) << shift 381 if b < 0x80 { 382 break 383 } 384 } 385 case 4: 386 if wireType != 2 { 387 return fmt.Errorf("proto: wrong wireType = %d for field Additional", wireType) 388 } 389 var stringLen uint64 390 for shift := uint(0); ; shift += 7 { 391 if shift >= 64 { 392 return ErrIntOverflowVersion 393 } 394 if iNdEx >= l { 395 return io.ErrUnexpectedEOF 396 } 397 b := dAtA[iNdEx] 398 iNdEx++ 399 stringLen |= uint64(b&0x7F) << shift 400 if b < 0x80 { 401 break 402 } 403 } 404 intStringLen := int(stringLen) 405 if intStringLen < 0 { 406 return ErrInvalidLengthVersion 407 } 408 postIndex := iNdEx + intStringLen 409 if postIndex < 0 { 410 return ErrInvalidLengthVersion 411 } 412 if postIndex > l { 413 return io.ErrUnexpectedEOF 414 } 415 m.Additional = string(dAtA[iNdEx:postIndex]) 416 iNdEx = postIndex 417 default: 418 iNdEx = preIndex 419 skippy, err := skipVersion(dAtA[iNdEx:]) 420 if err != nil { 421 return err 422 } 423 if (skippy < 0) || (iNdEx+skippy) < 0 { 424 return ErrInvalidLengthVersion 425 } 426 if (iNdEx + skippy) > l { 427 return io.ErrUnexpectedEOF 428 } 429 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 430 iNdEx += skippy 431 } 432 } 433 434 if iNdEx > l { 435 return io.ErrUnexpectedEOF 436 } 437 return nil 438 } 439 func skipVersion(dAtA []byte) (n int, err error) { 440 l := len(dAtA) 441 iNdEx := 0 442 depth := 0 443 for iNdEx < l { 444 var wire uint64 445 for shift := uint(0); ; shift += 7 { 446 if shift >= 64 { 447 return 0, ErrIntOverflowVersion 448 } 449 if iNdEx >= l { 450 return 0, io.ErrUnexpectedEOF 451 } 452 b := dAtA[iNdEx] 453 iNdEx++ 454 wire |= (uint64(b) & 0x7F) << shift 455 if b < 0x80 { 456 break 457 } 458 } 459 wireType := int(wire & 0x7) 460 switch wireType { 461 case 0: 462 for shift := uint(0); ; shift += 7 { 463 if shift >= 64 { 464 return 0, ErrIntOverflowVersion 465 } 466 if iNdEx >= l { 467 return 0, io.ErrUnexpectedEOF 468 } 469 iNdEx++ 470 if dAtA[iNdEx-1] < 0x80 { 471 break 472 } 473 } 474 case 1: 475 iNdEx += 8 476 case 2: 477 var length int 478 for shift := uint(0); ; shift += 7 { 479 if shift >= 64 { 480 return 0, ErrIntOverflowVersion 481 } 482 if iNdEx >= l { 483 return 0, io.ErrUnexpectedEOF 484 } 485 b := dAtA[iNdEx] 486 iNdEx++ 487 length |= (int(b) & 0x7F) << shift 488 if b < 0x80 { 489 break 490 } 491 } 492 if length < 0 { 493 return 0, ErrInvalidLengthVersion 494 } 495 iNdEx += length 496 case 3: 497 depth++ 498 case 4: 499 if depth == 0 { 500 return 0, ErrUnexpectedEndOfGroupVersion 501 } 502 depth-- 503 case 5: 504 iNdEx += 4 505 default: 506 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 507 } 508 if iNdEx < 0 { 509 return 0, ErrInvalidLengthVersion 510 } 511 if depth == 0 { 512 return iNdEx, nil 513 } 514 } 515 return 0, io.ErrUnexpectedEOF 516 } 517 518 var ( 519 ErrInvalidLengthVersion = fmt.Errorf("proto: negative length found during unmarshaling") 520 ErrIntOverflowVersion = fmt.Errorf("proto: integer overflow") 521 ErrUnexpectedEndOfGroupVersion = fmt.Errorf("proto: unexpected end of group") 522 )