ticket.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.23.3
  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. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type MessageProvider int32
  20. const (
  21. MessageProvider_UnknownMessageProvider MessageProvider = 0
  22. MessageProvider_EmailMessageProvider MessageProvider = 1
  23. MessageProvider_ChatMessageProvider MessageProvider = 2
  24. MessageProvider_GptMessageProvider MessageProvider = 3
  25. MessageProvider_ApiMessageProvider MessageProvider = 4
  26. MessageProvider_FunctionProvider MessageProvider = 5
  27. )
  28. // Enum value maps for MessageProvider.
  29. var (
  30. MessageProvider_name = map[int32]string{
  31. 0: "UnknownMessageProvider",
  32. 1: "EmailMessageProvider",
  33. 2: "ChatMessageProvider",
  34. 3: "GptMessageProvider",
  35. 4: "ApiMessageProvider",
  36. 5: "FunctionProvider",
  37. }
  38. MessageProvider_value = map[string]int32{
  39. "UnknownMessageProvider": 0,
  40. "EmailMessageProvider": 1,
  41. "ChatMessageProvider": 2,
  42. "GptMessageProvider": 3,
  43. "ApiMessageProvider": 4,
  44. "FunctionProvider": 5,
  45. }
  46. )
  47. func (x MessageProvider) Enum() *MessageProvider {
  48. p := new(MessageProvider)
  49. *p = x
  50. return p
  51. }
  52. func (x MessageProvider) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (MessageProvider) Descriptor() protoreflect.EnumDescriptor {
  56. return file_ticket_proto_enumTypes[0].Descriptor()
  57. }
  58. func (MessageProvider) Type() protoreflect.EnumType {
  59. return &file_ticket_proto_enumTypes[0]
  60. }
  61. func (x MessageProvider) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use MessageProvider.Descriptor instead.
  65. func (MessageProvider) EnumDescriptor() ([]byte, []int) {
  66. return file_ticket_proto_rawDescGZIP(), []int{0}
  67. }
  68. type Message struct {
  69. state protoimpl.MessageState
  70. sizeCache protoimpl.SizeCache
  71. unknownFields protoimpl.UnknownFields
  72. TicketId string `protobuf:"bytes,1,opt,name=ticket_id,proto3" json:"ticket_id,omitempty"`
  73. Provider MessageProvider `protobuf:"varint,2,opt,name=provider,proto3,enum=ticket.MessageProvider" json:"provider,omitempty"`
  74. Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
  75. Date int64 `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"`
  76. Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
  77. Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
  78. Flags []byte `protobuf:"bytes,7,opt,name=flags,proto3" json:"flags,omitempty"`
  79. Headers []*Message_Header `protobuf:"bytes,10,rep,name=headers,proto3" json:"headers,omitempty"`
  80. }
  81. func (x *Message) Reset() {
  82. *x = Message{}
  83. if protoimpl.UnsafeEnabled {
  84. mi := &file_ticket_proto_msgTypes[0]
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. ms.StoreMessageInfo(mi)
  87. }
  88. }
  89. func (x *Message) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*Message) ProtoMessage() {}
  93. func (x *Message) ProtoReflect() protoreflect.Message {
  94. mi := &file_ticket_proto_msgTypes[0]
  95. if protoimpl.UnsafeEnabled && x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  105. func (*Message) Descriptor() ([]byte, []int) {
  106. return file_ticket_proto_rawDescGZIP(), []int{0}
  107. }
  108. func (x *Message) GetTicketId() string {
  109. if x != nil {
  110. return x.TicketId
  111. }
  112. return ""
  113. }
  114. func (x *Message) GetProvider() MessageProvider {
  115. if x != nil {
  116. return x.Provider
  117. }
  118. return MessageProvider_UnknownMessageProvider
  119. }
  120. func (x *Message) GetBody() string {
  121. if x != nil {
  122. return x.Body
  123. }
  124. return ""
  125. }
  126. func (x *Message) GetDate() int64 {
  127. if x != nil {
  128. return x.Date
  129. }
  130. return 0
  131. }
  132. func (x *Message) GetRaw() string {
  133. if x != nil {
  134. return x.Raw
  135. }
  136. return ""
  137. }
  138. func (x *Message) GetId() string {
  139. if x != nil {
  140. return x.Id
  141. }
  142. return ""
  143. }
  144. func (x *Message) GetFlags() []byte {
  145. if x != nil {
  146. return x.Flags
  147. }
  148. return nil
  149. }
  150. func (x *Message) GetHeaders() []*Message_Header {
  151. if x != nil {
  152. return x.Headers
  153. }
  154. return nil
  155. }
  156. type Ticket struct {
  157. state protoimpl.MessageState
  158. sizeCache protoimpl.SizeCache
  159. unknownFields protoimpl.UnknownFields
  160. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  161. Thread []*Message `protobuf:"bytes,10,rep,name=thread,proto3" json:"thread,omitempty"`
  162. }
  163. func (x *Ticket) Reset() {
  164. *x = Ticket{}
  165. if protoimpl.UnsafeEnabled {
  166. mi := &file_ticket_proto_msgTypes[1]
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. ms.StoreMessageInfo(mi)
  169. }
  170. }
  171. func (x *Ticket) String() string {
  172. return protoimpl.X.MessageStringOf(x)
  173. }
  174. func (*Ticket) ProtoMessage() {}
  175. func (x *Ticket) ProtoReflect() protoreflect.Message {
  176. mi := &file_ticket_proto_msgTypes[1]
  177. if protoimpl.UnsafeEnabled && x != nil {
  178. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  179. if ms.LoadMessageInfo() == nil {
  180. ms.StoreMessageInfo(mi)
  181. }
  182. return ms
  183. }
  184. return mi.MessageOf(x)
  185. }
  186. // Deprecated: Use Ticket.ProtoReflect.Descriptor instead.
  187. func (*Ticket) Descriptor() ([]byte, []int) {
  188. return file_ticket_proto_rawDescGZIP(), []int{1}
  189. }
  190. func (x *Ticket) GetId() string {
  191. if x != nil {
  192. return x.Id
  193. }
  194. return ""
  195. }
  196. func (x *Ticket) GetThread() []*Message {
  197. if x != nil {
  198. return x.Thread
  199. }
  200. return nil
  201. }
  202. type Message_Header struct {
  203. state protoimpl.MessageState
  204. sizeCache protoimpl.SizeCache
  205. unknownFields protoimpl.UnknownFields
  206. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  207. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  208. }
  209. func (x *Message_Header) Reset() {
  210. *x = Message_Header{}
  211. if protoimpl.UnsafeEnabled {
  212. mi := &file_ticket_proto_msgTypes[2]
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. ms.StoreMessageInfo(mi)
  215. }
  216. }
  217. func (x *Message_Header) String() string {
  218. return protoimpl.X.MessageStringOf(x)
  219. }
  220. func (*Message_Header) ProtoMessage() {}
  221. func (x *Message_Header) ProtoReflect() protoreflect.Message {
  222. mi := &file_ticket_proto_msgTypes[2]
  223. if protoimpl.UnsafeEnabled && x != nil {
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. if ms.LoadMessageInfo() == nil {
  226. ms.StoreMessageInfo(mi)
  227. }
  228. return ms
  229. }
  230. return mi.MessageOf(x)
  231. }
  232. // Deprecated: Use Message_Header.ProtoReflect.Descriptor instead.
  233. func (*Message_Header) Descriptor() ([]byte, []int) {
  234. return file_ticket_proto_rawDescGZIP(), []int{0, 0}
  235. }
  236. func (x *Message_Header) GetKey() string {
  237. if x != nil {
  238. return x.Key
  239. }
  240. return ""
  241. }
  242. func (x *Message_Header) GetValue() string {
  243. if x != nil {
  244. return x.Value
  245. }
  246. return ""
  247. }
  248. var File_ticket_proto protoreflect.FileDescriptor
  249. var file_ticket_proto_rawDesc = []byte{
  250. 0x0a, 0x0c, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  251. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xa0, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
  252. 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18,
  253. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x64,
  254. 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
  255. 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73,
  256. 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f,
  257. 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20,
  258. 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
  259. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a,
  260. 0x03, 0x72, 0x61, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12,
  261. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
  262. 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05,
  263. 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
  264. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e,
  265. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07,
  266. 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65,
  267. 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  268. 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
  269. 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x41, 0x0a, 0x06, 0x54, 0x69, 0x63,
  270. 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  271. 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20,
  272. 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73,
  273. 0x73, 0x61, 0x67, 0x65, 0x52, 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x2a, 0xa6, 0x01, 0x0a,
  274. 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
  275. 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61,
  276. 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,
  277. 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76,
  278. 0x69, 0x64, 0x65, 0x72, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x68, 0x61, 0x74, 0x4d, 0x65,
  279. 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x02, 0x12,
  280. 0x16, 0x0a, 0x12, 0x47, 0x70, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f,
  281. 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x70, 0x69, 0x4d, 0x65,
  282. 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x10, 0x04, 0x12,
  283. 0x14, 0x0a, 0x10, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
  284. 0x64, 0x65, 0x72, 0x10, 0x05, 0x42, 0x2a, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x73, 0x68,
  285. 0x6f, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x63, 0x72, 0x6d, 0x2e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74,
  286. 0x42, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x08, 0x2e, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65,
  287. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  288. }
  289. var (
  290. file_ticket_proto_rawDescOnce sync.Once
  291. file_ticket_proto_rawDescData = file_ticket_proto_rawDesc
  292. )
  293. func file_ticket_proto_rawDescGZIP() []byte {
  294. file_ticket_proto_rawDescOnce.Do(func() {
  295. file_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(file_ticket_proto_rawDescData)
  296. })
  297. return file_ticket_proto_rawDescData
  298. }
  299. var file_ticket_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  300. var file_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  301. var file_ticket_proto_goTypes = []interface{}{
  302. (MessageProvider)(0), // 0: ticket.MessageProvider
  303. (*Message)(nil), // 1: ticket.Message
  304. (*Ticket)(nil), // 2: ticket.Ticket
  305. (*Message_Header)(nil), // 3: ticket.Message.Header
  306. }
  307. var file_ticket_proto_depIdxs = []int32{
  308. 0, // 0: ticket.Message.provider:type_name -> ticket.MessageProvider
  309. 3, // 1: ticket.Message.headers:type_name -> ticket.Message.Header
  310. 1, // 2: ticket.Ticket.thread:type_name -> ticket.Message
  311. 3, // [3:3] is the sub-list for method output_type
  312. 3, // [3:3] is the sub-list for method input_type
  313. 3, // [3:3] is the sub-list for extension type_name
  314. 3, // [3:3] is the sub-list for extension extendee
  315. 0, // [0:3] is the sub-list for field type_name
  316. }
  317. func init() { file_ticket_proto_init() }
  318. func file_ticket_proto_init() {
  319. if File_ticket_proto != nil {
  320. return
  321. }
  322. if !protoimpl.UnsafeEnabled {
  323. file_ticket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  324. switch v := v.(*Message); i {
  325. case 0:
  326. return &v.state
  327. case 1:
  328. return &v.sizeCache
  329. case 2:
  330. return &v.unknownFields
  331. default:
  332. return nil
  333. }
  334. }
  335. file_ticket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  336. switch v := v.(*Ticket); i {
  337. case 0:
  338. return &v.state
  339. case 1:
  340. return &v.sizeCache
  341. case 2:
  342. return &v.unknownFields
  343. default:
  344. return nil
  345. }
  346. }
  347. file_ticket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  348. switch v := v.(*Message_Header); i {
  349. case 0:
  350. return &v.state
  351. case 1:
  352. return &v.sizeCache
  353. case 2:
  354. return &v.unknownFields
  355. default:
  356. return nil
  357. }
  358. }
  359. }
  360. type x struct{}
  361. out := protoimpl.TypeBuilder{
  362. File: protoimpl.DescBuilder{
  363. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  364. RawDescriptor: file_ticket_proto_rawDesc,
  365. NumEnums: 1,
  366. NumMessages: 3,
  367. NumExtensions: 0,
  368. NumServices: 0,
  369. },
  370. GoTypes: file_ticket_proto_goTypes,
  371. DependencyIndexes: file_ticket_proto_depIdxs,
  372. EnumInfos: file_ticket_proto_enumTypes,
  373. MessageInfos: file_ticket_proto_msgTypes,
  374. }.Build()
  375. File_ticket_proto = out.File
  376. file_ticket_proto_rawDesc = nil
  377. file_ticket_proto_goTypes = nil
  378. file_ticket_proto_depIdxs = nil
  379. }