blob: 5c2ac4f23fde827e652d6567fc64e2acd41329eb [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo.
18// source: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto
19// DO NOT EDIT!
20
21/*
22 Package intstr is a generated protocol buffer package.
23
24 It is generated from these files:
25 k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto
26
27 It has these top-level messages:
28 IntOrString
29*/
30package intstr
31
32import proto "github.com/gogo/protobuf/proto"
33import fmt "fmt"
34import math "math"
35
36import io "io"
37
38// Reference imports to suppress errors if they are not otherwise used.
39var _ = proto.Marshal
40var _ = fmt.Errorf
41var _ = math.Inf
42
43// This is a compile-time assertion to ensure that this generated file
44// is compatible with the proto package it is being compiled against.
45// A compilation error at this line likely means your copy of the
46// proto package needs to be updated.
47const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
48
49func (m *IntOrString) Reset() { *m = IntOrString{} }
50func (*IntOrString) ProtoMessage() {}
51func (*IntOrString) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
52
53func init() {
54 proto.RegisterType((*IntOrString)(nil), "k8s.io.apimachinery.pkg.util.intstr.IntOrString")
55}
56func (m *IntOrString) Marshal() (dAtA []byte, err error) {
57 size := m.Size()
58 dAtA = make([]byte, size)
59 n, err := m.MarshalTo(dAtA)
60 if err != nil {
61 return nil, err
62 }
63 return dAtA[:n], nil
64}
65
66func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) {
67 var i int
68 _ = i
69 var l int
70 _ = l
71 dAtA[i] = 0x8
72 i++
73 i = encodeVarintGenerated(dAtA, i, uint64(m.Type))
74 dAtA[i] = 0x10
75 i++
76 i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal))
77 dAtA[i] = 0x1a
78 i++
79 i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal)))
80 i += copy(dAtA[i:], m.StrVal)
81 return i, nil
82}
83
84func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
85 dAtA[offset] = uint8(v)
86 dAtA[offset+1] = uint8(v >> 8)
87 dAtA[offset+2] = uint8(v >> 16)
88 dAtA[offset+3] = uint8(v >> 24)
89 dAtA[offset+4] = uint8(v >> 32)
90 dAtA[offset+5] = uint8(v >> 40)
91 dAtA[offset+6] = uint8(v >> 48)
92 dAtA[offset+7] = uint8(v >> 56)
93 return offset + 8
94}
95func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
96 dAtA[offset] = uint8(v)
97 dAtA[offset+1] = uint8(v >> 8)
98 dAtA[offset+2] = uint8(v >> 16)
99 dAtA[offset+3] = uint8(v >> 24)
100 return offset + 4
101}
102func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
103 for v >= 1<<7 {
104 dAtA[offset] = uint8(v&0x7f | 0x80)
105 v >>= 7
106 offset++
107 }
108 dAtA[offset] = uint8(v)
109 return offset + 1
110}
111func (m *IntOrString) Size() (n int) {
112 var l int
113 _ = l
114 n += 1 + sovGenerated(uint64(m.Type))
115 n += 1 + sovGenerated(uint64(m.IntVal))
116 l = len(m.StrVal)
117 n += 1 + l + sovGenerated(uint64(l))
118 return n
119}
120
121func sovGenerated(x uint64) (n int) {
122 for {
123 n++
124 x >>= 7
125 if x == 0 {
126 break
127 }
128 }
129 return n
130}
131func sozGenerated(x uint64) (n int) {
132 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
133}
134func (m *IntOrString) Unmarshal(dAtA []byte) error {
135 l := len(dAtA)
136 iNdEx := 0
137 for iNdEx < l {
138 preIndex := iNdEx
139 var wire uint64
140 for shift := uint(0); ; shift += 7 {
141 if shift >= 64 {
142 return ErrIntOverflowGenerated
143 }
144 if iNdEx >= l {
145 return io.ErrUnexpectedEOF
146 }
147 b := dAtA[iNdEx]
148 iNdEx++
149 wire |= (uint64(b) & 0x7F) << shift
150 if b < 0x80 {
151 break
152 }
153 }
154 fieldNum := int32(wire >> 3)
155 wireType := int(wire & 0x7)
156 if wireType == 4 {
157 return fmt.Errorf("proto: IntOrString: wiretype end group for non-group")
158 }
159 if fieldNum <= 0 {
160 return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire)
161 }
162 switch fieldNum {
163 case 1:
164 if wireType != 0 {
165 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
166 }
167 m.Type = 0
168 for shift := uint(0); ; shift += 7 {
169 if shift >= 64 {
170 return ErrIntOverflowGenerated
171 }
172 if iNdEx >= l {
173 return io.ErrUnexpectedEOF
174 }
175 b := dAtA[iNdEx]
176 iNdEx++
177 m.Type |= (Type(b) & 0x7F) << shift
178 if b < 0x80 {
179 break
180 }
181 }
182 case 2:
183 if wireType != 0 {
184 return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType)
185 }
186 m.IntVal = 0
187 for shift := uint(0); ; shift += 7 {
188 if shift >= 64 {
189 return ErrIntOverflowGenerated
190 }
191 if iNdEx >= l {
192 return io.ErrUnexpectedEOF
193 }
194 b := dAtA[iNdEx]
195 iNdEx++
196 m.IntVal |= (int32(b) & 0x7F) << shift
197 if b < 0x80 {
198 break
199 }
200 }
201 case 3:
202 if wireType != 2 {
203 return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType)
204 }
205 var stringLen uint64
206 for shift := uint(0); ; shift += 7 {
207 if shift >= 64 {
208 return ErrIntOverflowGenerated
209 }
210 if iNdEx >= l {
211 return io.ErrUnexpectedEOF
212 }
213 b := dAtA[iNdEx]
214 iNdEx++
215 stringLen |= (uint64(b) & 0x7F) << shift
216 if b < 0x80 {
217 break
218 }
219 }
220 intStringLen := int(stringLen)
221 if intStringLen < 0 {
222 return ErrInvalidLengthGenerated
223 }
224 postIndex := iNdEx + intStringLen
225 if postIndex > l {
226 return io.ErrUnexpectedEOF
227 }
228 m.StrVal = string(dAtA[iNdEx:postIndex])
229 iNdEx = postIndex
230 default:
231 iNdEx = preIndex
232 skippy, err := skipGenerated(dAtA[iNdEx:])
233 if err != nil {
234 return err
235 }
236 if skippy < 0 {
237 return ErrInvalidLengthGenerated
238 }
239 if (iNdEx + skippy) > l {
240 return io.ErrUnexpectedEOF
241 }
242 iNdEx += skippy
243 }
244 }
245
246 if iNdEx > l {
247 return io.ErrUnexpectedEOF
248 }
249 return nil
250}
251func skipGenerated(dAtA []byte) (n int, err error) {
252 l := len(dAtA)
253 iNdEx := 0
254 for iNdEx < l {
255 var wire uint64
256 for shift := uint(0); ; shift += 7 {
257 if shift >= 64 {
258 return 0, ErrIntOverflowGenerated
259 }
260 if iNdEx >= l {
261 return 0, io.ErrUnexpectedEOF
262 }
263 b := dAtA[iNdEx]
264 iNdEx++
265 wire |= (uint64(b) & 0x7F) << shift
266 if b < 0x80 {
267 break
268 }
269 }
270 wireType := int(wire & 0x7)
271 switch wireType {
272 case 0:
273 for shift := uint(0); ; shift += 7 {
274 if shift >= 64 {
275 return 0, ErrIntOverflowGenerated
276 }
277 if iNdEx >= l {
278 return 0, io.ErrUnexpectedEOF
279 }
280 iNdEx++
281 if dAtA[iNdEx-1] < 0x80 {
282 break
283 }
284 }
285 return iNdEx, nil
286 case 1:
287 iNdEx += 8
288 return iNdEx, nil
289 case 2:
290 var length int
291 for shift := uint(0); ; shift += 7 {
292 if shift >= 64 {
293 return 0, ErrIntOverflowGenerated
294 }
295 if iNdEx >= l {
296 return 0, io.ErrUnexpectedEOF
297 }
298 b := dAtA[iNdEx]
299 iNdEx++
300 length |= (int(b) & 0x7F) << shift
301 if b < 0x80 {
302 break
303 }
304 }
305 iNdEx += length
306 if length < 0 {
307 return 0, ErrInvalidLengthGenerated
308 }
309 return iNdEx, nil
310 case 3:
311 for {
312 var innerWire uint64
313 var start int = iNdEx
314 for shift := uint(0); ; shift += 7 {
315 if shift >= 64 {
316 return 0, ErrIntOverflowGenerated
317 }
318 if iNdEx >= l {
319 return 0, io.ErrUnexpectedEOF
320 }
321 b := dAtA[iNdEx]
322 iNdEx++
323 innerWire |= (uint64(b) & 0x7F) << shift
324 if b < 0x80 {
325 break
326 }
327 }
328 innerWireType := int(innerWire & 0x7)
329 if innerWireType == 4 {
330 break
331 }
332 next, err := skipGenerated(dAtA[start:])
333 if err != nil {
334 return 0, err
335 }
336 iNdEx = start + next
337 }
338 return iNdEx, nil
339 case 4:
340 return iNdEx, nil
341 case 5:
342 iNdEx += 4
343 return iNdEx, nil
344 default:
345 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
346 }
347 }
348 panic("unreachable")
349}
350
351var (
352 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
353 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
354)
355
356func init() {
357 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto", fileDescriptorGenerated)
358}
359
360var fileDescriptorGenerated = []byte{
361 // 292 bytes of a gzipped FileDescriptorProto
362 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0x31, 0x4b, 0x33, 0x31,
363 0x1c, 0xc6, 0x93, 0xb7, 0x7d, 0x8b, 0x9e, 0xe0, 0x50, 0x1c, 0x8a, 0x43, 0x7a, 0x28, 0xc8, 0x0d,
364 0x9a, 0xac, 0xe2, 0xd8, 0xad, 0x20, 0x08, 0x57, 0x71, 0x70, 0xbb, 0x6b, 0x63, 0x1a, 0xae, 0x4d,
365 0x42, 0xee, 0x7f, 0xc2, 0x6d, 0xfd, 0x08, 0xba, 0x39, 0xfa, 0x71, 0x6e, 0xec, 0xd8, 0x41, 0x8a,
366 0x17, 0xbf, 0x85, 0x93, 0x5c, 0xee, 0x40, 0xa7, 0xe4, 0x79, 0x9e, 0xdf, 0x2f, 0x90, 0xe0, 0x36,
367 0xbb, 0xce, 0xa9, 0xd4, 0x2c, 0x2b, 0x52, 0x6e, 0x15, 0x07, 0x9e, 0xb3, 0x67, 0xae, 0x16, 0xda,
368 0xb2, 0x6e, 0x48, 0x8c, 0x5c, 0x27, 0xf3, 0xa5, 0x54, 0xdc, 0x96, 0xcc, 0x64, 0x82, 0x15, 0x20,
369 0x57, 0x4c, 0x2a, 0xc8, 0xc1, 0x32, 0xc1, 0x15, 0xb7, 0x09, 0xf0, 0x05, 0x35, 0x56, 0x83, 0x1e,
370 0x9e, 0xb7, 0x12, 0xfd, 0x2b, 0x51, 0x93, 0x09, 0xda, 0x48, 0xb4, 0x95, 0x4e, 0xaf, 0x84, 0x84,
371 0x65, 0x91, 0xd2, 0xb9, 0x5e, 0x33, 0xa1, 0x85, 0x66, 0xde, 0x4d, 0x8b, 0x27, 0x9f, 0x7c, 0xf0,
372 0xb7, 0xf6, 0xcd, 0xb3, 0x57, 0x1c, 0x1c, 0x4d, 0x15, 0xdc, 0xd9, 0x19, 0x58, 0xa9, 0xc4, 0x30,
373 0x0a, 0xfa, 0x50, 0x1a, 0x3e, 0xc2, 0x21, 0x8e, 0x7a, 0x93, 0x93, 0x6a, 0x3f, 0x46, 0x6e, 0x3f,
374 0xee, 0xdf, 0x97, 0x86, 0x7f, 0x77, 0x67, 0xec, 0x89, 0xe1, 0x45, 0x30, 0x90, 0x0a, 0x1e, 0x92,
375 0xd5, 0xe8, 0x5f, 0x88, 0xa3, 0xff, 0x93, 0xe3, 0x8e, 0x1d, 0x4c, 0x7d, 0x1b, 0x77, 0x6b, 0xc3,
376 0xe5, 0x60, 0x1b, 0xae, 0x17, 0xe2, 0xe8, 0xf0, 0x97, 0x9b, 0xf9, 0x36, 0xee, 0xd6, 0x9b, 0x83,
377 0xb7, 0xf7, 0x31, 0xda, 0x7c, 0x84, 0x68, 0x72, 0x59, 0xd5, 0x04, 0x6d, 0x6b, 0x82, 0x76, 0x35,
378 0x41, 0x1b, 0x47, 0x70, 0xe5, 0x08, 0xde, 0x3a, 0x82, 0x77, 0x8e, 0xe0, 0x4f, 0x47, 0xf0, 0xcb,
379 0x17, 0x41, 0x8f, 0x83, 0xf6, 0xc3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x52, 0xa0, 0xb5, 0xc9,
380 0x64, 0x01, 0x00, 0x00,
381}