2 Copyright The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 // Code generated by protoc-gen-gogo. DO NOT EDIT.
18 // source: k8s.io/kubernetes/vendor/k8s.io/api/coordination/v1beta1/generated.proto
21 Package v1beta1 is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/coordination/v1beta1/generated.proto
26 It has these top-level messages:
33 import proto "github.com/gogo/protobuf/proto"
37 import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
39 import strings "strings"
40 import reflect "reflect"
44 // Reference imports to suppress errors if they are not otherwise used.
49 // This is a compile-time assertion to ensure that this generated file
50 // is compatible with the proto package it is being compiled against.
51 // A compilation error at this line likely means your copy of the
52 // proto package needs to be updated.
53 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
55 func (m *Lease) Reset() { *m = Lease{} }
56 func (*Lease) ProtoMessage() {}
57 func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
59 func (m *LeaseList) Reset() { *m = LeaseList{} }
60 func (*LeaseList) ProtoMessage() {}
61 func (*LeaseList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
63 func (m *LeaseSpec) Reset() { *m = LeaseSpec{} }
64 func (*LeaseSpec) ProtoMessage() {}
65 func (*LeaseSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
68 proto.RegisterType((*Lease)(nil), "k8s.io.api.coordination.v1beta1.Lease")
69 proto.RegisterType((*LeaseList)(nil), "k8s.io.api.coordination.v1beta1.LeaseList")
70 proto.RegisterType((*LeaseSpec)(nil), "k8s.io.api.coordination.v1beta1.LeaseSpec")
72 func (m *Lease) Marshal() (dAtA []byte, err error) {
74 dAtA = make([]byte, size)
75 n, err := m.MarshalTo(dAtA)
82 func (m *Lease) MarshalTo(dAtA []byte) (int, error) {
89 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
90 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
97 i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
98 n2, err := m.Spec.MarshalTo(dAtA[i:])
106 func (m *LeaseList) Marshal() (dAtA []byte, err error) {
108 dAtA = make([]byte, size)
109 n, err := m.MarshalTo(dAtA)
116 func (m *LeaseList) MarshalTo(dAtA []byte) (int, error) {
123 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
124 n3, err := m.ListMeta.MarshalTo(dAtA[i:])
129 if len(m.Items) > 0 {
130 for _, msg := range m.Items {
133 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
134 n, err := msg.MarshalTo(dAtA[i:])
144 func (m *LeaseSpec) Marshal() (dAtA []byte, err error) {
146 dAtA = make([]byte, size)
147 n, err := m.MarshalTo(dAtA)
154 func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error) {
159 if m.HolderIdentity != nil {
162 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HolderIdentity)))
163 i += copy(dAtA[i:], *m.HolderIdentity)
165 if m.LeaseDurationSeconds != nil {
168 i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseDurationSeconds))
170 if m.AcquireTime != nil {
173 i = encodeVarintGenerated(dAtA, i, uint64(m.AcquireTime.Size()))
174 n4, err := m.AcquireTime.MarshalTo(dAtA[i:])
180 if m.RenewTime != nil {
183 i = encodeVarintGenerated(dAtA, i, uint64(m.RenewTime.Size()))
184 n5, err := m.RenewTime.MarshalTo(dAtA[i:])
190 if m.LeaseTransitions != nil {
193 i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseTransitions))
198 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
200 dAtA[offset] = uint8(v&0x7f | 0x80)
204 dAtA[offset] = uint8(v)
207 func (m *Lease) Size() (n int) {
210 l = m.ObjectMeta.Size()
211 n += 1 + l + sovGenerated(uint64(l))
213 n += 1 + l + sovGenerated(uint64(l))
217 func (m *LeaseList) Size() (n int) {
220 l = m.ListMeta.Size()
221 n += 1 + l + sovGenerated(uint64(l))
222 if len(m.Items) > 0 {
223 for _, e := range m.Items {
225 n += 1 + l + sovGenerated(uint64(l))
231 func (m *LeaseSpec) Size() (n int) {
234 if m.HolderIdentity != nil {
235 l = len(*m.HolderIdentity)
236 n += 1 + l + sovGenerated(uint64(l))
238 if m.LeaseDurationSeconds != nil {
239 n += 1 + sovGenerated(uint64(*m.LeaseDurationSeconds))
241 if m.AcquireTime != nil {
242 l = m.AcquireTime.Size()
243 n += 1 + l + sovGenerated(uint64(l))
245 if m.RenewTime != nil {
246 l = m.RenewTime.Size()
247 n += 1 + l + sovGenerated(uint64(l))
249 if m.LeaseTransitions != nil {
250 n += 1 + sovGenerated(uint64(*m.LeaseTransitions))
255 func sovGenerated(x uint64) (n int) {
265 func sozGenerated(x uint64) (n int) {
266 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
268 func (this *Lease) String() string {
272 s := strings.Join([]string{`&Lease{`,
273 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
274 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LeaseSpec", "LeaseSpec", 1), `&`, ``, 1) + `,`,
279 func (this *LeaseList) String() string {
283 s := strings.Join([]string{`&LeaseList{`,
284 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
285 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Lease", "Lease", 1), `&`, ``, 1) + `,`,
290 func (this *LeaseSpec) String() string {
294 s := strings.Join([]string{`&LeaseSpec{`,
295 `HolderIdentity:` + valueToStringGenerated(this.HolderIdentity) + `,`,
296 `LeaseDurationSeconds:` + valueToStringGenerated(this.LeaseDurationSeconds) + `,`,
297 `AcquireTime:` + strings.Replace(fmt.Sprintf("%v", this.AcquireTime), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1) + `,`,
298 `RenewTime:` + strings.Replace(fmt.Sprintf("%v", this.RenewTime), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1) + `,`,
299 `LeaseTransitions:` + valueToStringGenerated(this.LeaseTransitions) + `,`,
304 func valueToStringGenerated(v interface{}) string {
305 rv := reflect.ValueOf(v)
309 pv := reflect.Indirect(rv).Interface()
310 return fmt.Sprintf("*%v", pv)
312 func (m *Lease) Unmarshal(dAtA []byte) error {
318 for shift := uint(0); ; shift += 7 {
320 return ErrIntOverflowGenerated
323 return io.ErrUnexpectedEOF
327 wire |= (uint64(b) & 0x7F) << shift
332 fieldNum := int32(wire >> 3)
333 wireType := int(wire & 0x7)
335 return fmt.Errorf("proto: Lease: wiretype end group for non-group")
338 return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire)
343 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
346 for shift := uint(0); ; shift += 7 {
348 return ErrIntOverflowGenerated
351 return io.ErrUnexpectedEOF
355 msglen |= (int(b) & 0x7F) << shift
361 return ErrInvalidLengthGenerated
363 postIndex := iNdEx + msglen
365 return io.ErrUnexpectedEOF
367 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
373 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
376 for shift := uint(0); ; shift += 7 {
378 return ErrIntOverflowGenerated
381 return io.ErrUnexpectedEOF
385 msglen |= (int(b) & 0x7F) << shift
391 return ErrInvalidLengthGenerated
393 postIndex := iNdEx + msglen
395 return io.ErrUnexpectedEOF
397 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
403 skippy, err := skipGenerated(dAtA[iNdEx:])
408 return ErrInvalidLengthGenerated
410 if (iNdEx + skippy) > l {
411 return io.ErrUnexpectedEOF
418 return io.ErrUnexpectedEOF
422 func (m *LeaseList) Unmarshal(dAtA []byte) error {
428 for shift := uint(0); ; shift += 7 {
430 return ErrIntOverflowGenerated
433 return io.ErrUnexpectedEOF
437 wire |= (uint64(b) & 0x7F) << shift
442 fieldNum := int32(wire >> 3)
443 wireType := int(wire & 0x7)
445 return fmt.Errorf("proto: LeaseList: wiretype end group for non-group")
448 return fmt.Errorf("proto: LeaseList: illegal tag %d (wire type %d)", fieldNum, wire)
453 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
456 for shift := uint(0); ; shift += 7 {
458 return ErrIntOverflowGenerated
461 return io.ErrUnexpectedEOF
465 msglen |= (int(b) & 0x7F) << shift
471 return ErrInvalidLengthGenerated
473 postIndex := iNdEx + msglen
475 return io.ErrUnexpectedEOF
477 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
483 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
486 for shift := uint(0); ; shift += 7 {
488 return ErrIntOverflowGenerated
491 return io.ErrUnexpectedEOF
495 msglen |= (int(b) & 0x7F) << shift
501 return ErrInvalidLengthGenerated
503 postIndex := iNdEx + msglen
505 return io.ErrUnexpectedEOF
507 m.Items = append(m.Items, Lease{})
508 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
514 skippy, err := skipGenerated(dAtA[iNdEx:])
519 return ErrInvalidLengthGenerated
521 if (iNdEx + skippy) > l {
522 return io.ErrUnexpectedEOF
529 return io.ErrUnexpectedEOF
533 func (m *LeaseSpec) Unmarshal(dAtA []byte) error {
539 for shift := uint(0); ; shift += 7 {
541 return ErrIntOverflowGenerated
544 return io.ErrUnexpectedEOF
548 wire |= (uint64(b) & 0x7F) << shift
553 fieldNum := int32(wire >> 3)
554 wireType := int(wire & 0x7)
556 return fmt.Errorf("proto: LeaseSpec: wiretype end group for non-group")
559 return fmt.Errorf("proto: LeaseSpec: illegal tag %d (wire type %d)", fieldNum, wire)
564 return fmt.Errorf("proto: wrong wireType = %d for field HolderIdentity", wireType)
567 for shift := uint(0); ; shift += 7 {
569 return ErrIntOverflowGenerated
572 return io.ErrUnexpectedEOF
576 stringLen |= (uint64(b) & 0x7F) << shift
581 intStringLen := int(stringLen)
582 if intStringLen < 0 {
583 return ErrInvalidLengthGenerated
585 postIndex := iNdEx + intStringLen
587 return io.ErrUnexpectedEOF
589 s := string(dAtA[iNdEx:postIndex])
590 m.HolderIdentity = &s
594 return fmt.Errorf("proto: wrong wireType = %d for field LeaseDurationSeconds", wireType)
597 for shift := uint(0); ; shift += 7 {
599 return ErrIntOverflowGenerated
602 return io.ErrUnexpectedEOF
606 v |= (int32(b) & 0x7F) << shift
611 m.LeaseDurationSeconds = &v
614 return fmt.Errorf("proto: wrong wireType = %d for field AcquireTime", wireType)
617 for shift := uint(0); ; shift += 7 {
619 return ErrIntOverflowGenerated
622 return io.ErrUnexpectedEOF
626 msglen |= (int(b) & 0x7F) << shift
632 return ErrInvalidLengthGenerated
634 postIndex := iNdEx + msglen
636 return io.ErrUnexpectedEOF
638 if m.AcquireTime == nil {
639 m.AcquireTime = &k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime{}
641 if err := m.AcquireTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
647 return fmt.Errorf("proto: wrong wireType = %d for field RenewTime", wireType)
650 for shift := uint(0); ; shift += 7 {
652 return ErrIntOverflowGenerated
655 return io.ErrUnexpectedEOF
659 msglen |= (int(b) & 0x7F) << shift
665 return ErrInvalidLengthGenerated
667 postIndex := iNdEx + msglen
669 return io.ErrUnexpectedEOF
671 if m.RenewTime == nil {
672 m.RenewTime = &k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime{}
674 if err := m.RenewTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
680 return fmt.Errorf("proto: wrong wireType = %d for field LeaseTransitions", wireType)
683 for shift := uint(0); ; shift += 7 {
685 return ErrIntOverflowGenerated
688 return io.ErrUnexpectedEOF
692 v |= (int32(b) & 0x7F) << shift
697 m.LeaseTransitions = &v
700 skippy, err := skipGenerated(dAtA[iNdEx:])
705 return ErrInvalidLengthGenerated
707 if (iNdEx + skippy) > l {
708 return io.ErrUnexpectedEOF
715 return io.ErrUnexpectedEOF
719 func skipGenerated(dAtA []byte) (n int, err error) {
724 for shift := uint(0); ; shift += 7 {
726 return 0, ErrIntOverflowGenerated
729 return 0, io.ErrUnexpectedEOF
733 wire |= (uint64(b) & 0x7F) << shift
738 wireType := int(wire & 0x7)
741 for shift := uint(0); ; shift += 7 {
743 return 0, ErrIntOverflowGenerated
746 return 0, io.ErrUnexpectedEOF
749 if dAtA[iNdEx-1] < 0x80 {
759 for shift := uint(0); ; shift += 7 {
761 return 0, ErrIntOverflowGenerated
764 return 0, io.ErrUnexpectedEOF
768 length |= (int(b) & 0x7F) << shift
775 return 0, ErrInvalidLengthGenerated
781 var start int = iNdEx
782 for shift := uint(0); ; shift += 7 {
784 return 0, ErrIntOverflowGenerated
787 return 0, io.ErrUnexpectedEOF
791 innerWire |= (uint64(b) & 0x7F) << shift
796 innerWireType := int(innerWire & 0x7)
797 if innerWireType == 4 {
800 next, err := skipGenerated(dAtA[start:])
813 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
820 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
821 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
825 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/coordination/v1beta1/generated.proto", fileDescriptorGenerated)
828 var fileDescriptorGenerated = []byte{
829 // 540 bytes of a gzipped FileDescriptorProto
830 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xc1, 0x6e, 0xd3, 0x40,
831 0x10, 0x86, 0xe3, 0xb6, 0x11, 0xcd, 0x86, 0x96, 0xc8, 0xca, 0xc1, 0xca, 0xc1, 0xae, 0x72, 0x40,
832 0x15, 0x52, 0x77, 0x49, 0x85, 0x10, 0xe2, 0x04, 0x16, 0x87, 0x56, 0xb8, 0x42, 0x72, 0x7b, 0x42,
833 0x3d, 0xb0, 0xb6, 0x07, 0x67, 0x49, 0xed, 0x35, 0xbb, 0xeb, 0xa0, 0xde, 0x78, 0x04, 0xae, 0xbc,
834 0x08, 0xbc, 0x42, 0x8e, 0x3d, 0xf6, 0x64, 0x11, 0xf3, 0x22, 0xc8, 0x1b, 0xb7, 0x09, 0x49, 0x51,
835 0x23, 0x6e, 0xde, 0x99, 0xf9, 0xbf, 0xf9, 0xe7, 0x37, 0x3a, 0x1a, 0xbd, 0x90, 0x98, 0x71, 0x32,
836 0xca, 0x03, 0x10, 0x29, 0x28, 0x90, 0x64, 0x0c, 0x69, 0xc4, 0x05, 0xa9, 0x1b, 0x34, 0x63, 0x24,
837 0xe4, 0x5c, 0x44, 0x2c, 0xa5, 0x8a, 0xf1, 0x94, 0x8c, 0x07, 0x01, 0x28, 0x3a, 0x20, 0x31, 0xa4,
838 0x20, 0xa8, 0x82, 0x08, 0x67, 0x82, 0x2b, 0x6e, 0x3a, 0x33, 0x01, 0xa6, 0x19, 0xc3, 0x8b, 0x02,
839 0x5c, 0x0b, 0x7a, 0x07, 0x31, 0x53, 0xc3, 0x3c, 0xc0, 0x21, 0x4f, 0x48, 0xcc, 0x63, 0x4e, 0xb4,
840 0x2e, 0xc8, 0x3f, 0xea, 0x97, 0x7e, 0xe8, 0xaf, 0x19, 0xaf, 0xf7, 0x6c, 0x6e, 0x20, 0xa1, 0xe1,
841 0x90, 0xa5, 0x20, 0x2e, 0x49, 0x36, 0x8a, 0xab, 0x82, 0x24, 0x09, 0x28, 0x4a, 0xc6, 0x2b, 0x2e,
842 0x7a, 0xe4, 0x5f, 0x2a, 0x91, 0xa7, 0x8a, 0x25, 0xb0, 0x22, 0x78, 0x7e, 0x9f, 0x40, 0x86, 0x43,
843 0x48, 0xe8, 0xb2, 0xae, 0xff, 0xd3, 0x40, 0x4d, 0x0f, 0xa8, 0x04, 0xf3, 0x03, 0xda, 0xae, 0xdc,
844 0x44, 0x54, 0x51, 0xcb, 0xd8, 0x33, 0xf6, 0xdb, 0x87, 0x4f, 0xf1, 0x3c, 0x8b, 0x5b, 0x28, 0xce,
845 0x46, 0x71, 0x55, 0x90, 0xb8, 0x9a, 0xc6, 0xe3, 0x01, 0x7e, 0x17, 0x7c, 0x82, 0x50, 0x9d, 0x80,
846 0xa2, 0xae, 0x39, 0x29, 0x9c, 0x46, 0x59, 0x38, 0x68, 0x5e, 0xf3, 0x6f, 0xa9, 0xa6, 0x87, 0xb6,
847 0x64, 0x06, 0xa1, 0xb5, 0xa1, 0xe9, 0x4f, 0xf0, 0x3d, 0x49, 0x63, 0xed, 0xeb, 0x34, 0x83, 0xd0,
848 0x7d, 0x58, 0x73, 0xb7, 0xaa, 0x97, 0xaf, 0x29, 0xfd, 0x1f, 0x06, 0x6a, 0xe9, 0x09, 0x8f, 0x49,
849 0x65, 0x9e, 0xaf, 0xb8, 0xc7, 0xeb, 0xb9, 0xaf, 0xd4, 0xda, 0x7b, 0xa7, 0xde, 0xb1, 0x7d, 0x53,
850 0x59, 0x70, 0xfe, 0x16, 0x35, 0x99, 0x82, 0x44, 0x5a, 0x1b, 0x7b, 0x9b, 0xfb, 0xed, 0xc3, 0xc7,
851 0xeb, 0x59, 0x77, 0x77, 0x6a, 0x64, 0xf3, 0xb8, 0x12, 0xfb, 0x33, 0x46, 0xff, 0xfb, 0x66, 0x6d,
852 0xbc, 0x3a, 0xc6, 0x7c, 0x89, 0x76, 0x87, 0xfc, 0x22, 0x02, 0x71, 0x1c, 0x41, 0xaa, 0x98, 0xba,
853 0xd4, 0xf6, 0x5b, 0xae, 0x59, 0x16, 0xce, 0xee, 0xd1, 0x5f, 0x1d, 0x7f, 0x69, 0xd2, 0xf4, 0x50,
854 0xf7, 0xa2, 0x02, 0xbd, 0xc9, 0x85, 0x5e, 0x7f, 0x0a, 0x21, 0x4f, 0x23, 0xa9, 0x03, 0x6e, 0xba,
855 0x56, 0x59, 0x38, 0x5d, 0xef, 0x8e, 0xbe, 0x7f, 0xa7, 0xca, 0x0c, 0x50, 0x9b, 0x86, 0x9f, 0x73,
856 0x26, 0xe0, 0x8c, 0x25, 0x60, 0x6d, 0xea, 0x14, 0xc9, 0x7a, 0x29, 0x9e, 0xb0, 0x50, 0xf0, 0x4a,
857 0xe6, 0x3e, 0x2a, 0x0b, 0xa7, 0xfd, 0x7a, 0xce, 0xf1, 0x17, 0xa1, 0xe6, 0x39, 0x6a, 0x09, 0x48,
858 0xe1, 0x8b, 0xde, 0xb0, 0xf5, 0x7f, 0x1b, 0x76, 0xca, 0xc2, 0x69, 0xf9, 0x37, 0x14, 0x7f, 0x0e,
859 0x34, 0x5f, 0xa1, 0x8e, 0xbe, 0xec, 0x4c, 0xd0, 0x54, 0xb2, 0xea, 0x36, 0x69, 0x35, 0x75, 0x16,
860 0xdd, 0xb2, 0x70, 0x3a, 0xde, 0x52, 0xcf, 0x5f, 0x99, 0x76, 0x0f, 0x26, 0x53, 0xbb, 0x71, 0x35,
861 0xb5, 0x1b, 0xd7, 0x53, 0xbb, 0xf1, 0xb5, 0xb4, 0x8d, 0x49, 0x69, 0x1b, 0x57, 0xa5, 0x6d, 0x5c,
862 0x97, 0xb6, 0xf1, 0xab, 0xb4, 0x8d, 0x6f, 0xbf, 0xed, 0xc6, 0xfb, 0x07, 0xf5, 0x6f, 0xfe, 0x13,
863 0x00, 0x00, 0xff, 0xff, 0x51, 0x34, 0x6a, 0x0f, 0x77, 0x04, 0x00, 0x00,