generated.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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/authentication/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 *SelfSubjectReview) Reset() { *m = SelfSubjectReview{} }
  35. func (*SelfSubjectReview) ProtoMessage() {}
  36. func (*SelfSubjectReview) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_05a77aeb710b43c2, []int{0}
  38. }
  39. func (m *SelfSubjectReview) XXX_Unmarshal(b []byte) error {
  40. return m.Unmarshal(b)
  41. }
  42. func (m *SelfSubjectReview) 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 *SelfSubjectReview) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_SelfSubjectReview.Merge(m, src)
  52. }
  53. func (m *SelfSubjectReview) XXX_Size() int {
  54. return m.Size()
  55. }
  56. func (m *SelfSubjectReview) XXX_DiscardUnknown() {
  57. xxx_messageInfo_SelfSubjectReview.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_SelfSubjectReview proto.InternalMessageInfo
  60. func (m *SelfSubjectReviewStatus) Reset() { *m = SelfSubjectReviewStatus{} }
  61. func (*SelfSubjectReviewStatus) ProtoMessage() {}
  62. func (*SelfSubjectReviewStatus) Descriptor() ([]byte, []int) {
  63. return fileDescriptor_05a77aeb710b43c2, []int{1}
  64. }
  65. func (m *SelfSubjectReviewStatus) XXX_Unmarshal(b []byte) error {
  66. return m.Unmarshal(b)
  67. }
  68. func (m *SelfSubjectReviewStatus) 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 *SelfSubjectReviewStatus) XXX_Merge(src proto.Message) {
  77. xxx_messageInfo_SelfSubjectReviewStatus.Merge(m, src)
  78. }
  79. func (m *SelfSubjectReviewStatus) XXX_Size() int {
  80. return m.Size()
  81. }
  82. func (m *SelfSubjectReviewStatus) XXX_DiscardUnknown() {
  83. xxx_messageInfo_SelfSubjectReviewStatus.DiscardUnknown(m)
  84. }
  85. var xxx_messageInfo_SelfSubjectReviewStatus proto.InternalMessageInfo
  86. func init() {
  87. proto.RegisterType((*SelfSubjectReview)(nil), "k8s.io.api.authentication.v1alpha1.SelfSubjectReview")
  88. proto.RegisterType((*SelfSubjectReviewStatus)(nil), "k8s.io.api.authentication.v1alpha1.SelfSubjectReviewStatus")
  89. }
  90. func init() {
  91. proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1alpha1/generated.proto", fileDescriptor_05a77aeb710b43c2)
  92. }
  93. var fileDescriptor_05a77aeb710b43c2 = []byte{
  94. // 384 bytes of a gzipped FileDescriptorProto
  95. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xbd, 0x6e, 0xdb, 0x30,
  96. 0x14, 0x85, 0xc5, 0x0e, 0x86, 0xa1, 0x02, 0x45, 0xab, 0xa5, 0x86, 0x07, 0xba, 0xd0, 0x50, 0x74,
  97. 0x68, 0xc9, 0xba, 0x28, 0x8a, 0x02, 0xdd, 0x34, 0x35, 0x08, 0x82, 0x00, 0x72, 0xb2, 0x64, 0x0a,
  98. 0x25, 0x5f, 0x4b, 0x8c, 0x2c, 0x52, 0x10, 0x49, 0x05, 0xd9, 0xf2, 0x08, 0x79, 0x2c, 0x8f, 0x1e,
  99. 0x8d, 0x0c, 0x46, 0xac, 0xbc, 0x48, 0x20, 0x59, 0xb6, 0x11, 0x3b, 0xb6, 0x37, 0xde, 0xc3, 0xfb,
  100. 0x9d, 0x7b, 0xf8, 0x63, 0x9f, 0x26, 0x7f, 0x15, 0xe1, 0x92, 0x26, 0x26, 0x80, 0x5c, 0x80, 0x06,
  101. 0x45, 0x0b, 0x10, 0x43, 0x99, 0xd3, 0x66, 0x83, 0x65, 0x9c, 0x32, 0xa3, 0x63, 0x10, 0x9a, 0x87,
  102. 0x4c, 0x73, 0x29, 0x68, 0xd1, 0x67, 0xe3, 0x2c, 0x66, 0x7d, 0x1a, 0x81, 0x80, 0x9c, 0x69, 0x18,
  103. 0x92, 0x2c, 0x97, 0x5a, 0x3a, 0xee, 0x92, 0x21, 0x2c, 0xe3, 0xe4, 0x35, 0x43, 0x56, 0x4c, 0xf7,
  104. 0x47, 0xc4, 0x75, 0x6c, 0x02, 0x12, 0xca, 0x94, 0x46, 0x32, 0x92, 0xb4, 0x46, 0x03, 0x33, 0xaa,
  105. 0xab, 0xba, 0xa8, 0x57, 0x4b, 0xcb, 0xee, 0xf7, 0x43, 0x31, 0xb6, 0x03, 0x74, 0x7f, 0x6f, 0xba,
  106. 0x53, 0x16, 0xc6, 0x5c, 0x40, 0x7e, 0x47, 0xb3, 0x24, 0xaa, 0x04, 0x45, 0x53, 0xd0, 0xec, 0x2d,
  107. 0x8a, 0xee, 0xa3, 0x72, 0x23, 0x34, 0x4f, 0x61, 0x07, 0xf8, 0x73, 0x0c, 0x50, 0x61, 0x0c, 0x29,
  108. 0xdb, 0xe6, 0xdc, 0x47, 0x64, 0x7f, 0x1a, 0xc0, 0x78, 0x34, 0x30, 0xc1, 0x0d, 0x84, 0xda, 0x87,
  109. 0x82, 0xc3, 0xad, 0x73, 0x6d, 0xb7, 0xab, 0x64, 0x43, 0xa6, 0x59, 0x07, 0x7d, 0x41, 0xdf, 0xde,
  110. 0xff, 0xfa, 0x49, 0x36, 0x17, 0xb9, 0x1e, 0x40, 0xb2, 0x24, 0xaa, 0x04, 0x45, 0xaa, 0x6e, 0x52,
  111. 0xf4, 0xc9, 0x79, 0xed, 0x72, 0x06, 0x9a, 0x79, 0xce, 0x64, 0xde, 0xb3, 0xca, 0x79, 0xcf, 0xde,
  112. 0x68, 0xfe, 0xda, 0xd5, 0x09, 0xed, 0x96, 0xd2, 0x4c, 0x1b, 0xd5, 0x79, 0x57, 0xfb, 0xff, 0x23,
  113. 0xc7, 0x1f, 0x8a, 0xec, 0x04, 0x1d, 0xd4, 0x16, 0xde, 0x87, 0x66, 0x54, 0x6b, 0x59, 0xfb, 0x8d,
  114. 0xb5, 0x2b, 0xed, 0xcf, 0x7b, 0x10, 0xe7, 0xc2, 0x6e, 0x1b, 0x05, 0xf9, 0x89, 0x18, 0xc9, 0xe6,
  115. 0x84, 0x5f, 0x0f, 0x26, 0x20, 0x97, 0x4d, 0xb7, 0xf7, 0xb1, 0x19, 0xd6, 0x5e, 0x29, 0xfe, 0xda,
  116. 0xc9, 0xfb, 0x3f, 0x59, 0x60, 0x6b, 0xba, 0xc0, 0xd6, 0x6c, 0x81, 0xad, 0xfb, 0x12, 0xa3, 0x49,
  117. 0x89, 0xd1, 0xb4, 0xc4, 0x68, 0x56, 0x62, 0xf4, 0x54, 0x62, 0xf4, 0xf0, 0x8c, 0xad, 0x2b, 0xf7,
  118. 0xf8, 0x3f, 0x7e, 0x09, 0x00, 0x00, 0xff, 0xff, 0xec, 0xf9, 0xa3, 0xcd, 0x05, 0x03, 0x00, 0x00,
  119. }
  120. func (m *SelfSubjectReview) Marshal() (dAtA []byte, err error) {
  121. size := m.Size()
  122. dAtA = make([]byte, size)
  123. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  124. if err != nil {
  125. return nil, err
  126. }
  127. return dAtA[:n], nil
  128. }
  129. func (m *SelfSubjectReview) MarshalTo(dAtA []byte) (int, error) {
  130. size := m.Size()
  131. return m.MarshalToSizedBuffer(dAtA[:size])
  132. }
  133. func (m *SelfSubjectReview) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  134. i := len(dAtA)
  135. _ = i
  136. var l int
  137. _ = l
  138. {
  139. size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
  140. if err != nil {
  141. return 0, err
  142. }
  143. i -= size
  144. i = encodeVarintGenerated(dAtA, i, uint64(size))
  145. }
  146. i--
  147. dAtA[i] = 0x12
  148. {
  149. size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
  150. if err != nil {
  151. return 0, err
  152. }
  153. i -= size
  154. i = encodeVarintGenerated(dAtA, i, uint64(size))
  155. }
  156. i--
  157. dAtA[i] = 0xa
  158. return len(dAtA) - i, nil
  159. }
  160. func (m *SelfSubjectReviewStatus) Marshal() (dAtA []byte, err error) {
  161. size := m.Size()
  162. dAtA = make([]byte, size)
  163. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  164. if err != nil {
  165. return nil, err
  166. }
  167. return dAtA[:n], nil
  168. }
  169. func (m *SelfSubjectReviewStatus) MarshalTo(dAtA []byte) (int, error) {
  170. size := m.Size()
  171. return m.MarshalToSizedBuffer(dAtA[:size])
  172. }
  173. func (m *SelfSubjectReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  174. i := len(dAtA)
  175. _ = i
  176. var l int
  177. _ = l
  178. {
  179. size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i])
  180. if err != nil {
  181. return 0, err
  182. }
  183. i -= size
  184. i = encodeVarintGenerated(dAtA, i, uint64(size))
  185. }
  186. i--
  187. dAtA[i] = 0xa
  188. return len(dAtA) - i, nil
  189. }
  190. func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
  191. offset -= sovGenerated(v)
  192. base := offset
  193. for v >= 1<<7 {
  194. dAtA[offset] = uint8(v&0x7f | 0x80)
  195. v >>= 7
  196. offset++
  197. }
  198. dAtA[offset] = uint8(v)
  199. return base
  200. }
  201. func (m *SelfSubjectReview) Size() (n int) {
  202. if m == nil {
  203. return 0
  204. }
  205. var l int
  206. _ = l
  207. l = m.ObjectMeta.Size()
  208. n += 1 + l + sovGenerated(uint64(l))
  209. l = m.Status.Size()
  210. n += 1 + l + sovGenerated(uint64(l))
  211. return n
  212. }
  213. func (m *SelfSubjectReviewStatus) Size() (n int) {
  214. if m == nil {
  215. return 0
  216. }
  217. var l int
  218. _ = l
  219. l = m.UserInfo.Size()
  220. n += 1 + l + sovGenerated(uint64(l))
  221. return n
  222. }
  223. func sovGenerated(x uint64) (n int) {
  224. return (math_bits.Len64(x|1) + 6) / 7
  225. }
  226. func sozGenerated(x uint64) (n int) {
  227. return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  228. }
  229. func (this *SelfSubjectReview) String() string {
  230. if this == nil {
  231. return "nil"
  232. }
  233. s := strings.Join([]string{`&SelfSubjectReview{`,
  234. `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
  235. `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SelfSubjectReviewStatus", "SelfSubjectReviewStatus", 1), `&`, ``, 1) + `,`,
  236. `}`,
  237. }, "")
  238. return s
  239. }
  240. func (this *SelfSubjectReviewStatus) String() string {
  241. if this == nil {
  242. return "nil"
  243. }
  244. s := strings.Join([]string{`&SelfSubjectReviewStatus{`,
  245. `UserInfo:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UserInfo), "UserInfo", "v11.UserInfo", 1), `&`, ``, 1) + `,`,
  246. `}`,
  247. }, "")
  248. return s
  249. }
  250. func valueToStringGenerated(v interface{}) string {
  251. rv := reflect.ValueOf(v)
  252. if rv.IsNil() {
  253. return "nil"
  254. }
  255. pv := reflect.Indirect(rv).Interface()
  256. return fmt.Sprintf("*%v", pv)
  257. }
  258. func (m *SelfSubjectReview) Unmarshal(dAtA []byte) error {
  259. l := len(dAtA)
  260. iNdEx := 0
  261. for iNdEx < l {
  262. preIndex := iNdEx
  263. var wire uint64
  264. for shift := uint(0); ; shift += 7 {
  265. if shift >= 64 {
  266. return ErrIntOverflowGenerated
  267. }
  268. if iNdEx >= l {
  269. return io.ErrUnexpectedEOF
  270. }
  271. b := dAtA[iNdEx]
  272. iNdEx++
  273. wire |= uint64(b&0x7F) << shift
  274. if b < 0x80 {
  275. break
  276. }
  277. }
  278. fieldNum := int32(wire >> 3)
  279. wireType := int(wire & 0x7)
  280. if wireType == 4 {
  281. return fmt.Errorf("proto: SelfSubjectReview: wiretype end group for non-group")
  282. }
  283. if fieldNum <= 0 {
  284. return fmt.Errorf("proto: SelfSubjectReview: illegal tag %d (wire type %d)", fieldNum, wire)
  285. }
  286. switch fieldNum {
  287. case 1:
  288. if wireType != 2 {
  289. return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
  290. }
  291. var msglen int
  292. for shift := uint(0); ; shift += 7 {
  293. if shift >= 64 {
  294. return ErrIntOverflowGenerated
  295. }
  296. if iNdEx >= l {
  297. return io.ErrUnexpectedEOF
  298. }
  299. b := dAtA[iNdEx]
  300. iNdEx++
  301. msglen |= int(b&0x7F) << shift
  302. if b < 0x80 {
  303. break
  304. }
  305. }
  306. if msglen < 0 {
  307. return ErrInvalidLengthGenerated
  308. }
  309. postIndex := iNdEx + msglen
  310. if postIndex < 0 {
  311. return ErrInvalidLengthGenerated
  312. }
  313. if postIndex > l {
  314. return io.ErrUnexpectedEOF
  315. }
  316. if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  317. return err
  318. }
  319. iNdEx = postIndex
  320. case 2:
  321. if wireType != 2 {
  322. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  323. }
  324. var msglen int
  325. for shift := uint(0); ; shift += 7 {
  326. if shift >= 64 {
  327. return ErrIntOverflowGenerated
  328. }
  329. if iNdEx >= l {
  330. return io.ErrUnexpectedEOF
  331. }
  332. b := dAtA[iNdEx]
  333. iNdEx++
  334. msglen |= int(b&0x7F) << shift
  335. if b < 0x80 {
  336. break
  337. }
  338. }
  339. if msglen < 0 {
  340. return ErrInvalidLengthGenerated
  341. }
  342. postIndex := iNdEx + msglen
  343. if postIndex < 0 {
  344. return ErrInvalidLengthGenerated
  345. }
  346. if postIndex > l {
  347. return io.ErrUnexpectedEOF
  348. }
  349. if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  350. return err
  351. }
  352. iNdEx = postIndex
  353. default:
  354. iNdEx = preIndex
  355. skippy, err := skipGenerated(dAtA[iNdEx:])
  356. if err != nil {
  357. return err
  358. }
  359. if (skippy < 0) || (iNdEx+skippy) < 0 {
  360. return ErrInvalidLengthGenerated
  361. }
  362. if (iNdEx + skippy) > l {
  363. return io.ErrUnexpectedEOF
  364. }
  365. iNdEx += skippy
  366. }
  367. }
  368. if iNdEx > l {
  369. return io.ErrUnexpectedEOF
  370. }
  371. return nil
  372. }
  373. func (m *SelfSubjectReviewStatus) Unmarshal(dAtA []byte) error {
  374. l := len(dAtA)
  375. iNdEx := 0
  376. for iNdEx < l {
  377. preIndex := iNdEx
  378. var wire uint64
  379. for shift := uint(0); ; shift += 7 {
  380. if shift >= 64 {
  381. return ErrIntOverflowGenerated
  382. }
  383. if iNdEx >= l {
  384. return io.ErrUnexpectedEOF
  385. }
  386. b := dAtA[iNdEx]
  387. iNdEx++
  388. wire |= uint64(b&0x7F) << shift
  389. if b < 0x80 {
  390. break
  391. }
  392. }
  393. fieldNum := int32(wire >> 3)
  394. wireType := int(wire & 0x7)
  395. if wireType == 4 {
  396. return fmt.Errorf("proto: SelfSubjectReviewStatus: wiretype end group for non-group")
  397. }
  398. if fieldNum <= 0 {
  399. return fmt.Errorf("proto: SelfSubjectReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire)
  400. }
  401. switch fieldNum {
  402. case 1:
  403. if wireType != 2 {
  404. return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType)
  405. }
  406. var msglen int
  407. for shift := uint(0); ; shift += 7 {
  408. if shift >= 64 {
  409. return ErrIntOverflowGenerated
  410. }
  411. if iNdEx >= l {
  412. return io.ErrUnexpectedEOF
  413. }
  414. b := dAtA[iNdEx]
  415. iNdEx++
  416. msglen |= int(b&0x7F) << shift
  417. if b < 0x80 {
  418. break
  419. }
  420. }
  421. if msglen < 0 {
  422. return ErrInvalidLengthGenerated
  423. }
  424. postIndex := iNdEx + msglen
  425. if postIndex < 0 {
  426. return ErrInvalidLengthGenerated
  427. }
  428. if postIndex > l {
  429. return io.ErrUnexpectedEOF
  430. }
  431. if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  432. return err
  433. }
  434. iNdEx = postIndex
  435. default:
  436. iNdEx = preIndex
  437. skippy, err := skipGenerated(dAtA[iNdEx:])
  438. if err != nil {
  439. return err
  440. }
  441. if (skippy < 0) || (iNdEx+skippy) < 0 {
  442. return ErrInvalidLengthGenerated
  443. }
  444. if (iNdEx + skippy) > l {
  445. return io.ErrUnexpectedEOF
  446. }
  447. iNdEx += skippy
  448. }
  449. }
  450. if iNdEx > l {
  451. return io.ErrUnexpectedEOF
  452. }
  453. return nil
  454. }
  455. func skipGenerated(dAtA []byte) (n int, err error) {
  456. l := len(dAtA)
  457. iNdEx := 0
  458. depth := 0
  459. for iNdEx < l {
  460. var wire uint64
  461. for shift := uint(0); ; shift += 7 {
  462. if shift >= 64 {
  463. return 0, ErrIntOverflowGenerated
  464. }
  465. if iNdEx >= l {
  466. return 0, io.ErrUnexpectedEOF
  467. }
  468. b := dAtA[iNdEx]
  469. iNdEx++
  470. wire |= (uint64(b) & 0x7F) << shift
  471. if b < 0x80 {
  472. break
  473. }
  474. }
  475. wireType := int(wire & 0x7)
  476. switch wireType {
  477. case 0:
  478. for shift := uint(0); ; shift += 7 {
  479. if shift >= 64 {
  480. return 0, ErrIntOverflowGenerated
  481. }
  482. if iNdEx >= l {
  483. return 0, io.ErrUnexpectedEOF
  484. }
  485. iNdEx++
  486. if dAtA[iNdEx-1] < 0x80 {
  487. break
  488. }
  489. }
  490. case 1:
  491. iNdEx += 8
  492. case 2:
  493. var length int
  494. for shift := uint(0); ; shift += 7 {
  495. if shift >= 64 {
  496. return 0, ErrIntOverflowGenerated
  497. }
  498. if iNdEx >= l {
  499. return 0, io.ErrUnexpectedEOF
  500. }
  501. b := dAtA[iNdEx]
  502. iNdEx++
  503. length |= (int(b) & 0x7F) << shift
  504. if b < 0x80 {
  505. break
  506. }
  507. }
  508. if length < 0 {
  509. return 0, ErrInvalidLengthGenerated
  510. }
  511. iNdEx += length
  512. case 3:
  513. depth++
  514. case 4:
  515. if depth == 0 {
  516. return 0, ErrUnexpectedEndOfGroupGenerated
  517. }
  518. depth--
  519. case 5:
  520. iNdEx += 4
  521. default:
  522. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  523. }
  524. if iNdEx < 0 {
  525. return 0, ErrInvalidLengthGenerated
  526. }
  527. if depth == 0 {
  528. return iNdEx, nil
  529. }
  530. }
  531. return 0, io.ErrUnexpectedEOF
  532. }
  533. var (
  534. ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
  535. ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
  536. ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
  537. )