ticket.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.25.1
  5. // source: ticket.proto
  6. package ticket
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type MessageProvider int32
  20. const (
  21. MessageProvider_UnknownMessageProvider MessageProvider = 0
  22. MessageProvider_EmailMessageProvider MessageProvider = 1
  23. MessageProvider_ChatMessageProvider MessageProvider = 2
  24. MessageProvider_GptMessageProvider MessageProvider = 3
  25. MessageProvider_ApiMessageProvider MessageProvider = 4
  26. MessageProvider_FunctionProvider MessageProvider = 5
  27. )
  28. // Enum value maps for MessageProvider.
  29. var (
  30. MessageProvider_name = map[int32]string{
  31. 0: "UnknownMessageProvider",
  32. 1: "EmailMessageProvider",
  33. 2: "ChatMessageProvider",
  34. 3: "GptMessageProvider",
  35. 4: "ApiMessageProvider",
  36. 5: "FunctionProvider",
  37. }
  38. MessageProvider_value = map[string]int32{
  39. "UnknownMessageProvider": 0,
  40. "EmailMessageProvider": 1,
  41. "ChatMessageProvider": 2,
  42. "GptMessageProvider": 3,
  43. "ApiMessageProvider": 4,
  44. "FunctionProvider": 5,
  45. }
  46. )
  47. func (x MessageProvider) Enum() *MessageProvider {
  48. p := new(MessageProvider)
  49. *p = x
  50. return p
  51. }
  52. func (x MessageProvider) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (MessageProvider) Descriptor() protoreflect.EnumDescriptor {
  56. return file_ticket_proto_enumTypes[0].Descriptor()
  57. }
  58. func (MessageProvider) Type() protoreflect.EnumType {
  59. return &file_ticket_proto_enumTypes[0]
  60. }
  61. func (x MessageProvider) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use MessageProvider.Descriptor instead.
  65. func (MessageProvider) EnumDescriptor() ([]byte, []int) {
  66. return file_ticket_proto_rawDescGZIP(), []int{0}
  67. }
  68. type Message struct {
  69. state protoimpl.MessageState
  70. sizeCache protoimpl.SizeCache
  71. unknownFields protoimpl.UnknownFields
  72. TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
  73. Provider MessageProvider `protobuf:"varint,2,opt,name=provider,proto3,enum=ticket.MessageProvider" json:"provider,omitempty"`
  74. Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
  75. Date int64 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"`
  76. Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
  77. Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
  78. Flags []byte `protobuf:"bytes,7,opt,name=flags,proto3" json:"flags,omitempty"`
  79. Headers []*Message_Header `protobuf:"bytes,10,rep,name=headers,proto3" json:"headers,omitempty"`
  80. Attachments []*Message_Attachment `protobuf:"bytes,11,rep,name=attachments,proto3" json:"attachments,omitempty"`
  81. }
  82. func (x *Message) Reset() {
  83. *x = Message{}
  84. if protoimpl.UnsafeEnabled {
  85. mi := &file_ticket_proto_msgTypes[0]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. }
  90. func (x *Message) String() string {
  91. return protoimpl.X.MessageStringOf(x)
  92. }
  93. func (*Message) ProtoMessage() {}
  94. func (x *Message) ProtoReflect() protoreflect.Message {
  95. mi := &file_ticket_proto_msgTypes[0]
  96. if protoimpl.UnsafeEnabled && x != nil {
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. if ms.LoadMessageInfo() == nil {
  99. ms.StoreMessageInfo(mi)
  100. }
  101. return ms
  102. }
  103. return mi.MessageOf(x)
  104. }
  105. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  106. func (*Message) Descriptor() ([]byte, []int) {
  107. return file_ticket_proto_rawDescGZIP(), []int{0}
  108. }
  109. func (x *Message) GetTicketId() string {
  110. if x != nil {
  111. return x.TicketId
  112. }
  113. return ""
  114. }
  115. func (x *Message) GetProvider() MessageProvider {
  116. if x != nil {
  117. return x.Provider
  118. }
  119. return MessageProvider_UnknownMessageProvider
  120. }
  121. func (x *Message) GetBody() string {
  122. if x != nil {
  123. return x.Body
  124. }
  125. return ""
  126. }
  127. func (x *Message) GetDate() int64 {
  128. if x != nil {
  129. return x.Date
  130. }
  131. return 0
  132. }
  133. func (x *Message) GetRaw() string {
  134. if x != nil {
  135. return x.Raw
  136. }
  137. return ""
  138. }
  139. func (x *Message) GetId() string {
  140. if x != nil {
  141. return x.Id
  142. }
  143. return ""
  144. }
  145. func (x *Message) GetFlags() []byte {
  146. if x != nil {
  147. return x.Flags
  148. }
  149. return nil
  150. }
  151. func (x *Message) GetHeaders() []*Message_Header {
  152. if x != nil {
  153. return x.Headers
  154. }
  155. return nil
  156. }
  157. func (x *Message) GetAttachments() []*Message_Attachment {
  158. if x != nil {
  159. return x.Attachments
  160. }
  161. return nil
  162. }
  163. type Ticket struct {
  164. state protoimpl.MessageState
  165. sizeCache protoimpl.SizeCache
  166. unknownFields protoimpl.UnknownFields
  167. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  168. Thread []*Message `protobuf:"bytes,10,rep,name=thread,proto3" json:"thread,omitempty"`
  169. }
  170. func (x *Ticket) Reset() {
  171. *x = Ticket{}
  172. if protoimpl.UnsafeEnabled {
  173. mi := &file_ticket_proto_msgTypes[1]
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. ms.StoreMessageInfo(mi)
  176. }
  177. }
  178. func (x *Ticket) String() string {
  179. return protoimpl.X.MessageStringOf(x)
  180. }
  181. func (*Ticket) ProtoMessage() {}
  182. func (x *Ticket) ProtoReflect() protoreflect.Message {
  183. mi := &file_ticket_proto_msgTypes[1]
  184. if protoimpl.UnsafeEnabled && x != nil {
  185. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  186. if ms.LoadMessageInfo() == nil {
  187. ms.StoreMessageInfo(mi)
  188. }
  189. return ms
  190. }
  191. return mi.MessageOf(x)
  192. }
  193. // Deprecated: Use Ticket.ProtoReflect.Descriptor instead.
  194. func (*Ticket) Descriptor() ([]byte, []int) {
  195. return file_ticket_proto_rawDescGZIP(), []int{1}
  196. }
  197. func (x *Ticket) GetId() string {
  198. if x != nil {
  199. return x.Id
  200. }
  201. return ""
  202. }
  203. func (x *Ticket) GetThread() []*Message {
  204. if x != nil {
  205. return x.Thread
  206. }
  207. return nil
  208. }
  209. type Message_Header struct {
  210. state protoimpl.MessageState
  211. sizeCache protoimpl.SizeCache
  212. unknownFields protoimpl.UnknownFields
  213. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  214. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  215. }
  216. func (x *Message_Header) Reset() {
  217. *x = Message_Header{}
  218. if protoimpl.UnsafeEnabled {
  219. mi := &file_ticket_proto_msgTypes[2]
  220. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  221. ms.StoreMessageInfo(mi)
  222. }
  223. }
  224. func (x *Message_Header) String() string {
  225. return protoimpl.X.MessageStringOf(x)
  226. }
  227. func (*Message_Header) ProtoMessage() {}
  228. func (x *Message_Header) ProtoReflect() protoreflect.Message {
  229. mi := &file_ticket_proto_msgTypes[2]
  230. if protoimpl.UnsafeEnabled && x != nil {
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. if ms.LoadMessageInfo() == nil {
  233. ms.StoreMessageInfo(mi)
  234. }
  235. return ms
  236. }
  237. return mi.MessageOf(x)
  238. }
  239. // Deprecated: Use Message_Header.ProtoReflect.Descriptor instead.
  240. func (*Message_Header) Descriptor() ([]byte, []int) {
  241. return file_ticket_proto_rawDescGZIP(), []int{0, 0}
  242. }
  243. func (x *Message_Header) GetKey() string {
  244. if x != nil {
  245. return x.Key
  246. }
  247. return ""
  248. }
  249. func (x *Message_Header) GetValue() string {
  250. if x != nil {
  251. return x.Value
  252. }
  253. return ""
  254. }
  255. type Message_Attachment struct {
  256. state protoimpl.MessageState
  257. sizeCache protoimpl.SizeCache
  258. unknownFields protoimpl.UnknownFields
  259. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  260. Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
  261. ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
  262. ContentEncoding string `protobuf:"bytes,4,opt,name=content_encoding,json=contentEncoding,proto3" json:"content_encoding,omitempty"`
  263. Upload *Message_Attachment_Upload `protobuf:"bytes,5,opt,name=upload,proto3" json:"upload,omitempty"`
  264. }
  265. func (x *Message_Attachment) Reset() {
  266. *x = Message_Attachment{}
  267. if protoimpl.UnsafeEnabled {
  268. mi := &file_ticket_proto_msgTypes[3]
  269. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  270. ms.StoreMessageInfo(mi)
  271. }
  272. }
  273. func (x *Message_Attachment) String() string {
  274. return protoimpl.X.MessageStringOf(x)
  275. }
  276. func (*Message_Attachment) ProtoMessage() {}
  277. func (x *Message_Attachment) ProtoReflect() protoreflect.Message {
  278. mi := &file_ticket_proto_msgTypes[3]
  279. if protoimpl.UnsafeEnabled && x != nil {
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. if ms.LoadMessageInfo() == nil {
  282. ms.StoreMessageInfo(mi)
  283. }
  284. return ms
  285. }
  286. return mi.MessageOf(x)
  287. }
  288. // Deprecated: Use Message_Attachment.ProtoReflect.Descriptor instead.
  289. func (*Message_Attachment) Descriptor() ([]byte, []int) {
  290. return file_ticket_proto_rawDescGZIP(), []int{0, 1}
  291. }
  292. func (x *Message_Attachment) GetId() string {
  293. if x != nil {
  294. return x.Id
  295. }
  296. return ""
  297. }
  298. func (x *Message_Attachment) GetFilename() string {
  299. if x != nil {
  300. return x.Filename
  301. }
  302. return ""
  303. }
  304. func (x *Message_Attachment) GetContentType() string {
  305. if x != nil {
  306. return x.ContentType
  307. }
  308. return ""
  309. }
  310. func (x *Message_Attachment) GetContentEncoding() string {
  311. if x != nil {
  312. return x.ContentEncoding
  313. }
  314. return ""
  315. }
  316. func (x *Message_Attachment) GetUpload() *Message_Attachment_Upload {
  317. if x != nil {
  318. return x.Upload
  319. }
  320. return nil
  321. }
  322. type Message_Attachment_Upload struct {
  323. state protoimpl.MessageState
  324. sizeCache protoimpl.SizeCache
  325. unknownFields protoimpl.UnknownFields
  326. Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
  327. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  328. Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
  329. Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
  330. LastModified int64 `protobuf:"varint,5,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
  331. Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
  332. Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
  333. }
  334. func (x *Message_Attachment_Upload) Reset() {
  335. *x = Message_Attachment_Upload{}
  336. if protoimpl.UnsafeEnabled {
  337. mi := &file_ticket_proto_msgTypes[4]
  338. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  339. ms.StoreMessageInfo(mi)
  340. }
  341. }
  342. func (x *Message_Attachment_Upload) String() string {
  343. return protoimpl.X.MessageStringOf(x)
  344. }
  345. func (*Message_Attachment_Upload) ProtoMessage() {}
  346. func (x *Message_Attachment_Upload) ProtoReflect() protoreflect.Message {
  347. mi := &file_ticket_proto_msgTypes[4]
  348. if protoimpl.UnsafeEnabled && x != nil {
  349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  350. if ms.LoadMessageInfo() == nil {
  351. ms.StoreMessageInfo(mi)
  352. }
  353. return ms
  354. }
  355. return mi.MessageOf(x)
  356. }
  357. // Deprecated: Use Message_Attachment_Upload.ProtoReflect.Descriptor instead.
  358. func (*Message_Attachment_Upload) Descriptor() ([]byte, []int) {
  359. return file_ticket_proto_rawDescGZIP(), []int{0, 1, 0}
  360. }
  361. func (x *Message_Attachment_Upload) GetBucket() string {
  362. if x != nil {
  363. return x.Bucket
  364. }
  365. return ""
  366. }
  367. func (x *Message_Attachment_Upload) GetKey() string {
  368. if x != nil {
  369. return x.Key
  370. }
  371. return ""
  372. }
  373. func (x *Message_Attachment_Upload) GetEtag() string {
  374. if x != nil {
  375. return x.Etag
  376. }
  377. return ""
  378. }
  379. func (x *Message_Attachment_Upload) GetSize() int64 {
  380. if x != nil {
  381. return x.Size
  382. }
  383. return 0
  384. }
  385. func (x *Message_Attachment_Upload) GetLastModified() int64 {
  386. if x != nil {
  387. return x.LastModified
  388. }
  389. return 0
  390. }
  391. func (x *Message_Attachment_Upload) GetLocation() string {
  392. if x != nil {
  393. return x.Location
  394. }
  395. return ""
  396. }
  397. func (x *Message_Attachment_Upload) GetVersion() string {
  398. if x != nil {
  399. return x.Version
  400. }
  401. return ""
  402. }
  403. var File_ticket_proto protoreflect.FileDescriptor
  404. var file_ticket_proto_rawDesc = []byte{
  405. 0x0a, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  406. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xda, 0x05, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
  407. 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18,
  408. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64,
  409. 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
  410. 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73,
  411. 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f,
  412. 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20,
  413. 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
  414. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a,
  415. 0x03, 0x72, 0x61, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12,
  416. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
  417. 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05,
  418. 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
  419. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e,
  420. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07,
  421. 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63,
  422. 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74,
  423. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x74,
  424. 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
  425. 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
  426. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  427. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  428. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xf9, 0x02, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61,
  429. 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  430. 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
  431. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61,
  432. 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,
  433. 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  434. 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  435. 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  436. 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
  437. 0x12, 0x39, 0x0a, 0x06, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
  438. 0x32, 0x21, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  439. 0x65, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x70, 0x6c,
  440. 0x6f, 0x61, 0x64, 0x52, 0x06, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0xb5, 0x01, 0x0a, 0x06,
  441. 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74,
  442. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10,
  443. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  444. 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  445. 0x65, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
  446. 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74,
  447. 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
  448. 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a,
  449. 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
  450. 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
  451. 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
  452. 0x69, 0x6f, 0x6e, 0x22, 0x41, 0x0a, 0x06, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a,
  453. 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a,
  454. 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
  455. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x06,
  456. 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x2a, 0xa6, 0x01, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61,
  457. 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x6e,
  458. 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76,
  459. 0x69, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d,
  460. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x01,
  461. 0x12, 0x17, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
  462. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x70, 0x74,
  463. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10,
  464. 0x03, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x70, 0x69, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
  465. 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x46, 0x75, 0x6e,
  466. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x05, 0x42,
  467. 0x2a, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x2e,
  468. 0x63, 0x72, 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x05, 0x70, 0x72, 0x6f, 0x74,
  469. 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
  470. 0x74, 0x6f, 0x33,
  471. }
  472. var (
  473. file_ticket_proto_rawDescOnce sync.Once
  474. file_ticket_proto_rawDescData = file_ticket_proto_rawDesc
  475. )
  476. func file_ticket_proto_rawDescGZIP() []byte {
  477. file_ticket_proto_rawDescOnce.Do(func() {
  478. file_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(file_ticket_proto_rawDescData)
  479. })
  480. return file_ticket_proto_rawDescData
  481. }
  482. var file_ticket_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  483. var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  484. var file_ticket_proto_goTypes = []interface{}{
  485. (MessageProvider)(0), // 0: ticket.MessageProvider
  486. (*Message)(nil), // 1: ticket.Message
  487. (*Ticket)(nil), // 2: ticket.Ticket
  488. (*Message_Header)(nil), // 3: ticket.Message.Header
  489. (*Message_Attachment)(nil), // 4: ticket.Message.Attachment
  490. (*Message_Attachment_Upload)(nil), // 5: ticket.Message.Attachment.Upload
  491. }
  492. var file_ticket_proto_depIdxs = []int32{
  493. 0, // 0: ticket.Message.provider:type_name -> ticket.MessageProvider
  494. 3, // 1: ticket.Message.headers:type_name -> ticket.Message.Header
  495. 4, // 2: ticket.Message.attachments:type_name -> ticket.Message.Attachment
  496. 1, // 3: ticket.Ticket.thread:type_name -> ticket.Message
  497. 5, // 4: ticket.Message.Attachment.upload:type_name -> ticket.Message.Attachment.Upload
  498. 5, // [5:5] is the sub-list for method output_type
  499. 5, // [5:5] is the sub-list for method input_type
  500. 5, // [5:5] is the sub-list for extension type_name
  501. 5, // [5:5] is the sub-list for extension extendee
  502. 0, // [0:5] is the sub-list for field type_name
  503. }
  504. func init() { file_ticket_proto_init() }
  505. func file_ticket_proto_init() {
  506. if File_ticket_proto != nil {
  507. return
  508. }
  509. if !protoimpl.UnsafeEnabled {
  510. file_ticket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  511. switch v := v.(*Message); i {
  512. case 0:
  513. return &v.state
  514. case 1:
  515. return &v.sizeCache
  516. case 2:
  517. return &v.unknownFields
  518. default:
  519. return nil
  520. }
  521. }
  522. file_ticket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  523. switch v := v.(*Ticket); i {
  524. case 0:
  525. return &v.state
  526. case 1:
  527. return &v.sizeCache
  528. case 2:
  529. return &v.unknownFields
  530. default:
  531. return nil
  532. }
  533. }
  534. file_ticket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  535. switch v := v.(*Message_Header); i {
  536. case 0:
  537. return &v.state
  538. case 1:
  539. return &v.sizeCache
  540. case 2:
  541. return &v.unknownFields
  542. default:
  543. return nil
  544. }
  545. }
  546. file_ticket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  547. switch v := v.(*Message_Attachment); i {
  548. case 0:
  549. return &v.state
  550. case 1:
  551. return &v.sizeCache
  552. case 2:
  553. return &v.unknownFields
  554. default:
  555. return nil
  556. }
  557. }
  558. file_ticket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  559. switch v := v.(*Message_Attachment_Upload); i {
  560. case 0:
  561. return &v.state
  562. case 1:
  563. return &v.sizeCache
  564. case 2:
  565. return &v.unknownFields
  566. default:
  567. return nil
  568. }
  569. }
  570. }
  571. type x struct{}
  572. out := protoimpl.TypeBuilder{
  573. File: protoimpl.DescBuilder{
  574. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  575. RawDescriptor: file_ticket_proto_rawDesc,
  576. NumEnums: 1,
  577. NumMessages: 5,
  578. NumExtensions: 0,
  579. NumServices: 0,
  580. },
  581. GoTypes: file_ticket_proto_goTypes,
  582. DependencyIndexes: file_ticket_proto_depIdxs,
  583. EnumInfos: file_ticket_proto_enumTypes,
  584. MessageInfos: file_ticket_proto_msgTypes,
  585. }.Build()
  586. File_ticket_proto = out.File
  587. file_ticket_proto_rawDesc = nil
  588. file_ticket_proto_goTypes = nil
  589. file_ticket_proto_depIdxs = nil
  590. }