generated.pb.go 45 KB

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