generated.pb.go 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681
  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/api/policy/v1/generated.proto
  15. package v1
  16. import (
  17. fmt "fmt"
  18. io "io"
  19. proto "github.com/gogo/protobuf/proto"
  20. github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  21. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  22. math "math"
  23. math_bits "math/bits"
  24. reflect "reflect"
  25. strings "strings"
  26. intstr "k8s.io/apimachinery/pkg/util/intstr"
  27. )
  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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  37. func (m *Eviction) Reset() { *m = Eviction{} }
  38. func (*Eviction) ProtoMessage() {}
  39. func (*Eviction) Descriptor() ([]byte, []int) {
  40. return fileDescriptor_2d50488813b2d18e, []int{0}
  41. }
  42. func (m *Eviction) XXX_Unmarshal(b []byte) error {
  43. return m.Unmarshal(b)
  44. }
  45. func (m *Eviction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  46. b = b[:cap(b)]
  47. n, err := m.MarshalToSizedBuffer(b)
  48. if err != nil {
  49. return nil, err
  50. }
  51. return b[:n], nil
  52. }
  53. func (m *Eviction) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_Eviction.Merge(m, src)
  55. }
  56. func (m *Eviction) XXX_Size() int {
  57. return m.Size()
  58. }
  59. func (m *Eviction) XXX_DiscardUnknown() {
  60. xxx_messageInfo_Eviction.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_Eviction proto.InternalMessageInfo
  63. func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} }
  64. func (*PodDisruptionBudget) ProtoMessage() {}
  65. func (*PodDisruptionBudget) Descriptor() ([]byte, []int) {
  66. return fileDescriptor_2d50488813b2d18e, []int{1}
  67. }
  68. func (m *PodDisruptionBudget) XXX_Unmarshal(b []byte) error {
  69. return m.Unmarshal(b)
  70. }
  71. func (m *PodDisruptionBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  72. b = b[:cap(b)]
  73. n, err := m.MarshalToSizedBuffer(b)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return b[:n], nil
  78. }
  79. func (m *PodDisruptionBudget) XXX_Merge(src proto.Message) {
  80. xxx_messageInfo_PodDisruptionBudget.Merge(m, src)
  81. }
  82. func (m *PodDisruptionBudget) XXX_Size() int {
  83. return m.Size()
  84. }
  85. func (m *PodDisruptionBudget) XXX_DiscardUnknown() {
  86. xxx_messageInfo_PodDisruptionBudget.DiscardUnknown(m)
  87. }
  88. var xxx_messageInfo_PodDisruptionBudget proto.InternalMessageInfo
  89. func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} }
  90. func (*PodDisruptionBudgetList) ProtoMessage() {}
  91. func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) {
  92. return fileDescriptor_2d50488813b2d18e, []int{2}
  93. }
  94. func (m *PodDisruptionBudgetList) XXX_Unmarshal(b []byte) error {
  95. return m.Unmarshal(b)
  96. }
  97. func (m *PodDisruptionBudgetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  98. b = b[:cap(b)]
  99. n, err := m.MarshalToSizedBuffer(b)
  100. if err != nil {
  101. return nil, err
  102. }
  103. return b[:n], nil
  104. }
  105. func (m *PodDisruptionBudgetList) XXX_Merge(src proto.Message) {
  106. xxx_messageInfo_PodDisruptionBudgetList.Merge(m, src)
  107. }
  108. func (m *PodDisruptionBudgetList) XXX_Size() int {
  109. return m.Size()
  110. }
  111. func (m *PodDisruptionBudgetList) XXX_DiscardUnknown() {
  112. xxx_messageInfo_PodDisruptionBudgetList.DiscardUnknown(m)
  113. }
  114. var xxx_messageInfo_PodDisruptionBudgetList proto.InternalMessageInfo
  115. func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} }
  116. func (*PodDisruptionBudgetSpec) ProtoMessage() {}
  117. func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) {
  118. return fileDescriptor_2d50488813b2d18e, []int{3}
  119. }
  120. func (m *PodDisruptionBudgetSpec) XXX_Unmarshal(b []byte) error {
  121. return m.Unmarshal(b)
  122. }
  123. func (m *PodDisruptionBudgetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  124. b = b[:cap(b)]
  125. n, err := m.MarshalToSizedBuffer(b)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return b[:n], nil
  130. }
  131. func (m *PodDisruptionBudgetSpec) XXX_Merge(src proto.Message) {
  132. xxx_messageInfo_PodDisruptionBudgetSpec.Merge(m, src)
  133. }
  134. func (m *PodDisruptionBudgetSpec) XXX_Size() int {
  135. return m.Size()
  136. }
  137. func (m *PodDisruptionBudgetSpec) XXX_DiscardUnknown() {
  138. xxx_messageInfo_PodDisruptionBudgetSpec.DiscardUnknown(m)
  139. }
  140. var xxx_messageInfo_PodDisruptionBudgetSpec proto.InternalMessageInfo
  141. func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} }
  142. func (*PodDisruptionBudgetStatus) ProtoMessage() {}
  143. func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) {
  144. return fileDescriptor_2d50488813b2d18e, []int{4}
  145. }
  146. func (m *PodDisruptionBudgetStatus) XXX_Unmarshal(b []byte) error {
  147. return m.Unmarshal(b)
  148. }
  149. func (m *PodDisruptionBudgetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  150. b = b[:cap(b)]
  151. n, err := m.MarshalToSizedBuffer(b)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return b[:n], nil
  156. }
  157. func (m *PodDisruptionBudgetStatus) XXX_Merge(src proto.Message) {
  158. xxx_messageInfo_PodDisruptionBudgetStatus.Merge(m, src)
  159. }
  160. func (m *PodDisruptionBudgetStatus) XXX_Size() int {
  161. return m.Size()
  162. }
  163. func (m *PodDisruptionBudgetStatus) XXX_DiscardUnknown() {
  164. xxx_messageInfo_PodDisruptionBudgetStatus.DiscardUnknown(m)
  165. }
  166. var xxx_messageInfo_PodDisruptionBudgetStatus proto.InternalMessageInfo
  167. func init() {
  168. proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1.Eviction")
  169. proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.api.policy.v1.PodDisruptionBudget")
  170. proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetList")
  171. proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetSpec")
  172. proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetStatus")
  173. proto.RegisterMapType((map[string]v1.Time)(nil), "k8s.io.api.policy.v1.PodDisruptionBudgetStatus.DisruptedPodsEntry")
  174. }
  175. func init() {
  176. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/policy/v1/generated.proto", fileDescriptor_2d50488813b2d18e)
  177. }
  178. var fileDescriptor_2d50488813b2d18e = []byte{
  179. // 805 bytes of a gzipped FileDescriptorProto
  180. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xdf, 0x8e, 0xdb, 0x44,
  181. 0x14, 0xc6, 0xe3, 0x64, 0xb3, 0x2c, 0xd3, 0x24, 0x5a, 0x86, 0x02, 0x4b, 0x2e, 0x1c, 0x94, 0xab,
  182. 0x05, 0xa9, 0x63, 0xb6, 0x45, 0x68, 0x85, 0x04, 0xa2, 0x6e, 0x56, 0x50, 0xd4, 0x25, 0xd5, 0x2c,
  183. 0x08, 0x09, 0x81, 0xc4, 0xc4, 0x3e, 0xcd, 0x0e, 0xb1, 0x3d, 0xd6, 0xcc, 0xd8, 0x34, 0x57, 0xf0,
  184. 0x08, 0xbc, 0x02, 0x8f, 0xc2, 0x15, 0x7b, 0x85, 0x7a, 0x59, 0x71, 0x11, 0xb1, 0xe6, 0x45, 0x90,
  185. 0xc7, 0xce, 0x1f, 0x27, 0x59, 0x35, 0xe5, 0x82, 0x3b, 0xcf, 0x99, 0xf3, 0xfd, 0x8e, 0xcf, 0x37,
  186. 0x67, 0x06, 0x7d, 0x3c, 0x39, 0x55, 0x84, 0x0b, 0x67, 0x92, 0x8c, 0x40, 0x46, 0xa0, 0x41, 0x39,
  187. 0x29, 0x44, 0xbe, 0x90, 0x4e, 0xb9, 0xc1, 0x62, 0xee, 0xc4, 0x22, 0xe0, 0xde, 0xd4, 0x49, 0x4f,
  188. 0x9c, 0x31, 0x44, 0x20, 0x99, 0x06, 0x9f, 0xc4, 0x52, 0x68, 0x81, 0x6f, 0x17, 0x59, 0x84, 0xc5,
  189. 0x9c, 0x14, 0x59, 0x24, 0x3d, 0xe9, 0xde, 0x19, 0x73, 0x7d, 0x99, 0x8c, 0x88, 0x27, 0x42, 0x67,
  190. 0x2c, 0xc6, 0xc2, 0x31, 0xc9, 0xa3, 0xe4, 0x89, 0x59, 0x99, 0x85, 0xf9, 0x2a, 0x20, 0xdd, 0x0f,
  191. 0x96, 0xa5, 0x42, 0xe6, 0x5d, 0xf2, 0x08, 0xe4, 0xd4, 0x89, 0x27, 0xe3, 0x3c, 0xa0, 0x9c, 0x10,
  192. 0x34, 0xdb, 0x52, 0xba, 0xeb, 0xdc, 0xa4, 0x92, 0x49, 0xa4, 0x79, 0x08, 0x1b, 0x82, 0x0f, 0x5f,
  193. 0x24, 0x50, 0xde, 0x25, 0x84, 0x6c, 0x43, 0x77, 0xef, 0x26, 0x5d, 0xa2, 0x79, 0xe0, 0xf0, 0x48,
  194. 0x2b, 0x2d, 0xd7, 0x45, 0xfd, 0xbf, 0x2c, 0x74, 0x70, 0x96, 0x72, 0x4f, 0x73, 0x11, 0xe1, 0x1f,
  195. 0xd0, 0x41, 0xde, 0x85, 0xcf, 0x34, 0x3b, 0xb2, 0xde, 0xb1, 0x8e, 0x6f, 0xdd, 0x7d, 0x9f, 0x2c,
  196. 0x8d, 0x5b, 0x40, 0x49, 0x3c, 0x19, 0xe7, 0x01, 0x45, 0xf2, 0x6c, 0x92, 0x9e, 0x90, 0xe1, 0xe8,
  197. 0x47, 0xf0, 0xf4, 0x39, 0x68, 0xe6, 0xe2, 0xab, 0x59, 0xaf, 0x96, 0xcd, 0x7a, 0x68, 0x19, 0xa3,
  198. 0x0b, 0x2a, 0x0e, 0x50, 0xdb, 0x87, 0x00, 0x34, 0x0c, 0xe3, 0xbc, 0xa2, 0x3a, 0xaa, 0x9b, 0x32,
  199. 0xf7, 0x76, 0x2b, 0x33, 0x58, 0x95, 0xba, 0xaf, 0x65, 0xb3, 0x5e, 0xbb, 0x12, 0xa2, 0x55, 0x78,
  200. 0xff, 0xb7, 0x3a, 0x7a, 0xfd, 0xb1, 0xf0, 0x07, 0x5c, 0xc9, 0xc4, 0x84, 0xdc, 0xc4, 0x1f, 0x83,
  201. 0xfe, 0x1f, 0xfa, 0x1c, 0xa2, 0x3d, 0x15, 0x83, 0x57, 0xb6, 0x77, 0x87, 0x6c, 0x1b, 0x3f, 0xb2,
  202. 0xe5, 0xd7, 0x2e, 0x62, 0xf0, 0xdc, 0x56, 0x89, 0xde, 0xcb, 0x57, 0xd4, 0x80, 0xf0, 0x37, 0x68,
  203. 0x5f, 0x69, 0xa6, 0x13, 0x75, 0xd4, 0x30, 0x48, 0x67, 0x77, 0xa4, 0x91, 0xb9, 0x9d, 0x12, 0xba,
  204. 0x5f, 0xac, 0x69, 0x89, 0xeb, 0xff, 0x61, 0xa1, 0xb7, 0xb6, 0xa8, 0x1e, 0x71, 0xa5, 0xf1, 0x77,
  205. 0x1b, 0x3e, 0x91, 0xdd, 0x7c, 0xca, 0xd5, 0xc6, 0xa5, 0xc3, 0xb2, 0xea, 0xc1, 0x3c, 0xb2, 0xe2,
  206. 0xd1, 0x97, 0xa8, 0xc9, 0x35, 0x84, 0xf9, 0x0c, 0x34, 0x8e, 0x6f, 0xdd, 0x7d, 0x77, 0xe7, 0x8e,
  207. 0xdc, 0x76, 0x49, 0x6d, 0x3e, 0xcc, 0xf5, 0xb4, 0xc0, 0xf4, 0xff, 0xac, 0x6f, 0xed, 0x24, 0x37,
  208. 0x11, 0x3f, 0x41, 0xad, 0x90, 0x47, 0xf7, 0x53, 0xc6, 0x03, 0x36, 0x0a, 0xe0, 0x85, 0xa7, 0x9e,
  209. 0x5f, 0x19, 0x52, 0x5c, 0x19, 0xf2, 0x30, 0xd2, 0x43, 0x79, 0xa1, 0x25, 0x8f, 0xc6, 0xee, 0x61,
  210. 0x36, 0xeb, 0xb5, 0xce, 0x57, 0x48, 0xb4, 0xc2, 0xc5, 0xdf, 0xa3, 0x03, 0x05, 0x01, 0x78, 0x5a,
  211. 0xc8, 0x97, 0x1b, 0xed, 0x47, 0x6c, 0x04, 0xc1, 0x45, 0x29, 0x75, 0x5b, 0xb9, 0x65, 0xf3, 0x15,
  212. 0x5d, 0x20, 0x71, 0x80, 0x3a, 0x21, 0x7b, 0xfa, 0x75, 0xc4, 0x16, 0x8d, 0x34, 0xfe, 0x63, 0x23,
  213. 0x38, 0x9b, 0xf5, 0x3a, 0xe7, 0x15, 0x16, 0x5d, 0x63, 0xf7, 0x7f, 0x6f, 0xa2, 0xb7, 0x6f, 0x1c,
  214. 0x28, 0xfc, 0x05, 0xc2, 0x62, 0xa4, 0x40, 0xa6, 0xe0, 0x7f, 0x56, 0x3c, 0x2a, 0x5c, 0x44, 0xc6,
  215. 0xd8, 0x86, 0xdb, 0x2d, 0x0f, 0x08, 0x0f, 0x37, 0x32, 0xe8, 0x16, 0x15, 0xfe, 0x19, 0xb5, 0xfd,
  216. 0xa2, 0x0a, 0xf8, 0x8f, 0x85, 0x3f, 0x1f, 0x09, 0xf7, 0x25, 0x87, 0x9c, 0x0c, 0x56, 0x21, 0x67,
  217. 0x91, 0x96, 0x53, 0xf7, 0x8d, 0xf2, 0x57, 0xda, 0x95, 0x3d, 0x5a, 0xad, 0x97, 0x37, 0xe3, 0x2f,
  218. 0x90, 0xea, 0x7e, 0x10, 0x88, 0x9f, 0xc0, 0x37, 0xe6, 0x36, 0x97, 0xcd, 0x0c, 0x36, 0x32, 0xe8,
  219. 0x16, 0x15, 0xfe, 0x04, 0x75, 0xbc, 0x44, 0x4a, 0x88, 0xf4, 0xe7, 0xc0, 0x02, 0x7d, 0x39, 0x3d,
  220. 0xda, 0x33, 0x9c, 0x37, 0x4b, 0x4e, 0xe7, 0x41, 0x65, 0x97, 0xae, 0x65, 0xe7, 0x7a, 0x1f, 0x14,
  221. 0x97, 0xe0, 0xcf, 0xf5, 0xcd, 0xaa, 0x7e, 0x50, 0xd9, 0xa5, 0x6b, 0xd9, 0xf8, 0x14, 0xb5, 0xe0,
  222. 0x69, 0x0c, 0xde, 0xdc, 0xcb, 0x7d, 0xa3, 0xbe, 0x5d, 0xaa, 0x5b, 0x67, 0x2b, 0x7b, 0xb4, 0x92,
  223. 0x89, 0x3d, 0x84, 0x3c, 0x11, 0xf9, 0xbc, 0x78, 0x9a, 0x5f, 0x31, 0x67, 0xe0, 0xec, 0x36, 0xbf,
  224. 0x0f, 0xe6, 0xba, 0xe5, 0xc3, 0xb8, 0x08, 0x29, 0xba, 0x82, 0xed, 0x06, 0x08, 0x6f, 0x1e, 0x13,
  225. 0x3e, 0x44, 0x8d, 0x09, 0x4c, 0xcd, 0xf8, 0xbc, 0x4a, 0xf3, 0x4f, 0xfc, 0x29, 0x6a, 0xa6, 0x2c,
  226. 0x48, 0xa0, 0xbc, 0x47, 0xef, 0xed, 0xf6, 0x1f, 0x5f, 0xf1, 0x10, 0x68, 0x21, 0xfc, 0xa8, 0x7e,
  227. 0x6a, 0xb9, 0xc7, 0x57, 0xd7, 0x76, 0xed, 0xd9, 0xb5, 0x5d, 0x7b, 0x7e, 0x6d, 0xd7, 0x7e, 0xc9,
  228. 0x6c, 0xeb, 0x2a, 0xb3, 0xad, 0x67, 0x99, 0x6d, 0x3d, 0xcf, 0x6c, 0xeb, 0xef, 0xcc, 0xb6, 0x7e,
  229. 0xfd, 0xc7, 0xae, 0x7d, 0x5b, 0x4f, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xce, 0x1b, 0x9d,
  230. 0x9f, 0x62, 0x08, 0x00, 0x00,
  231. }
  232. func (m *Eviction) Marshal() (dAtA []byte, err error) {
  233. size := m.Size()
  234. dAtA = make([]byte, size)
  235. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  236. if err != nil {
  237. return nil, err
  238. }
  239. return dAtA[:n], nil
  240. }
  241. func (m *Eviction) MarshalTo(dAtA []byte) (int, error) {
  242. size := m.Size()
  243. return m.MarshalToSizedBuffer(dAtA[:size])
  244. }
  245. func (m *Eviction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  246. i := len(dAtA)
  247. _ = i
  248. var l int
  249. _ = l
  250. if m.DeleteOptions != nil {
  251. {
  252. size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i])
  253. if err != nil {
  254. return 0, err
  255. }
  256. i -= size
  257. i = encodeVarintGenerated(dAtA, i, uint64(size))
  258. }
  259. i--
  260. dAtA[i] = 0x12
  261. }
  262. {
  263. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  264. if err != nil {
  265. return 0, err
  266. }
  267. i -= size
  268. i = encodeVarintGenerated(dAtA, i, uint64(size))
  269. }
  270. i--
  271. dAtA[i] = 0xa
  272. return len(dAtA) - i, nil
  273. }
  274. func (m *PodDisruptionBudget) Marshal() (dAtA []byte, err error) {
  275. size := m.Size()
  276. dAtA = make([]byte, size)
  277. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  278. if err != nil {
  279. return nil, err
  280. }
  281. return dAtA[:n], nil
  282. }
  283. func (m *PodDisruptionBudget) MarshalTo(dAtA []byte) (int, error) {
  284. size := m.Size()
  285. return m.MarshalToSizedBuffer(dAtA[:size])
  286. }
  287. func (m *PodDisruptionBudget) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  288. i := len(dAtA)
  289. _ = i
  290. var l int
  291. _ = l
  292. {
  293. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  294. if err != nil {
  295. return 0, err
  296. }
  297. i -= size
  298. i = encodeVarintGenerated(dAtA, i, uint64(size))
  299. }
  300. i--
  301. dAtA[i] = 0x1a
  302. {
  303. size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
  304. if err != nil {
  305. return 0, err
  306. }
  307. i -= size
  308. i = encodeVarintGenerated(dAtA, i, uint64(size))
  309. }
  310. i--
  311. dAtA[i] = 0x12
  312. {
  313. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  314. if err != nil {
  315. return 0, err
  316. }
  317. i -= size
  318. i = encodeVarintGenerated(dAtA, i, uint64(size))
  319. }
  320. i--
  321. dAtA[i] = 0xa
  322. return len(dAtA) - i, nil
  323. }
  324. func (m *PodDisruptionBudgetList) Marshal() (dAtA []byte, err error) {
  325. size := m.Size()
  326. dAtA = make([]byte, size)
  327. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  328. if err != nil {
  329. return nil, err
  330. }
  331. return dAtA[:n], nil
  332. }
  333. func (m *PodDisruptionBudgetList) MarshalTo(dAtA []byte) (int, error) {
  334. size := m.Size()
  335. return m.MarshalToSizedBuffer(dAtA[:size])
  336. }
  337. func (m *PodDisruptionBudgetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  338. i := len(dAtA)
  339. _ = i
  340. var l int
  341. _ = l
  342. if len(m.Items) > 0 {
  343. for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
  344. {
  345. size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  346. if err != nil {
  347. return 0, err
  348. }
  349. i -= size
  350. i = encodeVarintGenerated(dAtA, i, uint64(size))
  351. }
  352. i--
  353. dAtA[i] = 0x12
  354. }
  355. }
  356. {
  357. size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
  358. if err != nil {
  359. return 0, err
  360. }
  361. i -= size
  362. i = encodeVarintGenerated(dAtA, i, uint64(size))
  363. }
  364. i--
  365. dAtA[i] = 0xa
  366. return len(dAtA) - i, nil
  367. }
  368. func (m *PodDisruptionBudgetSpec) Marshal() (dAtA []byte, err error) {
  369. size := m.Size()
  370. dAtA = make([]byte, size)
  371. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  372. if err != nil {
  373. return nil, err
  374. }
  375. return dAtA[:n], nil
  376. }
  377. func (m *PodDisruptionBudgetSpec) MarshalTo(dAtA []byte) (int, error) {
  378. size := m.Size()
  379. return m.MarshalToSizedBuffer(dAtA[:size])
  380. }
  381. func (m *PodDisruptionBudgetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  382. i := len(dAtA)
  383. _ = i
  384. var l int
  385. _ = l
  386. if m.MaxUnavailable != nil {
  387. {
  388. size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
  389. if err != nil {
  390. return 0, err
  391. }
  392. i -= size
  393. i = encodeVarintGenerated(dAtA, i, uint64(size))
  394. }
  395. i--
  396. dAtA[i] = 0x1a
  397. }
  398. if m.Selector != nil {
  399. {
  400. size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
  401. if err != nil {
  402. return 0, err
  403. }
  404. i -= size
  405. i = encodeVarintGenerated(dAtA, i, uint64(size))
  406. }
  407. i--
  408. dAtA[i] = 0x12
  409. }
  410. if m.MinAvailable != nil {
  411. {
  412. size, err := m.MinAvailable.MarshalToSizedBuffer(dAtA[:i])
  413. if err != nil {
  414. return 0, err
  415. }
  416. i -= size
  417. i = encodeVarintGenerated(dAtA, i, uint64(size))
  418. }
  419. i--
  420. dAtA[i] = 0xa
  421. }
  422. return len(dAtA) - i, nil
  423. }
  424. func (m *PodDisruptionBudgetStatus) Marshal() (dAtA []byte, err error) {
  425. size := m.Size()
  426. dAtA = make([]byte, size)
  427. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  428. if err != nil {
  429. return nil, err
  430. }
  431. return dAtA[:n], nil
  432. }
  433. func (m *PodDisruptionBudgetStatus) MarshalTo(dAtA []byte) (int, error) {
  434. size := m.Size()
  435. return m.MarshalToSizedBuffer(dAtA[:size])
  436. }
  437. func (m *PodDisruptionBudgetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  438. i := len(dAtA)
  439. _ = i
  440. var l int
  441. _ = l
  442. if len(m.Conditions) > 0 {
  443. for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
  444. {
  445. size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  446. if err != nil {
  447. return 0, err
  448. }
  449. i -= size
  450. i = encodeVarintGenerated(dAtA, i, uint64(size))
  451. }
  452. i--
  453. dAtA[i] = 0x3a
  454. }
  455. }
  456. i = encodeVarintGenerated(dAtA, i, uint64(m.ExpectedPods))
  457. i--
  458. dAtA[i] = 0x30
  459. i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredHealthy))
  460. i--
  461. dAtA[i] = 0x28
  462. i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentHealthy))
  463. i--
  464. dAtA[i] = 0x20
  465. i = encodeVarintGenerated(dAtA, i, uint64(m.DisruptionsAllowed))
  466. i--
  467. dAtA[i] = 0x18
  468. if len(m.DisruptedPods) > 0 {
  469. keysForDisruptedPods := make([]string, 0, len(m.DisruptedPods))
  470. for k := range m.DisruptedPods {
  471. keysForDisruptedPods = append(keysForDisruptedPods, string(k))
  472. }
  473. github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
  474. for iNdEx := len(keysForDisruptedPods) - 1; iNdEx >= 0; iNdEx-- {
  475. v := m.DisruptedPods[string(keysForDisruptedPods[iNdEx])]
  476. baseI := i
  477. {
  478. size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
  479. if err != nil {
  480. return 0, err
  481. }
  482. i -= size
  483. i = encodeVarintGenerated(dAtA, i, uint64(size))
  484. }
  485. i--
  486. dAtA[i] = 0x12
  487. i -= len(keysForDisruptedPods[iNdEx])
  488. copy(dAtA[i:], keysForDisruptedPods[iNdEx])
  489. i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDisruptedPods[iNdEx])))
  490. i--
  491. dAtA[i] = 0xa
  492. i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
  493. i--
  494. dAtA[i] = 0x12
  495. }
  496. }
  497. i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
  498. i--
  499. dAtA[i] = 0x8
  500. return len(dAtA) - i, nil
  501. }
  502. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  503. offset -= sovGenerated(v)
  504. base := offset
  505. for v >= 1<<7 {
  506. dAtA[offset] = uint8(v&0x7f | 0x80)
  507. v >>= 7
  508. offset++
  509. }
  510. dAtA[offset] = uint8(v)
  511. return base
  512. }
  513. func (m *Eviction) Size() (n int) {
  514. if m == nil {
  515. return 0
  516. }
  517. var l int
  518. _ = l
  519. l = m.ObjectMeta.Size()
  520. n += 1 + l + sovGenerated(uint64(l))
  521. if m.DeleteOptions != nil {
  522. l = m.DeleteOptions.Size()
  523. n += 1 + l + sovGenerated(uint64(l))
  524. }
  525. return n
  526. }
  527. func (m *PodDisruptionBudget) Size() (n int) {
  528. if m == nil {
  529. return 0
  530. }
  531. var l int
  532. _ = l
  533. l = m.ObjectMeta.Size()
  534. n += 1 + l + sovGenerated(uint64(l))
  535. l = m.Spec.Size()
  536. n += 1 + l + sovGenerated(uint64(l))
  537. l = m.Status.Size()
  538. n += 1 + l + sovGenerated(uint64(l))
  539. return n
  540. }
  541. func (m *PodDisruptionBudgetList) Size() (n int) {
  542. if m == nil {
  543. return 0
  544. }
  545. var l int
  546. _ = l
  547. l = m.ListMeta.Size()
  548. n += 1 + l + sovGenerated(uint64(l))
  549. if len(m.Items) > 0 {
  550. for _, e := range m.Items {
  551. l = e.Size()
  552. n += 1 + l + sovGenerated(uint64(l))
  553. }
  554. }
  555. return n
  556. }
  557. func (m *PodDisruptionBudgetSpec) Size() (n int) {
  558. if m == nil {
  559. return 0
  560. }
  561. var l int
  562. _ = l
  563. if m.MinAvailable != nil {
  564. l = m.MinAvailable.Size()
  565. n += 1 + l + sovGenerated(uint64(l))
  566. }
  567. if m.Selector != nil {
  568. l = m.Selector.Size()
  569. n += 1 + l + sovGenerated(uint64(l))
  570. }
  571. if m.MaxUnavailable != nil {
  572. l = m.MaxUnavailable.Size()
  573. n += 1 + l + sovGenerated(uint64(l))
  574. }
  575. return n
  576. }
  577. func (m *PodDisruptionBudgetStatus) Size() (n int) {
  578. if m == nil {
  579. return 0
  580. }
  581. var l int
  582. _ = l
  583. n += 1 + sovGenerated(uint64(m.ObservedGeneration))
  584. if len(m.DisruptedPods) > 0 {
  585. for k, v := range m.DisruptedPods {
  586. _ = k
  587. _ = v
  588. l = v.Size()
  589. mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
  590. n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
  591. }
  592. }
  593. n += 1 + sovGenerated(uint64(m.DisruptionsAllowed))
  594. n += 1 + sovGenerated(uint64(m.CurrentHealthy))
  595. n += 1 + sovGenerated(uint64(m.DesiredHealthy))
  596. n += 1 + sovGenerated(uint64(m.ExpectedPods))
  597. if len(m.Conditions) > 0 {
  598. for _, e := range m.Conditions {
  599. l = e.Size()
  600. n += 1 + l + sovGenerated(uint64(l))
  601. }
  602. }
  603. return n
  604. }
  605. func sovGenerated(x uint64) (n int) {
  606. return (math_bits.Len64(x|1) + 6) / 7
  607. }
  608. func sozGenerated(x uint64) (n int) {
  609. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  610. }
  611. func (this *Eviction) String() string {
  612. if this == nil {
  613. return "nil"
  614. }
  615. s := strings.Join([]string{`&Eviction{`,
  616. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  617. `DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "v1.DeleteOptions", 1) + `,`,
  618. `}`,
  619. }, "")
  620. return s
  621. }
  622. func (this *PodDisruptionBudget) String() string {
  623. if this == nil {
  624. return "nil"
  625. }
  626. s := strings.Join([]string{`&PodDisruptionBudget{`,
  627. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  628. `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodDisruptionBudgetSpec", "PodDisruptionBudgetSpec", 1), `&`, ``, 1) + `,`,
  629. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodDisruptionBudgetStatus", "PodDisruptionBudgetStatus", 1), `&`, ``, 1) + `,`,
  630. `}`,
  631. }, "")
  632. return s
  633. }
  634. func (this *PodDisruptionBudgetList) String() string {
  635. if this == nil {
  636. return "nil"
  637. }
  638. repeatedStringForItems := "[]PodDisruptionBudget{"
  639. for _, f := range this.Items {
  640. repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodDisruptionBudget", "PodDisruptionBudget", 1), `&`, ``, 1) + ","
  641. }
  642. repeatedStringForItems += "}"
  643. s := strings.Join([]string{`&PodDisruptionBudgetList{`,
  644. `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
  645. `Items:` + repeatedStringForItems + `,`,
  646. `}`,
  647. }, "")
  648. return s
  649. }
  650. func (this *PodDisruptionBudgetSpec) String() string {
  651. if this == nil {
  652. return "nil"
  653. }
  654. s := strings.Join([]string{`&PodDisruptionBudgetSpec{`,
  655. `MinAvailable:` + strings.Replace(fmt.Sprintf("%v", this.MinAvailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
  656. `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
  657. `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
  658. `}`,
  659. }, "")
  660. return s
  661. }
  662. func (this *PodDisruptionBudgetStatus) String() string {
  663. if this == nil {
  664. return "nil"
  665. }
  666. repeatedStringForConditions := "[]Condition{"
  667. for _, f := range this.Conditions {
  668. repeatedStringForConditions += fmt.Sprintf("%v", f) + ","
  669. }
  670. repeatedStringForConditions += "}"
  671. keysForDisruptedPods := make([]string, 0, len(this.DisruptedPods))
  672. for k := range this.DisruptedPods {
  673. keysForDisruptedPods = append(keysForDisruptedPods, k)
  674. }
  675. github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
  676. mapStringForDisruptedPods := "map[string]v1.Time{"
  677. for _, k := range keysForDisruptedPods {
  678. mapStringForDisruptedPods += fmt.Sprintf("%v: %v,", k, this.DisruptedPods[k])
  679. }
  680. mapStringForDisruptedPods += "}"
  681. s := strings.Join([]string{`&PodDisruptionBudgetStatus{`,
  682. `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
  683. `DisruptedPods:` + mapStringForDisruptedPods + `,`,
  684. `DisruptionsAllowed:` + fmt.Sprintf("%v", this.DisruptionsAllowed) + `,`,
  685. `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`,
  686. `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`,
  687. `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`,
  688. `Conditions:` + repeatedStringForConditions + `,`,
  689. `}`,
  690. }, "")
  691. return s
  692. }
  693. func valueToStringGenerated(v interface{}) string {
  694. rv := reflect.ValueOf(v)
  695. if rv.IsNil() {
  696. return "nil"
  697. }
  698. pv := reflect.Indirect(rv).Interface()
  699. return fmt.Sprintf("*%v", pv)
  700. }
  701. func (m *Eviction) Unmarshal(dAtA []byte) error {
  702. l := len(dAtA)
  703. iNdEx := 0
  704. for iNdEx < l {
  705. preIndex := iNdEx
  706. var wire uint64
  707. for shift := uint(0); ; shift += 7 {
  708. if shift >= 64 {
  709. return ErrIntOverflowGenerated
  710. }
  711. if iNdEx >= l {
  712. return io.ErrUnexpectedEOF
  713. }
  714. b := dAtA[iNdEx]
  715. iNdEx++
  716. wire |= uint64(b&0x7F) << shift
  717. if b < 0x80 {
  718. break
  719. }
  720. }
  721. fieldNum := int32(wire >> 3)
  722. wireType := int(wire & 0x7)
  723. if wireType == 4 {
  724. return fmt.Errorf("proto: Eviction: wiretype end group for non-group")
  725. }
  726. if fieldNum <= 0 {
  727. return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire)
  728. }
  729. switch fieldNum {
  730. case 1:
  731. if wireType != 2 {
  732. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  733. }
  734. var msglen int
  735. for shift := uint(0); ; shift += 7 {
  736. if shift >= 64 {
  737. return ErrIntOverflowGenerated
  738. }
  739. if iNdEx >= l {
  740. return io.ErrUnexpectedEOF
  741. }
  742. b := dAtA[iNdEx]
  743. iNdEx++
  744. msglen |= int(b&0x7F) << shift
  745. if b < 0x80 {
  746. break
  747. }
  748. }
  749. if msglen < 0 {
  750. return ErrInvalidLengthGenerated
  751. }
  752. postIndex := iNdEx + msglen
  753. if postIndex < 0 {
  754. return ErrInvalidLengthGenerated
  755. }
  756. if postIndex > l {
  757. return io.ErrUnexpectedEOF
  758. }
  759. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  760. return err
  761. }
  762. iNdEx = postIndex
  763. case 2:
  764. if wireType != 2 {
  765. return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType)
  766. }
  767. var msglen int
  768. for shift := uint(0); ; shift += 7 {
  769. if shift >= 64 {
  770. return ErrIntOverflowGenerated
  771. }
  772. if iNdEx >= l {
  773. return io.ErrUnexpectedEOF
  774. }
  775. b := dAtA[iNdEx]
  776. iNdEx++
  777. msglen |= int(b&0x7F) << shift
  778. if b < 0x80 {
  779. break
  780. }
  781. }
  782. if msglen < 0 {
  783. return ErrInvalidLengthGenerated
  784. }
  785. postIndex := iNdEx + msglen
  786. if postIndex < 0 {
  787. return ErrInvalidLengthGenerated
  788. }
  789. if postIndex > l {
  790. return io.ErrUnexpectedEOF
  791. }
  792. if m.DeleteOptions == nil {
  793. m.DeleteOptions = &v1.DeleteOptions{}
  794. }
  795. if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  796. return err
  797. }
  798. iNdEx = postIndex
  799. default:
  800. iNdEx = preIndex
  801. skippy, err := skipGenerated(dAtA[iNdEx:])
  802. if err != nil {
  803. return err
  804. }
  805. if (skippy < 0) || (iNdEx+skippy) < 0 {
  806. return ErrInvalidLengthGenerated
  807. }
  808. if (iNdEx + skippy) > l {
  809. return io.ErrUnexpectedEOF
  810. }
  811. iNdEx += skippy
  812. }
  813. }
  814. if iNdEx > l {
  815. return io.ErrUnexpectedEOF
  816. }
  817. return nil
  818. }
  819. func (m *PodDisruptionBudget) Unmarshal(dAtA []byte) error {
  820. l := len(dAtA)
  821. iNdEx := 0
  822. for iNdEx < l {
  823. preIndex := iNdEx
  824. var wire uint64
  825. for shift := uint(0); ; shift += 7 {
  826. if shift >= 64 {
  827. return ErrIntOverflowGenerated
  828. }
  829. if iNdEx >= l {
  830. return io.ErrUnexpectedEOF
  831. }
  832. b := dAtA[iNdEx]
  833. iNdEx++
  834. wire |= uint64(b&0x7F) << shift
  835. if b < 0x80 {
  836. break
  837. }
  838. }
  839. fieldNum := int32(wire >> 3)
  840. wireType := int(wire & 0x7)
  841. if wireType == 4 {
  842. return fmt.Errorf("proto: PodDisruptionBudget: wiretype end group for non-group")
  843. }
  844. if fieldNum <= 0 {
  845. return fmt.Errorf("proto: PodDisruptionBudget: illegal tag %d (wire type %d)", fieldNum, wire)
  846. }
  847. switch fieldNum {
  848. case 1:
  849. if wireType != 2 {
  850. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  851. }
  852. var msglen int
  853. for shift := uint(0); ; shift += 7 {
  854. if shift >= 64 {
  855. return ErrIntOverflowGenerated
  856. }
  857. if iNdEx >= l {
  858. return io.ErrUnexpectedEOF
  859. }
  860. b := dAtA[iNdEx]
  861. iNdEx++
  862. msglen |= int(b&0x7F) << shift
  863. if b < 0x80 {
  864. break
  865. }
  866. }
  867. if msglen < 0 {
  868. return ErrInvalidLengthGenerated
  869. }
  870. postIndex := iNdEx + msglen
  871. if postIndex < 0 {
  872. return ErrInvalidLengthGenerated
  873. }
  874. if postIndex > l {
  875. return io.ErrUnexpectedEOF
  876. }
  877. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  878. return err
  879. }
  880. iNdEx = postIndex
  881. case 2:
  882. if wireType != 2 {
  883. return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
  884. }
  885. var msglen int
  886. for shift := uint(0); ; shift += 7 {
  887. if shift >= 64 {
  888. return ErrIntOverflowGenerated
  889. }
  890. if iNdEx >= l {
  891. return io.ErrUnexpectedEOF
  892. }
  893. b := dAtA[iNdEx]
  894. iNdEx++
  895. msglen |= int(b&0x7F) << shift
  896. if b < 0x80 {
  897. break
  898. }
  899. }
  900. if msglen < 0 {
  901. return ErrInvalidLengthGenerated
  902. }
  903. postIndex := iNdEx + msglen
  904. if postIndex < 0 {
  905. return ErrInvalidLengthGenerated
  906. }
  907. if postIndex > l {
  908. return io.ErrUnexpectedEOF
  909. }
  910. if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  911. return err
  912. }
  913. iNdEx = postIndex
  914. case 3:
  915. if wireType != 2 {
  916. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  917. }
  918. var msglen int
  919. for shift := uint(0); ; shift += 7 {
  920. if shift >= 64 {
  921. return ErrIntOverflowGenerated
  922. }
  923. if iNdEx >= l {
  924. return io.ErrUnexpectedEOF
  925. }
  926. b := dAtA[iNdEx]
  927. iNdEx++
  928. msglen |= int(b&0x7F) << shift
  929. if b < 0x80 {
  930. break
  931. }
  932. }
  933. if msglen < 0 {
  934. return ErrInvalidLengthGenerated
  935. }
  936. postIndex := iNdEx + msglen
  937. if postIndex < 0 {
  938. return ErrInvalidLengthGenerated
  939. }
  940. if postIndex > l {
  941. return io.ErrUnexpectedEOF
  942. }
  943. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  944. return err
  945. }
  946. iNdEx = postIndex
  947. default:
  948. iNdEx = preIndex
  949. skippy, err := skipGenerated(dAtA[iNdEx:])
  950. if err != nil {
  951. return err
  952. }
  953. if (skippy < 0) || (iNdEx+skippy) < 0 {
  954. return ErrInvalidLengthGenerated
  955. }
  956. if (iNdEx + skippy) > l {
  957. return io.ErrUnexpectedEOF
  958. }
  959. iNdEx += skippy
  960. }
  961. }
  962. if iNdEx > l {
  963. return io.ErrUnexpectedEOF
  964. }
  965. return nil
  966. }
  967. func (m *PodDisruptionBudgetList) Unmarshal(dAtA []byte) error {
  968. l := len(dAtA)
  969. iNdEx := 0
  970. for iNdEx < l {
  971. preIndex := iNdEx
  972. var wire uint64
  973. for shift := uint(0); ; shift += 7 {
  974. if shift >= 64 {
  975. return ErrIntOverflowGenerated
  976. }
  977. if iNdEx >= l {
  978. return io.ErrUnexpectedEOF
  979. }
  980. b := dAtA[iNdEx]
  981. iNdEx++
  982. wire |= uint64(b&0x7F) << shift
  983. if b < 0x80 {
  984. break
  985. }
  986. }
  987. fieldNum := int32(wire >> 3)
  988. wireType := int(wire & 0x7)
  989. if wireType == 4 {
  990. return fmt.Errorf("proto: PodDisruptionBudgetList: wiretype end group for non-group")
  991. }
  992. if fieldNum <= 0 {
  993. return fmt.Errorf("proto: PodDisruptionBudgetList: illegal tag %d (wire type %d)", fieldNum, wire)
  994. }
  995. switch fieldNum {
  996. case 1:
  997. if wireType != 2 {
  998. return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
  999. }
  1000. var msglen int
  1001. for shift := uint(0); ; shift += 7 {
  1002. if shift >= 64 {
  1003. return ErrIntOverflowGenerated
  1004. }
  1005. if iNdEx >= l {
  1006. return io.ErrUnexpectedEOF
  1007. }
  1008. b := dAtA[iNdEx]
  1009. iNdEx++
  1010. msglen |= int(b&0x7F) << shift
  1011. if b < 0x80 {
  1012. break
  1013. }
  1014. }
  1015. if msglen < 0 {
  1016. return ErrInvalidLengthGenerated
  1017. }
  1018. postIndex := iNdEx + msglen
  1019. if postIndex < 0 {
  1020. return ErrInvalidLengthGenerated
  1021. }
  1022. if postIndex > l {
  1023. return io.ErrUnexpectedEOF
  1024. }
  1025. if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1026. return err
  1027. }
  1028. iNdEx = postIndex
  1029. case 2:
  1030. if wireType != 2 {
  1031. return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
  1032. }
  1033. var msglen int
  1034. for shift := uint(0); ; shift += 7 {
  1035. if shift >= 64 {
  1036. return ErrIntOverflowGenerated
  1037. }
  1038. if iNdEx >= l {
  1039. return io.ErrUnexpectedEOF
  1040. }
  1041. b := dAtA[iNdEx]
  1042. iNdEx++
  1043. msglen |= int(b&0x7F) << shift
  1044. if b < 0x80 {
  1045. break
  1046. }
  1047. }
  1048. if msglen < 0 {
  1049. return ErrInvalidLengthGenerated
  1050. }
  1051. postIndex := iNdEx + msglen
  1052. if postIndex < 0 {
  1053. return ErrInvalidLengthGenerated
  1054. }
  1055. if postIndex > l {
  1056. return io.ErrUnexpectedEOF
  1057. }
  1058. m.Items = append(m.Items, PodDisruptionBudget{})
  1059. if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1060. return err
  1061. }
  1062. iNdEx = postIndex
  1063. default:
  1064. iNdEx = preIndex
  1065. skippy, err := skipGenerated(dAtA[iNdEx:])
  1066. if err != nil {
  1067. return err
  1068. }
  1069. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1070. return ErrInvalidLengthGenerated
  1071. }
  1072. if (iNdEx + skippy) > l {
  1073. return io.ErrUnexpectedEOF
  1074. }
  1075. iNdEx += skippy
  1076. }
  1077. }
  1078. if iNdEx > l {
  1079. return io.ErrUnexpectedEOF
  1080. }
  1081. return nil
  1082. }
  1083. func (m *PodDisruptionBudgetSpec) Unmarshal(dAtA []byte) error {
  1084. l := len(dAtA)
  1085. iNdEx := 0
  1086. for iNdEx < l {
  1087. preIndex := iNdEx
  1088. var wire uint64
  1089. for shift := uint(0); ; shift += 7 {
  1090. if shift >= 64 {
  1091. return ErrIntOverflowGenerated
  1092. }
  1093. if iNdEx >= l {
  1094. return io.ErrUnexpectedEOF
  1095. }
  1096. b := dAtA[iNdEx]
  1097. iNdEx++
  1098. wire |= uint64(b&0x7F) << shift
  1099. if b < 0x80 {
  1100. break
  1101. }
  1102. }
  1103. fieldNum := int32(wire >> 3)
  1104. wireType := int(wire & 0x7)
  1105. if wireType == 4 {
  1106. return fmt.Errorf("proto: PodDisruptionBudgetSpec: wiretype end group for non-group")
  1107. }
  1108. if fieldNum <= 0 {
  1109. return fmt.Errorf("proto: PodDisruptionBudgetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  1110. }
  1111. switch fieldNum {
  1112. case 1:
  1113. if wireType != 2 {
  1114. return fmt.Errorf("proto: wrong wireType = %d for field MinAvailable", wireType)
  1115. }
  1116. var msglen int
  1117. for shift := uint(0); ; shift += 7 {
  1118. if shift >= 64 {
  1119. return ErrIntOverflowGenerated
  1120. }
  1121. if iNdEx >= l {
  1122. return io.ErrUnexpectedEOF
  1123. }
  1124. b := dAtA[iNdEx]
  1125. iNdEx++
  1126. msglen |= int(b&0x7F) << shift
  1127. if b < 0x80 {
  1128. break
  1129. }
  1130. }
  1131. if msglen < 0 {
  1132. return ErrInvalidLengthGenerated
  1133. }
  1134. postIndex := iNdEx + msglen
  1135. if postIndex < 0 {
  1136. return ErrInvalidLengthGenerated
  1137. }
  1138. if postIndex > l {
  1139. return io.ErrUnexpectedEOF
  1140. }
  1141. if m.MinAvailable == nil {
  1142. m.MinAvailable = &intstr.IntOrString{}
  1143. }
  1144. if err := m.MinAvailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1145. return err
  1146. }
  1147. iNdEx = postIndex
  1148. case 2:
  1149. if wireType != 2 {
  1150. return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  1151. }
  1152. var msglen int
  1153. for shift := uint(0); ; shift += 7 {
  1154. if shift >= 64 {
  1155. return ErrIntOverflowGenerated
  1156. }
  1157. if iNdEx >= l {
  1158. return io.ErrUnexpectedEOF
  1159. }
  1160. b := dAtA[iNdEx]
  1161. iNdEx++
  1162. msglen |= int(b&0x7F) << shift
  1163. if b < 0x80 {
  1164. break
  1165. }
  1166. }
  1167. if msglen < 0 {
  1168. return ErrInvalidLengthGenerated
  1169. }
  1170. postIndex := iNdEx + msglen
  1171. if postIndex < 0 {
  1172. return ErrInvalidLengthGenerated
  1173. }
  1174. if postIndex > l {
  1175. return io.ErrUnexpectedEOF
  1176. }
  1177. if m.Selector == nil {
  1178. m.Selector = &v1.LabelSelector{}
  1179. }
  1180. if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1181. return err
  1182. }
  1183. iNdEx = postIndex
  1184. case 3:
  1185. if wireType != 2 {
  1186. return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
  1187. }
  1188. var msglen int
  1189. for shift := uint(0); ; shift += 7 {
  1190. if shift >= 64 {
  1191. return ErrIntOverflowGenerated
  1192. }
  1193. if iNdEx >= l {
  1194. return io.ErrUnexpectedEOF
  1195. }
  1196. b := dAtA[iNdEx]
  1197. iNdEx++
  1198. msglen |= int(b&0x7F) << shift
  1199. if b < 0x80 {
  1200. break
  1201. }
  1202. }
  1203. if msglen < 0 {
  1204. return ErrInvalidLengthGenerated
  1205. }
  1206. postIndex := iNdEx + msglen
  1207. if postIndex < 0 {
  1208. return ErrInvalidLengthGenerated
  1209. }
  1210. if postIndex > l {
  1211. return io.ErrUnexpectedEOF
  1212. }
  1213. if m.MaxUnavailable == nil {
  1214. m.MaxUnavailable = &intstr.IntOrString{}
  1215. }
  1216. if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1217. return err
  1218. }
  1219. iNdEx = postIndex
  1220. default:
  1221. iNdEx = preIndex
  1222. skippy, err := skipGenerated(dAtA[iNdEx:])
  1223. if err != nil {
  1224. return err
  1225. }
  1226. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1227. return ErrInvalidLengthGenerated
  1228. }
  1229. if (iNdEx + skippy) > l {
  1230. return io.ErrUnexpectedEOF
  1231. }
  1232. iNdEx += skippy
  1233. }
  1234. }
  1235. if iNdEx > l {
  1236. return io.ErrUnexpectedEOF
  1237. }
  1238. return nil
  1239. }
  1240. func (m *PodDisruptionBudgetStatus) Unmarshal(dAtA []byte) error {
  1241. l := len(dAtA)
  1242. iNdEx := 0
  1243. for iNdEx < l {
  1244. preIndex := iNdEx
  1245. var wire uint64
  1246. for shift := uint(0); ; shift += 7 {
  1247. if shift >= 64 {
  1248. return ErrIntOverflowGenerated
  1249. }
  1250. if iNdEx >= l {
  1251. return io.ErrUnexpectedEOF
  1252. }
  1253. b := dAtA[iNdEx]
  1254. iNdEx++
  1255. wire |= uint64(b&0x7F) << shift
  1256. if b < 0x80 {
  1257. break
  1258. }
  1259. }
  1260. fieldNum := int32(wire >> 3)
  1261. wireType := int(wire & 0x7)
  1262. if wireType == 4 {
  1263. return fmt.Errorf("proto: PodDisruptionBudgetStatus: wiretype end group for non-group")
  1264. }
  1265. if fieldNum <= 0 {
  1266. return fmt.Errorf("proto: PodDisruptionBudgetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  1267. }
  1268. switch fieldNum {
  1269. case 1:
  1270. if wireType != 0 {
  1271. return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
  1272. }
  1273. m.ObservedGeneration = 0
  1274. for shift := uint(0); ; shift += 7 {
  1275. if shift >= 64 {
  1276. return ErrIntOverflowGenerated
  1277. }
  1278. if iNdEx >= l {
  1279. return io.ErrUnexpectedEOF
  1280. }
  1281. b := dAtA[iNdEx]
  1282. iNdEx++
  1283. m.ObservedGeneration |= int64(b&0x7F) << shift
  1284. if b < 0x80 {
  1285. break
  1286. }
  1287. }
  1288. case 2:
  1289. if wireType != 2 {
  1290. return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType)
  1291. }
  1292. var msglen int
  1293. for shift := uint(0); ; shift += 7 {
  1294. if shift >= 64 {
  1295. return ErrIntOverflowGenerated
  1296. }
  1297. if iNdEx >= l {
  1298. return io.ErrUnexpectedEOF
  1299. }
  1300. b := dAtA[iNdEx]
  1301. iNdEx++
  1302. msglen |= int(b&0x7F) << shift
  1303. if b < 0x80 {
  1304. break
  1305. }
  1306. }
  1307. if msglen < 0 {
  1308. return ErrInvalidLengthGenerated
  1309. }
  1310. postIndex := iNdEx + msglen
  1311. if postIndex < 0 {
  1312. return ErrInvalidLengthGenerated
  1313. }
  1314. if postIndex > l {
  1315. return io.ErrUnexpectedEOF
  1316. }
  1317. if m.DisruptedPods == nil {
  1318. m.DisruptedPods = make(map[string]v1.Time)
  1319. }
  1320. var mapkey string
  1321. mapvalue := &v1.Time{}
  1322. for iNdEx < postIndex {
  1323. entryPreIndex := iNdEx
  1324. var wire uint64
  1325. for shift := uint(0); ; shift += 7 {
  1326. if shift >= 64 {
  1327. return ErrIntOverflowGenerated
  1328. }
  1329. if iNdEx >= l {
  1330. return io.ErrUnexpectedEOF
  1331. }
  1332. b := dAtA[iNdEx]
  1333. iNdEx++
  1334. wire |= uint64(b&0x7F) << shift
  1335. if b < 0x80 {
  1336. break
  1337. }
  1338. }
  1339. fieldNum := int32(wire >> 3)
  1340. if fieldNum == 1 {
  1341. var stringLenmapkey uint64
  1342. for shift := uint(0); ; shift += 7 {
  1343. if shift >= 64 {
  1344. return ErrIntOverflowGenerated
  1345. }
  1346. if iNdEx >= l {
  1347. return io.ErrUnexpectedEOF
  1348. }
  1349. b := dAtA[iNdEx]
  1350. iNdEx++
  1351. stringLenmapkey |= uint64(b&0x7F) << shift
  1352. if b < 0x80 {
  1353. break
  1354. }
  1355. }
  1356. intStringLenmapkey := int(stringLenmapkey)
  1357. if intStringLenmapkey < 0 {
  1358. return ErrInvalidLengthGenerated
  1359. }
  1360. postStringIndexmapkey := iNdEx + intStringLenmapkey
  1361. if postStringIndexmapkey < 0 {
  1362. return ErrInvalidLengthGenerated
  1363. }
  1364. if postStringIndexmapkey > l {
  1365. return io.ErrUnexpectedEOF
  1366. }
  1367. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1368. iNdEx = postStringIndexmapkey
  1369. } else if fieldNum == 2 {
  1370. var mapmsglen int
  1371. for shift := uint(0); ; shift += 7 {
  1372. if shift >= 64 {
  1373. return ErrIntOverflowGenerated
  1374. }
  1375. if iNdEx >= l {
  1376. return io.ErrUnexpectedEOF
  1377. }
  1378. b := dAtA[iNdEx]
  1379. iNdEx++
  1380. mapmsglen |= int(b&0x7F) << shift
  1381. if b < 0x80 {
  1382. break
  1383. }
  1384. }
  1385. if mapmsglen < 0 {
  1386. return ErrInvalidLengthGenerated
  1387. }
  1388. postmsgIndex := iNdEx + mapmsglen
  1389. if postmsgIndex < 0 {
  1390. return ErrInvalidLengthGenerated
  1391. }
  1392. if postmsgIndex > l {
  1393. return io.ErrUnexpectedEOF
  1394. }
  1395. mapvalue = &v1.Time{}
  1396. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1397. return err
  1398. }
  1399. iNdEx = postmsgIndex
  1400. } else {
  1401. iNdEx = entryPreIndex
  1402. skippy, err := skipGenerated(dAtA[iNdEx:])
  1403. if err != nil {
  1404. return err
  1405. }
  1406. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1407. return ErrInvalidLengthGenerated
  1408. }
  1409. if (iNdEx + skippy) > postIndex {
  1410. return io.ErrUnexpectedEOF
  1411. }
  1412. iNdEx += skippy
  1413. }
  1414. }
  1415. m.DisruptedPods[mapkey] = *mapvalue
  1416. iNdEx = postIndex
  1417. case 3:
  1418. if wireType != 0 {
  1419. return fmt.Errorf("proto: wrong wireType = %d for field DisruptionsAllowed", wireType)
  1420. }
  1421. m.DisruptionsAllowed = 0
  1422. for shift := uint(0); ; shift += 7 {
  1423. if shift >= 64 {
  1424. return ErrIntOverflowGenerated
  1425. }
  1426. if iNdEx >= l {
  1427. return io.ErrUnexpectedEOF
  1428. }
  1429. b := dAtA[iNdEx]
  1430. iNdEx++
  1431. m.DisruptionsAllowed |= int32(b&0x7F) << shift
  1432. if b < 0x80 {
  1433. break
  1434. }
  1435. }
  1436. case 4:
  1437. if wireType != 0 {
  1438. return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType)
  1439. }
  1440. m.CurrentHealthy = 0
  1441. for shift := uint(0); ; shift += 7 {
  1442. if shift >= 64 {
  1443. return ErrIntOverflowGenerated
  1444. }
  1445. if iNdEx >= l {
  1446. return io.ErrUnexpectedEOF
  1447. }
  1448. b := dAtA[iNdEx]
  1449. iNdEx++
  1450. m.CurrentHealthy |= int32(b&0x7F) << shift
  1451. if b < 0x80 {
  1452. break
  1453. }
  1454. }
  1455. case 5:
  1456. if wireType != 0 {
  1457. return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType)
  1458. }
  1459. m.DesiredHealthy = 0
  1460. for shift := uint(0); ; shift += 7 {
  1461. if shift >= 64 {
  1462. return ErrIntOverflowGenerated
  1463. }
  1464. if iNdEx >= l {
  1465. return io.ErrUnexpectedEOF
  1466. }
  1467. b := dAtA[iNdEx]
  1468. iNdEx++
  1469. m.DesiredHealthy |= int32(b&0x7F) << shift
  1470. if b < 0x80 {
  1471. break
  1472. }
  1473. }
  1474. case 6:
  1475. if wireType != 0 {
  1476. return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
  1477. }
  1478. m.ExpectedPods = 0
  1479. for shift := uint(0); ; shift += 7 {
  1480. if shift >= 64 {
  1481. return ErrIntOverflowGenerated
  1482. }
  1483. if iNdEx >= l {
  1484. return io.ErrUnexpectedEOF
  1485. }
  1486. b := dAtA[iNdEx]
  1487. iNdEx++
  1488. m.ExpectedPods |= int32(b&0x7F) << shift
  1489. if b < 0x80 {
  1490. break
  1491. }
  1492. }
  1493. case 7:
  1494. if wireType != 2 {
  1495. return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
  1496. }
  1497. var msglen int
  1498. for shift := uint(0); ; shift += 7 {
  1499. if shift >= 64 {
  1500. return ErrIntOverflowGenerated
  1501. }
  1502. if iNdEx >= l {
  1503. return io.ErrUnexpectedEOF
  1504. }
  1505. b := dAtA[iNdEx]
  1506. iNdEx++
  1507. msglen |= int(b&0x7F) << shift
  1508. if b < 0x80 {
  1509. break
  1510. }
  1511. }
  1512. if msglen < 0 {
  1513. return ErrInvalidLengthGenerated
  1514. }
  1515. postIndex := iNdEx + msglen
  1516. if postIndex < 0 {
  1517. return ErrInvalidLengthGenerated
  1518. }
  1519. if postIndex > l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. m.Conditions = append(m.Conditions, v1.Condition{})
  1523. if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1524. return err
  1525. }
  1526. iNdEx = postIndex
  1527. default:
  1528. iNdEx = preIndex
  1529. skippy, err := skipGenerated(dAtA[iNdEx:])
  1530. if err != nil {
  1531. return err
  1532. }
  1533. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1534. return ErrInvalidLengthGenerated
  1535. }
  1536. if (iNdEx + skippy) > l {
  1537. return io.ErrUnexpectedEOF
  1538. }
  1539. iNdEx += skippy
  1540. }
  1541. }
  1542. if iNdEx > l {
  1543. return io.ErrUnexpectedEOF
  1544. }
  1545. return nil
  1546. }
  1547. func skipGenerated(dAtA []byte) (n int, err error) {
  1548. l := len(dAtA)
  1549. iNdEx := 0
  1550. depth := 0
  1551. for iNdEx < l {
  1552. var wire uint64
  1553. for shift := uint(0); ; shift += 7 {
  1554. if shift >= 64 {
  1555. return 0, ErrIntOverflowGenerated
  1556. }
  1557. if iNdEx >= l {
  1558. return 0, io.ErrUnexpectedEOF
  1559. }
  1560. b := dAtA[iNdEx]
  1561. iNdEx++
  1562. wire |= (uint64(b) & 0x7F) << shift
  1563. if b < 0x80 {
  1564. break
  1565. }
  1566. }
  1567. wireType := int(wire & 0x7)
  1568. switch wireType {
  1569. case 0:
  1570. for shift := uint(0); ; shift += 7 {
  1571. if shift >= 64 {
  1572. return 0, ErrIntOverflowGenerated
  1573. }
  1574. if iNdEx >= l {
  1575. return 0, io.ErrUnexpectedEOF
  1576. }
  1577. iNdEx++
  1578. if dAtA[iNdEx-1] < 0x80 {
  1579. break
  1580. }
  1581. }
  1582. case 1:
  1583. iNdEx += 8
  1584. case 2:
  1585. var length int
  1586. for shift := uint(0); ; shift += 7 {
  1587. if shift >= 64 {
  1588. return 0, ErrIntOverflowGenerated
  1589. }
  1590. if iNdEx >= l {
  1591. return 0, io.ErrUnexpectedEOF
  1592. }
  1593. b := dAtA[iNdEx]
  1594. iNdEx++
  1595. length |= (int(b) & 0x7F) << shift
  1596. if b < 0x80 {
  1597. break
  1598. }
  1599. }
  1600. if length < 0 {
  1601. return 0, ErrInvalidLengthGenerated
  1602. }
  1603. iNdEx += length
  1604. case 3:
  1605. depth++
  1606. case 4:
  1607. if depth == 0 {
  1608. return 0, ErrUnexpectedEndOfGroupGenerated
  1609. }
  1610. depth--
  1611. case 5:
  1612. iNdEx += 4
  1613. default:
  1614. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1615. }
  1616. if iNdEx < 0 {
  1617. return 0, ErrInvalidLengthGenerated
  1618. }
  1619. if depth == 0 {
  1620. return iNdEx, nil
  1621. }
  1622. }
  1623. return 0, io.ErrUnexpectedEOF
  1624. }
  1625. var (
  1626. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  1627. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  1628. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  1629. )