generated.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. package intstr
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. math "math"
  20. math_bits "math/bits"
  21. proto "github.com/gogo/protobuf/proto"
  22. )
  23. // Reference imports to suppress errors if they are not otherwise used.
  24. var _ = proto.Marshal
  25. var _ = fmt.Errorf
  26. var _ = math.Inf
  27. // This is a compile-time assertion to ensure that this generated file
  28. // is compatible with the proto package it is being compiled against.
  29. // A compilation error at this line likely means your copy of the
  30. // proto package needs to be updated.
  31. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  32. func (m *IntOrString) Reset() { *m = IntOrString{} }
  33. func (*IntOrString) ProtoMessage() {}
  34. func (*IntOrString) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_94e046ae3ce6121c, []int{0}
  36. }
  37. func (m *IntOrString) XXX_Unmarshal(b []byte) error {
  38. return m.Unmarshal(b)
  39. }
  40. func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. b = b[:cap(b)]
  42. n, err := m.MarshalToSizedBuffer(b)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return b[:n], nil
  47. }
  48. func (m *IntOrString) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_IntOrString.Merge(m, src)
  50. }
  51. func (m *IntOrString) XXX_Size() int {
  52. return m.Size()
  53. }
  54. func (m *IntOrString) XXX_DiscardUnknown() {
  55. xxx_messageInfo_IntOrString.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_IntOrString proto.InternalMessageInfo
  58. func init() {
  59. proto.RegisterType((*IntOrString)(nil), "k8s.io.apimachinery.pkg.util.intstr.IntOrString")
  60. }
  61. func init() {
  62. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto", fileDescriptor_94e046ae3ce6121c)
  63. }
  64. var fileDescriptor_94e046ae3ce6121c = []byte{
  65. // 292 bytes of a gzipped FileDescriptorProto
  66. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4a, 0x03, 0x31,
  67. 0x1c, 0xc6, 0x13, 0x5b, 0x8b, 0x9e, 0xe0, 0x50, 0x1c, 0x8a, 0x43, 0x7a, 0x58, 0x90, 0x5b, 0x4c,
  68. 0x56, 0x71, 0xec, 0x56, 0x10, 0x84, 0x56, 0x1c, 0xdc, 0xee, 0xda, 0x98, 0x86, 0x6b, 0x93, 0x90,
  69. 0xfb, 0x9f, 0x70, 0x5b, 0x1f, 0x41, 0x37, 0x47, 0x1f, 0xe7, 0xc6, 0x8e, 0x1d, 0xa4, 0x78, 0xf1,
  70. 0x2d, 0x9c, 0xe4, 0x72, 0x07, 0x3a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, 0x9b, 0x8f, 0x10, 0x8d, 0x27, 0x65, 0x45, 0xd0, 0xb6, 0x22, 0x68, 0x57, 0x11,
  82. 0xb4, 0x71, 0x04, 0x97, 0x8e, 0xe0, 0xad, 0x23, 0x78, 0xe7, 0x08, 0xfe, 0x74, 0x04, 0xbf, 0x7c,
  83. 0x11, 0xf4, 0x38, 0xfa, 0xc7, 0x17, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xc4, 0xf0, 0xa0,
  84. 0x81, 0x01, 0x00, 0x00,
  85. }
  86. func (m *IntOrString) Marshal() (dAtA []byte, err error) {
  87. size := m.Size()
  88. dAtA = make([]byte, size)
  89. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  90. if err != nil {
  91. return nil, err
  92. }
  93. return dAtA[:n], nil
  94. }
  95. func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) {
  96. size := m.Size()
  97. return m.MarshalToSizedBuffer(dAtA[:size])
  98. }
  99. func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  100. i := len(dAtA)
  101. _ = i
  102. var l int
  103. _ = l
  104. i -= len(m.StrVal)
  105. copy(dAtA[i:], m.StrVal)
  106. i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal)))
  107. i--
  108. dAtA[i] = 0x1a
  109. i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal))
  110. i--
  111. dAtA[i] = 0x10
  112. i = encodeVarintGenerated(dAtA, i, uint64(m.Type))
  113. i--
  114. dAtA[i] = 0x8
  115. return len(dAtA) - i, nil
  116. }
  117. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  118. offset -= sovGenerated(v)
  119. base := offset
  120. for v >= 1<<7 {
  121. dAtA[offset] = uint8(v&0x7f | 0x80)
  122. v >>= 7
  123. offset++
  124. }
  125. dAtA[offset] = uint8(v)
  126. return base
  127. }
  128. func (m *IntOrString) Size() (n int) {
  129. if m == nil {
  130. return 0
  131. }
  132. var l int
  133. _ = l
  134. n += 1 + sovGenerated(uint64(m.Type))
  135. n += 1 + sovGenerated(uint64(m.IntVal))
  136. l = len(m.StrVal)
  137. n += 1 + l + sovGenerated(uint64(l))
  138. return n
  139. }
  140. func sovGenerated(x uint64) (n int) {
  141. return (math_bits.Len64(x|1) + 6) / 7
  142. }
  143. func sozGenerated(x uint64) (n int) {
  144. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  145. }
  146. func (m *IntOrString) Unmarshal(dAtA []byte) error {
  147. l := len(dAtA)
  148. iNdEx := 0
  149. for iNdEx < l {
  150. preIndex := iNdEx
  151. var wire uint64
  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. wire |= uint64(b&0x7F) << shift
  162. if b < 0x80 {
  163. break
  164. }
  165. }
  166. fieldNum := int32(wire >> 3)
  167. wireType := int(wire & 0x7)
  168. if wireType == 4 {
  169. return fmt.Errorf("proto: IntOrString: wiretype end group for non-group")
  170. }
  171. if fieldNum <= 0 {
  172. return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire)
  173. }
  174. switch fieldNum {
  175. case 1:
  176. if wireType != 0 {
  177. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  178. }
  179. m.Type = 0
  180. for shift := uint(0); ; shift += 7 {
  181. if shift >= 64 {
  182. return ErrIntOverflowGenerated
  183. }
  184. if iNdEx >= l {
  185. return io.ErrUnexpectedEOF
  186. }
  187. b := dAtA[iNdEx]
  188. iNdEx++
  189. m.Type |= Type(b&0x7F) << shift
  190. if b < 0x80 {
  191. break
  192. }
  193. }
  194. case 2:
  195. if wireType != 0 {
  196. return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType)
  197. }
  198. m.IntVal = 0
  199. for shift := uint(0); ; shift += 7 {
  200. if shift >= 64 {
  201. return ErrIntOverflowGenerated
  202. }
  203. if iNdEx >= l {
  204. return io.ErrUnexpectedEOF
  205. }
  206. b := dAtA[iNdEx]
  207. iNdEx++
  208. m.IntVal |= int32(b&0x7F) << shift
  209. if b < 0x80 {
  210. break
  211. }
  212. }
  213. case 3:
  214. if wireType != 2 {
  215. return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType)
  216. }
  217. var stringLen uint64
  218. for shift := uint(0); ; shift += 7 {
  219. if shift >= 64 {
  220. return ErrIntOverflowGenerated
  221. }
  222. if iNdEx >= l {
  223. return io.ErrUnexpectedEOF
  224. }
  225. b := dAtA[iNdEx]
  226. iNdEx++
  227. stringLen |= uint64(b&0x7F) << shift
  228. if b < 0x80 {
  229. break
  230. }
  231. }
  232. intStringLen := int(stringLen)
  233. if intStringLen < 0 {
  234. return ErrInvalidLengthGenerated
  235. }
  236. postIndex := iNdEx + intStringLen
  237. if postIndex < 0 {
  238. return ErrInvalidLengthGenerated
  239. }
  240. if postIndex > l {
  241. return io.ErrUnexpectedEOF
  242. }
  243. m.StrVal = string(dAtA[iNdEx:postIndex])
  244. iNdEx = postIndex
  245. default:
  246. iNdEx = preIndex
  247. skippy, err := skipGenerated(dAtA[iNdEx:])
  248. if err != nil {
  249. return err
  250. }
  251. if (skippy < 0) || (iNdEx+skippy) < 0 {
  252. return ErrInvalidLengthGenerated
  253. }
  254. if (iNdEx + skippy) > l {
  255. return io.ErrUnexpectedEOF
  256. }
  257. iNdEx += skippy
  258. }
  259. }
  260. if iNdEx > l {
  261. return io.ErrUnexpectedEOF
  262. }
  263. return nil
  264. }
  265. func skipGenerated(dAtA []byte) (n int, err error) {
  266. l := len(dAtA)
  267. iNdEx := 0
  268. depth := 0
  269. for iNdEx < l {
  270. var wire uint64
  271. for shift := uint(0); ; shift += 7 {
  272. if shift >= 64 {
  273. return 0, ErrIntOverflowGenerated
  274. }
  275. if iNdEx >= l {
  276. return 0, io.ErrUnexpectedEOF
  277. }
  278. b := dAtA[iNdEx]
  279. iNdEx++
  280. wire |= (uint64(b) & 0x7F) << shift
  281. if b < 0x80 {
  282. break
  283. }
  284. }
  285. wireType := int(wire & 0x7)
  286. switch wireType {
  287. case 0:
  288. for shift := uint(0); ; shift += 7 {
  289. if shift >= 64 {
  290. return 0, ErrIntOverflowGenerated
  291. }
  292. if iNdEx >= l {
  293. return 0, io.ErrUnexpectedEOF
  294. }
  295. iNdEx++
  296. if dAtA[iNdEx-1] < 0x80 {
  297. break
  298. }
  299. }
  300. case 1:
  301. iNdEx += 8
  302. case 2:
  303. var length int
  304. for shift := uint(0); ; shift += 7 {
  305. if shift >= 64 {
  306. return 0, ErrIntOverflowGenerated
  307. }
  308. if iNdEx >= l {
  309. return 0, io.ErrUnexpectedEOF
  310. }
  311. b := dAtA[iNdEx]
  312. iNdEx++
  313. length |= (int(b) & 0x7F) << shift
  314. if b < 0x80 {
  315. break
  316. }
  317. }
  318. if length < 0 {
  319. return 0, ErrInvalidLengthGenerated
  320. }
  321. iNdEx += length
  322. case 3:
  323. depth++
  324. case 4:
  325. if depth == 0 {
  326. return 0, ErrUnexpectedEndOfGroupGenerated
  327. }
  328. depth--
  329. case 5:
  330. iNdEx += 4
  331. default:
  332. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  333. }
  334. if iNdEx < 0 {
  335. return 0, ErrInvalidLengthGenerated
  336. }
  337. if depth == 0 {
  338. return iNdEx, nil
  339. }
  340. }
  341. return 0, io.ErrUnexpectedEOF
  342. }
  343. var (
  344. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  345. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  346. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  347. )