ticket.pb.go 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071
  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. Attachments []*Message_Attachment `protobuf:"bytes,12,rep,name=attachments,proto3" json:"attachments,omitempty"`
  388. }
  389. func (x *Message) Reset() {
  390. *x = Message{}
  391. if protoimpl.UnsafeEnabled {
  392. mi := &file_ticket_proto_msgTypes[4]
  393. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  394. ms.StoreMessageInfo(mi)
  395. }
  396. }
  397. func (x *Message) String() string {
  398. return protoimpl.X.MessageStringOf(x)
  399. }
  400. func (*Message) ProtoMessage() {}
  401. func (x *Message) ProtoReflect() protoreflect.Message {
  402. mi := &file_ticket_proto_msgTypes[4]
  403. if protoimpl.UnsafeEnabled && x != nil {
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. if ms.LoadMessageInfo() == nil {
  406. ms.StoreMessageInfo(mi)
  407. }
  408. return ms
  409. }
  410. return mi.MessageOf(x)
  411. }
  412. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  413. func (*Message) Descriptor() ([]byte, []int) {
  414. return file_ticket_proto_rawDescGZIP(), []int{4}
  415. }
  416. func (x *Message) GetMessageId() string {
  417. if x != nil {
  418. return x.MessageId
  419. }
  420. return ""
  421. }
  422. func (x *Message) GetTicketId() string {
  423. if x != nil {
  424. return x.TicketId
  425. }
  426. return ""
  427. }
  428. func (x *Message) GetRole() string {
  429. if x != nil {
  430. return x.Role
  431. }
  432. return ""
  433. }
  434. func (x *Message) GetType() Message_Type {
  435. if x != nil {
  436. return x.Type
  437. }
  438. return Message_unknown
  439. }
  440. func (x *Message) GetContent() string {
  441. if x != nil {
  442. return x.Content
  443. }
  444. return ""
  445. }
  446. func (x *Message) GetDate() *timestamppb.Timestamp {
  447. if x != nil {
  448. return x.Date
  449. }
  450. return nil
  451. }
  452. func (x *Message) GetRaw() []byte {
  453. if x != nil {
  454. return x.Raw
  455. }
  456. return nil
  457. }
  458. func (x *Message) GetFlags() []byte {
  459. if x != nil {
  460. return x.Flags
  461. }
  462. return nil
  463. }
  464. func (x *Message) GetHeaders() map[string]string {
  465. if x != nil {
  466. return x.Headers
  467. }
  468. return nil
  469. }
  470. func (x *Message) GetMeta() map[string]string {
  471. if x != nil {
  472. return x.Meta
  473. }
  474. return nil
  475. }
  476. func (x *Message) GetAttachments() []*Message_Attachment {
  477. if x != nil {
  478. return x.Attachments
  479. }
  480. return nil
  481. }
  482. type Ticket struct {
  483. state protoimpl.MessageState
  484. sizeCache protoimpl.SizeCache
  485. unknownFields protoimpl.UnknownFields
  486. TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
  487. ThreadId string `protobuf:"bytes,2,opt,name=thread_id,proto3" json:"thread_id,omitempty"`
  488. To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
  489. From *EmailAddress `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
  490. Flags []byte `protobuf:"bytes,5,opt,name=flags,proto3" json:"flags,omitempty"`
  491. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"`
  492. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,proto3" json:"updated_at,omitempty"`
  493. Messages []*Message `protobuf:"bytes,10,rep,name=messages,proto3" json:"messages,omitempty"`
  494. 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"`
  495. Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
  496. }
  497. func (x *Ticket) Reset() {
  498. *x = Ticket{}
  499. if protoimpl.UnsafeEnabled {
  500. mi := &file_ticket_proto_msgTypes[5]
  501. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  502. ms.StoreMessageInfo(mi)
  503. }
  504. }
  505. func (x *Ticket) String() string {
  506. return protoimpl.X.MessageStringOf(x)
  507. }
  508. func (*Ticket) ProtoMessage() {}
  509. func (x *Ticket) ProtoReflect() protoreflect.Message {
  510. mi := &file_ticket_proto_msgTypes[5]
  511. if protoimpl.UnsafeEnabled && x != nil {
  512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  513. if ms.LoadMessageInfo() == nil {
  514. ms.StoreMessageInfo(mi)
  515. }
  516. return ms
  517. }
  518. return mi.MessageOf(x)
  519. }
  520. // Deprecated: Use Ticket.ProtoReflect.Descriptor instead.
  521. func (*Ticket) Descriptor() ([]byte, []int) {
  522. return file_ticket_proto_rawDescGZIP(), []int{5}
  523. }
  524. func (x *Ticket) GetTicketId() string {
  525. if x != nil {
  526. return x.TicketId
  527. }
  528. return ""
  529. }
  530. func (x *Ticket) GetThreadId() string {
  531. if x != nil {
  532. return x.ThreadId
  533. }
  534. return ""
  535. }
  536. func (x *Ticket) GetTo() string {
  537. if x != nil {
  538. return x.To
  539. }
  540. return ""
  541. }
  542. func (x *Ticket) GetFrom() *EmailAddress {
  543. if x != nil {
  544. return x.From
  545. }
  546. return nil
  547. }
  548. func (x *Ticket) GetFlags() []byte {
  549. if x != nil {
  550. return x.Flags
  551. }
  552. return nil
  553. }
  554. func (x *Ticket) GetCreatedAt() *timestamppb.Timestamp {
  555. if x != nil {
  556. return x.CreatedAt
  557. }
  558. return nil
  559. }
  560. func (x *Ticket) GetUpdatedAt() *timestamppb.Timestamp {
  561. if x != nil {
  562. return x.UpdatedAt
  563. }
  564. return nil
  565. }
  566. func (x *Ticket) GetMessages() []*Message {
  567. if x != nil {
  568. return x.Messages
  569. }
  570. return nil
  571. }
  572. func (x *Ticket) GetMeta() map[string]string {
  573. if x != nil {
  574. return x.Meta
  575. }
  576. return nil
  577. }
  578. func (x *Ticket) GetTags() []string {
  579. if x != nil {
  580. return x.Tags
  581. }
  582. return nil
  583. }
  584. type Message_Attachment struct {
  585. state protoimpl.MessageState
  586. sizeCache protoimpl.SizeCache
  587. unknownFields protoimpl.UnknownFields
  588. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  589. Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
  590. ContentType string `protobuf:"bytes,3,opt,name=content_type,proto3" json:"content_type,omitempty"`
  591. ContentEncoding string `protobuf:"bytes,4,opt,name=content_encoding,proto3" json:"content_encoding,omitempty"`
  592. Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"`
  593. Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
  594. }
  595. func (x *Message_Attachment) Reset() {
  596. *x = Message_Attachment{}
  597. if protoimpl.UnsafeEnabled {
  598. mi := &file_ticket_proto_msgTypes[6]
  599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  600. ms.StoreMessageInfo(mi)
  601. }
  602. }
  603. func (x *Message_Attachment) String() string {
  604. return protoimpl.X.MessageStringOf(x)
  605. }
  606. func (*Message_Attachment) ProtoMessage() {}
  607. func (x *Message_Attachment) ProtoReflect() protoreflect.Message {
  608. mi := &file_ticket_proto_msgTypes[6]
  609. if protoimpl.UnsafeEnabled && x != nil {
  610. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  611. if ms.LoadMessageInfo() == nil {
  612. ms.StoreMessageInfo(mi)
  613. }
  614. return ms
  615. }
  616. return mi.MessageOf(x)
  617. }
  618. // Deprecated: Use Message_Attachment.ProtoReflect.Descriptor instead.
  619. func (*Message_Attachment) Descriptor() ([]byte, []int) {
  620. return file_ticket_proto_rawDescGZIP(), []int{4, 0}
  621. }
  622. func (x *Message_Attachment) GetId() string {
  623. if x != nil {
  624. return x.Id
  625. }
  626. return ""
  627. }
  628. func (x *Message_Attachment) GetFilename() string {
  629. if x != nil {
  630. return x.Filename
  631. }
  632. return ""
  633. }
  634. func (x *Message_Attachment) GetContentType() string {
  635. if x != nil {
  636. return x.ContentType
  637. }
  638. return ""
  639. }
  640. func (x *Message_Attachment) GetContentEncoding() string {
  641. if x != nil {
  642. return x.ContentEncoding
  643. }
  644. return ""
  645. }
  646. func (x *Message_Attachment) GetBucket() string {
  647. if x != nil {
  648. return x.Bucket
  649. }
  650. return ""
  651. }
  652. func (x *Message_Attachment) GetKey() string {
  653. if x != nil {
  654. return x.Key
  655. }
  656. return ""
  657. }
  658. var File_ticket_proto protoreflect.FileDescriptor
  659. var file_ticket_proto_rawDesc = []byte{
  660. 0x0a, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  661. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  662. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  663. 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0c, 0x45, 0x6d, 0x61, 0x69, 0x6c,
  664. 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
  665. 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  666. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  667. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68,
  668. 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  669. 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  670. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65,
  671. 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
  672. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
  673. 0x74, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
  674. 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
  675. 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
  676. 0x22, 0xe0, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x52, 0x65,
  677. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
  678. 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20,
  679. 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d, 0x61,
  680. 0x69, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12,
  681. 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  682. 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74,
  683. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  684. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
  685. 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64,
  686. 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a,
  687. 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03,
  688. 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x61,
  689. 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
  690. 0x6e, 0x74, 0x73, 0x22, 0x67, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74,
  691. 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x24, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
  692. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d,
  693. 0x61, 0x69, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x18,
  694. 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  695. 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
  696. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x8c, 0x06, 0x0a,
  697. 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73,
  698. 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65,
  699. 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b,
  700. 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63,
  701. 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03,
  702. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79,
  703. 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65,
  704. 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
  705. 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
  706. 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x2e,
  707. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
  708. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
  709. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10,
  710. 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x61, 0x77,
  711. 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52,
  712. 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
  713. 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74,
  714. 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
  715. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2d,
  716. 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74,
  717. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
  718. 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x3c, 0x0a,
  719. 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x03,
  720. 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73,
  721. 0x61, 0x67, 0x65, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b,
  722. 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb2, 0x01, 0x0a, 0x0a,
  723. 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  724. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69,
  725. 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69,
  726. 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  727. 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f,
  728. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f,
  729. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04,
  730. 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e,
  731. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74,
  732. 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10,
  733. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  734. 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  735. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
  736. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  737. 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x37, 0x0a, 0x09,
  738. 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
  739. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
  740. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  741. 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x44, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a,
  742. 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x08,
  743. 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x41, 0x49,
  744. 0x4c, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x53, 0x53, 0x49, 0x53, 0x54, 0x41, 0x4e, 0x54,
  745. 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03, 0x22, 0xb4, 0x03, 0x0a, 0x06,
  746. 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74,
  747. 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65,
  748. 0x74, 0x5f, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x69,
  749. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f,
  750. 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  751. 0x74, 0x6f, 0x12, 0x28, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
  752. 0x32, 0x14, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x41,
  753. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05,
  754. 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x66, 0x6c, 0x61,
  755. 0x67, 0x73, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
  756. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  757. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
  758. 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x3a,
  759. 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01,
  760. 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  761. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a,
  762. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65,
  763. 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74,
  764. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d,
  765. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18,
  766. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x54,
  767. 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  768. 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0c, 0x20,
  769. 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74,
  770. 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  771. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  772. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  773. 0x38, 0x01, 0x2a, 0x43, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6c, 0x61,
  774. 0x67, 0x12, 0x1c, 0x0a, 0x14, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x6d, 0x65, 0x73,
  775. 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12,
  776. 0x08, 0x0a, 0x04, 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44,
  777. 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x29, 0x0a, 0x0a, 0x54, 0x69, 0x63, 0x6b, 0x65,
  778. 0x74, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x1b, 0x0a, 0x13, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e,
  779. 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x10, 0x00, 0x1a, 0x02,
  780. 0x08, 0x01, 0x42, 0x2d, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68, 0x6f, 0x70, 0x70,
  781. 0x65, 0x72, 0x2e, 0x63, 0x72, 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32,
  782. 0x42, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65,
  783. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  784. }
  785. var (
  786. file_ticket_proto_rawDescOnce sync.Once
  787. file_ticket_proto_rawDescData = file_ticket_proto_rawDesc
  788. )
  789. func file_ticket_proto_rawDescGZIP() []byte {
  790. file_ticket_proto_rawDescOnce.Do(func() {
  791. file_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(file_ticket_proto_rawDescData)
  792. })
  793. return file_ticket_proto_rawDescData
  794. }
  795. var file_ticket_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  796. var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  797. var file_ticket_proto_goTypes = []interface{}{
  798. (MessageFlag)(0), // 0: ticket.MessageFlag
  799. (TicketFlag)(0), // 1: ticket.TicketFlag
  800. (Message_Type)(0), // 2: ticket.Message.Type
  801. (*EmailAddress)(nil), // 3: ticket.EmailAddress
  802. (*Attachment)(nil), // 4: ticket.Attachment
  803. (*AssistantRequest)(nil), // 5: ticket.AssistantRequest
  804. (*AssistantCallback)(nil), // 6: ticket.AssistantCallback
  805. (*Message)(nil), // 7: ticket.Message
  806. (*Ticket)(nil), // 8: ticket.Ticket
  807. (*Message_Attachment)(nil), // 9: ticket.Message.Attachment
  808. nil, // 10: ticket.Message.HeadersEntry
  809. nil, // 11: ticket.Message.MetaEntry
  810. nil, // 12: ticket.Ticket.MetaEntry
  811. (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
  812. }
  813. var file_ticket_proto_depIdxs = []int32{
  814. 3, // 0: ticket.AssistantRequest.from:type_name -> ticket.EmailAddress
  815. 13, // 1: ticket.AssistantRequest.date:type_name -> google.protobuf.Timestamp
  816. 4, // 2: ticket.AssistantRequest.attachments:type_name -> ticket.Attachment
  817. 3, // 3: ticket.AssistantCallback.to:type_name -> ticket.EmailAddress
  818. 2, // 4: ticket.Message.type:type_name -> ticket.Message.Type
  819. 13, // 5: ticket.Message.date:type_name -> google.protobuf.Timestamp
  820. 10, // 6: ticket.Message.headers:type_name -> ticket.Message.HeadersEntry
  821. 11, // 7: ticket.Message.meta:type_name -> ticket.Message.MetaEntry
  822. 9, // 8: ticket.Message.attachments:type_name -> ticket.Message.Attachment
  823. 3, // 9: ticket.Ticket.from:type_name -> ticket.EmailAddress
  824. 13, // 10: ticket.Ticket.created_at:type_name -> google.protobuf.Timestamp
  825. 13, // 11: ticket.Ticket.updated_at:type_name -> google.protobuf.Timestamp
  826. 7, // 12: ticket.Ticket.messages:type_name -> ticket.Message
  827. 12, // 13: ticket.Ticket.meta:type_name -> ticket.Ticket.MetaEntry
  828. 14, // [14:14] is the sub-list for method output_type
  829. 14, // [14:14] is the sub-list for method input_type
  830. 14, // [14:14] is the sub-list for extension type_name
  831. 14, // [14:14] is the sub-list for extension extendee
  832. 0, // [0:14] is the sub-list for field type_name
  833. }
  834. func init() { file_ticket_proto_init() }
  835. func file_ticket_proto_init() {
  836. if File_ticket_proto != nil {
  837. return
  838. }
  839. if !protoimpl.UnsafeEnabled {
  840. file_ticket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  841. switch v := v.(*EmailAddress); 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[1].Exporter = func(v interface{}, i int) interface{} {
  853. switch v := v.(*Attachment); 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[2].Exporter = func(v interface{}, i int) interface{} {
  865. switch v := v.(*AssistantRequest); 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[3].Exporter = func(v interface{}, i int) interface{} {
  877. switch v := v.(*AssistantCallback); 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[4].Exporter = func(v interface{}, i int) interface{} {
  889. switch v := v.(*Message); 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. file_ticket_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  901. switch v := v.(*Ticket); i {
  902. case 0:
  903. return &v.state
  904. case 1:
  905. return &v.sizeCache
  906. case 2:
  907. return &v.unknownFields
  908. default:
  909. return nil
  910. }
  911. }
  912. file_ticket_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  913. switch v := v.(*Message_Attachment); i {
  914. case 0:
  915. return &v.state
  916. case 1:
  917. return &v.sizeCache
  918. case 2:
  919. return &v.unknownFields
  920. default:
  921. return nil
  922. }
  923. }
  924. }
  925. type x struct{}
  926. out := protoimpl.TypeBuilder{
  927. File: protoimpl.DescBuilder{
  928. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  929. RawDescriptor: file_ticket_proto_rawDesc,
  930. NumEnums: 3,
  931. NumMessages: 10,
  932. NumExtensions: 0,
  933. NumServices: 0,
  934. },
  935. GoTypes: file_ticket_proto_goTypes,
  936. DependencyIndexes: file_ticket_proto_depIdxs,
  937. EnumInfos: file_ticket_proto_enumTypes,
  938. MessageInfos: file_ticket_proto_msgTypes,
  939. }.Build()
  940. File_ticket_proto = out.File
  941. file_ticket_proto_rawDesc = nil
  942. file_ticket_proto_goTypes = nil
  943. file_ticket_proto_depIdxs = nil
  944. }