ticket.pb.go 33 KB

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