generated.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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/apis/meta/v1beta1/generated.proto
  15. package v1beta1
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. proto "github.com/gogo/protobuf/proto"
  20. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  21. math "math"
  22. math_bits "math/bits"
  23. reflect "reflect"
  24. strings "strings"
  25. )
  26. // Reference imports to suppress errors if they are not otherwise used.
  27. var _ = proto.Marshal
  28. var _ = fmt.Errorf
  29. var _ = math.Inf
  30. // This is a compile-time assertion to ensure that this generated file
  31. // is compatible with the proto package it is being compiled against.
  32. // A compilation error at this line likely means your copy of the
  33. // proto package needs to be updated.
  34. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  35. func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} }
  36. func (*PartialObjectMetadataList) ProtoMessage() {}
  37. func (*PartialObjectMetadataList) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_90ec10f86b91f9a8, []int{0}
  39. }
  40. func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error {
  41. return m.Unmarshal(b)
  42. }
  43. func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. b = b[:cap(b)]
  45. n, err := m.MarshalToSizedBuffer(b)
  46. if err != nil {
  47. return nil, err
  48. }
  49. return b[:n], nil
  50. }
  51. func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_PartialObjectMetadataList.Merge(m, src)
  53. }
  54. func (m *PartialObjectMetadataList) XXX_Size() int {
  55. return m.Size()
  56. }
  57. func (m *PartialObjectMetadataList) XXX_DiscardUnknown() {
  58. xxx_messageInfo_PartialObjectMetadataList.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_PartialObjectMetadataList proto.InternalMessageInfo
  61. func init() {
  62. proto.RegisterType((*PartialObjectMetadataList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1beta1.PartialObjectMetadataList")
  63. }
  64. func init() {
  65. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/generated.proto", fileDescriptor_90ec10f86b91f9a8)
  66. }
  67. var fileDescriptor_90ec10f86b91f9a8 = []byte{
  68. // 317 bytes of a gzipped FileDescriptorProto
  69. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x4b, 0xf3, 0x30,
  70. 0x1c, 0xc6, 0x9b, 0xf7, 0x65, 0x30, 0x3a, 0x04, 0xd9, 0x69, 0xee, 0x90, 0x0d, 0x4f, 0xdb, 0xc1,
  71. 0x84, 0x0d, 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, 0xef, 0xfc, 0xa6, 0xaa, 0x72, 0xe7, 0x5f, 0x9f, 0x0c, 0x5a, 0x63, 0xc6, 0xea,
  83. 0x5c, 0x9c, 0x39, 0xda, 0x99, 0x26, 0x87, 0xab, 0x6d, 0xcf, 0xcb, 0xb7, 0xbd, 0xe6, 0x57, 0x33,
  84. 0xfb, 0x36, 0xb6, 0xef, 0xfd, 0x86, 0x44, 0x50, 0xb6, 0x43, 0xfa, 0xff, 0x07, 0xad, 0xf1, 0x45,
  85. 0x3d, 0xf5, 0xaf, 0x6b, 0x27, 0x07, 0xd5, 0x39, 0x8d, 0x4b, 0x67, 0x9c, 0x95, 0xe2, 0xc9, 0x74,
  86. 0xb5, 0xa3, 0xde, 0x7a, 0x47, 0xbd, 0xcd, 0x8e, 0x7a, 0x2f, 0x39, 0x25, 0xab, 0x9c, 0x92, 0x75,
  87. 0x4e, 0xc9, 0x26, 0xa7, 0xe4, 0x3d, 0xa7, 0xe4, 0xf5, 0x83, 0x7a, 0xb7, 0xc3, 0xda, 0xcf, 0xe0,
  88. 0x33, 0x00, 0x00, 0xff, 0xff, 0x30, 0x97, 0x8b, 0x11, 0x4b, 0x02, 0x00, 0x00,
  89. }
  90. func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error) {
  91. size := m.Size()
  92. dAtA = make([]byte, size)
  93. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  94. if err != nil {
  95. return nil, err
  96. }
  97. return dAtA[:n], nil
  98. }
  99. func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error) {
  100. size := m.Size()
  101. return m.MarshalToSizedBuffer(dAtA[:size])
  102. }
  103. func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  104. i := len(dAtA)
  105. _ = i
  106. var l int
  107. _ = l
  108. {
  109. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  110. if err != nil {
  111. return 0, err
  112. }
  113. i -= size
  114. i = encodeVarintGenerated(dAtA, i, uint64(size))
  115. }
  116. i--
  117. dAtA[i] = 0x12
  118. if len(m.Items) > 0 {
  119. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  120. {
  121. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  122. if err != nil {
  123. return 0, err
  124. }
  125. i -= size
  126. i = encodeVarintGenerated(dAtA, i, uint64(size))
  127. }
  128. i--
  129. dAtA[i] = 0xa
  130. }
  131. }
  132. return len(dAtA) - i, nil
  133. }
  134. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  135. offset -= sovGenerated(v)
  136. base := offset
  137. for v >= 1<<7 {
  138. dAtA[offset] = uint8(v&0x7f | 0x80)
  139. v >>= 7
  140. offset++
  141. }
  142. dAtA[offset] = uint8(v)
  143. return base
  144. }
  145. func (m *PartialObjectMetadataList) Size() (n int) {
  146. if m == nil {
  147. return 0
  148. }
  149. var l int
  150. _ = l
  151. if len(m.Items) > 0 {
  152. for _, e := range m.Items {
  153. l = e.Size()
  154. n += 1 + l + sovGenerated(uint64(l))
  155. }
  156. }
  157. l = m.ListMeta.Size()
  158. n += 1 + l + sovGenerated(uint64(l))
  159. return n
  160. }
  161. func sovGenerated(x uint64) (n int) {
  162. return (math_bits.Len64(x|1) + 6) / 7
  163. }
  164. func sozGenerated(x uint64) (n int) {
  165. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  166. }
  167. func (this *PartialObjectMetadataList) String() string {
  168. if this == nil {
  169. return "nil"
  170. }
  171. repeatedStringForItems := "[]PartialObjectMetadata{"
  172. for _, f := range this.Items {
  173. repeatedStringForItems += fmt.Sprintf("%v", f) + ","
  174. }
  175. repeatedStringForItems += "}"
  176. s := strings.Join([]string{`&PartialObjectMetadataList{`,
  177. `Items:` + repeatedStringForItems + `,`,
  178. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  179. `}`,
  180. }, "")
  181. return s
  182. }
  183. func valueToStringGenerated(v interface{}) string {
  184. rv := reflect.ValueOf(v)
  185. if rv.IsNil() {
  186. return "nil"
  187. }
  188. pv := reflect.Indirect(rv).Interface()
  189. return fmt.Sprintf("*%v", pv)
  190. }
  191. func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error {
  192. l := len(dAtA)
  193. iNdEx := 0
  194. for iNdEx < l {
  195. preIndex := iNdEx
  196. var wire uint64
  197. for shift := uint(0); ; shift += 7 {
  198. if shift >= 64 {
  199. return ErrIntOverflowGenerated
  200. }
  201. if iNdEx >= l {
  202. return io.ErrUnexpectedEOF
  203. }
  204. b := dAtA[iNdEx]
  205. iNdEx++
  206. wire |= uint64(b&0x7F) << shift
  207. if b < 0x80 {
  208. break
  209. }
  210. }
  211. fieldNum := int32(wire >> 3)
  212. wireType := int(wire & 0x7)
  213. if wireType == 4 {
  214. return fmt.Errorf("proto: PartialObjectMetadataList: wiretype end group for non-group")
  215. }
  216. if fieldNum <= 0 {
  217. return fmt.Errorf("proto: PartialObjectMetadataList: illegal tag %d (wire type %d)", fieldNum, wire)
  218. }
  219. switch fieldNum {
  220. case 1:
  221. if wireType != 2 {
  222. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  223. }
  224. var msglen int
  225. for shift := uint(0); ; shift += 7 {
  226. if shift >= 64 {
  227. return ErrIntOverflowGenerated
  228. }
  229. if iNdEx >= l {
  230. return io.ErrUnexpectedEOF
  231. }
  232. b := dAtA[iNdEx]
  233. iNdEx++
  234. msglen |= int(b&0x7F) << shift
  235. if b < 0x80 {
  236. break
  237. }
  238. }
  239. if msglen < 0 {
  240. return ErrInvalidLengthGenerated
  241. }
  242. postIndex := iNdEx + msglen
  243. if postIndex < 0 {
  244. return ErrInvalidLengthGenerated
  245. }
  246. if postIndex > l {
  247. return io.ErrUnexpectedEOF
  248. }
  249. m.Items = append(m.Items, v1.PartialObjectMetadata{})
  250. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  251. return err
  252. }
  253. iNdEx = postIndex
  254. case 2:
  255. if wireType != 2 {
  256. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  257. }
  258. var msglen int
  259. for shift := uint(0); ; shift += 7 {
  260. if shift >= 64 {
  261. return ErrIntOverflowGenerated
  262. }
  263. if iNdEx >= l {
  264. return io.ErrUnexpectedEOF
  265. }
  266. b := dAtA[iNdEx]
  267. iNdEx++
  268. msglen |= int(b&0x7F) << shift
  269. if b < 0x80 {
  270. break
  271. }
  272. }
  273. if msglen < 0 {
  274. return ErrInvalidLengthGenerated
  275. }
  276. postIndex := iNdEx + msglen
  277. if postIndex < 0 {
  278. return ErrInvalidLengthGenerated
  279. }
  280. if postIndex > l {
  281. return io.ErrUnexpectedEOF
  282. }
  283. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  284. return err
  285. }
  286. iNdEx = postIndex
  287. default:
  288. iNdEx = preIndex
  289. skippy, err := skipGenerated(dAtA[iNdEx:])
  290. if err != nil {
  291. return err
  292. }
  293. if (skippy < 0) || (iNdEx+skippy) < 0 {
  294. return ErrInvalidLengthGenerated
  295. }
  296. if (iNdEx + skippy) > l {
  297. return io.ErrUnexpectedEOF
  298. }
  299. iNdEx += skippy
  300. }
  301. }
  302. if iNdEx > l {
  303. return io.ErrUnexpectedEOF
  304. }
  305. return nil
  306. }
  307. func skipGenerated(dAtA []byte) (n int, err error) {
  308. l := len(dAtA)
  309. iNdEx := 0
  310. depth := 0
  311. for iNdEx < l {
  312. var wire uint64
  313. for shift := uint(0); ; shift += 7 {
  314. if shift >= 64 {
  315. return 0, ErrIntOverflowGenerated
  316. }
  317. if iNdEx >= l {
  318. return 0, io.ErrUnexpectedEOF
  319. }
  320. b := dAtA[iNdEx]
  321. iNdEx++
  322. wire |= (uint64(b) & 0x7F) << shift
  323. if b < 0x80 {
  324. break
  325. }
  326. }
  327. wireType := int(wire & 0x7)
  328. switch wireType {
  329. case 0:
  330. for shift := uint(0); ; shift += 7 {
  331. if shift >= 64 {
  332. return 0, ErrIntOverflowGenerated
  333. }
  334. if iNdEx >= l {
  335. return 0, io.ErrUnexpectedEOF
  336. }
  337. iNdEx++
  338. if dAtA[iNdEx-1] < 0x80 {
  339. break
  340. }
  341. }
  342. case 1:
  343. iNdEx += 8
  344. case 2:
  345. var length int
  346. for shift := uint(0); ; shift += 7 {
  347. if shift >= 64 {
  348. return 0, ErrIntOverflowGenerated
  349. }
  350. if iNdEx >= l {
  351. return 0, io.ErrUnexpectedEOF
  352. }
  353. b := dAtA[iNdEx]
  354. iNdEx++
  355. length |= (int(b) & 0x7F) << shift
  356. if b < 0x80 {
  357. break
  358. }
  359. }
  360. if length < 0 {
  361. return 0, ErrInvalidLengthGenerated
  362. }
  363. iNdEx += length
  364. case 3:
  365. depth++
  366. case 4:
  367. if depth == 0 {
  368. return 0, ErrUnexpectedEndOfGroupGenerated
  369. }
  370. depth--
  371. case 5:
  372. iNdEx += 4
  373. default:
  374. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  375. }
  376. if iNdEx < 0 {
  377. return 0, ErrInvalidLengthGenerated
  378. }
  379. if depth == 0 {
  380. return iNdEx, nil
  381. }
  382. }
  383. return 0, io.ErrUnexpectedEOF
  384. }
  385. var (
  386. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  387. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  388. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  389. )