ldapconfiguration.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/ldapconfiguration.proto
  3. package config
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. _ "github.com/syncthing/syncthing/proto/ext"
  8. io "io"
  9. math "math"
  10. math_bits "math/bits"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  21. type LDAPConfiguration struct {
  22. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address" xml:"address,omitempty"`
  23. BindDN string `protobuf:"bytes,2,opt,name=bind_dn,json=bindDn,proto3" json:"bindDN" xml:"bindDN,omitempty"`
  24. Transport LDAPTransport `protobuf:"varint,3,opt,name=transport,proto3,enum=config.LDAPTransport" json:"transport" xml:"transport,omitempty"`
  25. InsecureSkipVerify bool `protobuf:"varint,4,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecureSkipVerify" xml:"insecureSkipVerify,omitempty" default:"false"`
  26. SearchBaseDN string `protobuf:"bytes,5,opt,name=search_base_dn,json=searchBaseDn,proto3" json:"searchBaseDN" xml:"searchBaseDN,omitempty"`
  27. SearchFilter string `protobuf:"bytes,6,opt,name=search_filter,json=searchFilter,proto3" json:"searchFilter" xml:"searchFilter,omitempty"`
  28. }
  29. func (m *LDAPConfiguration) Reset() { *m = LDAPConfiguration{} }
  30. func (m *LDAPConfiguration) String() string { return proto.CompactTextString(m) }
  31. func (*LDAPConfiguration) ProtoMessage() {}
  32. func (*LDAPConfiguration) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_9681ad7e41c73956, []int{0}
  34. }
  35. func (m *LDAPConfiguration) XXX_Unmarshal(b []byte) error {
  36. return m.Unmarshal(b)
  37. }
  38. func (m *LDAPConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. if deterministic {
  40. return xxx_messageInfo_LDAPConfiguration.Marshal(b, m, deterministic)
  41. } else {
  42. b = b[:cap(b)]
  43. n, err := m.MarshalToSizedBuffer(b)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return b[:n], nil
  48. }
  49. }
  50. func (m *LDAPConfiguration) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_LDAPConfiguration.Merge(m, src)
  52. }
  53. func (m *LDAPConfiguration) XXX_Size() int {
  54. return m.ProtoSize()
  55. }
  56. func (m *LDAPConfiguration) XXX_DiscardUnknown() {
  57. xxx_messageInfo_LDAPConfiguration.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_LDAPConfiguration proto.InternalMessageInfo
  60. func init() {
  61. proto.RegisterType((*LDAPConfiguration)(nil), "config.LDAPConfiguration")
  62. }
  63. func init() {
  64. proto.RegisterFile("lib/config/ldapconfiguration.proto", fileDescriptor_9681ad7e41c73956)
  65. }
  66. var fileDescriptor_9681ad7e41c73956 = []byte{
  67. // 500 bytes of a gzipped FileDescriptorProto
  68. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xbf, 0x6f, 0xd3, 0x40,
  69. 0x14, 0xb6, 0x81, 0xba, 0xc4, 0x2a, 0x15, 0x35, 0x50, 0x4c, 0x55, 0xf9, 0x22, 0xcb, 0x43, 0x90,
  70. 0x50, 0x22, 0x95, 0xad, 0x4c, 0x35, 0x15, 0x03, 0x20, 0x84, 0x5c, 0xe8, 0xc0, 0x12, 0xf9, 0xc7,
  71. 0x39, 0x39, 0xd5, 0x39, 0x5b, 0x77, 0xe7, 0xaa, 0xe1, 0xaf, 0x80, 0xfe, 0x05, 0xdd, 0xf8, 0x57,
  72. 0xba, 0xc5, 0x23, 0xd3, 0x49, 0x4d, 0x36, 0x8f, 0x1e, 0x99, 0x50, 0xce, 0x4e, 0x63, 0xa7, 0x51,
  73. 0xb7, 0xf7, 0xbe, 0xef, 0xbd, 0xef, 0x7d, 0x77, 0x4f, 0x4f, 0x35, 0x23, 0xe4, 0xf5, 0xfc, 0x18,
  74. 0x87, 0x68, 0xd0, 0x8b, 0x02, 0x37, 0x29, 0xc3, 0x94, 0xb8, 0x0c, 0xc5, 0xb8, 0x9b, 0x90, 0x98,
  75. 0xc5, 0x9a, 0x52, 0x82, 0x7b, 0xc6, 0x4a, 0x2d, 0x23, 0x2e, 0xa6, 0x49, 0x4c, 0x58, 0x59, 0xb7,
  76. 0xd7, 0x82, 0x17, 0x55, 0x68, 0xfe, 0x56, 0xd4, 0x9d, 0xcf, 0xc7, 0x47, 0x5f, 0xdf, 0xd7, 0xe5,
  77. 0xb4, 0xef, 0xea, 0xa6, 0x1b, 0x04, 0x04, 0x52, 0xaa, 0xcb, 0x6d, 0xb9, 0xd3, 0xb2, 0xdf, 0xe5,
  78. 0x1c, 0x2c, 0xa0, 0x82, 0x83, 0x97, 0x17, 0xa3, 0xe8, 0xd0, 0xac, 0xf2, 0x37, 0xf1, 0x08, 0x31,
  79. 0x38, 0x4a, 0xd8, 0xd8, 0xcc, 0x27, 0xd6, 0xce, 0x1d, 0xd4, 0x59, 0x34, 0x6a, 0xb1, 0xba, 0xe9,
  80. 0x21, 0x1c, 0xf4, 0x03, 0xac, 0x3f, 0x10, 0xb2, 0xa7, 0x53, 0x0e, 0x14, 0x1b, 0xe1, 0xe0, 0xf8,
  81. 0x4b, 0xce, 0x81, 0xe2, 0x89, 0xa8, 0xe0, 0x60, 0x57, 0xe8, 0x97, 0x69, 0x53, 0xfe, 0xe9, 0x2a,
  82. 0x58, 0x4c, 0xac, 0xaa, 0xef, 0x32, 0xb3, 0x2a, 0x2d, 0xa7, 0x44, 0xb0, 0x76, 0xae, 0xb6, 0x6e,
  83. 0xdf, 0xae, 0x3f, 0x6c, 0xcb, 0x9d, 0xed, 0x83, 0x17, 0xdd, 0xf2, 0x63, 0xba, 0xf3, 0x57, 0x7f,
  84. 0x5b, 0x90, 0xf6, 0x51, 0xce, 0xc1, 0xb2, 0xb6, 0xe0, 0xe0, 0x95, 0xb0, 0x70, 0x8b, 0x34, 0x5d,
  85. 0x3c, 0x5b, 0x83, 0x3b, 0xcb, 0x76, 0xed, 0x8f, 0xac, 0x3e, 0x47, 0x98, 0x42, 0x3f, 0x25, 0xb0,
  86. 0x4f, 0xcf, 0x50, 0xd2, 0x3f, 0x87, 0x04, 0x85, 0x63, 0xfd, 0x51, 0x5b, 0xee, 0x3c, 0xb6, 0xd3,
  87. 0x9c, 0x03, 0x6d, 0xc1, 0x9f, 0x9c, 0xa1, 0xe4, 0x54, 0xb0, 0x05, 0x07, 0x07, 0x62, 0xea, 0x5d,
  88. 0xaa, 0x36, 0xbe, 0x1d, 0xc0, 0xd0, 0x4d, 0x23, 0x76, 0x68, 0x86, 0x6e, 0x44, 0xe1, 0xdc, 0xce,
  89. 0xfe, 0x7d, 0x0d, 0xff, 0x26, 0xd6, 0x86, 0xa8, 0x74, 0xd6, 0x8c, 0xd4, 0xae, 0x64, 0x75, 0x9b,
  90. 0x42, 0x97, 0xf8, 0xc3, 0xbe, 0xe7, 0x52, 0x38, 0x5f, 0xcd, 0x86, 0x58, 0xcd, 0xcf, 0x29, 0x07,
  91. 0x5b, 0x27, 0x82, 0xb1, 0x5d, 0x0a, 0xc5, 0x82, 0xb6, 0x68, 0x2d, 0x2f, 0x38, 0xd8, 0x17, 0x6e,
  92. 0xeb, 0x60, 0xf3, 0x9b, 0x76, 0xd7, 0x53, 0xc5, 0xc4, 0x6a, 0x28, 0x5d, 0x66, 0x56, 0x63, 0x92,
  93. 0x53, 0x67, 0xb1, 0x16, 0xab, 0x4f, 0x2a, 0x87, 0x21, 0x8a, 0x18, 0x24, 0xba, 0x22, 0x0c, 0x7e,
  94. 0x5c, 0x1a, 0xfa, 0x20, 0xf0, 0x15, 0x43, 0x25, 0xb8, 0xd6, 0xd0, 0x2a, 0xe5, 0x34, 0x74, 0xec,
  95. 0x4f, 0xd7, 0x37, 0x86, 0x94, 0xdd, 0x18, 0xd2, 0xf5, 0xd4, 0x90, 0xb3, 0xa9, 0x21, 0xff, 0x9a,
  96. 0x19, 0xd2, 0xd5, 0xcc, 0x90, 0xb3, 0x99, 0x21, 0xfd, 0x9d, 0x19, 0xd2, 0x8f, 0xd7, 0x03, 0xc4,
  97. 0x86, 0xa9, 0xd7, 0xf5, 0xe3, 0x51, 0x8f, 0x8e, 0xb1, 0xcf, 0x86, 0x08, 0x0f, 0x6a, 0xd1, 0xf2,
  98. 0xfe, 0x3c, 0x45, 0xdc, 0xd9, 0xdb, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x64, 0x4b, 0x05,
  99. 0xc0, 0x03, 0x00, 0x00,
  100. }
  101. func (m *LDAPConfiguration) Marshal() (dAtA []byte, err error) {
  102. size := m.ProtoSize()
  103. dAtA = make([]byte, size)
  104. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  105. if err != nil {
  106. return nil, err
  107. }
  108. return dAtA[:n], nil
  109. }
  110. func (m *LDAPConfiguration) MarshalTo(dAtA []byte) (int, error) {
  111. size := m.ProtoSize()
  112. return m.MarshalToSizedBuffer(dAtA[:size])
  113. }
  114. func (m *LDAPConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  115. i := len(dAtA)
  116. _ = i
  117. var l int
  118. _ = l
  119. if len(m.SearchFilter) > 0 {
  120. i -= len(m.SearchFilter)
  121. copy(dAtA[i:], m.SearchFilter)
  122. i = encodeVarintLdapconfiguration(dAtA, i, uint64(len(m.SearchFilter)))
  123. i--
  124. dAtA[i] = 0x32
  125. }
  126. if len(m.SearchBaseDN) > 0 {
  127. i -= len(m.SearchBaseDN)
  128. copy(dAtA[i:], m.SearchBaseDN)
  129. i = encodeVarintLdapconfiguration(dAtA, i, uint64(len(m.SearchBaseDN)))
  130. i--
  131. dAtA[i] = 0x2a
  132. }
  133. if m.InsecureSkipVerify {
  134. i--
  135. if m.InsecureSkipVerify {
  136. dAtA[i] = 1
  137. } else {
  138. dAtA[i] = 0
  139. }
  140. i--
  141. dAtA[i] = 0x20
  142. }
  143. if m.Transport != 0 {
  144. i = encodeVarintLdapconfiguration(dAtA, i, uint64(m.Transport))
  145. i--
  146. dAtA[i] = 0x18
  147. }
  148. if len(m.BindDN) > 0 {
  149. i -= len(m.BindDN)
  150. copy(dAtA[i:], m.BindDN)
  151. i = encodeVarintLdapconfiguration(dAtA, i, uint64(len(m.BindDN)))
  152. i--
  153. dAtA[i] = 0x12
  154. }
  155. if len(m.Address) > 0 {
  156. i -= len(m.Address)
  157. copy(dAtA[i:], m.Address)
  158. i = encodeVarintLdapconfiguration(dAtA, i, uint64(len(m.Address)))
  159. i--
  160. dAtA[i] = 0xa
  161. }
  162. return len(dAtA) - i, nil
  163. }
  164. func encodeVarintLdapconfiguration(dAtA []byte, offset int, v uint64) int {
  165. offset -= sovLdapconfiguration(v)
  166. base := offset
  167. for v >= 1<<7 {
  168. dAtA[offset] = uint8(v&0x7f | 0x80)
  169. v >>= 7
  170. offset++
  171. }
  172. dAtA[offset] = uint8(v)
  173. return base
  174. }
  175. func (m *LDAPConfiguration) ProtoSize() (n int) {
  176. if m == nil {
  177. return 0
  178. }
  179. var l int
  180. _ = l
  181. l = len(m.Address)
  182. if l > 0 {
  183. n += 1 + l + sovLdapconfiguration(uint64(l))
  184. }
  185. l = len(m.BindDN)
  186. if l > 0 {
  187. n += 1 + l + sovLdapconfiguration(uint64(l))
  188. }
  189. if m.Transport != 0 {
  190. n += 1 + sovLdapconfiguration(uint64(m.Transport))
  191. }
  192. if m.InsecureSkipVerify {
  193. n += 2
  194. }
  195. l = len(m.SearchBaseDN)
  196. if l > 0 {
  197. n += 1 + l + sovLdapconfiguration(uint64(l))
  198. }
  199. l = len(m.SearchFilter)
  200. if l > 0 {
  201. n += 1 + l + sovLdapconfiguration(uint64(l))
  202. }
  203. return n
  204. }
  205. func sovLdapconfiguration(x uint64) (n int) {
  206. return (math_bits.Len64(x|1) + 6) / 7
  207. }
  208. func sozLdapconfiguration(x uint64) (n int) {
  209. return sovLdapconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  210. }
  211. func (m *LDAPConfiguration) Unmarshal(dAtA []byte) error {
  212. l := len(dAtA)
  213. iNdEx := 0
  214. for iNdEx < l {
  215. preIndex := iNdEx
  216. var wire uint64
  217. for shift := uint(0); ; shift += 7 {
  218. if shift >= 64 {
  219. return ErrIntOverflowLdapconfiguration
  220. }
  221. if iNdEx >= l {
  222. return io.ErrUnexpectedEOF
  223. }
  224. b := dAtA[iNdEx]
  225. iNdEx++
  226. wire |= uint64(b&0x7F) << shift
  227. if b < 0x80 {
  228. break
  229. }
  230. }
  231. fieldNum := int32(wire >> 3)
  232. wireType := int(wire & 0x7)
  233. if wireType == 4 {
  234. return fmt.Errorf("proto: LDAPConfiguration: wiretype end group for non-group")
  235. }
  236. if fieldNum <= 0 {
  237. return fmt.Errorf("proto: LDAPConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  238. }
  239. switch fieldNum {
  240. case 1:
  241. if wireType != 2 {
  242. return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  243. }
  244. var stringLen uint64
  245. for shift := uint(0); ; shift += 7 {
  246. if shift >= 64 {
  247. return ErrIntOverflowLdapconfiguration
  248. }
  249. if iNdEx >= l {
  250. return io.ErrUnexpectedEOF
  251. }
  252. b := dAtA[iNdEx]
  253. iNdEx++
  254. stringLen |= uint64(b&0x7F) << shift
  255. if b < 0x80 {
  256. break
  257. }
  258. }
  259. intStringLen := int(stringLen)
  260. if intStringLen < 0 {
  261. return ErrInvalidLengthLdapconfiguration
  262. }
  263. postIndex := iNdEx + intStringLen
  264. if postIndex < 0 {
  265. return ErrInvalidLengthLdapconfiguration
  266. }
  267. if postIndex > l {
  268. return io.ErrUnexpectedEOF
  269. }
  270. m.Address = string(dAtA[iNdEx:postIndex])
  271. iNdEx = postIndex
  272. case 2:
  273. if wireType != 2 {
  274. return fmt.Errorf("proto: wrong wireType = %d for field BindDN", wireType)
  275. }
  276. var stringLen uint64
  277. for shift := uint(0); ; shift += 7 {
  278. if shift >= 64 {
  279. return ErrIntOverflowLdapconfiguration
  280. }
  281. if iNdEx >= l {
  282. return io.ErrUnexpectedEOF
  283. }
  284. b := dAtA[iNdEx]
  285. iNdEx++
  286. stringLen |= uint64(b&0x7F) << shift
  287. if b < 0x80 {
  288. break
  289. }
  290. }
  291. intStringLen := int(stringLen)
  292. if intStringLen < 0 {
  293. return ErrInvalidLengthLdapconfiguration
  294. }
  295. postIndex := iNdEx + intStringLen
  296. if postIndex < 0 {
  297. return ErrInvalidLengthLdapconfiguration
  298. }
  299. if postIndex > l {
  300. return io.ErrUnexpectedEOF
  301. }
  302. m.BindDN = string(dAtA[iNdEx:postIndex])
  303. iNdEx = postIndex
  304. case 3:
  305. if wireType != 0 {
  306. return fmt.Errorf("proto: wrong wireType = %d for field Transport", wireType)
  307. }
  308. m.Transport = 0
  309. for shift := uint(0); ; shift += 7 {
  310. if shift >= 64 {
  311. return ErrIntOverflowLdapconfiguration
  312. }
  313. if iNdEx >= l {
  314. return io.ErrUnexpectedEOF
  315. }
  316. b := dAtA[iNdEx]
  317. iNdEx++
  318. m.Transport |= LDAPTransport(b&0x7F) << shift
  319. if b < 0x80 {
  320. break
  321. }
  322. }
  323. case 4:
  324. if wireType != 0 {
  325. return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipVerify", wireType)
  326. }
  327. var v int
  328. for shift := uint(0); ; shift += 7 {
  329. if shift >= 64 {
  330. return ErrIntOverflowLdapconfiguration
  331. }
  332. if iNdEx >= l {
  333. return io.ErrUnexpectedEOF
  334. }
  335. b := dAtA[iNdEx]
  336. iNdEx++
  337. v |= int(b&0x7F) << shift
  338. if b < 0x80 {
  339. break
  340. }
  341. }
  342. m.InsecureSkipVerify = bool(v != 0)
  343. case 5:
  344. if wireType != 2 {
  345. return fmt.Errorf("proto: wrong wireType = %d for field SearchBaseDN", wireType)
  346. }
  347. var stringLen uint64
  348. for shift := uint(0); ; shift += 7 {
  349. if shift >= 64 {
  350. return ErrIntOverflowLdapconfiguration
  351. }
  352. if iNdEx >= l {
  353. return io.ErrUnexpectedEOF
  354. }
  355. b := dAtA[iNdEx]
  356. iNdEx++
  357. stringLen |= uint64(b&0x7F) << shift
  358. if b < 0x80 {
  359. break
  360. }
  361. }
  362. intStringLen := int(stringLen)
  363. if intStringLen < 0 {
  364. return ErrInvalidLengthLdapconfiguration
  365. }
  366. postIndex := iNdEx + intStringLen
  367. if postIndex < 0 {
  368. return ErrInvalidLengthLdapconfiguration
  369. }
  370. if postIndex > l {
  371. return io.ErrUnexpectedEOF
  372. }
  373. m.SearchBaseDN = string(dAtA[iNdEx:postIndex])
  374. iNdEx = postIndex
  375. case 6:
  376. if wireType != 2 {
  377. return fmt.Errorf("proto: wrong wireType = %d for field SearchFilter", wireType)
  378. }
  379. var stringLen uint64
  380. for shift := uint(0); ; shift += 7 {
  381. if shift >= 64 {
  382. return ErrIntOverflowLdapconfiguration
  383. }
  384. if iNdEx >= l {
  385. return io.ErrUnexpectedEOF
  386. }
  387. b := dAtA[iNdEx]
  388. iNdEx++
  389. stringLen |= uint64(b&0x7F) << shift
  390. if b < 0x80 {
  391. break
  392. }
  393. }
  394. intStringLen := int(stringLen)
  395. if intStringLen < 0 {
  396. return ErrInvalidLengthLdapconfiguration
  397. }
  398. postIndex := iNdEx + intStringLen
  399. if postIndex < 0 {
  400. return ErrInvalidLengthLdapconfiguration
  401. }
  402. if postIndex > l {
  403. return io.ErrUnexpectedEOF
  404. }
  405. m.SearchFilter = string(dAtA[iNdEx:postIndex])
  406. iNdEx = postIndex
  407. default:
  408. iNdEx = preIndex
  409. skippy, err := skipLdapconfiguration(dAtA[iNdEx:])
  410. if err != nil {
  411. return err
  412. }
  413. if skippy < 0 {
  414. return ErrInvalidLengthLdapconfiguration
  415. }
  416. if (iNdEx + skippy) < 0 {
  417. return ErrInvalidLengthLdapconfiguration
  418. }
  419. if (iNdEx + skippy) > l {
  420. return io.ErrUnexpectedEOF
  421. }
  422. iNdEx += skippy
  423. }
  424. }
  425. if iNdEx > l {
  426. return io.ErrUnexpectedEOF
  427. }
  428. return nil
  429. }
  430. func skipLdapconfiguration(dAtA []byte) (n int, err error) {
  431. l := len(dAtA)
  432. iNdEx := 0
  433. depth := 0
  434. for iNdEx < l {
  435. var wire uint64
  436. for shift := uint(0); ; shift += 7 {
  437. if shift >= 64 {
  438. return 0, ErrIntOverflowLdapconfiguration
  439. }
  440. if iNdEx >= l {
  441. return 0, io.ErrUnexpectedEOF
  442. }
  443. b := dAtA[iNdEx]
  444. iNdEx++
  445. wire |= (uint64(b) & 0x7F) << shift
  446. if b < 0x80 {
  447. break
  448. }
  449. }
  450. wireType := int(wire & 0x7)
  451. switch wireType {
  452. case 0:
  453. for shift := uint(0); ; shift += 7 {
  454. if shift >= 64 {
  455. return 0, ErrIntOverflowLdapconfiguration
  456. }
  457. if iNdEx >= l {
  458. return 0, io.ErrUnexpectedEOF
  459. }
  460. iNdEx++
  461. if dAtA[iNdEx-1] < 0x80 {
  462. break
  463. }
  464. }
  465. case 1:
  466. iNdEx += 8
  467. case 2:
  468. var length int
  469. for shift := uint(0); ; shift += 7 {
  470. if shift >= 64 {
  471. return 0, ErrIntOverflowLdapconfiguration
  472. }
  473. if iNdEx >= l {
  474. return 0, io.ErrUnexpectedEOF
  475. }
  476. b := dAtA[iNdEx]
  477. iNdEx++
  478. length |= (int(b) & 0x7F) << shift
  479. if b < 0x80 {
  480. break
  481. }
  482. }
  483. if length < 0 {
  484. return 0, ErrInvalidLengthLdapconfiguration
  485. }
  486. iNdEx += length
  487. case 3:
  488. depth++
  489. case 4:
  490. if depth == 0 {
  491. return 0, ErrUnexpectedEndOfGroupLdapconfiguration
  492. }
  493. depth--
  494. case 5:
  495. iNdEx += 4
  496. default:
  497. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  498. }
  499. if iNdEx < 0 {
  500. return 0, ErrInvalidLengthLdapconfiguration
  501. }
  502. if depth == 0 {
  503. return iNdEx, nil
  504. }
  505. }
  506. return 0, io.ErrUnexpectedEOF
  507. }
  508. var (
  509. ErrInvalidLengthLdapconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  510. ErrIntOverflowLdapconfiguration = fmt.Errorf("proto: integer overflow")
  511. ErrUnexpectedEndOfGroupLdapconfiguration = fmt.Errorf("proto: unexpected end of group")
  512. )