generated.pb.go 44 KB

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