ticket.pb.go 36 KB

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