ticket.pb.go 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.32.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. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  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. type MessageFlag int32
  21. const (
  22. // Deprecated: Marked as deprecated in ticket.proto.
  23. MessageFlag_unknown_message_flag MessageFlag = 0
  24. MessageFlag_SENT MessageFlag = 1
  25. MessageFlag_MODIFIED MessageFlag = 2
  26. )
  27. // Enum value maps for MessageFlag.
  28. var (
  29. MessageFlag_name = map[int32]string{
  30. 0: "unknown_message_flag",
  31. 1: "SENT",
  32. 2: "MODIFIED",
  33. }
  34. MessageFlag_value = map[string]int32{
  35. "unknown_message_flag": 0,
  36. "SENT": 1,
  37. "MODIFIED": 2,
  38. }
  39. )
  40. func (x MessageFlag) Enum() *MessageFlag {
  41. p := new(MessageFlag)
  42. *p = x
  43. return p
  44. }
  45. func (x MessageFlag) String() string {
  46. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  47. }
  48. func (MessageFlag) Descriptor() protoreflect.EnumDescriptor {
  49. return file_ticket_proto_enumTypes[0].Descriptor()
  50. }
  51. func (MessageFlag) Type() protoreflect.EnumType {
  52. return &file_ticket_proto_enumTypes[0]
  53. }
  54. func (x MessageFlag) Number() protoreflect.EnumNumber {
  55. return protoreflect.EnumNumber(x)
  56. }
  57. // Deprecated: Use MessageFlag.Descriptor instead.
  58. func (MessageFlag) EnumDescriptor() ([]byte, []int) {
  59. return file_ticket_proto_rawDescGZIP(), []int{0}
  60. }
  61. type TicketFlag int32
  62. const (
  63. // Deprecated: Marked as deprecated in ticket.proto.
  64. TicketFlag_unknown_ticket_flag TicketFlag = 0
  65. TicketFlag_READ TicketFlag = 1
  66. TicketFlag_REPLIED TicketFlag = 2
  67. TicketFlag_HAS_MODIFIED_MESSAGE TicketFlag = 3
  68. )
  69. // Enum value maps for TicketFlag.
  70. var (
  71. TicketFlag_name = map[int32]string{
  72. 0: "unknown_ticket_flag",
  73. 1: "READ",
  74. 2: "REPLIED",
  75. 3: "HAS_MODIFIED_MESSAGE",
  76. }
  77. TicketFlag_value = map[string]int32{
  78. "unknown_ticket_flag": 0,
  79. "READ": 1,
  80. "REPLIED": 2,
  81. "HAS_MODIFIED_MESSAGE": 3,
  82. }
  83. )
  84. func (x TicketFlag) Enum() *TicketFlag {
  85. p := new(TicketFlag)
  86. *p = x
  87. return p
  88. }
  89. func (x TicketFlag) String() string {
  90. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  91. }
  92. func (TicketFlag) Descriptor() protoreflect.EnumDescriptor {
  93. return file_ticket_proto_enumTypes[1].Descriptor()
  94. }
  95. func (TicketFlag) Type() protoreflect.EnumType {
  96. return &file_ticket_proto_enumTypes[1]
  97. }
  98. func (x TicketFlag) Number() protoreflect.EnumNumber {
  99. return protoreflect.EnumNumber(x)
  100. }
  101. // Deprecated: Use TicketFlag.Descriptor instead.
  102. func (TicketFlag) EnumDescriptor() ([]byte, []int) {
  103. return file_ticket_proto_rawDescGZIP(), []int{1}
  104. }
  105. type Message_Type int32
  106. const (
  107. // Deprecated: Marked as deprecated in ticket.proto.
  108. Message_unknown Message_Type = 0
  109. Message_TEXT Message_Type = 1
  110. Message_EMAIL Message_Type = 2
  111. Message_ASSISTANT_CALLBACK Message_Type = 3
  112. Message_TICKET_WITH_REASON Message_Type = 4
  113. )
  114. // Enum value maps for Message_Type.
  115. var (
  116. Message_Type_name = map[int32]string{
  117. 0: "unknown",
  118. 1: "TEXT",
  119. 2: "EMAIL",
  120. 3: "ASSISTANT_CALLBACK",
  121. 4: "TICKET_WITH_REASON",
  122. }
  123. Message_Type_value = map[string]int32{
  124. "unknown": 0,
  125. "TEXT": 1,
  126. "EMAIL": 2,
  127. "ASSISTANT_CALLBACK": 3,
  128. "TICKET_WITH_REASON": 4,
  129. }
  130. )
  131. func (x Message_Type) Enum() *Message_Type {
  132. p := new(Message_Type)
  133. *p = x
  134. return p
  135. }
  136. func (x Message_Type) String() string {
  137. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  138. }
  139. func (Message_Type) Descriptor() protoreflect.EnumDescriptor {
  140. return file_ticket_proto_enumTypes[2].Descriptor()
  141. }
  142. func (Message_Type) Type() protoreflect.EnumType {
  143. return &file_ticket_proto_enumTypes[2]
  144. }
  145. func (x Message_Type) Number() protoreflect.EnumNumber {
  146. return protoreflect.EnumNumber(x)
  147. }
  148. // Deprecated: Use Message_Type.Descriptor instead.
  149. func (Message_Type) EnumDescriptor() ([]byte, []int) {
  150. return file_ticket_proto_rawDescGZIP(), []int{4, 0}
  151. }
  152. type EmailAddress struct {
  153. state protoimpl.MessageState
  154. sizeCache protoimpl.SizeCache
  155. unknownFields protoimpl.UnknownFields
  156. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  157. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  158. }
  159. func (x *EmailAddress) Reset() {
  160. *x = EmailAddress{}
  161. if protoimpl.UnsafeEnabled {
  162. mi := &file_ticket_proto_msgTypes[0]
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. ms.StoreMessageInfo(mi)
  165. }
  166. }
  167. func (x *EmailAddress) String() string {
  168. return protoimpl.X.MessageStringOf(x)
  169. }
  170. func (*EmailAddress) ProtoMessage() {}
  171. func (x *EmailAddress) ProtoReflect() protoreflect.Message {
  172. mi := &file_ticket_proto_msgTypes[0]
  173. if protoimpl.UnsafeEnabled && x != nil {
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. if ms.LoadMessageInfo() == nil {
  176. ms.StoreMessageInfo(mi)
  177. }
  178. return ms
  179. }
  180. return mi.MessageOf(x)
  181. }
  182. // Deprecated: Use EmailAddress.ProtoReflect.Descriptor instead.
  183. func (*EmailAddress) Descriptor() ([]byte, []int) {
  184. return file_ticket_proto_rawDescGZIP(), []int{0}
  185. }
  186. func (x *EmailAddress) GetAddress() string {
  187. if x != nil {
  188. return x.Address
  189. }
  190. return ""
  191. }
  192. func (x *EmailAddress) GetName() string {
  193. if x != nil {
  194. return x.Name
  195. }
  196. return ""
  197. }
  198. type Attachment struct {
  199. state protoimpl.MessageState
  200. sizeCache protoimpl.SizeCache
  201. unknownFields protoimpl.UnknownFields
  202. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  203. Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
  204. ContentType string `protobuf:"bytes,3,opt,name=content_type,proto3" json:"content_type,omitempty"`
  205. ContentEncoding string `protobuf:"bytes,4,opt,name=content_encoding,proto3" json:"content_encoding,omitempty"`
  206. Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
  207. Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
  208. }
  209. func (x *Attachment) Reset() {
  210. *x = Attachment{}
  211. if protoimpl.UnsafeEnabled {
  212. mi := &file_ticket_proto_msgTypes[1]
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. ms.StoreMessageInfo(mi)
  215. }
  216. }
  217. func (x *Attachment) String() string {
  218. return protoimpl.X.MessageStringOf(x)
  219. }
  220. func (*Attachment) ProtoMessage() {}
  221. func (x *Attachment) ProtoReflect() protoreflect.Message {
  222. mi := &file_ticket_proto_msgTypes[1]
  223. if protoimpl.UnsafeEnabled && x != nil {
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. if ms.LoadMessageInfo() == nil {
  226. ms.StoreMessageInfo(mi)
  227. }
  228. return ms
  229. }
  230. return mi.MessageOf(x)
  231. }
  232. // Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
  233. func (*Attachment) Descriptor() ([]byte, []int) {
  234. return file_ticket_proto_rawDescGZIP(), []int{1}
  235. }
  236. func (x *Attachment) GetId() string {
  237. if x != nil {
  238. return x.Id
  239. }
  240. return ""
  241. }
  242. func (x *Attachment) GetFilename() string {
  243. if x != nil {
  244. return x.Filename
  245. }
  246. return ""
  247. }
  248. func (x *Attachment) GetContentType() string {
  249. if x != nil {
  250. return x.ContentType
  251. }
  252. return ""
  253. }
  254. func (x *Attachment) GetContentEncoding() string {
  255. if x != nil {
  256. return x.ContentEncoding
  257. }
  258. return ""
  259. }
  260. func (x *Attachment) GetBucket() string {
  261. if x != nil {
  262. return x.Bucket
  263. }
  264. return ""
  265. }
  266. func (x *Attachment) GetKey() string {
  267. if x != nil {
  268. return x.Key
  269. }
  270. return ""
  271. }
  272. type AssistantRequest struct {
  273. state protoimpl.MessageState
  274. sizeCache protoimpl.SizeCache
  275. unknownFields protoimpl.UnknownFields
  276. To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
  277. From *EmailAddress `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
  278. Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
  279. Date *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
  280. Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
  281. Attachments []*Attachment `protobuf:"bytes,10,rep,name=attachments,proto3" json:"attachments,omitempty"`
  282. }
  283. func (x *AssistantRequest) Reset() {
  284. *x = AssistantRequest{}
  285. if protoimpl.UnsafeEnabled {
  286. mi := &file_ticket_proto_msgTypes[2]
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. ms.StoreMessageInfo(mi)
  289. }
  290. }
  291. func (x *AssistantRequest) String() string {
  292. return protoimpl.X.MessageStringOf(x)
  293. }
  294. func (*AssistantRequest) ProtoMessage() {}
  295. func (x *AssistantRequest) ProtoReflect() protoreflect.Message {
  296. mi := &file_ticket_proto_msgTypes[2]
  297. if protoimpl.UnsafeEnabled && x != nil {
  298. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  299. if ms.LoadMessageInfo() == nil {
  300. ms.StoreMessageInfo(mi)
  301. }
  302. return ms
  303. }
  304. return mi.MessageOf(x)
  305. }
  306. // Deprecated: Use AssistantRequest.ProtoReflect.Descriptor instead.
  307. func (*AssistantRequest) Descriptor() ([]byte, []int) {
  308. return file_ticket_proto_rawDescGZIP(), []int{2}
  309. }
  310. func (x *AssistantRequest) GetTo() string {
  311. if x != nil {
  312. return x.To
  313. }
  314. return ""
  315. }
  316. func (x *AssistantRequest) GetFrom() *EmailAddress {
  317. if x != nil {
  318. return x.From
  319. }
  320. return nil
  321. }
  322. func (x *AssistantRequest) GetSubject() string {
  323. if x != nil {
  324. return x.Subject
  325. }
  326. return ""
  327. }
  328. func (x *AssistantRequest) GetDate() *timestamppb.Timestamp {
  329. if x != nil {
  330. return x.Date
  331. }
  332. return nil
  333. }
  334. func (x *AssistantRequest) GetBody() string {
  335. if x != nil {
  336. return x.Body
  337. }
  338. return ""
  339. }
  340. func (x *AssistantRequest) GetAttachments() []*Attachment {
  341. if x != nil {
  342. return x.Attachments
  343. }
  344. return nil
  345. }
  346. type AssistantCallback struct {
  347. state protoimpl.MessageState
  348. sizeCache protoimpl.SizeCache
  349. unknownFields protoimpl.UnknownFields
  350. To *EmailAddress `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
  351. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
  352. Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
  353. Attachments []*Attachment `protobuf:"bytes,10,rep,name=attachments,proto3" json:"attachments,omitempty"`
  354. }
  355. func (x *AssistantCallback) Reset() {
  356. *x = AssistantCallback{}
  357. if protoimpl.UnsafeEnabled {
  358. mi := &file_ticket_proto_msgTypes[3]
  359. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  360. ms.StoreMessageInfo(mi)
  361. }
  362. }
  363. func (x *AssistantCallback) String() string {
  364. return protoimpl.X.MessageStringOf(x)
  365. }
  366. func (*AssistantCallback) ProtoMessage() {}
  367. func (x *AssistantCallback) ProtoReflect() protoreflect.Message {
  368. mi := &file_ticket_proto_msgTypes[3]
  369. if protoimpl.UnsafeEnabled && x != nil {
  370. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  371. if ms.LoadMessageInfo() == nil {
  372. ms.StoreMessageInfo(mi)
  373. }
  374. return ms
  375. }
  376. return mi.MessageOf(x)
  377. }
  378. // Deprecated: Use AssistantCallback.ProtoReflect.Descriptor instead.
  379. func (*AssistantCallback) Descriptor() ([]byte, []int) {
  380. return file_ticket_proto_rawDescGZIP(), []int{3}
  381. }
  382. func (x *AssistantCallback) GetTo() *EmailAddress {
  383. if x != nil {
  384. return x.To
  385. }
  386. return nil
  387. }
  388. func (x *AssistantCallback) GetSubject() string {
  389. if x != nil {
  390. return x.Subject
  391. }
  392. return ""
  393. }
  394. func (x *AssistantCallback) GetBody() string {
  395. if x != nil {
  396. return x.Body
  397. }
  398. return ""
  399. }
  400. func (x *AssistantCallback) GetAttachments() []*Attachment {
  401. if x != nil {
  402. return x.Attachments
  403. }
  404. return nil
  405. }
  406. type Message struct {
  407. state protoimpl.MessageState
  408. sizeCache protoimpl.SizeCache
  409. unknownFields protoimpl.UnknownFields
  410. MessageId string `protobuf:"bytes,1,opt,name=message_id,proto3" json:"message_id,omitempty"`
  411. TicketId string `protobuf:"bytes,2,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
  412. Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
  413. Type Message_Type `protobuf:"varint,4,opt,name=type,proto3,enum=ticket.Message_Type" json:"type,omitempty"`
  414. Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
  415. Date *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=date,proto3" json:"date,omitempty"`
  416. Raw []byte `protobuf:"bytes,7,opt,name=raw,proto3" json:"raw,omitempty"`
  417. Flags []byte `protobuf:"bytes,8,opt,name=flags,proto3" json:"flags,omitempty"`
  418. Headers map[string]string `protobuf:"bytes,10,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  419. Meta map[string]string `protobuf:"bytes,11,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  420. Attachments []*Attachment `protobuf:"bytes,12,rep,name=attachments,proto3" json:"attachments,omitempty"`
  421. }
  422. func (x *Message) Reset() {
  423. *x = Message{}
  424. if protoimpl.UnsafeEnabled {
  425. mi := &file_ticket_proto_msgTypes[4]
  426. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  427. ms.StoreMessageInfo(mi)
  428. }
  429. }
  430. func (x *Message) String() string {
  431. return protoimpl.X.MessageStringOf(x)
  432. }
  433. func (*Message) ProtoMessage() {}
  434. func (x *Message) ProtoReflect() protoreflect.Message {
  435. mi := &file_ticket_proto_msgTypes[4]
  436. if protoimpl.UnsafeEnabled && x != nil {
  437. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  438. if ms.LoadMessageInfo() == nil {
  439. ms.StoreMessageInfo(mi)
  440. }
  441. return ms
  442. }
  443. return mi.MessageOf(x)
  444. }
  445. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  446. func (*Message) Descriptor() ([]byte, []int) {
  447. return file_ticket_proto_rawDescGZIP(), []int{4}
  448. }
  449. func (x *Message) GetMessageId() string {
  450. if x != nil {
  451. return x.MessageId
  452. }
  453. return ""
  454. }
  455. func (x *Message) GetTicketId() string {
  456. if x != nil {
  457. return x.TicketId
  458. }
  459. return ""
  460. }
  461. func (x *Message) GetRole() string {
  462. if x != nil {
  463. return x.Role
  464. }
  465. return ""
  466. }
  467. func (x *Message) GetType() Message_Type {
  468. if x != nil {
  469. return x.Type
  470. }
  471. return Message_unknown
  472. }
  473. func (x *Message) GetContent() string {
  474. if x != nil {
  475. return x.Content
  476. }
  477. return ""
  478. }
  479. func (x *Message) GetDate() *timestamppb.Timestamp {
  480. if x != nil {
  481. return x.Date
  482. }
  483. return nil
  484. }
  485. func (x *Message) GetRaw() []byte {
  486. if x != nil {
  487. return x.Raw
  488. }
  489. return nil
  490. }
  491. func (x *Message) GetFlags() []byte {
  492. if x != nil {
  493. return x.Flags
  494. }
  495. return nil
  496. }
  497. func (x *Message) GetHeaders() map[string]string {
  498. if x != nil {
  499. return x.Headers
  500. }
  501. return nil
  502. }
  503. func (x *Message) GetMeta() map[string]string {
  504. if x != nil {
  505. return x.Meta
  506. }
  507. return nil
  508. }
  509. func (x *Message) GetAttachments() []*Attachment {
  510. if x != nil {
  511. return x.Attachments
  512. }
  513. return nil
  514. }
  515. type Ticket struct {
  516. state protoimpl.MessageState
  517. sizeCache protoimpl.SizeCache
  518. unknownFields protoimpl.UnknownFields
  519. TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
  520. ThreadId string `protobuf:"bytes,2,opt,name=thread_id,proto3" json:"thread_id,omitempty"`
  521. To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
  522. From *EmailAddress `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
  523. Flags []byte `protobuf:"bytes,5,opt,name=flags,proto3" json:"flags,omitempty"`
  524. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"`
  525. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,proto3" json:"updated_at,omitempty"`
  526. Messages []*Message `protobuf:"bytes,10,rep,name=messages,proto3" json:"messages,omitempty"`
  527. Meta map[string]string `protobuf:"bytes,11,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  528. Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
  529. MessageIds []string `protobuf:"bytes,100,rep,name=message_ids,proto3" json:"message_ids,omitempty"`
  530. Subjects []string `protobuf:"bytes,101,rep,name=subjects,proto3" json:"subjects,omitempty"`
  531. }
  532. func (x *Ticket) Reset() {
  533. *x = Ticket{}
  534. if protoimpl.UnsafeEnabled {
  535. mi := &file_ticket_proto_msgTypes[5]
  536. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  537. ms.StoreMessageInfo(mi)
  538. }
  539. }
  540. func (x *Ticket) String() string {
  541. return protoimpl.X.MessageStringOf(x)
  542. }
  543. func (*Ticket) ProtoMessage() {}
  544. func (x *Ticket) ProtoReflect() protoreflect.Message {
  545. mi := &file_ticket_proto_msgTypes[5]
  546. if protoimpl.UnsafeEnabled && x != nil {
  547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  548. if ms.LoadMessageInfo() == nil {
  549. ms.StoreMessageInfo(mi)
  550. }
  551. return ms
  552. }
  553. return mi.MessageOf(x)
  554. }
  555. // Deprecated: Use Ticket.ProtoReflect.Descriptor instead.
  556. func (*Ticket) Descriptor() ([]byte, []int) {
  557. return file_ticket_proto_rawDescGZIP(), []int{5}
  558. }
  559. func (x *Ticket) GetTicketId() string {
  560. if x != nil {
  561. return x.TicketId
  562. }
  563. return ""
  564. }
  565. func (x *Ticket) GetThreadId() string {
  566. if x != nil {
  567. return x.ThreadId
  568. }
  569. return ""
  570. }
  571. func (x *Ticket) GetTo() string {
  572. if x != nil {
  573. return x.To
  574. }
  575. return ""
  576. }
  577. func (x *Ticket) GetFrom() *EmailAddress {
  578. if x != nil {
  579. return x.From
  580. }
  581. return nil
  582. }
  583. func (x *Ticket) GetFlags() []byte {
  584. if x != nil {
  585. return x.Flags
  586. }
  587. return nil
  588. }
  589. func (x *Ticket) GetCreatedAt() *timestamppb.Timestamp {
  590. if x != nil {
  591. return x.CreatedAt
  592. }
  593. return nil
  594. }
  595. func (x *Ticket) GetUpdatedAt() *timestamppb.Timestamp {
  596. if x != nil {
  597. return x.UpdatedAt
  598. }
  599. return nil
  600. }
  601. func (x *Ticket) GetMessages() []*Message {
  602. if x != nil {
  603. return x.Messages
  604. }
  605. return nil
  606. }
  607. func (x *Ticket) GetMeta() map[string]string {
  608. if x != nil {
  609. return x.Meta
  610. }
  611. return nil
  612. }
  613. func (x *Ticket) GetTags() []string {
  614. if x != nil {
  615. return x.Tags
  616. }
  617. return nil
  618. }
  619. func (x *Ticket) GetMessageIds() []string {
  620. if x != nil {
  621. return x.MessageIds
  622. }
  623. return nil
  624. }
  625. func (x *Ticket) GetSubjects() []string {
  626. if x != nil {
  627. return x.Subjects
  628. }
  629. return nil
  630. }
  631. var File_ticket_proto protoreflect.FileDescriptor
  632. var file_ticket_proto_rawDesc = []byte{
  633. 0x0a, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  634. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  635. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  636. 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0c, 0x45, 0x6d, 0x61, 0x69, 0x6c,
  637. 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
  638. 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  639. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  640. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68,
  641. 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  642. 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  643. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  644. 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
  645. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
  646. 0x74, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
  647. 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
  648. 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
  649. 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  650. 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  651. 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0xe0, 0x01, 0x0a, 0x10, 0x41,
  652. 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  653. 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12,
  654. 0x28, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
  655. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x41, 0x64, 0x64, 0x72,
  656. 0x65, 0x73, 0x73, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
  657. 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
  658. 0x65, 0x63, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  659. 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  660. 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64,
  661. 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28,
  662. 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63,
  663. 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74,
  664. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74,
  665. 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x9d, 0x01,
  666. 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x62,
  667. 0x61, 0x63, 0x6b, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  668. 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x41, 0x64,
  669. 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
  670. 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
  671. 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  672. 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63,
  673. 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74,
  674. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74,
  675. 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe7, 0x04,
  676. 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x73,
  677. 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d,
  678. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63,
  679. 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69,
  680. 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
  681. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x74,
  682. 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b,
  683. 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
  684. 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  685. 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  686. 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
  687. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  688. 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12,
  689. 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x61,
  690. 0x77, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c,
  691. 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65,
  692. 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65,
  693. 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
  694. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12,
  695. 0x2d, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
  696. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d,
  697. 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x34,
  698. 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20,
  699. 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x41, 0x74, 0x74,
  700. 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
  701. 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45,
  702. 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  703. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  704. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
  705. 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
  706. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  707. 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  708. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5c, 0x0a, 0x04, 0x54, 0x79, 0x70,
  709. 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x1a, 0x02,
  710. 0x08, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,
  711. 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x53, 0x53, 0x49, 0x53,
  712. 0x54, 0x41, 0x4e, 0x54, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03, 0x12,
  713. 0x16, 0x0a, 0x12, 0x54, 0x49, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x52,
  714. 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x10, 0x04, 0x22, 0xf2, 0x03, 0x0a, 0x06, 0x54, 0x69, 0x63, 0x6b,
  715. 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18,
  716. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64,
  717. 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
  718. 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69, 0x64, 0x12, 0x0e,
  719. 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x28,
  720. 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
  721. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65,
  722. 0x73, 0x73, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67,
  723. 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x3a,
  724. 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01,
  725. 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  726. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a,
  727. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x75, 0x70,
  728. 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
  729. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  730. 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
  731. 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  732. 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65,
  733. 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61,
  734. 0x67, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x03, 0x28,
  735. 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65,
  736. 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74,
  737. 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52,
  738. 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  739. 0x5f, 0x69, 0x64, 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73,
  740. 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65,
  741. 0x63, 0x74, 0x73, 0x18, 0x65, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65,
  742. 0x63, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
  743. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
  744. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  745. 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x43, 0x0a, 0x0b,
  746. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x1c, 0x0a, 0x14, 0x75,
  747. 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66,
  748. 0x6c, 0x61, 0x67, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x45, 0x4e,
  749. 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
  750. 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x12,
  751. 0x1b, 0x0a, 0x13, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65,
  752. 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x08, 0x0a, 0x04,
  753. 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x45,
  754. 0x44, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x48, 0x41, 0x53, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46,
  755. 0x49, 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x42, 0x2d, 0x0a,
  756. 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x63, 0x72,
  757. 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x42, 0x05, 0x70, 0x72, 0x6f,
  758. 0x74, 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72,
  759. 0x6f, 0x74, 0x6f, 0x33,
  760. }
  761. var (
  762. file_ticket_proto_rawDescOnce sync.Once
  763. file_ticket_proto_rawDescData = file_ticket_proto_rawDesc
  764. )
  765. func file_ticket_proto_rawDescGZIP() []byte {
  766. file_ticket_proto_rawDescOnce.Do(func() {
  767. file_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(file_ticket_proto_rawDescData)
  768. })
  769. return file_ticket_proto_rawDescData
  770. }
  771. var file_ticket_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  772. var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  773. var file_ticket_proto_goTypes = []interface{}{
  774. (MessageFlag)(0), // 0: ticket.MessageFlag
  775. (TicketFlag)(0), // 1: ticket.TicketFlag
  776. (Message_Type)(0), // 2: ticket.Message.Type
  777. (*EmailAddress)(nil), // 3: ticket.EmailAddress
  778. (*Attachment)(nil), // 4: ticket.Attachment
  779. (*AssistantRequest)(nil), // 5: ticket.AssistantRequest
  780. (*AssistantCallback)(nil), // 6: ticket.AssistantCallback
  781. (*Message)(nil), // 7: ticket.Message
  782. (*Ticket)(nil), // 8: ticket.Ticket
  783. nil, // 9: ticket.Message.HeadersEntry
  784. nil, // 10: ticket.Message.MetaEntry
  785. nil, // 11: ticket.Ticket.MetaEntry
  786. (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
  787. }
  788. var file_ticket_proto_depIdxs = []int32{
  789. 3, // 0: ticket.AssistantRequest.from:type_name -> ticket.EmailAddress
  790. 12, // 1: ticket.AssistantRequest.date:type_name -> google.protobuf.Timestamp
  791. 4, // 2: ticket.AssistantRequest.attachments:type_name -> ticket.Attachment
  792. 3, // 3: ticket.AssistantCallback.to:type_name -> ticket.EmailAddress
  793. 4, // 4: ticket.AssistantCallback.attachments:type_name -> ticket.Attachment
  794. 2, // 5: ticket.Message.type:type_name -> ticket.Message.Type
  795. 12, // 6: ticket.Message.date:type_name -> google.protobuf.Timestamp
  796. 9, // 7: ticket.Message.headers:type_name -> ticket.Message.HeadersEntry
  797. 10, // 8: ticket.Message.meta:type_name -> ticket.Message.MetaEntry
  798. 4, // 9: ticket.Message.attachments:type_name -> ticket.Attachment
  799. 3, // 10: ticket.Ticket.from:type_name -> ticket.EmailAddress
  800. 12, // 11: ticket.Ticket.created_at:type_name -> google.protobuf.Timestamp
  801. 12, // 12: ticket.Ticket.updated_at:type_name -> google.protobuf.Timestamp
  802. 7, // 13: ticket.Ticket.messages:type_name -> ticket.Message
  803. 11, // 14: ticket.Ticket.meta:type_name -> ticket.Ticket.MetaEntry
  804. 15, // [15:15] is the sub-list for method output_type
  805. 15, // [15:15] is the sub-list for method input_type
  806. 15, // [15:15] is the sub-list for extension type_name
  807. 15, // [15:15] is the sub-list for extension extendee
  808. 0, // [0:15] is the sub-list for field type_name
  809. }
  810. func init() { file_ticket_proto_init() }
  811. func file_ticket_proto_init() {
  812. if File_ticket_proto != nil {
  813. return
  814. }
  815. if !protoimpl.UnsafeEnabled {
  816. file_ticket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  817. switch v := v.(*EmailAddress); i {
  818. case 0:
  819. return &v.state
  820. case 1:
  821. return &v.sizeCache
  822. case 2:
  823. return &v.unknownFields
  824. default:
  825. return nil
  826. }
  827. }
  828. file_ticket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  829. switch v := v.(*Attachment); i {
  830. case 0:
  831. return &v.state
  832. case 1:
  833. return &v.sizeCache
  834. case 2:
  835. return &v.unknownFields
  836. default:
  837. return nil
  838. }
  839. }
  840. file_ticket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  841. switch v := v.(*AssistantRequest); i {
  842. case 0:
  843. return &v.state
  844. case 1:
  845. return &v.sizeCache
  846. case 2:
  847. return &v.unknownFields
  848. default:
  849. return nil
  850. }
  851. }
  852. file_ticket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  853. switch v := v.(*AssistantCallback); i {
  854. case 0:
  855. return &v.state
  856. case 1:
  857. return &v.sizeCache
  858. case 2:
  859. return &v.unknownFields
  860. default:
  861. return nil
  862. }
  863. }
  864. file_ticket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  865. switch v := v.(*Message); i {
  866. case 0:
  867. return &v.state
  868. case 1:
  869. return &v.sizeCache
  870. case 2:
  871. return &v.unknownFields
  872. default:
  873. return nil
  874. }
  875. }
  876. file_ticket_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  877. switch v := v.(*Ticket); i {
  878. case 0:
  879. return &v.state
  880. case 1:
  881. return &v.sizeCache
  882. case 2:
  883. return &v.unknownFields
  884. default:
  885. return nil
  886. }
  887. }
  888. }
  889. type x struct{}
  890. out := protoimpl.TypeBuilder{
  891. File: protoimpl.DescBuilder{
  892. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  893. RawDescriptor: file_ticket_proto_rawDesc,
  894. NumEnums: 3,
  895. NumMessages: 9,
  896. NumExtensions: 0,
  897. NumServices: 0,
  898. },
  899. GoTypes: file_ticket_proto_goTypes,
  900. DependencyIndexes: file_ticket_proto_depIdxs,
  901. EnumInfos: file_ticket_proto_enumTypes,
  902. MessageInfos: file_ticket_proto_msgTypes,
  903. }.Build()
  904. File_ticket_proto = out.File
  905. file_ticket_proto_rawDesc = nil
  906. file_ticket_proto_goTypes = nil
  907. file_ticket_proto_depIdxs = nil
  908. }