guiconfiguration.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/guiconfiguration.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 GUIConfiguration struct {
  22. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled" xml:"enabled,attr" default:"true"`
  23. RawAddress string `protobuf:"bytes,2,opt,name=address,proto3" json:"address" xml:"address" default:"127.0.0.1:8384"`
  24. RawUnixSocketPermissions string `protobuf:"bytes,3,opt,name=unix_socket_permissions,json=unixSocketPermissions,proto3" json:"unixSocketPermissions" xml:"unixSocketPermissions,omitempty"`
  25. User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" xml:"user,omitempty"`
  26. Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password" xml:"password,omitempty"`
  27. AuthMode AuthMode `protobuf:"varint,6,opt,name=auth_mode,json=authMode,proto3,enum=config.AuthMode" json:"authMode" xml:"authMode,omitempty"`
  28. RawUseTLS bool `protobuf:"varint,7,opt,name=use_tls,json=useTls,proto3" json:"useTLS" xml:"tls,attr"`
  29. APIKey string `protobuf:"bytes,8,opt,name=api_key,json=apiKey,proto3" json:"apiKey" xml:"apikey,omitempty"`
  30. InsecureAdminAccess bool `protobuf:"varint,9,opt,name=insecure_admin_access,json=insecureAdminAccess,proto3" json:"insecureAdminAccess" xml:"insecureAdminAccess,omitempty"`
  31. Theme string `protobuf:"bytes,10,opt,name=theme,proto3" json:"theme" xml:"theme" default:"default"`
  32. Debugging bool `protobuf:"varint,11,opt,name=debugging,proto3" json:"debugging" xml:"debugging,attr"`
  33. InsecureSkipHostCheck bool `protobuf:"varint,12,opt,name=insecure_skip_host_check,json=insecureSkipHostCheck,proto3" json:"insecureSkipHostcheck" xml:"insecureSkipHostcheck,omitempty"`
  34. InsecureAllowFrameLoading bool `protobuf:"varint,13,opt,name=insecure_allow_frame_loading,json=insecureAllowFrameLoading,proto3" json:"insecureAllowFrameLoading" xml:"insecureAllowFrameLoading,omitempty"`
  35. }
  36. func (m *GUIConfiguration) Reset() { *m = GUIConfiguration{} }
  37. func (m *GUIConfiguration) String() string { return proto.CompactTextString(m) }
  38. func (*GUIConfiguration) ProtoMessage() {}
  39. func (*GUIConfiguration) Descriptor() ([]byte, []int) {
  40. return fileDescriptor_2a9586d611855d64, []int{0}
  41. }
  42. func (m *GUIConfiguration) XXX_Unmarshal(b []byte) error {
  43. return m.Unmarshal(b)
  44. }
  45. func (m *GUIConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  46. if deterministic {
  47. return xxx_messageInfo_GUIConfiguration.Marshal(b, m, deterministic)
  48. } else {
  49. b = b[:cap(b)]
  50. n, err := m.MarshalToSizedBuffer(b)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return b[:n], nil
  55. }
  56. }
  57. func (m *GUIConfiguration) XXX_Merge(src proto.Message) {
  58. xxx_messageInfo_GUIConfiguration.Merge(m, src)
  59. }
  60. func (m *GUIConfiguration) XXX_Size() int {
  61. return m.ProtoSize()
  62. }
  63. func (m *GUIConfiguration) XXX_DiscardUnknown() {
  64. xxx_messageInfo_GUIConfiguration.DiscardUnknown(m)
  65. }
  66. var xxx_messageInfo_GUIConfiguration proto.InternalMessageInfo
  67. func init() {
  68. proto.RegisterType((*GUIConfiguration)(nil), "config.GUIConfiguration")
  69. }
  70. func init() { proto.RegisterFile("lib/config/guiconfiguration.proto", fileDescriptor_2a9586d611855d64) }
  71. var fileDescriptor_2a9586d611855d64 = []byte{
  72. // 837 bytes of a gzipped FileDescriptorProto
  73. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcd, 0x6e, 0xdb, 0x46,
  74. 0x10, 0x16, 0x5b, 0x47, 0xb2, 0xb6, 0xae, 0x60, 0xb0, 0x4d, 0xcb, 0x04, 0x0d, 0xd7, 0x51, 0xd8,
  75. 0xc2, 0x01, 0x02, 0x39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xd2, 0xcb, 0x20, 0x72, 0xb4, 0x1b, 0x32, 0xd7, 0xf7, 0x09, 0x87, 0x25, 0x96, 0x72, 0xa8,
  98. 0xc9, 0x7c, 0x05, 0x50, 0xcd, 0xa9, 0x5e, 0x85, 0xcd, 0x32, 0x56, 0xf5, 0x40, 0x53, 0x6c, 0xa4,
  99. 0x25, 0x56, 0x52, 0xab, 0xef, 0x29, 0xfb, 0xad, 0xc3, 0xdd, 0x4e, 0xb6, 0xaa, 0x9d, 0x6e, 0xcc,
  100. 0x06, 0x3f, 0x06, 0x0e, 0xce, 0xe4, 0x50, 0x6e, 0x95, 0x72, 0x05, 0xb0, 0x26, 0x77, 0x15, 0x36,
  101. 0xcb, 0x58, 0x15, 0x83, 0x46, 0x4c, 0xb1, 0xc5, 0x5c, 0xaa, 0x35, 0xe4, 0x3a, 0x9f, 0xce, 0x39,
  102. 0x6c, 0x8a, 0xc1, 0x52, 0xfc, 0xd3, 0xe9, 0x59, 0xc2, 0x61, 0x3d, 0x96, 0xaf, 0x94, 0xc3, 0x96,
  103. 0x54, 0x61, 0x2e, 0xcd, 0xd6, 0x3a, 0x99, 0x1a, 0xdb, 0x85, 0x91, 0x4e, 0x8d, 0x9c, 0x37, 0x99,
  104. 0x19, 0xcb, 0x70, 0x53, 0x82, 0x2e, 0x15, 0x32, 0x28, 0x24, 0xd6, 0x10, 0x8f, 0xb5, 0x6d, 0x39,
  105. 0x30, 0x21, 0x53, 0xef, 0xbe, 0x7a, 0x79, 0x82, 0xc7, 0x42, 0x03, 0x85, 0xe4, 0x04, 0x8f, 0x53,
  106. 0x0e, 0xbf, 0xc8, 0x3a, 0x09, 0xc9, 0x10, 0x8f, 0xab, 0x7d, 0xec, 0xae, 0x83, 0x93, 0x99, 0x91,
  107. 0x67, 0x30, 0xf3, 0x78, 0xf5, 0x77, 0x05, 0xdc, 0x24, 0x3e, 0xc5, 0x76, 0x1c, 0x61, 0x0b, 0x39,
  108. 0x1e, 0xf1, 0x2d, 0x64, 0xdb, 0xe2, 0x8e, 0x9a, 0xb2, 0x39, 0x2b, 0xe1, 0xf0, 0xb3, 0x82, 0xd0,
  109. 0x15, 0xfe, 0xae, 0x74, 0xa7, 0x1c, 0xde, 0x93, 0xc2, 0x1b, 0x7c, 0xd5, 0x2a, 0xee, 0xfc, 0x27,
  110. 0xc3, 0xdc, 0x94, 0x5c, 0x3d, 0x01, 0x37, 0xd8, 0x00, 0x7b, 0x58, 0x03, 0xb2, 0xf5, 0xef, 0x12,
  111. 0x0e, 0x33, 0x20, 0xe5, 0xf0, 0x4e, 0x36, 0x53, 0x61, 0xad, 0x9c, 0x6e, 0xfe, 0x10, 0x37, 0xdb,
  112. 0xc8, 0xdf, 0x66, 0x16, 0xa2, 0x9e, 0x83, 0xa6, 0x83, 0x7b, 0x71, 0xbf, 0x4f, 0xfc, 0xbe, 0xf6,
  113. 0x89, 0xec, 0xea, 0x49, 0xc2, 0xe1, 0x12, 0x2c, 0xb7, 0xb9, 0x44, 0xca, 0xcf, 0xd5, 0xaa, 0x42,
  114. 0xe6, 0x32, 0x48, 0xfd, 0x5b, 0x01, 0x5a, 0x39, 0x39, 0x3a, 0x24, 0xa1, 0x35, 0x08, 0x28, 0xb3,
  115. 0xec, 0x01, 0xb6, 0x87, 0xda, 0x8e, 0x94, 0xf9, 0x55, 0xdc, 0x75, 0xc1, 0x39, 0x1b, 0x92, 0xf0,
  116. 0x45, 0x40, 0x99, 0x24, 0x94, 0x77, 0xbd, 0xd1, 0xbb, 0x76, 0xd7, 0xd7, 0x70, 0xd2, 0xa9, 0xb1,
  117. 0x59, 0xc4, 0xbc, 0x02, 0x3f, 0x13, 0xb0, 0xfa, 0x97, 0x02, 0xbe, 0x5a, 0x7e, 0x73, 0xd7, 0x0d,
  118. 0x2e, 0xad, 0x8b, 0x08, 0x79, 0xd8, 0x72, 0x03, 0xe4, 0x88, 0x21, 0x7d, 0x2a, 0xab, 0xff, 0x39,
  119. 0xe1, 0xf0, 0x56, 0xf9, 0x75, 0x04, 0xed, 0xb9, 0x60, 0x9d, 0x66, 0xa4, 0x94, 0xc3, 0xfb, 0xd5,
  120. 0x05, 0x58, 0x67, 0x54, 0xbb, 0xb8, 0xf7, 0x3f, 0x78, 0xe6, 0x87, 0xe5, 0x8e, 0x4f, 0xde, 0xbc,
  121. 0xd3, 0x6b, 0xb3, 0x77, 0x7a, 0xed, 0xcd, 0x5c, 0x57, 0x66, 0x73, 0x5d, 0xf9, 0x6d, 0xa1, 0xd7,
  122. 0xfe, 0x5c, 0xe8, 0xca, 0x6c, 0xa1, 0xd7, 0xde, 0x2e, 0xf4, 0xda, 0xeb, 0xfb, 0x7d, 0xc2, 0x06,
  123. 0x71, 0xaf, 0x63, 0x07, 0xde, 0x01, 0x1d, 0xfb, 0x36, 0x1b, 0x10, 0xbf, 0xbf, 0xf2, 0x5a, 0xfe,
  124. 0xc1, 0x7a, 0x75, 0xf9, 0xbb, 0x7a, 0xfc, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x8c, 0xef,
  125. 0xc0, 0x01, 0x07, 0x00, 0x00,
  126. }
  127. func (m *GUIConfiguration) Marshal() (dAtA []byte, err error) {
  128. size := m.ProtoSize()
  129. dAtA = make([]byte, size)
  130. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  131. if err != nil {
  132. return nil, err
  133. }
  134. return dAtA[:n], nil
  135. }
  136. func (m *GUIConfiguration) MarshalTo(dAtA []byte) (int, error) {
  137. size := m.ProtoSize()
  138. return m.MarshalToSizedBuffer(dAtA[:size])
  139. }
  140. func (m *GUIConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  141. i := len(dAtA)
  142. _ = i
  143. var l int
  144. _ = l
  145. if m.InsecureAllowFrameLoading {
  146. i--
  147. if m.InsecureAllowFrameLoading {
  148. dAtA[i] = 1
  149. } else {
  150. dAtA[i] = 0
  151. }
  152. i--
  153. dAtA[i] = 0x68
  154. }
  155. if m.InsecureSkipHostCheck {
  156. i--
  157. if m.InsecureSkipHostCheck {
  158. dAtA[i] = 1
  159. } else {
  160. dAtA[i] = 0
  161. }
  162. i--
  163. dAtA[i] = 0x60
  164. }
  165. if m.Debugging {
  166. i--
  167. if m.Debugging {
  168. dAtA[i] = 1
  169. } else {
  170. dAtA[i] = 0
  171. }
  172. i--
  173. dAtA[i] = 0x58
  174. }
  175. if len(m.Theme) > 0 {
  176. i -= len(m.Theme)
  177. copy(dAtA[i:], m.Theme)
  178. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.Theme)))
  179. i--
  180. dAtA[i] = 0x52
  181. }
  182. if m.InsecureAdminAccess {
  183. i--
  184. if m.InsecureAdminAccess {
  185. dAtA[i] = 1
  186. } else {
  187. dAtA[i] = 0
  188. }
  189. i--
  190. dAtA[i] = 0x48
  191. }
  192. if len(m.APIKey) > 0 {
  193. i -= len(m.APIKey)
  194. copy(dAtA[i:], m.APIKey)
  195. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.APIKey)))
  196. i--
  197. dAtA[i] = 0x42
  198. }
  199. if m.RawUseTLS {
  200. i--
  201. if m.RawUseTLS {
  202. dAtA[i] = 1
  203. } else {
  204. dAtA[i] = 0
  205. }
  206. i--
  207. dAtA[i] = 0x38
  208. }
  209. if m.AuthMode != 0 {
  210. i = encodeVarintGuiconfiguration(dAtA, i, uint64(m.AuthMode))
  211. i--
  212. dAtA[i] = 0x30
  213. }
  214. if len(m.Password) > 0 {
  215. i -= len(m.Password)
  216. copy(dAtA[i:], m.Password)
  217. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.Password)))
  218. i--
  219. dAtA[i] = 0x2a
  220. }
  221. if len(m.User) > 0 {
  222. i -= len(m.User)
  223. copy(dAtA[i:], m.User)
  224. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.User)))
  225. i--
  226. dAtA[i] = 0x22
  227. }
  228. if len(m.RawUnixSocketPermissions) > 0 {
  229. i -= len(m.RawUnixSocketPermissions)
  230. copy(dAtA[i:], m.RawUnixSocketPermissions)
  231. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.RawUnixSocketPermissions)))
  232. i--
  233. dAtA[i] = 0x1a
  234. }
  235. if len(m.RawAddress) > 0 {
  236. i -= len(m.RawAddress)
  237. copy(dAtA[i:], m.RawAddress)
  238. i = encodeVarintGuiconfiguration(dAtA, i, uint64(len(m.RawAddress)))
  239. i--
  240. dAtA[i] = 0x12
  241. }
  242. if m.Enabled {
  243. i--
  244. if m.Enabled {
  245. dAtA[i] = 1
  246. } else {
  247. dAtA[i] = 0
  248. }
  249. i--
  250. dAtA[i] = 0x8
  251. }
  252. return len(dAtA) - i, nil
  253. }
  254. func encodeVarintGuiconfiguration(dAtA []byte, offset int, v uint64) int {
  255. offset -= sovGuiconfiguration(v)
  256. base := offset
  257. for v >= 1<<7 {
  258. dAtA[offset] = uint8(v&0x7f | 0x80)
  259. v >>= 7
  260. offset++
  261. }
  262. dAtA[offset] = uint8(v)
  263. return base
  264. }
  265. func (m *GUIConfiguration) ProtoSize() (n int) {
  266. if m == nil {
  267. return 0
  268. }
  269. var l int
  270. _ = l
  271. if m.Enabled {
  272. n += 2
  273. }
  274. l = len(m.RawAddress)
  275. if l > 0 {
  276. n += 1 + l + sovGuiconfiguration(uint64(l))
  277. }
  278. l = len(m.RawUnixSocketPermissions)
  279. if l > 0 {
  280. n += 1 + l + sovGuiconfiguration(uint64(l))
  281. }
  282. l = len(m.User)
  283. if l > 0 {
  284. n += 1 + l + sovGuiconfiguration(uint64(l))
  285. }
  286. l = len(m.Password)
  287. if l > 0 {
  288. n += 1 + l + sovGuiconfiguration(uint64(l))
  289. }
  290. if m.AuthMode != 0 {
  291. n += 1 + sovGuiconfiguration(uint64(m.AuthMode))
  292. }
  293. if m.RawUseTLS {
  294. n += 2
  295. }
  296. l = len(m.APIKey)
  297. if l > 0 {
  298. n += 1 + l + sovGuiconfiguration(uint64(l))
  299. }
  300. if m.InsecureAdminAccess {
  301. n += 2
  302. }
  303. l = len(m.Theme)
  304. if l > 0 {
  305. n += 1 + l + sovGuiconfiguration(uint64(l))
  306. }
  307. if m.Debugging {
  308. n += 2
  309. }
  310. if m.InsecureSkipHostCheck {
  311. n += 2
  312. }
  313. if m.InsecureAllowFrameLoading {
  314. n += 2
  315. }
  316. return n
  317. }
  318. func sovGuiconfiguration(x uint64) (n int) {
  319. return (math_bits.Len64(x|1) + 6) / 7
  320. }
  321. func sozGuiconfiguration(x uint64) (n int) {
  322. return sovGuiconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  323. }
  324. func (m *GUIConfiguration) Unmarshal(dAtA []byte) error {
  325. l := len(dAtA)
  326. iNdEx := 0
  327. for iNdEx < l {
  328. preIndex := iNdEx
  329. var wire uint64
  330. for shift := uint(0); ; shift += 7 {
  331. if shift >= 64 {
  332. return ErrIntOverflowGuiconfiguration
  333. }
  334. if iNdEx >= l {
  335. return io.ErrUnexpectedEOF
  336. }
  337. b := dAtA[iNdEx]
  338. iNdEx++
  339. wire |= uint64(b&0x7F) << shift
  340. if b < 0x80 {
  341. break
  342. }
  343. }
  344. fieldNum := int32(wire >> 3)
  345. wireType := int(wire & 0x7)
  346. if wireType == 4 {
  347. return fmt.Errorf("proto: GUIConfiguration: wiretype end group for non-group")
  348. }
  349. if fieldNum <= 0 {
  350. return fmt.Errorf("proto: GUIConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  351. }
  352. switch fieldNum {
  353. case 1:
  354. if wireType != 0 {
  355. return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
  356. }
  357. var v int
  358. for shift := uint(0); ; shift += 7 {
  359. if shift >= 64 {
  360. return ErrIntOverflowGuiconfiguration
  361. }
  362. if iNdEx >= l {
  363. return io.ErrUnexpectedEOF
  364. }
  365. b := dAtA[iNdEx]
  366. iNdEx++
  367. v |= int(b&0x7F) << shift
  368. if b < 0x80 {
  369. break
  370. }
  371. }
  372. m.Enabled = bool(v != 0)
  373. case 2:
  374. if wireType != 2 {
  375. return fmt.Errorf("proto: wrong wireType = %d for field RawAddress", wireType)
  376. }
  377. var stringLen uint64
  378. for shift := uint(0); ; shift += 7 {
  379. if shift >= 64 {
  380. return ErrIntOverflowGuiconfiguration
  381. }
  382. if iNdEx >= l {
  383. return io.ErrUnexpectedEOF
  384. }
  385. b := dAtA[iNdEx]
  386. iNdEx++
  387. stringLen |= uint64(b&0x7F) << shift
  388. if b < 0x80 {
  389. break
  390. }
  391. }
  392. intStringLen := int(stringLen)
  393. if intStringLen < 0 {
  394. return ErrInvalidLengthGuiconfiguration
  395. }
  396. postIndex := iNdEx + intStringLen
  397. if postIndex < 0 {
  398. return ErrInvalidLengthGuiconfiguration
  399. }
  400. if postIndex > l {
  401. return io.ErrUnexpectedEOF
  402. }
  403. m.RawAddress = string(dAtA[iNdEx:postIndex])
  404. iNdEx = postIndex
  405. case 3:
  406. if wireType != 2 {
  407. return fmt.Errorf("proto: wrong wireType = %d for field RawUnixSocketPermissions", wireType)
  408. }
  409. var stringLen uint64
  410. for shift := uint(0); ; shift += 7 {
  411. if shift >= 64 {
  412. return ErrIntOverflowGuiconfiguration
  413. }
  414. if iNdEx >= l {
  415. return io.ErrUnexpectedEOF
  416. }
  417. b := dAtA[iNdEx]
  418. iNdEx++
  419. stringLen |= uint64(b&0x7F) << shift
  420. if b < 0x80 {
  421. break
  422. }
  423. }
  424. intStringLen := int(stringLen)
  425. if intStringLen < 0 {
  426. return ErrInvalidLengthGuiconfiguration
  427. }
  428. postIndex := iNdEx + intStringLen
  429. if postIndex < 0 {
  430. return ErrInvalidLengthGuiconfiguration
  431. }
  432. if postIndex > l {
  433. return io.ErrUnexpectedEOF
  434. }
  435. m.RawUnixSocketPermissions = string(dAtA[iNdEx:postIndex])
  436. iNdEx = postIndex
  437. case 4:
  438. if wireType != 2 {
  439. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  440. }
  441. var stringLen uint64
  442. for shift := uint(0); ; shift += 7 {
  443. if shift >= 64 {
  444. return ErrIntOverflowGuiconfiguration
  445. }
  446. if iNdEx >= l {
  447. return io.ErrUnexpectedEOF
  448. }
  449. b := dAtA[iNdEx]
  450. iNdEx++
  451. stringLen |= uint64(b&0x7F) << shift
  452. if b < 0x80 {
  453. break
  454. }
  455. }
  456. intStringLen := int(stringLen)
  457. if intStringLen < 0 {
  458. return ErrInvalidLengthGuiconfiguration
  459. }
  460. postIndex := iNdEx + intStringLen
  461. if postIndex < 0 {
  462. return ErrInvalidLengthGuiconfiguration
  463. }
  464. if postIndex > l {
  465. return io.ErrUnexpectedEOF
  466. }
  467. m.User = string(dAtA[iNdEx:postIndex])
  468. iNdEx = postIndex
  469. case 5:
  470. if wireType != 2 {
  471. return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
  472. }
  473. var stringLen uint64
  474. for shift := uint(0); ; shift += 7 {
  475. if shift >= 64 {
  476. return ErrIntOverflowGuiconfiguration
  477. }
  478. if iNdEx >= l {
  479. return io.ErrUnexpectedEOF
  480. }
  481. b := dAtA[iNdEx]
  482. iNdEx++
  483. stringLen |= uint64(b&0x7F) << shift
  484. if b < 0x80 {
  485. break
  486. }
  487. }
  488. intStringLen := int(stringLen)
  489. if intStringLen < 0 {
  490. return ErrInvalidLengthGuiconfiguration
  491. }
  492. postIndex := iNdEx + intStringLen
  493. if postIndex < 0 {
  494. return ErrInvalidLengthGuiconfiguration
  495. }
  496. if postIndex > l {
  497. return io.ErrUnexpectedEOF
  498. }
  499. m.Password = string(dAtA[iNdEx:postIndex])
  500. iNdEx = postIndex
  501. case 6:
  502. if wireType != 0 {
  503. return fmt.Errorf("proto: wrong wireType = %d for field AuthMode", wireType)
  504. }
  505. m.AuthMode = 0
  506. for shift := uint(0); ; shift += 7 {
  507. if shift >= 64 {
  508. return ErrIntOverflowGuiconfiguration
  509. }
  510. if iNdEx >= l {
  511. return io.ErrUnexpectedEOF
  512. }
  513. b := dAtA[iNdEx]
  514. iNdEx++
  515. m.AuthMode |= AuthMode(b&0x7F) << shift
  516. if b < 0x80 {
  517. break
  518. }
  519. }
  520. case 7:
  521. if wireType != 0 {
  522. return fmt.Errorf("proto: wrong wireType = %d for field RawUseTLS", wireType)
  523. }
  524. var v int
  525. for shift := uint(0); ; shift += 7 {
  526. if shift >= 64 {
  527. return ErrIntOverflowGuiconfiguration
  528. }
  529. if iNdEx >= l {
  530. return io.ErrUnexpectedEOF
  531. }
  532. b := dAtA[iNdEx]
  533. iNdEx++
  534. v |= int(b&0x7F) << shift
  535. if b < 0x80 {
  536. break
  537. }
  538. }
  539. m.RawUseTLS = bool(v != 0)
  540. case 8:
  541. if wireType != 2 {
  542. return fmt.Errorf("proto: wrong wireType = %d for field APIKey", wireType)
  543. }
  544. var stringLen uint64
  545. for shift := uint(0); ; shift += 7 {
  546. if shift >= 64 {
  547. return ErrIntOverflowGuiconfiguration
  548. }
  549. if iNdEx >= l {
  550. return io.ErrUnexpectedEOF
  551. }
  552. b := dAtA[iNdEx]
  553. iNdEx++
  554. stringLen |= uint64(b&0x7F) << shift
  555. if b < 0x80 {
  556. break
  557. }
  558. }
  559. intStringLen := int(stringLen)
  560. if intStringLen < 0 {
  561. return ErrInvalidLengthGuiconfiguration
  562. }
  563. postIndex := iNdEx + intStringLen
  564. if postIndex < 0 {
  565. return ErrInvalidLengthGuiconfiguration
  566. }
  567. if postIndex > l {
  568. return io.ErrUnexpectedEOF
  569. }
  570. m.APIKey = string(dAtA[iNdEx:postIndex])
  571. iNdEx = postIndex
  572. case 9:
  573. if wireType != 0 {
  574. return fmt.Errorf("proto: wrong wireType = %d for field InsecureAdminAccess", wireType)
  575. }
  576. var v int
  577. for shift := uint(0); ; shift += 7 {
  578. if shift >= 64 {
  579. return ErrIntOverflowGuiconfiguration
  580. }
  581. if iNdEx >= l {
  582. return io.ErrUnexpectedEOF
  583. }
  584. b := dAtA[iNdEx]
  585. iNdEx++
  586. v |= int(b&0x7F) << shift
  587. if b < 0x80 {
  588. break
  589. }
  590. }
  591. m.InsecureAdminAccess = bool(v != 0)
  592. case 10:
  593. if wireType != 2 {
  594. return fmt.Errorf("proto: wrong wireType = %d for field Theme", wireType)
  595. }
  596. var stringLen uint64
  597. for shift := uint(0); ; shift += 7 {
  598. if shift >= 64 {
  599. return ErrIntOverflowGuiconfiguration
  600. }
  601. if iNdEx >= l {
  602. return io.ErrUnexpectedEOF
  603. }
  604. b := dAtA[iNdEx]
  605. iNdEx++
  606. stringLen |= uint64(b&0x7F) << shift
  607. if b < 0x80 {
  608. break
  609. }
  610. }
  611. intStringLen := int(stringLen)
  612. if intStringLen < 0 {
  613. return ErrInvalidLengthGuiconfiguration
  614. }
  615. postIndex := iNdEx + intStringLen
  616. if postIndex < 0 {
  617. return ErrInvalidLengthGuiconfiguration
  618. }
  619. if postIndex > l {
  620. return io.ErrUnexpectedEOF
  621. }
  622. m.Theme = string(dAtA[iNdEx:postIndex])
  623. iNdEx = postIndex
  624. case 11:
  625. if wireType != 0 {
  626. return fmt.Errorf("proto: wrong wireType = %d for field Debugging", wireType)
  627. }
  628. var v int
  629. for shift := uint(0); ; shift += 7 {
  630. if shift >= 64 {
  631. return ErrIntOverflowGuiconfiguration
  632. }
  633. if iNdEx >= l {
  634. return io.ErrUnexpectedEOF
  635. }
  636. b := dAtA[iNdEx]
  637. iNdEx++
  638. v |= int(b&0x7F) << shift
  639. if b < 0x80 {
  640. break
  641. }
  642. }
  643. m.Debugging = bool(v != 0)
  644. case 12:
  645. if wireType != 0 {
  646. return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipHostCheck", wireType)
  647. }
  648. var v int
  649. for shift := uint(0); ; shift += 7 {
  650. if shift >= 64 {
  651. return ErrIntOverflowGuiconfiguration
  652. }
  653. if iNdEx >= l {
  654. return io.ErrUnexpectedEOF
  655. }
  656. b := dAtA[iNdEx]
  657. iNdEx++
  658. v |= int(b&0x7F) << shift
  659. if b < 0x80 {
  660. break
  661. }
  662. }
  663. m.InsecureSkipHostCheck = bool(v != 0)
  664. case 13:
  665. if wireType != 0 {
  666. return fmt.Errorf("proto: wrong wireType = %d for field InsecureAllowFrameLoading", wireType)
  667. }
  668. var v int
  669. for shift := uint(0); ; shift += 7 {
  670. if shift >= 64 {
  671. return ErrIntOverflowGuiconfiguration
  672. }
  673. if iNdEx >= l {
  674. return io.ErrUnexpectedEOF
  675. }
  676. b := dAtA[iNdEx]
  677. iNdEx++
  678. v |= int(b&0x7F) << shift
  679. if b < 0x80 {
  680. break
  681. }
  682. }
  683. m.InsecureAllowFrameLoading = bool(v != 0)
  684. default:
  685. iNdEx = preIndex
  686. skippy, err := skipGuiconfiguration(dAtA[iNdEx:])
  687. if err != nil {
  688. return err
  689. }
  690. if skippy < 0 {
  691. return ErrInvalidLengthGuiconfiguration
  692. }
  693. if (iNdEx + skippy) < 0 {
  694. return ErrInvalidLengthGuiconfiguration
  695. }
  696. if (iNdEx + skippy) > l {
  697. return io.ErrUnexpectedEOF
  698. }
  699. iNdEx += skippy
  700. }
  701. }
  702. if iNdEx > l {
  703. return io.ErrUnexpectedEOF
  704. }
  705. return nil
  706. }
  707. func skipGuiconfiguration(dAtA []byte) (n int, err error) {
  708. l := len(dAtA)
  709. iNdEx := 0
  710. depth := 0
  711. for iNdEx < l {
  712. var wire uint64
  713. for shift := uint(0); ; shift += 7 {
  714. if shift >= 64 {
  715. return 0, ErrIntOverflowGuiconfiguration
  716. }
  717. if iNdEx >= l {
  718. return 0, io.ErrUnexpectedEOF
  719. }
  720. b := dAtA[iNdEx]
  721. iNdEx++
  722. wire |= (uint64(b) & 0x7F) << shift
  723. if b < 0x80 {
  724. break
  725. }
  726. }
  727. wireType := int(wire & 0x7)
  728. switch wireType {
  729. case 0:
  730. for shift := uint(0); ; shift += 7 {
  731. if shift >= 64 {
  732. return 0, ErrIntOverflowGuiconfiguration
  733. }
  734. if iNdEx >= l {
  735. return 0, io.ErrUnexpectedEOF
  736. }
  737. iNdEx++
  738. if dAtA[iNdEx-1] < 0x80 {
  739. break
  740. }
  741. }
  742. case 1:
  743. iNdEx += 8
  744. case 2:
  745. var length int
  746. for shift := uint(0); ; shift += 7 {
  747. if shift >= 64 {
  748. return 0, ErrIntOverflowGuiconfiguration
  749. }
  750. if iNdEx >= l {
  751. return 0, io.ErrUnexpectedEOF
  752. }
  753. b := dAtA[iNdEx]
  754. iNdEx++
  755. length |= (int(b) & 0x7F) << shift
  756. if b < 0x80 {
  757. break
  758. }
  759. }
  760. if length < 0 {
  761. return 0, ErrInvalidLengthGuiconfiguration
  762. }
  763. iNdEx += length
  764. case 3:
  765. depth++
  766. case 4:
  767. if depth == 0 {
  768. return 0, ErrUnexpectedEndOfGroupGuiconfiguration
  769. }
  770. depth--
  771. case 5:
  772. iNdEx += 4
  773. default:
  774. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  775. }
  776. if iNdEx < 0 {
  777. return 0, ErrInvalidLengthGuiconfiguration
  778. }
  779. if depth == 0 {
  780. return iNdEx, nil
  781. }
  782. }
  783. return 0, io.ErrUnexpectedEOF
  784. }
  785. var (
  786. ErrInvalidLengthGuiconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  787. ErrIntOverflowGuiconfiguration = fmt.Errorf("proto: integer overflow")
  788. ErrUnexpectedEndOfGroupGuiconfiguration = fmt.Errorf("proto: unexpected end of group")
  789. )