mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
139 lines
6.5 KiB
Go
139 lines
6.5 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: lib/config/ldapconfiguration.proto
|
|
|
|
package config
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
_ "github.com/syncthing/syncthing/proto/ext"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type LDAPConfiguration struct {
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address" xml:"address,omitempty"`
|
|
BindDN string `protobuf:"bytes,2,opt,name=bind_dn,json=bindDn,proto3" json:"bindDN" xml:"bindDN,omitempty"`
|
|
Transport LDAPTransport `protobuf:"varint,3,opt,name=transport,proto3,enum=config.LDAPTransport" json:"transport" xml:"transport,omitempty"`
|
|
InsecureSkipVerify bool `protobuf:"varint,4,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecureSkipVerify" xml:"insecureSkipVerify,omitempty" default:"false"`
|
|
SearchBaseDN string `protobuf:"bytes,5,opt,name=search_base_dn,json=searchBaseDn,proto3" json:"searchBaseDN" xml:"searchBaseDN,omitempty"`
|
|
SearchFilter string `protobuf:"bytes,6,opt,name=search_filter,json=searchFilter,proto3" json:"searchFilter" xml:"searchFilter,omitempty"`
|
|
}
|
|
|
|
func (m *LDAPConfiguration) Reset() { *m = LDAPConfiguration{} }
|
|
func (m *LDAPConfiguration) String() string { return proto.CompactTextString(m) }
|
|
func (*LDAPConfiguration) ProtoMessage() {}
|
|
func (*LDAPConfiguration) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9681ad7e41c73956, []int{0}
|
|
}
|
|
func (m *LDAPConfiguration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LDAPConfiguration.Unmarshal(m, b)
|
|
}
|
|
func (m *LDAPConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LDAPConfiguration.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LDAPConfiguration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LDAPConfiguration.Merge(m, src)
|
|
}
|
|
func (m *LDAPConfiguration) XXX_Size() int {
|
|
return xxx_messageInfo_LDAPConfiguration.Size(m)
|
|
}
|
|
func (m *LDAPConfiguration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LDAPConfiguration.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LDAPConfiguration proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*LDAPConfiguration)(nil), "config.LDAPConfiguration")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("lib/config/ldapconfiguration.proto", fileDescriptor_9681ad7e41c73956)
|
|
}
|
|
|
|
var fileDescriptor_9681ad7e41c73956 = []byte{
|
|
// 498 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
|
|
0x10, 0xb5, 0x81, 0xba, 0xc4, 0x2a, 0x15, 0x35, 0x50, 0x42, 0x55, 0x79, 0x23, 0xcb, 0x87, 0x20,
|
|
0xa1, 0x44, 0x2a, 0xb7, 0x72, 0xaa, 0xa9, 0x40, 0x42, 0x08, 0x21, 0x17, 0x7a, 0xe0, 0x12, 0xf9,
|
|
0x63, 0x9d, 0xac, 0xea, 0xec, 0x5a, 0xbb, 0xeb, 0xaa, 0xe1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0x87, 0xb4, 0xa9, 0x49, 0x83,
|
|
0x1f, 0x96, 0x86, 0xde, 0x49, 0x7c, 0xc5, 0x50, 0x01, 0xae, 0x35, 0xb4, 0x4a, 0xb9, 0x35, 0x1d,
|
|
0xe7, 0xfd, 0xef, 0x6b, 0x53, 0x99, 0x5c, 0x9b, 0xca, 0xdf, 0xa9, 0xa9, 0xfc, 0x98, 0x99, 0xca,
|
|
0xd5, 0xcc, 0x54, 0x27, 0x33, 0x53, 0xf9, 0x33, 0x33, 0x95, 0x6f, 0x2f, 0xfb, 0x88, 0x0f, 0x52,
|
|
0xbf, 0x13, 0x90, 0x61, 0x97, 0x8d, 0x70, 0xc0, 0x07, 0x08, 0xf7, 0x2b, 0xd1, 0xf2, 0xf6, 0x7c,
|
|
0x4d, 0xde, 0xd8, 0xeb, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xca, 0xa1, 0xc5, 0x0d, 0xbc, 0x03,
|
|
0x00, 0x00,
|
|
}
|
|
|
|
func (m *LDAPConfiguration) ProtoSize() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Address)
|
|
if l > 0 {
|
|
n += 1 + l + sovLdapconfiguration(uint64(l))
|
|
}
|
|
l = len(m.BindDN)
|
|
if l > 0 {
|
|
n += 1 + l + sovLdapconfiguration(uint64(l))
|
|
}
|
|
if m.Transport != 0 {
|
|
n += 1 + sovLdapconfiguration(uint64(m.Transport))
|
|
}
|
|
if m.InsecureSkipVerify {
|
|
n += 2
|
|
}
|
|
l = len(m.SearchBaseDN)
|
|
if l > 0 {
|
|
n += 1 + l + sovLdapconfiguration(uint64(l))
|
|
}
|
|
l = len(m.SearchFilter)
|
|
if l > 0 {
|
|
n += 1 + l + sovLdapconfiguration(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovLdapconfiguration(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozLdapconfiguration(x uint64) (n int) {
|
|
return sovLdapconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|