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/apimachinery/pkg/util/intstr/generated.proto
21 Package intstr is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto
26 It has these top-level messages:
31 import proto "github.com/gogo/protobuf/proto"
37 // Reference imports to suppress errors if they are not otherwise used.
42 // This is a compile-time assertion to ensure that this generated file
43 // is compatible with the proto package it is being compiled against.
44 // A compilation error at this line likely means your copy of the
45 // proto package needs to be updated.
46 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
48 func (m *IntOrString) Reset() { *m = IntOrString{} }
49 func (*IntOrString) ProtoMessage() {}
50 func (*IntOrString) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
53 proto.RegisterType((*IntOrString)(nil), "k8s.io.apimachinery.pkg.util.intstr.IntOrString")
55 func (m *IntOrString) Marshal() (dAtA []byte, err error) {
57 dAtA = make([]byte, size)
58 n, err := m.MarshalTo(dAtA)
65 func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) {
72 i = encodeVarintGenerated(dAtA, i, uint64(m.Type))
75 i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal))
78 i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal)))
79 i += copy(dAtA[i:], m.StrVal)
83 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
85 dAtA[offset] = uint8(v&0x7f | 0x80)
89 dAtA[offset] = uint8(v)
92 func (m *IntOrString) Size() (n int) {
95 n += 1 + sovGenerated(uint64(m.Type))
96 n += 1 + sovGenerated(uint64(m.IntVal))
98 n += 1 + l + sovGenerated(uint64(l))
102 func sovGenerated(x uint64) (n int) {
112 func sozGenerated(x uint64) (n int) {
113 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
115 func (m *IntOrString) Unmarshal(dAtA []byte) error {
121 for shift := uint(0); ; shift += 7 {
123 return ErrIntOverflowGenerated
126 return io.ErrUnexpectedEOF
130 wire |= (uint64(b) & 0x7F) << shift
135 fieldNum := int32(wire >> 3)
136 wireType := int(wire & 0x7)
138 return fmt.Errorf("proto: IntOrString: wiretype end group for non-group")
141 return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire)
146 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
149 for shift := uint(0); ; shift += 7 {
151 return ErrIntOverflowGenerated
154 return io.ErrUnexpectedEOF
158 m.Type |= (Type(b) & 0x7F) << shift
165 return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType)
168 for shift := uint(0); ; shift += 7 {
170 return ErrIntOverflowGenerated
173 return io.ErrUnexpectedEOF
177 m.IntVal |= (int32(b) & 0x7F) << shift
184 return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType)
187 for shift := uint(0); ; shift += 7 {
189 return ErrIntOverflowGenerated
192 return io.ErrUnexpectedEOF
196 stringLen |= (uint64(b) & 0x7F) << shift
201 intStringLen := int(stringLen)
202 if intStringLen < 0 {
203 return ErrInvalidLengthGenerated
205 postIndex := iNdEx + intStringLen
207 return io.ErrUnexpectedEOF
209 m.StrVal = string(dAtA[iNdEx:postIndex])
213 skippy, err := skipGenerated(dAtA[iNdEx:])
218 return ErrInvalidLengthGenerated
220 if (iNdEx + skippy) > l {
221 return io.ErrUnexpectedEOF
228 return io.ErrUnexpectedEOF
232 func skipGenerated(dAtA []byte) (n int, err error) {
237 for shift := uint(0); ; shift += 7 {
239 return 0, ErrIntOverflowGenerated
242 return 0, io.ErrUnexpectedEOF
246 wire |= (uint64(b) & 0x7F) << shift
251 wireType := int(wire & 0x7)
254 for shift := uint(0); ; shift += 7 {
256 return 0, ErrIntOverflowGenerated
259 return 0, io.ErrUnexpectedEOF
262 if dAtA[iNdEx-1] < 0x80 {
272 for shift := uint(0); ; shift += 7 {
274 return 0, ErrIntOverflowGenerated
277 return 0, io.ErrUnexpectedEOF
281 length |= (int(b) & 0x7F) << shift
288 return 0, ErrInvalidLengthGenerated
294 var start int = iNdEx
295 for shift := uint(0); ; shift += 7 {
297 return 0, ErrIntOverflowGenerated
300 return 0, io.ErrUnexpectedEOF
304 innerWire |= (uint64(b) & 0x7F) << shift
309 innerWireType := int(innerWire & 0x7)
310 if innerWireType == 4 {
313 next, err := skipGenerated(dAtA[start:])
326 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
333 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
334 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
338 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto", fileDescriptorGenerated)
341 var fileDescriptorGenerated = []byte{
342 // 292 bytes of a gzipped FileDescriptorProto
343 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0x31, 0x4b, 0x33, 0x31,
344 0x1c, 0xc6, 0x93, 0xb7, 0x7d, 0x8b, 0x9e, 0xe0, 0x50, 0x1c, 0x8a, 0x43, 0x7a, 0x28, 0xc8, 0x0d,
345 0x9a, 0xac, 0xe2, 0xd8, 0xad, 0x20, 0x08, 0x57, 0x71, 0x70, 0xbb, 0x6b, 0x63, 0x1a, 0xae, 0x4d,
346 0x42, 0xee, 0x7f, 0xc2, 0x6d, 0xfd, 0x08, 0xba, 0x39, 0xfa, 0x71, 0x6e, 0xec, 0xd8, 0x41, 0x8a,
347 0x17, 0xbf, 0x85, 0x93, 0x5c, 0xee, 0x40, 0xa7, 0xe4, 0x79, 0x9e, 0xdf, 0x2f, 0x90, 0xe0, 0x36,
348 0xbb, 0xce, 0xa9, 0xd4, 0x2c, 0x2b, 0x52, 0x6e, 0x15, 0x07, 0x9e, 0xb3, 0x67, 0xae, 0x16, 0xda,
349 0xb2, 0x6e, 0x48, 0x8c, 0x5c, 0x27, 0xf3, 0xa5, 0x54, 0xdc, 0x96, 0xcc, 0x64, 0x82, 0x15, 0x20,
350 0x57, 0x4c, 0x2a, 0xc8, 0xc1, 0x32, 0xc1, 0x15, 0xb7, 0x09, 0xf0, 0x05, 0x35, 0x56, 0x83, 0x1e,
351 0x9e, 0xb7, 0x12, 0xfd, 0x2b, 0x51, 0x93, 0x09, 0xda, 0x48, 0xb4, 0x95, 0x4e, 0xaf, 0x84, 0x84,
352 0x65, 0x91, 0xd2, 0xb9, 0x5e, 0x33, 0xa1, 0x85, 0x66, 0xde, 0x4d, 0x8b, 0x27, 0x9f, 0x7c, 0xf0,
353 0xb7, 0xf6, 0xcd, 0xb3, 0x57, 0x1c, 0x1c, 0x4d, 0x15, 0xdc, 0xd9, 0x19, 0x58, 0xa9, 0xc4, 0x30,
354 0x0a, 0xfa, 0x50, 0x1a, 0x3e, 0xc2, 0x21, 0x8e, 0x7a, 0x93, 0x93, 0x6a, 0x3f, 0x46, 0x6e, 0x3f,
355 0xee, 0xdf, 0x97, 0x86, 0x7f, 0x77, 0x67, 0xec, 0x89, 0xe1, 0x45, 0x30, 0x90, 0x0a, 0x1e, 0x92,
356 0xd5, 0xe8, 0x5f, 0x88, 0xa3, 0xff, 0x93, 0xe3, 0x8e, 0x1d, 0x4c, 0x7d, 0x1b, 0x77, 0x6b, 0xc3,
357 0xe5, 0x60, 0x1b, 0xae, 0x17, 0xe2, 0xe8, 0xf0, 0x97, 0x9b, 0xf9, 0x36, 0xee, 0xd6, 0x9b, 0x83,
358 0xb7, 0xf7, 0x31, 0xda, 0x7c, 0x84, 0x68, 0x72, 0x59, 0xd5, 0x04, 0x6d, 0x6b, 0x82, 0x76, 0x35,
359 0x41, 0x1b, 0x47, 0x70, 0xe5, 0x08, 0xde, 0x3a, 0x82, 0x77, 0x8e, 0xe0, 0x4f, 0x47, 0xf0, 0xcb,
360 0x17, 0x41, 0x8f, 0x83, 0xf6, 0xc3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x52, 0xa0, 0xb5, 0xc9,
361 0x64, 0x01, 0x00, 0x00,