gostfix.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.6.1
  5. // source: gostfix.proto
  6. package common
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type MailBody struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. PlainText string `protobuf:"bytes,1,opt,name=plainText,proto3" json:"plainText,omitempty"`
  28. RichText string `protobuf:"bytes,2,opt,name=richText,proto3" json:"richText,omitempty"`
  29. Attachments []*AttachmentHeader `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
  30. }
  31. func (x *MailBody) Reset() {
  32. *x = MailBody{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_gostfix_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *MailBody) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*MailBody) ProtoMessage() {}
  43. func (x *MailBody) ProtoReflect() protoreflect.Message {
  44. mi := &file_gostfix_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use MailBody.ProtoReflect.Descriptor instead.
  55. func (*MailBody) Descriptor() ([]byte, []int) {
  56. return file_gostfix_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *MailBody) GetPlainText() string {
  59. if x != nil {
  60. return x.PlainText
  61. }
  62. return ""
  63. }
  64. func (x *MailBody) GetRichText() string {
  65. if x != nil {
  66. return x.RichText
  67. }
  68. return ""
  69. }
  70. func (x *MailBody) GetAttachments() []*AttachmentHeader {
  71. if x != nil {
  72. return x.Attachments
  73. }
  74. return nil
  75. }
  76. type MailHeader struct {
  77. state protoimpl.MessageState
  78. sizeCache protoimpl.SizeCache
  79. unknownFields protoimpl.UnknownFields
  80. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
  81. To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
  82. Cc string `protobuf:"bytes,3,opt,name=cc,proto3" json:"cc,omitempty"`
  83. Bcc string `protobuf:"bytes,4,opt,name=bcc,proto3" json:"bcc,omitempty"`
  84. Date int64 `protobuf:"zigzag64,5,opt,name=date,proto3" json:"date,omitempty"`
  85. Subject string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
  86. }
  87. func (x *MailHeader) Reset() {
  88. *x = MailHeader{}
  89. if protoimpl.UnsafeEnabled {
  90. mi := &file_gostfix_proto_msgTypes[1]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. }
  95. func (x *MailHeader) String() string {
  96. return protoimpl.X.MessageStringOf(x)
  97. }
  98. func (*MailHeader) ProtoMessage() {}
  99. func (x *MailHeader) ProtoReflect() protoreflect.Message {
  100. mi := &file_gostfix_proto_msgTypes[1]
  101. if protoimpl.UnsafeEnabled && x != nil {
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. if ms.LoadMessageInfo() == nil {
  104. ms.StoreMessageInfo(mi)
  105. }
  106. return ms
  107. }
  108. return mi.MessageOf(x)
  109. }
  110. // Deprecated: Use MailHeader.ProtoReflect.Descriptor instead.
  111. func (*MailHeader) Descriptor() ([]byte, []int) {
  112. return file_gostfix_proto_rawDescGZIP(), []int{1}
  113. }
  114. func (x *MailHeader) GetFrom() string {
  115. if x != nil {
  116. return x.From
  117. }
  118. return ""
  119. }
  120. func (x *MailHeader) GetTo() string {
  121. if x != nil {
  122. return x.To
  123. }
  124. return ""
  125. }
  126. func (x *MailHeader) GetCc() string {
  127. if x != nil {
  128. return x.Cc
  129. }
  130. return ""
  131. }
  132. func (x *MailHeader) GetBcc() string {
  133. if x != nil {
  134. return x.Bcc
  135. }
  136. return ""
  137. }
  138. func (x *MailHeader) GetDate() int64 {
  139. if x != nil {
  140. return x.Date
  141. }
  142. return 0
  143. }
  144. func (x *MailHeader) GetSubject() string {
  145. if x != nil {
  146. return x.Subject
  147. }
  148. return ""
  149. }
  150. type Mail struct {
  151. state protoimpl.MessageState
  152. sizeCache protoimpl.SizeCache
  153. unknownFields protoimpl.UnknownFields
  154. Header *MailHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  155. Body *MailBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
  156. }
  157. func (x *Mail) Reset() {
  158. *x = Mail{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_gostfix_proto_msgTypes[2]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *Mail) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*Mail) ProtoMessage() {}
  169. func (x *Mail) ProtoReflect() protoreflect.Message {
  170. mi := &file_gostfix_proto_msgTypes[2]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use Mail.ProtoReflect.Descriptor instead.
  181. func (*Mail) Descriptor() ([]byte, []int) {
  182. return file_gostfix_proto_rawDescGZIP(), []int{2}
  183. }
  184. func (x *Mail) GetHeader() *MailHeader {
  185. if x != nil {
  186. return x.Header
  187. }
  188. return nil
  189. }
  190. func (x *Mail) GetBody() *MailBody {
  191. if x != nil {
  192. return x.Body
  193. }
  194. return nil
  195. }
  196. type Attachment struct {
  197. state protoimpl.MessageState
  198. sizeCache protoimpl.SizeCache
  199. unknownFields protoimpl.UnknownFields
  200. Header *AttachmentHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  201. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  202. }
  203. func (x *Attachment) Reset() {
  204. *x = Attachment{}
  205. if protoimpl.UnsafeEnabled {
  206. mi := &file_gostfix_proto_msgTypes[3]
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. ms.StoreMessageInfo(mi)
  209. }
  210. }
  211. func (x *Attachment) String() string {
  212. return protoimpl.X.MessageStringOf(x)
  213. }
  214. func (*Attachment) ProtoMessage() {}
  215. func (x *Attachment) ProtoReflect() protoreflect.Message {
  216. mi := &file_gostfix_proto_msgTypes[3]
  217. if protoimpl.UnsafeEnabled && x != nil {
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. if ms.LoadMessageInfo() == nil {
  220. ms.StoreMessageInfo(mi)
  221. }
  222. return ms
  223. }
  224. return mi.MessageOf(x)
  225. }
  226. // Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
  227. func (*Attachment) Descriptor() ([]byte, []int) {
  228. return file_gostfix_proto_rawDescGZIP(), []int{3}
  229. }
  230. func (x *Attachment) GetHeader() *AttachmentHeader {
  231. if x != nil {
  232. return x.Header
  233. }
  234. return nil
  235. }
  236. func (x *Attachment) GetData() []byte {
  237. if x != nil {
  238. return x.Data
  239. }
  240. return nil
  241. }
  242. type AttachmentHeader struct {
  243. state protoimpl.MessageState
  244. sizeCache protoimpl.SizeCache
  245. unknownFields protoimpl.UnknownFields
  246. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  247. FileName string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
  248. ContentType string `protobuf:"bytes,3,opt,name=contentType,proto3" json:"contentType,omitempty"`
  249. }
  250. func (x *AttachmentHeader) Reset() {
  251. *x = AttachmentHeader{}
  252. if protoimpl.UnsafeEnabled {
  253. mi := &file_gostfix_proto_msgTypes[4]
  254. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  255. ms.StoreMessageInfo(mi)
  256. }
  257. }
  258. func (x *AttachmentHeader) String() string {
  259. return protoimpl.X.MessageStringOf(x)
  260. }
  261. func (*AttachmentHeader) ProtoMessage() {}
  262. func (x *AttachmentHeader) ProtoReflect() protoreflect.Message {
  263. mi := &file_gostfix_proto_msgTypes[4]
  264. if protoimpl.UnsafeEnabled && x != nil {
  265. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  266. if ms.LoadMessageInfo() == nil {
  267. ms.StoreMessageInfo(mi)
  268. }
  269. return ms
  270. }
  271. return mi.MessageOf(x)
  272. }
  273. // Deprecated: Use AttachmentHeader.ProtoReflect.Descriptor instead.
  274. func (*AttachmentHeader) Descriptor() ([]byte, []int) {
  275. return file_gostfix_proto_rawDescGZIP(), []int{4}
  276. }
  277. func (x *AttachmentHeader) GetId() string {
  278. if x != nil {
  279. return x.Id
  280. }
  281. return ""
  282. }
  283. func (x *AttachmentHeader) GetFileName() string {
  284. if x != nil {
  285. return x.FileName
  286. }
  287. return ""
  288. }
  289. func (x *AttachmentHeader) GetContentType() string {
  290. if x != nil {
  291. return x.ContentType
  292. }
  293. return ""
  294. }
  295. type UserInfo struct {
  296. state protoimpl.MessageState
  297. sizeCache protoimpl.SizeCache
  298. unknownFields protoimpl.UnknownFields
  299. User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  300. FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
  301. }
  302. func (x *UserInfo) Reset() {
  303. *x = UserInfo{}
  304. if protoimpl.UnsafeEnabled {
  305. mi := &file_gostfix_proto_msgTypes[5]
  306. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  307. ms.StoreMessageInfo(mi)
  308. }
  309. }
  310. func (x *UserInfo) String() string {
  311. return protoimpl.X.MessageStringOf(x)
  312. }
  313. func (*UserInfo) ProtoMessage() {}
  314. func (x *UserInfo) ProtoReflect() protoreflect.Message {
  315. mi := &file_gostfix_proto_msgTypes[5]
  316. if protoimpl.UnsafeEnabled && x != nil {
  317. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  318. if ms.LoadMessageInfo() == nil {
  319. ms.StoreMessageInfo(mi)
  320. }
  321. return ms
  322. }
  323. return mi.MessageOf(x)
  324. }
  325. // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
  326. func (*UserInfo) Descriptor() ([]byte, []int) {
  327. return file_gostfix_proto_rawDescGZIP(), []int{5}
  328. }
  329. func (x *UserInfo) GetUser() string {
  330. if x != nil {
  331. return x.User
  332. }
  333. return ""
  334. }
  335. func (x *UserInfo) GetFullName() string {
  336. if x != nil {
  337. return x.FullName
  338. }
  339. return ""
  340. }
  341. type Frame struct {
  342. state protoimpl.MessageState
  343. sizeCache protoimpl.SizeCache
  344. unknownFields protoimpl.UnknownFields
  345. Skip int32 `protobuf:"zigzag32,1,opt,name=skip,proto3" json:"skip,omitempty"`
  346. Limit int32 `protobuf:"zigzag32,2,opt,name=limit,proto3" json:"limit,omitempty"`
  347. }
  348. func (x *Frame) Reset() {
  349. *x = Frame{}
  350. if protoimpl.UnsafeEnabled {
  351. mi := &file_gostfix_proto_msgTypes[6]
  352. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  353. ms.StoreMessageInfo(mi)
  354. }
  355. }
  356. func (x *Frame) String() string {
  357. return protoimpl.X.MessageStringOf(x)
  358. }
  359. func (*Frame) ProtoMessage() {}
  360. func (x *Frame) ProtoReflect() protoreflect.Message {
  361. mi := &file_gostfix_proto_msgTypes[6]
  362. if protoimpl.UnsafeEnabled && x != nil {
  363. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  364. if ms.LoadMessageInfo() == nil {
  365. ms.StoreMessageInfo(mi)
  366. }
  367. return ms
  368. }
  369. return mi.MessageOf(x)
  370. }
  371. // Deprecated: Use Frame.ProtoReflect.Descriptor instead.
  372. func (*Frame) Descriptor() ([]byte, []int) {
  373. return file_gostfix_proto_rawDescGZIP(), []int{6}
  374. }
  375. func (x *Frame) GetSkip() int32 {
  376. if x != nil {
  377. return x.Skip
  378. }
  379. return 0
  380. }
  381. func (x *Frame) GetLimit() int32 {
  382. if x != nil {
  383. return x.Limit
  384. }
  385. return 0
  386. }
  387. type Folder struct {
  388. state protoimpl.MessageState
  389. sizeCache protoimpl.SizeCache
  390. unknownFields protoimpl.UnknownFields
  391. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  392. Custom bool `protobuf:"varint,2,opt,name=custom,proto3" json:"custom,omitempty"`
  393. }
  394. func (x *Folder) Reset() {
  395. *x = Folder{}
  396. if protoimpl.UnsafeEnabled {
  397. mi := &file_gostfix_proto_msgTypes[7]
  398. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  399. ms.StoreMessageInfo(mi)
  400. }
  401. }
  402. func (x *Folder) String() string {
  403. return protoimpl.X.MessageStringOf(x)
  404. }
  405. func (*Folder) ProtoMessage() {}
  406. func (x *Folder) ProtoReflect() protoreflect.Message {
  407. mi := &file_gostfix_proto_msgTypes[7]
  408. if protoimpl.UnsafeEnabled && x != nil {
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. if ms.LoadMessageInfo() == nil {
  411. ms.StoreMessageInfo(mi)
  412. }
  413. return ms
  414. }
  415. return mi.MessageOf(x)
  416. }
  417. // Deprecated: Use Folder.ProtoReflect.Descriptor instead.
  418. func (*Folder) Descriptor() ([]byte, []int) {
  419. return file_gostfix_proto_rawDescGZIP(), []int{7}
  420. }
  421. func (x *Folder) GetName() string {
  422. if x != nil {
  423. return x.Name
  424. }
  425. return ""
  426. }
  427. func (x *Folder) GetCustom() bool {
  428. if x != nil {
  429. return x.Custom
  430. }
  431. return false
  432. }
  433. type FolderStat struct {
  434. state protoimpl.MessageState
  435. sizeCache protoimpl.SizeCache
  436. unknownFields protoimpl.UnknownFields
  437. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
  438. Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  439. Unread uint32 `protobuf:"varint,3,opt,name=unread,proto3" json:"unread,omitempty"`
  440. }
  441. func (x *FolderStat) Reset() {
  442. *x = FolderStat{}
  443. if protoimpl.UnsafeEnabled {
  444. mi := &file_gostfix_proto_msgTypes[8]
  445. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  446. ms.StoreMessageInfo(mi)
  447. }
  448. }
  449. func (x *FolderStat) String() string {
  450. return protoimpl.X.MessageStringOf(x)
  451. }
  452. func (*FolderStat) ProtoMessage() {}
  453. func (x *FolderStat) ProtoReflect() protoreflect.Message {
  454. mi := &file_gostfix_proto_msgTypes[8]
  455. if protoimpl.UnsafeEnabled && x != nil {
  456. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  457. if ms.LoadMessageInfo() == nil {
  458. ms.StoreMessageInfo(mi)
  459. }
  460. return ms
  461. }
  462. return mi.MessageOf(x)
  463. }
  464. // Deprecated: Use FolderStat.ProtoReflect.Descriptor instead.
  465. func (*FolderStat) Descriptor() ([]byte, []int) {
  466. return file_gostfix_proto_rawDescGZIP(), []int{8}
  467. }
  468. func (x *FolderStat) GetFolder() string {
  469. if x != nil {
  470. return x.Folder
  471. }
  472. return ""
  473. }
  474. func (x *FolderStat) GetTotal() uint32 {
  475. if x != nil {
  476. return x.Total
  477. }
  478. return 0
  479. }
  480. func (x *FolderStat) GetUnread() uint32 {
  481. if x != nil {
  482. return x.Unread
  483. }
  484. return 0
  485. }
  486. var File_gostfix_proto protoreflect.FileDescriptor
  487. var file_gostfix_proto_rawDesc = []byte{
  488. 0x0a, 0x0d, 0x67, 0x6f, 0x73, 0x74, 0x66, 0x69, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  489. 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x08, 0x4d, 0x61, 0x69, 0x6c,
  490. 0x42, 0x6f, 0x64, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54, 0x65, 0x78,
  491. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54, 0x65,
  492. 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x69, 0x63, 0x68, 0x54, 0x65, 0x78, 0x74, 0x18, 0x02,
  493. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x69, 0x63, 0x68, 0x54, 0x65, 0x78, 0x74, 0x12, 0x3a,
  494. 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20,
  495. 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x74,
  496. 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0b, 0x61,
  497. 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0a, 0x4d,
  498. 0x61, 0x69, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f,
  499. 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a,
  500. 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x0e, 0x0a,
  501. 0x02, 0x63, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x63, 0x63, 0x12, 0x10, 0x0a,
  502. 0x03, 0x62, 0x63, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x63, 0x63, 0x12,
  503. 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x12, 0x52, 0x04, 0x64,
  504. 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06,
  505. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x58, 0x0a,
  506. 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
  507. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d,
  508. 0x61, 0x69, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
  509. 0x72, 0x12, 0x24, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  510. 0x10, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x6f, 0x64,
  511. 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x52, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63,
  512. 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
  513. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
  514. 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
  515. 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
  516. 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x10, 0x41,
  517. 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
  518. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
  519. 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  520. 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63,
  521. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  522. 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x0a,
  523. 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65,
  524. 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a,
  525. 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  526. 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x05, 0x46, 0x72, 0x61,
  527. 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x11,
  528. 0x52, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18,
  529. 0x02, 0x20, 0x01, 0x28, 0x11, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x34, 0x0a, 0x06,
  530. 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  531. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75,
  532. 0x73, 0x74, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x63, 0x75, 0x73, 0x74,
  533. 0x6f, 0x6d, 0x22, 0x52, 0x0a, 0x0a, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74,
  534. 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  535. 0x52, 0x06, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61,
  536. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x16,
  537. 0x0a, 0x06, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
  538. 0x75, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  539. }
  540. var (
  541. file_gostfix_proto_rawDescOnce sync.Once
  542. file_gostfix_proto_rawDescData = file_gostfix_proto_rawDesc
  543. )
  544. func file_gostfix_proto_rawDescGZIP() []byte {
  545. file_gostfix_proto_rawDescOnce.Do(func() {
  546. file_gostfix_proto_rawDescData = protoimpl.X.CompressGZIP(file_gostfix_proto_rawDescData)
  547. })
  548. return file_gostfix_proto_rawDescData
  549. }
  550. var file_gostfix_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  551. var file_gostfix_proto_goTypes = []interface{}{
  552. (*MailBody)(nil), // 0: common.MailBody
  553. (*MailHeader)(nil), // 1: common.MailHeader
  554. (*Mail)(nil), // 2: common.Mail
  555. (*Attachment)(nil), // 3: common.Attachment
  556. (*AttachmentHeader)(nil), // 4: common.AttachmentHeader
  557. (*UserInfo)(nil), // 5: common.UserInfo
  558. (*Frame)(nil), // 6: common.Frame
  559. (*Folder)(nil), // 7: common.Folder
  560. (*FolderStat)(nil), // 8: common.FolderStat
  561. }
  562. var file_gostfix_proto_depIdxs = []int32{
  563. 4, // 0: common.MailBody.attachments:type_name -> common.AttachmentHeader
  564. 1, // 1: common.Mail.header:type_name -> common.MailHeader
  565. 0, // 2: common.Mail.body:type_name -> common.MailBody
  566. 4, // 3: common.Attachment.header:type_name -> common.AttachmentHeader
  567. 4, // [4:4] is the sub-list for method output_type
  568. 4, // [4:4] is the sub-list for method input_type
  569. 4, // [4:4] is the sub-list for extension type_name
  570. 4, // [4:4] is the sub-list for extension extendee
  571. 0, // [0:4] is the sub-list for field type_name
  572. }
  573. func init() { file_gostfix_proto_init() }
  574. func file_gostfix_proto_init() {
  575. if File_gostfix_proto != nil {
  576. return
  577. }
  578. if !protoimpl.UnsafeEnabled {
  579. file_gostfix_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  580. switch v := v.(*MailBody); i {
  581. case 0:
  582. return &v.state
  583. case 1:
  584. return &v.sizeCache
  585. case 2:
  586. return &v.unknownFields
  587. default:
  588. return nil
  589. }
  590. }
  591. file_gostfix_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  592. switch v := v.(*MailHeader); i {
  593. case 0:
  594. return &v.state
  595. case 1:
  596. return &v.sizeCache
  597. case 2:
  598. return &v.unknownFields
  599. default:
  600. return nil
  601. }
  602. }
  603. file_gostfix_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  604. switch v := v.(*Mail); i {
  605. case 0:
  606. return &v.state
  607. case 1:
  608. return &v.sizeCache
  609. case 2:
  610. return &v.unknownFields
  611. default:
  612. return nil
  613. }
  614. }
  615. file_gostfix_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  616. switch v := v.(*Attachment); i {
  617. case 0:
  618. return &v.state
  619. case 1:
  620. return &v.sizeCache
  621. case 2:
  622. return &v.unknownFields
  623. default:
  624. return nil
  625. }
  626. }
  627. file_gostfix_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  628. switch v := v.(*AttachmentHeader); i {
  629. case 0:
  630. return &v.state
  631. case 1:
  632. return &v.sizeCache
  633. case 2:
  634. return &v.unknownFields
  635. default:
  636. return nil
  637. }
  638. }
  639. file_gostfix_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  640. switch v := v.(*UserInfo); i {
  641. case 0:
  642. return &v.state
  643. case 1:
  644. return &v.sizeCache
  645. case 2:
  646. return &v.unknownFields
  647. default:
  648. return nil
  649. }
  650. }
  651. file_gostfix_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  652. switch v := v.(*Frame); i {
  653. case 0:
  654. return &v.state
  655. case 1:
  656. return &v.sizeCache
  657. case 2:
  658. return &v.unknownFields
  659. default:
  660. return nil
  661. }
  662. }
  663. file_gostfix_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  664. switch v := v.(*Folder); i {
  665. case 0:
  666. return &v.state
  667. case 1:
  668. return &v.sizeCache
  669. case 2:
  670. return &v.unknownFields
  671. default:
  672. return nil
  673. }
  674. }
  675. file_gostfix_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  676. switch v := v.(*FolderStat); i {
  677. case 0:
  678. return &v.state
  679. case 1:
  680. return &v.sizeCache
  681. case 2:
  682. return &v.unknownFields
  683. default:
  684. return nil
  685. }
  686. }
  687. }
  688. type x struct{}
  689. out := protoimpl.TypeBuilder{
  690. File: protoimpl.DescBuilder{
  691. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  692. RawDescriptor: file_gostfix_proto_rawDesc,
  693. NumEnums: 0,
  694. NumMessages: 9,
  695. NumExtensions: 0,
  696. NumServices: 0,
  697. },
  698. GoTypes: file_gostfix_proto_goTypes,
  699. DependencyIndexes: file_gostfix_proto_depIdxs,
  700. MessageInfos: file_gostfix_proto_msgTypes,
  701. }.Build()
  702. File_gostfix_proto = out.File
  703. file_gostfix_proto_rawDesc = nil
  704. file_gostfix_proto_goTypes = nil
  705. file_gostfix_proto_depIdxs = nil
  706. }