ticket.pb.go 32 KB

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