ldapconfiguration.pb.go 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. math "math"
  9. math_bits "math/bits"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  20. type LDAPConfiguration struct {
  21. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address" xml:"address,omitempty"`
  22. BindDN string `protobuf:"bytes,2,opt,name=bind_dn,json=bindDn,proto3" json:"bindDN" xml:"bindDN,omitempty"`
  23. Transport LDAPTransport `protobuf:"varint,3,opt,name=transport,proto3,enum=config.LDAPTransport" json:"transport" xml:"transport,omitempty"`
  24. InsecureSkipVerify bool `protobuf:"varint,4,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecureSkipVerify" xml:"insecureSkipVerify,omitempty" default:"false"`
  25. SearchBaseDN string `protobuf:"bytes,5,opt,name=search_base_dn,json=searchBaseDn,proto3" json:"searchBaseDN" xml:"searchBaseDN,omitempty"`
  26. SearchFilter string `protobuf:"bytes,6,opt,name=search_filter,json=searchFilter,proto3" json:"searchFilter" xml:"searchFilter,omitempty"`
  27. }
  28. func (m *LDAPConfiguration) Reset() { *m = LDAPConfiguration{} }
  29. func (m *LDAPConfiguration) String() string { return proto.CompactTextString(m) }
  30. func (*LDAPConfiguration) ProtoMessage() {}
  31. func (*LDAPConfiguration) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_9681ad7e41c73956, []int{0}
  33. }
  34. func (m *LDAPConfiguration) XXX_Unmarshal(b []byte) error {
  35. return xxx_messageInfo_LDAPConfiguration.Unmarshal(m, b)
  36. }
  37. func (m *LDAPConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. return xxx_messageInfo_LDAPConfiguration.Marshal(b, m, deterministic)
  39. }
  40. func (m *LDAPConfiguration) XXX_Merge(src proto.Message) {
  41. xxx_messageInfo_LDAPConfiguration.Merge(m, src)
  42. }
  43. func (m *LDAPConfiguration) XXX_Size() int {
  44. return xxx_messageInfo_LDAPConfiguration.Size(m)
  45. }
  46. func (m *LDAPConfiguration) XXX_DiscardUnknown() {
  47. xxx_messageInfo_LDAPConfiguration.DiscardUnknown(m)
  48. }
  49. var xxx_messageInfo_LDAPConfiguration proto.InternalMessageInfo
  50. func init() {
  51. proto.RegisterType((*LDAPConfiguration)(nil), "config.LDAPConfiguration")
  52. }
  53. func init() {
  54. proto.RegisterFile("lib/config/ldapconfiguration.proto", fileDescriptor_9681ad7e41c73956)
  55. }
  56. var fileDescriptor_9681ad7e41c73956 = []byte{
  57. // 498 bytes of a gzipped FileDescriptorProto
  58. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
  59. 0x10, 0xb5, 0x81, 0xba, 0xc4, 0x2a, 0x15, 0x35, 0x50, 0x42, 0x55, 0x79, 0x23, 0xcb, 0x87, 0x20,
  60. 0xa1, 0x44, 0x2a, 0xb7, 0x72, 0xaa, 0xa9, 0x40, 0x42, 0x08, 0x21, 0x17, 0x7a, 0xe0, 0x12, 0xf9,
  61. 0x63, 0x9d, 0xac, 0xea, 0xec, 0x5a, 0xbb, 0xeb, 0xaa, 0xe1, 0x57, 0x40, 0x7f, 0x41, 0x6f, 0xfc,
  62. 0x15, 0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6, 0xe6, 0xfd, 0x96, 0xda, 0xde, 0x3e, 0x78, 0xd6, 0x29, 0x3e, 0xa6, 0x33, 0x7f, 0xf5,
  74. 0x97, 0x05, 0xe9, 0x1c, 0x65, 0x02, 0x2c, 0x6b, 0x73, 0x01, 0x5e, 0x48, 0x0b, 0x37, 0x48, 0xdd,
  75. 0xc5, 0x93, 0x35, 0xb8, 0xbb, 0x6c, 0x37, 0x7e, 0xa9, 0xfa, 0x53, 0x84, 0x19, 0x0c, 0x52, 0x0a,
  76. 0x7b, 0xec, 0x0c, 0x25, 0xbd, 0x73, 0x48, 0x51, 0x34, 0x6a, 0x3e, 0x68, 0xa9, 0xed, 0x87, 0x4e,
  77. 0x9a, 0x09, 0x60, 0x2c, 0xf8, 0x93, 0x33, 0x94, 0x9c, 0x4a, 0x36, 0x17, 0xe0, 0x40, 0x4e, 0xbd,
  78. 0x4d, 0x55, 0xc6, 0xb7, 0x42, 0x18, 0x79, 0x69, 0xcc, 0x0f, 0xad, 0xc8, 0x8b, 0x19, 0x9c, 0xdb,
  79. 0xd9, 0xbf, 0xab, 0xe1, 0xdf, 0xd8, 0xde, 0x90, 0x95, 0xee, 0x9a, 0x91, 0xc6, 0x95, 0xaa, 0x6f,
  80. 0x33, 0xe8, 0xd1, 0x60, 0xd0, 0xf3, 0x3d, 0x06, 0xe7, 0xab, 0xd9, 0x90, 0xab, 0xf9, 0x3e, 0x15,
  81. 0x60, 0xeb, 0x44, 0x32, 0x8e, 0xc7, 0xa0, 0x5c, 0xd0, 0x16, 0xab, 0xe4, 0xb9, 0x00, 0xfb, 0xd2,
  82. 0x6d, 0x15, 0xac, 0x7f, 0xd3, 0xee, 0x7a, 0x2a, 0x1f, 0xdb, 0x35, 0xa5, 0xcb, 0x89, 0x5d, 0x9b,
  83. 0xe4, 0x56, 0x59, 0x6c, 0x10, 0xfd, 0x51, 0xe9, 0x30, 0x42, 0x31, 0x87, 0xb4, 0xa9, 0x49, 0x83,
  84. 0x1f, 0x96, 0x86, 0xde, 0x49, 0x7c, 0xc5, 0x50, 0x01, 0xae, 0x35, 0xb4, 0x4a, 0xb9, 0x35, 0x1d,
  85. 0xe7, 0xfd, 0xef, 0x6b, 0x53, 0x99, 0x5c, 0x9b, 0xca, 0xdf, 0xa9, 0xa9, 0xfc, 0x98, 0x99, 0xca,
  86. 0xd5, 0xcc, 0x54, 0x27, 0x33, 0x53, 0xf9, 0x33, 0x33, 0x95, 0x6f, 0x2f, 0xfb, 0x88, 0x0f, 0x52,
  87. 0xbf, 0x13, 0x90, 0x61, 0x97, 0x8d, 0x70, 0xc0, 0x07, 0x08, 0xf7, 0x2b, 0xd1, 0xf2, 0xf6, 0x7c,
  88. 0x4d, 0xde, 0xd8, 0xeb, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xca, 0xa1, 0xc5, 0x0d, 0xbc, 0x03,
  89. 0x00, 0x00,
  90. }
  91. func (m *LDAPConfiguration) ProtoSize() (n int) {
  92. if m == nil {
  93. return 0
  94. }
  95. var l int
  96. _ = l
  97. l = len(m.Address)
  98. if l > 0 {
  99. n += 1 + l + sovLdapconfiguration(uint64(l))
  100. }
  101. l = len(m.BindDN)
  102. if l > 0 {
  103. n += 1 + l + sovLdapconfiguration(uint64(l))
  104. }
  105. if m.Transport != 0 {
  106. n += 1 + sovLdapconfiguration(uint64(m.Transport))
  107. }
  108. if m.InsecureSkipVerify {
  109. n += 2
  110. }
  111. l = len(m.SearchBaseDN)
  112. if l > 0 {
  113. n += 1 + l + sovLdapconfiguration(uint64(l))
  114. }
  115. l = len(m.SearchFilter)
  116. if l > 0 {
  117. n += 1 + l + sovLdapconfiguration(uint64(l))
  118. }
  119. return n
  120. }
  121. func sovLdapconfiguration(x uint64) (n int) {
  122. return (math_bits.Len64(x|1) + 6) / 7
  123. }
  124. func sozLdapconfiguration(x uint64) (n int) {
  125. return sovLdapconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  126. }