generated.pb.go 9.4 KB

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