gobus.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.19.4
  5. // source: api/gobus.proto
  6. //
  7. //Файл содержит описание сервиса шины данных с необходимыми
  8. //структурами.
  9. package netapi
  10. import (
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // BuffRequest -- запрос на буферизованную подписку
  23. type BuffRequest struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Sample string `protobuf:"bytes,1,opt,name=Sample,proto3" json:"Sample,omitempty"` // Шаблон топиков на подписку
  28. ClientName string `protobuf:"bytes,2,opt,name=ClientName,proto3" json:"ClientName,omitempty"` // Уникальное имя клиента
  29. MsgSumSizeLimit int32 `protobuf:"varint,3,opt,name=MsgSumSizeLimit,proto3" json:"MsgSumSizeLimit,omitempty"` // Предел суммарного количества сообщений
  30. MsgSaveSecondLimit int32 `protobuf:"varint,4,opt,name=MsgSaveSecondLimit,proto3" json:"MsgSaveSecondLimit,omitempty"` // Предел в секундах как долго хранить буфер с момента последнего доступа
  31. }
  32. func (x *BuffRequest) Reset() {
  33. *x = BuffRequest{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_api_gobus_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *BuffRequest) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*BuffRequest) ProtoMessage() {}
  44. func (x *BuffRequest) ProtoReflect() protoreflect.Message {
  45. mi := &file_api_gobus_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use BuffRequest.ProtoReflect.Descriptor instead.
  56. func (*BuffRequest) Descriptor() ([]byte, []int) {
  57. return file_api_gobus_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *BuffRequest) GetSample() string {
  60. if x != nil {
  61. return x.Sample
  62. }
  63. return ""
  64. }
  65. func (x *BuffRequest) GetClientName() string {
  66. if x != nil {
  67. return x.ClientName
  68. }
  69. return ""
  70. }
  71. func (x *BuffRequest) GetMsgSumSizeLimit() int32 {
  72. if x != nil {
  73. return x.MsgSumSizeLimit
  74. }
  75. return 0
  76. }
  77. func (x *BuffRequest) GetMsgSaveSecondLimit() int32 {
  78. if x != nil {
  79. return x.MsgSaveSecondLimit
  80. }
  81. return 0
  82. }
  83. // BuffResponse -- ответ на буферизованную подписку
  84. type BuffResponse struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. IsLost bool `protobuf:"varint,1,opt,name=IsLost,proto3" json:"IsLost,omitempty"` // Признак, что часть данных была потеряна
  89. Msg []byte `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` // Сообщение из буфера
  90. }
  91. func (x *BuffResponse) Reset() {
  92. *x = BuffResponse{}
  93. if protoimpl.UnsafeEnabled {
  94. mi := &file_api_gobus_proto_msgTypes[1]
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. ms.StoreMessageInfo(mi)
  97. }
  98. }
  99. func (x *BuffResponse) String() string {
  100. return protoimpl.X.MessageStringOf(x)
  101. }
  102. func (*BuffResponse) ProtoMessage() {}
  103. func (x *BuffResponse) ProtoReflect() protoreflect.Message {
  104. mi := &file_api_gobus_proto_msgTypes[1]
  105. if protoimpl.UnsafeEnabled && x != nil {
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. if ms.LoadMessageInfo() == nil {
  108. ms.StoreMessageInfo(mi)
  109. }
  110. return ms
  111. }
  112. return mi.MessageOf(x)
  113. }
  114. // Deprecated: Use BuffResponse.ProtoReflect.Descriptor instead.
  115. func (*BuffResponse) Descriptor() ([]byte, []int) {
  116. return file_api_gobus_proto_rawDescGZIP(), []int{1}
  117. }
  118. func (x *BuffResponse) GetIsLost() bool {
  119. if x != nil {
  120. return x.IsLost
  121. }
  122. return false
  123. }
  124. func (x *BuffResponse) GetMsg() []byte {
  125. if x != nil {
  126. return x.Msg
  127. }
  128. return nil
  129. }
  130. // GetRequest -- ответ на запрос топиков по шаблону
  131. type GetRequest struct {
  132. state protoimpl.MessageState
  133. sizeCache protoimpl.SizeCache
  134. unknownFields protoimpl.UnknownFields
  135. Msg [][]byte `protobuf:"bytes,1,rep,name=Msg,proto3" json:"Msg,omitempty"` // Список сообщений в ответе
  136. }
  137. func (x *GetRequest) Reset() {
  138. *x = GetRequest{}
  139. if protoimpl.UnsafeEnabled {
  140. mi := &file_api_gobus_proto_msgTypes[2]
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. ms.StoreMessageInfo(mi)
  143. }
  144. }
  145. func (x *GetRequest) String() string {
  146. return protoimpl.X.MessageStringOf(x)
  147. }
  148. func (*GetRequest) ProtoMessage() {}
  149. func (x *GetRequest) ProtoReflect() protoreflect.Message {
  150. mi := &file_api_gobus_proto_msgTypes[2]
  151. if protoimpl.UnsafeEnabled && x != nil {
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. if ms.LoadMessageInfo() == nil {
  154. ms.StoreMessageInfo(mi)
  155. }
  156. return ms
  157. }
  158. return mi.MessageOf(x)
  159. }
  160. // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
  161. func (*GetRequest) Descriptor() ([]byte, []int) {
  162. return file_api_gobus_proto_rawDescGZIP(), []int{2}
  163. }
  164. func (x *GetRequest) GetMsg() [][]byte {
  165. if x != nil {
  166. return x.Msg
  167. }
  168. return nil
  169. }
  170. // SubscribeRequest -- запрос на подписку топиков по шаблону
  171. type SubscribeRequest struct {
  172. state protoimpl.MessageState
  173. sizeCache protoimpl.SizeCache
  174. unknownFields protoimpl.UnknownFields
  175. Sample string `protobuf:"bytes,1,opt,name=Sample,proto3" json:"Sample,omitempty"` // Шаблон топиков на подписку
  176. ClientName string `protobuf:"bytes,2,opt,name=ClientName,proto3" json:"ClientName,omitempty"` // Уникальное имя клиента
  177. }
  178. func (x *SubscribeRequest) Reset() {
  179. *x = SubscribeRequest{}
  180. if protoimpl.UnsafeEnabled {
  181. mi := &file_api_gobus_proto_msgTypes[3]
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. ms.StoreMessageInfo(mi)
  184. }
  185. }
  186. func (x *SubscribeRequest) String() string {
  187. return protoimpl.X.MessageStringOf(x)
  188. }
  189. func (*SubscribeRequest) ProtoMessage() {}
  190. func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
  191. mi := &file_api_gobus_proto_msgTypes[3]
  192. if protoimpl.UnsafeEnabled && x != nil {
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. if ms.LoadMessageInfo() == nil {
  195. ms.StoreMessageInfo(mi)
  196. }
  197. return ms
  198. }
  199. return mi.MessageOf(x)
  200. }
  201. // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
  202. func (*SubscribeRequest) Descriptor() ([]byte, []int) {
  203. return file_api_gobus_proto_rawDescGZIP(), []int{3}
  204. }
  205. func (x *SubscribeRequest) GetSample() string {
  206. if x != nil {
  207. return x.Sample
  208. }
  209. return ""
  210. }
  211. func (x *SubscribeRequest) GetClientName() string {
  212. if x != nil {
  213. return x.ClientName
  214. }
  215. return ""
  216. }
  217. // SyncRequest -- синхронный запрос в шину данных
  218. type SyncRequest struct {
  219. state protoimpl.MessageState
  220. sizeCache protoimpl.SizeCache
  221. unknownFields protoimpl.UnknownFields
  222. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
  223. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
  224. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  225. }
  226. func (x *SyncRequest) Reset() {
  227. *x = SyncRequest{}
  228. if protoimpl.UnsafeEnabled {
  229. mi := &file_api_gobus_proto_msgTypes[4]
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. ms.StoreMessageInfo(mi)
  232. }
  233. }
  234. func (x *SyncRequest) String() string {
  235. return protoimpl.X.MessageStringOf(x)
  236. }
  237. func (*SyncRequest) ProtoMessage() {}
  238. func (x *SyncRequest) ProtoReflect() protoreflect.Message {
  239. mi := &file_api_gobus_proto_msgTypes[4]
  240. if protoimpl.UnsafeEnabled && x != nil {
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. if ms.LoadMessageInfo() == nil {
  243. ms.StoreMessageInfo(mi)
  244. }
  245. return ms
  246. }
  247. return mi.MessageOf(x)
  248. }
  249. // Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
  250. func (*SyncRequest) Descriptor() ([]byte, []int) {
  251. return file_api_gobus_proto_rawDescGZIP(), []int{4}
  252. }
  253. func (x *SyncRequest) GetSource() int32 {
  254. if x != nil {
  255. return x.Source
  256. }
  257. return 0
  258. }
  259. func (x *SyncRequest) GetTopic() string {
  260. if x != nil {
  261. return x.Topic
  262. }
  263. return ""
  264. }
  265. func (x *SyncRequest) GetMsg() []byte {
  266. if x != nil {
  267. return x.Msg
  268. }
  269. return nil
  270. }
  271. // TopicMsg -- сообщение топика (внутри шины данных)
  272. type TopicMsg struct {
  273. state protoimpl.MessageState
  274. sizeCache protoimpl.SizeCache
  275. unknownFields protoimpl.UnknownFields
  276. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
  277. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
  278. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  279. }
  280. func (x *TopicMsg) Reset() {
  281. *x = TopicMsg{}
  282. if protoimpl.UnsafeEnabled {
  283. mi := &file_api_gobus_proto_msgTypes[5]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. }
  288. func (x *TopicMsg) String() string {
  289. return protoimpl.X.MessageStringOf(x)
  290. }
  291. func (*TopicMsg) ProtoMessage() {}
  292. func (x *TopicMsg) ProtoReflect() protoreflect.Message {
  293. mi := &file_api_gobus_proto_msgTypes[5]
  294. if protoimpl.UnsafeEnabled && x != nil {
  295. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  296. if ms.LoadMessageInfo() == nil {
  297. ms.StoreMessageInfo(mi)
  298. }
  299. return ms
  300. }
  301. return mi.MessageOf(x)
  302. }
  303. // Deprecated: Use TopicMsg.ProtoReflect.Descriptor instead.
  304. func (*TopicMsg) Descriptor() ([]byte, []int) {
  305. return file_api_gobus_proto_rawDescGZIP(), []int{5}
  306. }
  307. func (x *TopicMsg) GetSource() int32 {
  308. if x != nil {
  309. return x.Source
  310. }
  311. return 0
  312. }
  313. func (x *TopicMsg) GetTopic() string {
  314. if x != nil {
  315. return x.Topic
  316. }
  317. return ""
  318. }
  319. func (x *TopicMsg) GetMsg() []byte {
  320. if x != nil {
  321. return x.Msg
  322. }
  323. return nil
  324. }
  325. // SyncResponse -- ответ на синхронный запрос
  326. type SyncResponse struct {
  327. state protoimpl.MessageState
  328. sizeCache protoimpl.SizeCache
  329. unknownFields protoimpl.UnknownFields
  330. Msg []byte `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // Содержимое ответа на синхроныый запрос
  331. }
  332. func (x *SyncResponse) Reset() {
  333. *x = SyncResponse{}
  334. if protoimpl.UnsafeEnabled {
  335. mi := &file_api_gobus_proto_msgTypes[6]
  336. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  337. ms.StoreMessageInfo(mi)
  338. }
  339. }
  340. func (x *SyncResponse) String() string {
  341. return protoimpl.X.MessageStringOf(x)
  342. }
  343. func (*SyncResponse) ProtoMessage() {}
  344. func (x *SyncResponse) ProtoReflect() protoreflect.Message {
  345. mi := &file_api_gobus_proto_msgTypes[6]
  346. if protoimpl.UnsafeEnabled && x != nil {
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. if ms.LoadMessageInfo() == nil {
  349. ms.StoreMessageInfo(mi)
  350. }
  351. return ms
  352. }
  353. return mi.MessageOf(x)
  354. }
  355. // Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
  356. func (*SyncResponse) Descriptor() ([]byte, []int) {
  357. return file_api_gobus_proto_rawDescGZIP(), []int{6}
  358. }
  359. func (x *SyncResponse) GetMsg() []byte {
  360. if x != nil {
  361. return x.Msg
  362. }
  363. return nil
  364. }
  365. // PublicRequest -- запрос на публикацию сообщения
  366. type PublicRequest struct {
  367. state protoimpl.MessageState
  368. sizeCache protoimpl.SizeCache
  369. unknownFields protoimpl.UnknownFields
  370. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- для реплики)
  371. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Куда опубликовать сообщение
  372. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  373. Uuid string `protobuf:"bytes,4,opt,name=Uuid,proto3" json:"Uuid,omitempty"` // Уникальная метка сообщения
  374. RepliesList []int32 `protobuf:"varint,5,rep,packed,name=RepliesList,proto3" json:"RepliesList,omitempty"` // Список реплик, на которых сообщение уже опубликовано
  375. }
  376. func (x *PublicRequest) Reset() {
  377. *x = PublicRequest{}
  378. if protoimpl.UnsafeEnabled {
  379. mi := &file_api_gobus_proto_msgTypes[7]
  380. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  381. ms.StoreMessageInfo(mi)
  382. }
  383. }
  384. func (x *PublicRequest) String() string {
  385. return protoimpl.X.MessageStringOf(x)
  386. }
  387. func (*PublicRequest) ProtoMessage() {}
  388. func (x *PublicRequest) ProtoReflect() protoreflect.Message {
  389. mi := &file_api_gobus_proto_msgTypes[7]
  390. if protoimpl.UnsafeEnabled && x != nil {
  391. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  392. if ms.LoadMessageInfo() == nil {
  393. ms.StoreMessageInfo(mi)
  394. }
  395. return ms
  396. }
  397. return mi.MessageOf(x)
  398. }
  399. // Deprecated: Use PublicRequest.ProtoReflect.Descriptor instead.
  400. func (*PublicRequest) Descriptor() ([]byte, []int) {
  401. return file_api_gobus_proto_rawDescGZIP(), []int{7}
  402. }
  403. func (x *PublicRequest) GetSource() int32 {
  404. if x != nil {
  405. return x.Source
  406. }
  407. return 0
  408. }
  409. func (x *PublicRequest) GetTopic() string {
  410. if x != nil {
  411. return x.Topic
  412. }
  413. return ""
  414. }
  415. func (x *PublicRequest) GetMsg() []byte {
  416. if x != nil {
  417. return x.Msg
  418. }
  419. return nil
  420. }
  421. func (x *PublicRequest) GetUuid() string {
  422. if x != nil {
  423. return x.Uuid
  424. }
  425. return ""
  426. }
  427. func (x *PublicRequest) GetRepliesList() []int32 {
  428. if x != nil {
  429. return x.RepliesList
  430. }
  431. return nil
  432. }
  433. // DefaultResponse -- возвращаемое значение по умолчанию (ничего не содержит)
  434. type DefaultResponse struct {
  435. state protoimpl.MessageState
  436. sizeCache protoimpl.SizeCache
  437. unknownFields protoimpl.UnknownFields
  438. }
  439. func (x *DefaultResponse) Reset() {
  440. *x = DefaultResponse{}
  441. if protoimpl.UnsafeEnabled {
  442. mi := &file_api_gobus_proto_msgTypes[8]
  443. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  444. ms.StoreMessageInfo(mi)
  445. }
  446. }
  447. func (x *DefaultResponse) String() string {
  448. return protoimpl.X.MessageStringOf(x)
  449. }
  450. func (*DefaultResponse) ProtoMessage() {}
  451. func (x *DefaultResponse) ProtoReflect() protoreflect.Message {
  452. mi := &file_api_gobus_proto_msgTypes[8]
  453. if protoimpl.UnsafeEnabled && x != nil {
  454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  455. if ms.LoadMessageInfo() == nil {
  456. ms.StoreMessageInfo(mi)
  457. }
  458. return ms
  459. }
  460. return mi.MessageOf(x)
  461. }
  462. // Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
  463. func (*DefaultResponse) Descriptor() ([]byte, []int) {
  464. return file_api_gobus_proto_rawDescGZIP(), []int{8}
  465. }
  466. var File_api_gobus_proto protoreflect.FileDescriptor
  467. var file_api_gobus_proto_rawDesc = []byte{
  468. 0x0a, 0x0f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  469. 0x6f, 0x12, 0x08, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x22, 0x9f, 0x01, 0x0a, 0x0b,
  470. 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53,
  471. 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
  472. 0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
  473. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
  474. 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x6d, 0x53, 0x69, 0x7a,
  475. 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x4d, 0x73,
  476. 0x67, 0x53, 0x75, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a,
  477. 0x12, 0x4d, 0x73, 0x67, 0x53, 0x61, 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x69,
  478. 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x4d, 0x73, 0x67, 0x53, 0x61,
  479. 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x38, 0x0a,
  480. 0x0c, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a,
  481. 0x06, 0x49, 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49,
  482. 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
  483. 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65,
  484. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x03,
  485. 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x4a, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63,
  486. 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53,
  487. 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
  488. 0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
  489. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
  490. 0x61, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
  491. 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
  492. 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
  493. 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63,
  494. 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d,
  495. 0x73, 0x67, 0x22, 0x4a, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x16,
  496. 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
  497. 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18,
  498. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03,
  499. 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x20,
  500. 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10,
  501. 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67,
  502. 0x22, 0x85, 0x01, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
  503. 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
  504. 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
  505. 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63,
  506. 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d,
  507. 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  508. 0x52, 0x04, 0x55, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x65,
  509. 0x73, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x52, 0x65, 0x70,
  510. 0x6c, 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61,
  511. 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcc, 0x02, 0x0a, 0x05,
  512. 0x47, 0x6f, 0x42, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12,
  513. 0x17, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69,
  514. 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
  515. 0x72, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
  516. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x79, 0x6e,
  517. 0x63, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e,
  518. 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
  519. 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  520. 0x22, 0x00, 0x12, 0x43, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12,
  521. 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
  522. 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61,
  523. 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f,
  524. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63,
  525. 0x72, 0x69, 0x62, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72,
  526. 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  527. 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66,
  528. 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a,
  529. 0x03, 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e,
  530. 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  531. 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63,
  532. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
  533. 0x6e, 0x65, 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  534. }
  535. var (
  536. file_api_gobus_proto_rawDescOnce sync.Once
  537. file_api_gobus_proto_rawDescData = file_api_gobus_proto_rawDesc
  538. )
  539. func file_api_gobus_proto_rawDescGZIP() []byte {
  540. file_api_gobus_proto_rawDescOnce.Do(func() {
  541. file_api_gobus_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_gobus_proto_rawDescData)
  542. })
  543. return file_api_gobus_proto_rawDescData
  544. }
  545. var file_api_gobus_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  546. var file_api_gobus_proto_goTypes = []interface{}{
  547. (*BuffRequest)(nil), // 0: parserin.BuffRequest
  548. (*BuffResponse)(nil), // 1: parserin.BuffResponse
  549. (*GetRequest)(nil), // 2: parserin.GetRequest
  550. (*SubscribeRequest)(nil), // 3: parserin.SubscribeRequest
  551. (*SyncRequest)(nil), // 4: parserin.SyncRequest
  552. (*TopicMsg)(nil), // 5: parserin.TopicMsg
  553. (*SyncResponse)(nil), // 6: parserin.SyncResponse
  554. (*PublicRequest)(nil), // 7: parserin.PublicRequest
  555. (*DefaultResponse)(nil), // 8: parserin.DefaultResponse
  556. }
  557. var file_api_gobus_proto_depIdxs = []int32{
  558. 7, // 0: parserin.GoBus.Public:input_type -> parserin.PublicRequest
  559. 4, // 1: parserin.GoBus.SendSync:input_type -> parserin.SyncRequest
  560. 3, // 2: parserin.GoBus.Subscribe:input_type -> parserin.SubscribeRequest
  561. 0, // 3: parserin.GoBus.SubscribeBuffer:input_type -> parserin.BuffRequest
  562. 3, // 4: parserin.GoBus.Get:input_type -> parserin.SubscribeRequest
  563. 8, // 5: parserin.GoBus.Public:output_type -> parserin.DefaultResponse
  564. 6, // 6: parserin.GoBus.SendSync:output_type -> parserin.SyncResponse
  565. 6, // 7: parserin.GoBus.Subscribe:output_type -> parserin.SyncResponse
  566. 1, // 8: parserin.GoBus.SubscribeBuffer:output_type -> parserin.BuffResponse
  567. 6, // 9: parserin.GoBus.Get:output_type -> parserin.SyncResponse
  568. 5, // [5:10] is the sub-list for method output_type
  569. 0, // [0:5] is the sub-list for method input_type
  570. 0, // [0:0] is the sub-list for extension type_name
  571. 0, // [0:0] is the sub-list for extension extendee
  572. 0, // [0:0] is the sub-list for field type_name
  573. }
  574. func init() { file_api_gobus_proto_init() }
  575. func file_api_gobus_proto_init() {
  576. if File_api_gobus_proto != nil {
  577. return
  578. }
  579. if !protoimpl.UnsafeEnabled {
  580. file_api_gobus_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  581. switch v := v.(*BuffRequest); i {
  582. case 0:
  583. return &v.state
  584. case 1:
  585. return &v.sizeCache
  586. case 2:
  587. return &v.unknownFields
  588. default:
  589. return nil
  590. }
  591. }
  592. file_api_gobus_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  593. switch v := v.(*BuffResponse); i {
  594. case 0:
  595. return &v.state
  596. case 1:
  597. return &v.sizeCache
  598. case 2:
  599. return &v.unknownFields
  600. default:
  601. return nil
  602. }
  603. }
  604. file_api_gobus_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  605. switch v := v.(*GetRequest); i {
  606. case 0:
  607. return &v.state
  608. case 1:
  609. return &v.sizeCache
  610. case 2:
  611. return &v.unknownFields
  612. default:
  613. return nil
  614. }
  615. }
  616. file_api_gobus_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  617. switch v := v.(*SubscribeRequest); i {
  618. case 0:
  619. return &v.state
  620. case 1:
  621. return &v.sizeCache
  622. case 2:
  623. return &v.unknownFields
  624. default:
  625. return nil
  626. }
  627. }
  628. file_api_gobus_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  629. switch v := v.(*SyncRequest); i {
  630. case 0:
  631. return &v.state
  632. case 1:
  633. return &v.sizeCache
  634. case 2:
  635. return &v.unknownFields
  636. default:
  637. return nil
  638. }
  639. }
  640. file_api_gobus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  641. switch v := v.(*TopicMsg); i {
  642. case 0:
  643. return &v.state
  644. case 1:
  645. return &v.sizeCache
  646. case 2:
  647. return &v.unknownFields
  648. default:
  649. return nil
  650. }
  651. }
  652. file_api_gobus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  653. switch v := v.(*SyncResponse); i {
  654. case 0:
  655. return &v.state
  656. case 1:
  657. return &v.sizeCache
  658. case 2:
  659. return &v.unknownFields
  660. default:
  661. return nil
  662. }
  663. }
  664. file_api_gobus_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  665. switch v := v.(*PublicRequest); i {
  666. case 0:
  667. return &v.state
  668. case 1:
  669. return &v.sizeCache
  670. case 2:
  671. return &v.unknownFields
  672. default:
  673. return nil
  674. }
  675. }
  676. file_api_gobus_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  677. switch v := v.(*DefaultResponse); i {
  678. case 0:
  679. return &v.state
  680. case 1:
  681. return &v.sizeCache
  682. case 2:
  683. return &v.unknownFields
  684. default:
  685. return nil
  686. }
  687. }
  688. }
  689. type x struct{}
  690. out := protoimpl.TypeBuilder{
  691. File: protoimpl.DescBuilder{
  692. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  693. RawDescriptor: file_api_gobus_proto_rawDesc,
  694. NumEnums: 0,
  695. NumMessages: 9,
  696. NumExtensions: 0,
  697. NumServices: 1,
  698. },
  699. GoTypes: file_api_gobus_proto_goTypes,
  700. DependencyIndexes: file_api_gobus_proto_depIdxs,
  701. MessageInfos: file_api_gobus_proto_msgTypes,
  702. }.Build()
  703. File_api_gobus_proto = out.File
  704. file_api_gobus_proto_rawDesc = nil
  705. file_api_gobus_proto_goTypes = nil
  706. file_api_gobus_proto_depIdxs = nil
  707. }