// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: lib/config/guiconfiguration.proto package config import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" _ "github.com/syncthing/syncthing/proto/ext" io "io" 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 GUIConfiguration struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled" xml:"enabled,attr" default:"true"` RawAddress string `protobuf:"bytes,2,opt,name=address,proto3" json:"address" xml:"address" default:"127.0.0.1:8384"` RawUnixSocketPermissions string `protobuf:"bytes,3,opt,name=unix_socket_permissions,json=unixSocketPermissions,proto3" json:"unixSocketPermissions" xml:"unixSocketPermissions,omitempty"` User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" xml:"user,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password" xml:"password,omitempty"` AuthMode AuthMode `protobuf:"varint,6,opt,name=auth_mode,json=authMode,proto3,enum=config.AuthMode" json:"authMode" xml:"authMode,omitempty"` RawUseTLS bool `protobuf:"varint,7,opt,name=use_tls,json=useTls,proto3" json:"useTLS" xml:"tls,attr"` APIKey string `protobuf:"bytes,8,opt,name=api_key,json=apiKey,proto3" json:"apiKey" xml:"apikey,omitempty"` InsecureAdminAccess bool `protobuf:"varint,9,opt,name=insecure_admin_access,json=insecureAdminAccess,proto3" json:"insecureAdminAccess" xml:"insecureAdminAccess,omitempty"` Theme string `protobuf:"bytes,10,opt,name=theme,proto3" json:"theme" xml:"theme" default:"default"` Debugging bool `protobuf:"varint,11,opt,name=debugging,proto3" json:"debugging" xml:"debugging,attr"` InsecureSkipHostCheck bool `protobuf:"varint,12,opt,name=insecure_skip_host_check,json=insecureSkipHostCheck,proto3" json:"insecureSkipHostcheck" xml:"insecureSkipHostcheck,omitempty"` InsecureAllowFrameLoading bool `protobuf:"varint,13,opt,name=insecure_allow_frame_loading,json=insecureAllowFrameLoading,proto3" json:"insecureAllowFrameLoading" xml:"insecureAllowFrameLoading,omitempty"` SendBasicAuthPrompt bool `protobuf:"varint,14,opt,name=send_basic_auth_prompt,json=sendBasicAuthPrompt,proto3" json:"sendBasicAuthPrompt" xml:"sendBasicAuthPrompt,attr"` } func (m *GUIConfiguration) Reset() { *m = GUIConfiguration{} } func (m *GUIConfiguration) String() string { return proto.CompactTextString(m) } func (*GUIConfiguration) ProtoMessage() {} func (*GUIConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor_2a9586d611855d64, []int{0} } func (m *GUIConfiguration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *GUIConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_GUIConfiguration.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *GUIConfiguration) XXX_Merge(src proto.Message) { xxx_messageInfo_GUIConfiguration.Merge(m, src) } func (m *GUIConfiguration) XXX_Size() int { return m.ProtoSize() } func (m *GUIConfiguration) XXX_DiscardUnknown() { xxx_messageInfo_GUIConfiguration.DiscardUnknown(m) } var xxx_messageInfo_GUIConfiguration proto.InternalMessageInfo func init() { proto.RegisterType((*GUIConfiguration)(nil), "config.GUIConfiguration") } func init() { proto.RegisterFile("lib/config/guiconfiguration.proto", fileDescriptor_2a9586d611855d64) } var fileDescriptor_2a9586d611855d64 = []byte{ // 888 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcd, 0x6e, 0xdb, 0x46, 0x10, 0x16, 0x5b, 0x47, 0xb2, 0xb6, 0x89, 0x60, 0xb0, 0x4d, 0xca, 0x04, 0x0d,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xe5, 0xd4, 0x5f, 0x14, 0x70, 0x8b, 0x62, 0xdf, 0xb1, 0x06, 0x88, 0x12, 0xdb, 0x92, 0x17, 0x1f, 0x46, 0x81, 0x17, 0x32, 0xad, 0x23, 0xcb, 0x3d, 0x16, 0x9b, 0x2a, 0x18, 0x7b, 0x82, 0x20, 0x0e, 0xff, 0x50, 0xba, 0x53, 0x0e, 0x75, 0x59, 0x68, 0x8d, 0xaf, 0xfc, 0xce, 0xda, 0x55, 0x4e, 0xb3, 0x2e, 0xe5, 0xde, 0xfe, 0x9b, 0xb7, 0x7a, 0x63, 0xf6, 0x56, 0x6f, 0xbc, 0x99, 0xeb, 0xca, 0x6c, 0xae, 0x2b, 0xbf, 0x5e, 0xe8, 0x8d, 0x3f, 0x2e, 0x74, 0x65, 0x76, 0xa1, 0x37, 0xfe, 0xb9, 0xd0, 0x1b, 0xaf, 0x1f, 0x0c, 0x09, 0x1b, 0xc5, 0x83, 0x9e, 0x1d, 0x78, 0xdb, 0x74, 0xe2, 0xdb, 0x6c, 0x44, 0xfc, 0xe1, 0xd2, 0x6b, 0xf1, 0x3b, 0x1d, 0x34, 0xe5, 0xbf, 0xf3, 0xc9, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x19, 0xb2, 0x3c, 0x8e, 0x07, 0x00, 0x00, } func (m *GUIConfiguration) Marshal() (dAtA []byte, err error) { size := m.ProtoSize() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *GUIConfiguration) MarshalTo(dAtA []byte) (int, error) { size := m.ProtoSize() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *GUIConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.SendBasicAuthPrompt { i-- if m.SendBasicAuthPrompt { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x70 } if m.InsecureAllowFrameLoading { i-- if m.InsecureAllowFrameLoading { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x68 } if m.InsecureSkipHostCheck { i-- if m.InsecureSkipHostCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x60 } if m.Debugging { i-- if m.Debugging { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x58 } if len(m.Theme) > 0 { i -= len(m.Theme) copy(dAtA[i:], m.Theme) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.Theme))) i-- dAtA[i] = 0x52 } if m.InsecureAdminAccess { i-- if m.InsecureAdminAccess { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x48 } if len(m.APIKey) > 0 { i -= len(m.APIKey) copy(dAtA[i:], m.APIKey) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.APIKey))) i-- dAtA[i] = 0x42 } if m.RawUseTLS { i-- if m.RawUseTLS { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x38 } if m.AuthMode != 0 { i = encodeVarintGuiconfiguration(dAtA, i, uint64(m.AuthMode)) i-- dAtA[i] = 0x30 } if len(m.Password) > 0 { i -= len(m.Password) copy(dAtA[i:], m.Password) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.Password))) i-- dAtA[i] = 0x2a } if len(m.User) > 0 { i -= len(m.User) copy(dAtA[i:], m.User) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.User))) i-- dAtA[i] = 0x22 } if len(m.RawUnixSocketPermissions) > 0 { i -= len(m.RawUnixSocketPermissions) copy(dAtA[i:], m.RawUnixSocketPermissions) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.RawUnixSocketPermissions))) i-- dAtA[i] = 0x1a } if len(m.RawAddress) > 0 { i -= len(m.RawAddress) copy(dAtA[i:], m.RawAddress) i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.RawAddress))) i-- dAtA[i] = 0x12 } if m.Enabled { i-- if m.Enabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func encodeVarintGuiconfiguration(dAtA []byte, offset int, v uint64) int { offset -= sovGuiconfiguration(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *GUIConfiguration) ProtoSize() (n int) { if m == nil { return 0 } var l int _ = l if m.Enabled { n += 2 } l = len(m.RawAddress) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } l = len(m.RawUnixSocketPermissions) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } l = len(m.User) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } l = len(m.Password) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } if m.AuthMode != 0 { n += 1 + sovGuiconfiguration(uint64(m.AuthMode)) } if m.RawUseTLS { n += 2 } l = len(m.APIKey) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } if m.InsecureAdminAccess { n += 2 } l = len(m.Theme) if l > 0 { n += 1 + l + sovGuiconfiguration(uint64(l)) } if m.Debugging { n += 2 } if m.InsecureSkipHostCheck { n += 2 } if m.InsecureAllowFrameLoading { n += 2 } if m.SendBasicAuthPrompt { n += 2 } return n } func sovGuiconfiguration(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozGuiconfiguration(x uint64) (n int) { return sovGuiconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *GUIConfiguration) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: GUIConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: GUIConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Enabled = bool(v != 0) case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RawAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.RawAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RawUnixSocketPermissions", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.RawUnixSocketPermissions = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.User = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.Password = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AuthMode", wireType) } m.AuthMode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.AuthMode |= AuthMode(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RawUseTLS", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.RawUseTLS = bool(v != 0) case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field APIKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.APIKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field InsecureAdminAccess", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.InsecureAdminAccess = bool(v != 0) case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Theme", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthGuiconfiguration } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGuiconfiguration } if postIndex > l { return io.ErrUnexpectedEOF } m.Theme = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 11: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Debugging", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Debugging = bool(v != 0) case 12: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipHostCheck", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.InsecureSkipHostCheck = bool(v != 0) case 13: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field InsecureAllowFrameLoading", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.InsecureAllowFrameLoading = bool(v != 0) case 14: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SendBasicAuthPrompt", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGuiconfiguration } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.SendBasicAuthPrompt = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGuiconfiguration(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGuiconfiguration } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipGuiconfiguration(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowGuiconfiguration } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowGuiconfiguration } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowGuiconfiguration } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthGuiconfiguration } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupGuiconfiguration } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthGuiconfiguration } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthGuiconfiguration = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGuiconfiguration = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGuiconfiguration = fmt.Errorf("proto: unexpected end of group") )