generated.pb.go 9.9 KB

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