gobus.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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. TopicMsg *TopicMsg `protobuf:"bytes,1,opt,name=topicMsg,proto3" json:"topicMsg,omitempty"` // Вложенное сообщение
  223. }
  224. func (x *SyncRequest) Reset() {
  225. *x = SyncRequest{}
  226. if protoimpl.UnsafeEnabled {
  227. mi := &file_api_gobus_proto_msgTypes[4]
  228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  229. ms.StoreMessageInfo(mi)
  230. }
  231. }
  232. func (x *SyncRequest) String() string {
  233. return protoimpl.X.MessageStringOf(x)
  234. }
  235. func (*SyncRequest) ProtoMessage() {}
  236. func (x *SyncRequest) ProtoReflect() protoreflect.Message {
  237. mi := &file_api_gobus_proto_msgTypes[4]
  238. if protoimpl.UnsafeEnabled && x != nil {
  239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  240. if ms.LoadMessageInfo() == nil {
  241. ms.StoreMessageInfo(mi)
  242. }
  243. return ms
  244. }
  245. return mi.MessageOf(x)
  246. }
  247. // Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
  248. func (*SyncRequest) Descriptor() ([]byte, []int) {
  249. return file_api_gobus_proto_rawDescGZIP(), []int{4}
  250. }
  251. func (x *SyncRequest) GetTopicMsg() *TopicMsg {
  252. if x != nil {
  253. return x.TopicMsg
  254. }
  255. return nil
  256. }
  257. // SyncResponse -- ответ на синхронный запрос
  258. type SyncResponse struct {
  259. state protoimpl.MessageState
  260. sizeCache protoimpl.SizeCache
  261. unknownFields protoimpl.UnknownFields
  262. Msg []byte `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty"` // Содержимое ответа на синхроныый запрос
  263. }
  264. func (x *SyncResponse) Reset() {
  265. *x = SyncResponse{}
  266. if protoimpl.UnsafeEnabled {
  267. mi := &file_api_gobus_proto_msgTypes[5]
  268. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  269. ms.StoreMessageInfo(mi)
  270. }
  271. }
  272. func (x *SyncResponse) String() string {
  273. return protoimpl.X.MessageStringOf(x)
  274. }
  275. func (*SyncResponse) ProtoMessage() {}
  276. func (x *SyncResponse) ProtoReflect() protoreflect.Message {
  277. mi := &file_api_gobus_proto_msgTypes[5]
  278. if protoimpl.UnsafeEnabled && x != nil {
  279. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  280. if ms.LoadMessageInfo() == nil {
  281. ms.StoreMessageInfo(mi)
  282. }
  283. return ms
  284. }
  285. return mi.MessageOf(x)
  286. }
  287. // Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
  288. func (*SyncResponse) Descriptor() ([]byte, []int) {
  289. return file_api_gobus_proto_rawDescGZIP(), []int{5}
  290. }
  291. func (x *SyncResponse) GetMsg() []byte {
  292. if x != nil {
  293. return x.Msg
  294. }
  295. return nil
  296. }
  297. // PublicRequest -- запрос на публикацию сообщения
  298. type PublicRequest struct {
  299. state protoimpl.MessageState
  300. sizeCache protoimpl.SizeCache
  301. unknownFields protoimpl.UnknownFields
  302. TopicMsg *TopicMsg `protobuf:"bytes,1,opt,name=topicMsg,proto3" json:"topicMsg,omitempty"`
  303. RepliesList []int32 `protobuf:"varint,2,rep,packed,name=RepliesList,proto3" json:"RepliesList,omitempty"` // Список реплик, на которых сообщение уже опубликовано
  304. }
  305. func (x *PublicRequest) Reset() {
  306. *x = PublicRequest{}
  307. if protoimpl.UnsafeEnabled {
  308. mi := &file_api_gobus_proto_msgTypes[6]
  309. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  310. ms.StoreMessageInfo(mi)
  311. }
  312. }
  313. func (x *PublicRequest) String() string {
  314. return protoimpl.X.MessageStringOf(x)
  315. }
  316. func (*PublicRequest) ProtoMessage() {}
  317. func (x *PublicRequest) ProtoReflect() protoreflect.Message {
  318. mi := &file_api_gobus_proto_msgTypes[6]
  319. if protoimpl.UnsafeEnabled && x != nil {
  320. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  321. if ms.LoadMessageInfo() == nil {
  322. ms.StoreMessageInfo(mi)
  323. }
  324. return ms
  325. }
  326. return mi.MessageOf(x)
  327. }
  328. // Deprecated: Use PublicRequest.ProtoReflect.Descriptor instead.
  329. func (*PublicRequest) Descriptor() ([]byte, []int) {
  330. return file_api_gobus_proto_rawDescGZIP(), []int{6}
  331. }
  332. func (x *PublicRequest) GetTopicMsg() *TopicMsg {
  333. if x != nil {
  334. return x.TopicMsg
  335. }
  336. return nil
  337. }
  338. func (x *PublicRequest) GetRepliesList() []int32 {
  339. if x != nil {
  340. return x.RepliesList
  341. }
  342. return nil
  343. }
  344. // TopicMsg -- сообщение топика (внутри шины данных)
  345. type TopicMsg struct {
  346. state protoimpl.MessageState
  347. sizeCache protoimpl.SizeCache
  348. unknownFields protoimpl.UnknownFields
  349. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
  350. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
  351. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  352. Uuid string `protobuf:"bytes,4,opt,name=Uuid,proto3" json:"Uuid,omitempty"` // Уникальная метка сообщения
  353. }
  354. func (x *TopicMsg) Reset() {
  355. *x = TopicMsg{}
  356. if protoimpl.UnsafeEnabled {
  357. mi := &file_api_gobus_proto_msgTypes[7]
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. ms.StoreMessageInfo(mi)
  360. }
  361. }
  362. func (x *TopicMsg) String() string {
  363. return protoimpl.X.MessageStringOf(x)
  364. }
  365. func (*TopicMsg) ProtoMessage() {}
  366. func (x *TopicMsg) ProtoReflect() protoreflect.Message {
  367. mi := &file_api_gobus_proto_msgTypes[7]
  368. if protoimpl.UnsafeEnabled && x != nil {
  369. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  370. if ms.LoadMessageInfo() == nil {
  371. ms.StoreMessageInfo(mi)
  372. }
  373. return ms
  374. }
  375. return mi.MessageOf(x)
  376. }
  377. // Deprecated: Use TopicMsg.ProtoReflect.Descriptor instead.
  378. func (*TopicMsg) Descriptor() ([]byte, []int) {
  379. return file_api_gobus_proto_rawDescGZIP(), []int{7}
  380. }
  381. func (x *TopicMsg) GetSource() int32 {
  382. if x != nil {
  383. return x.Source
  384. }
  385. return 0
  386. }
  387. func (x *TopicMsg) GetTopic() string {
  388. if x != nil {
  389. return x.Topic
  390. }
  391. return ""
  392. }
  393. func (x *TopicMsg) GetMsg() []byte {
  394. if x != nil {
  395. return x.Msg
  396. }
  397. return nil
  398. }
  399. func (x *TopicMsg) GetUuid() string {
  400. if x != nil {
  401. return x.Uuid
  402. }
  403. return ""
  404. }
  405. // DefaultResponse -- возвращаемое значение по умолчанию (ничего не содержит)
  406. type DefaultResponse struct {
  407. state protoimpl.MessageState
  408. sizeCache protoimpl.SizeCache
  409. unknownFields protoimpl.UnknownFields
  410. }
  411. func (x *DefaultResponse) Reset() {
  412. *x = DefaultResponse{}
  413. if protoimpl.UnsafeEnabled {
  414. mi := &file_api_gobus_proto_msgTypes[8]
  415. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  416. ms.StoreMessageInfo(mi)
  417. }
  418. }
  419. func (x *DefaultResponse) String() string {
  420. return protoimpl.X.MessageStringOf(x)
  421. }
  422. func (*DefaultResponse) ProtoMessage() {}
  423. func (x *DefaultResponse) ProtoReflect() protoreflect.Message {
  424. mi := &file_api_gobus_proto_msgTypes[8]
  425. if protoimpl.UnsafeEnabled && x != nil {
  426. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  427. if ms.LoadMessageInfo() == nil {
  428. ms.StoreMessageInfo(mi)
  429. }
  430. return ms
  431. }
  432. return mi.MessageOf(x)
  433. }
  434. // Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
  435. func (*DefaultResponse) Descriptor() ([]byte, []int) {
  436. return file_api_gobus_proto_rawDescGZIP(), []int{8}
  437. }
  438. var File_api_gobus_proto protoreflect.FileDescriptor
  439. var file_api_gobus_proto_rawDesc = []byte{
  440. 0x0a, 0x0f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  441. 0x6f, 0x12, 0x08, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x22, 0x9f, 0x01, 0x0a, 0x0b,
  442. 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53,
  443. 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
  444. 0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
  445. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
  446. 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x6d, 0x53, 0x69, 0x7a,
  447. 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x4d, 0x73,
  448. 0x67, 0x53, 0x75, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a,
  449. 0x12, 0x4d, 0x73, 0x67, 0x53, 0x61, 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x69,
  450. 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x4d, 0x73, 0x67, 0x53, 0x61,
  451. 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x38, 0x0a,
  452. 0x0c, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a,
  453. 0x06, 0x49, 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49,
  454. 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
  455. 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65,
  456. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x03,
  457. 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x4a, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63,
  458. 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53,
  459. 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x61, 0x6d,
  460. 0x70, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
  461. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4e,
  462. 0x61, 0x6d, 0x65, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
  463. 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x18, 0x01,
  464. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e,
  465. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x52, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d,
  466. 0x73, 0x67, 0x22, 0x20, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  467. 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  468. 0x03, 0x4d, 0x73, 0x67, 0x22, 0x61, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65,
  469. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73,
  470. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
  471. 0x69, 0x6e, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x73, 0x67, 0x52, 0x08, 0x74, 0x6f, 0x70,
  472. 0x69, 0x63, 0x4d, 0x73, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73,
  473. 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0b, 0x52, 0x65, 0x70, 0x6c,
  474. 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x69, 0x63,
  475. 0x4d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20,
  476. 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54,
  477. 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69,
  478. 0x63, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03,
  479. 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  480. 0x09, 0x52, 0x04, 0x55, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61, 0x75,
  481. 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xcc, 0x02, 0x0a, 0x05, 0x47,
  482. 0x6f, 0x42, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x17,
  483. 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63,
  484. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
  485. 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  486. 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x79, 0x6e, 0x63,
  487. 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63,
  488. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72,
  489. 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  490. 0x00, 0x12, 0x43, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1a,
  491. 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  492. 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72,
  493. 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  494. 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  495. 0x69, 0x62, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73,
  496. 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  497. 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66,
  498. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x03,
  499. 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53,
  500. 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  501. 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52,
  502. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x6e,
  503. 0x65, 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  504. }
  505. var (
  506. file_api_gobus_proto_rawDescOnce sync.Once
  507. file_api_gobus_proto_rawDescData = file_api_gobus_proto_rawDesc
  508. )
  509. func file_api_gobus_proto_rawDescGZIP() []byte {
  510. file_api_gobus_proto_rawDescOnce.Do(func() {
  511. file_api_gobus_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_gobus_proto_rawDescData)
  512. })
  513. return file_api_gobus_proto_rawDescData
  514. }
  515. var file_api_gobus_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  516. var file_api_gobus_proto_goTypes = []interface{}{
  517. (*BuffRequest)(nil), // 0: parserin.BuffRequest
  518. (*BuffResponse)(nil), // 1: parserin.BuffResponse
  519. (*GetRequest)(nil), // 2: parserin.GetRequest
  520. (*SubscribeRequest)(nil), // 3: parserin.SubscribeRequest
  521. (*SyncRequest)(nil), // 4: parserin.SyncRequest
  522. (*SyncResponse)(nil), // 5: parserin.SyncResponse
  523. (*PublicRequest)(nil), // 6: parserin.PublicRequest
  524. (*TopicMsg)(nil), // 7: parserin.TopicMsg
  525. (*DefaultResponse)(nil), // 8: parserin.DefaultResponse
  526. }
  527. var file_api_gobus_proto_depIdxs = []int32{
  528. 7, // 0: parserin.SyncRequest.topicMsg:type_name -> parserin.TopicMsg
  529. 7, // 1: parserin.PublicRequest.topicMsg:type_name -> parserin.TopicMsg
  530. 6, // 2: parserin.GoBus.Public:input_type -> parserin.PublicRequest
  531. 4, // 3: parserin.GoBus.SendSync:input_type -> parserin.SyncRequest
  532. 3, // 4: parserin.GoBus.Subscribe:input_type -> parserin.SubscribeRequest
  533. 0, // 5: parserin.GoBus.SubscribeBuffer:input_type -> parserin.BuffRequest
  534. 3, // 6: parserin.GoBus.Get:input_type -> parserin.SubscribeRequest
  535. 8, // 7: parserin.GoBus.Public:output_type -> parserin.DefaultResponse
  536. 5, // 8: parserin.GoBus.SendSync:output_type -> parserin.SyncResponse
  537. 5, // 9: parserin.GoBus.Subscribe:output_type -> parserin.SyncResponse
  538. 1, // 10: parserin.GoBus.SubscribeBuffer:output_type -> parserin.BuffResponse
  539. 5, // 11: parserin.GoBus.Get:output_type -> parserin.SyncResponse
  540. 7, // [7:12] is the sub-list for method output_type
  541. 2, // [2:7] is the sub-list for method input_type
  542. 2, // [2:2] is the sub-list for extension type_name
  543. 2, // [2:2] is the sub-list for extension extendee
  544. 0, // [0:2] is the sub-list for field type_name
  545. }
  546. func init() { file_api_gobus_proto_init() }
  547. func file_api_gobus_proto_init() {
  548. if File_api_gobus_proto != nil {
  549. return
  550. }
  551. if !protoimpl.UnsafeEnabled {
  552. file_api_gobus_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  553. switch v := v.(*BuffRequest); i {
  554. case 0:
  555. return &v.state
  556. case 1:
  557. return &v.sizeCache
  558. case 2:
  559. return &v.unknownFields
  560. default:
  561. return nil
  562. }
  563. }
  564. file_api_gobus_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  565. switch v := v.(*BuffResponse); i {
  566. case 0:
  567. return &v.state
  568. case 1:
  569. return &v.sizeCache
  570. case 2:
  571. return &v.unknownFields
  572. default:
  573. return nil
  574. }
  575. }
  576. file_api_gobus_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  577. switch v := v.(*GetRequest); i {
  578. case 0:
  579. return &v.state
  580. case 1:
  581. return &v.sizeCache
  582. case 2:
  583. return &v.unknownFields
  584. default:
  585. return nil
  586. }
  587. }
  588. file_api_gobus_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  589. switch v := v.(*SubscribeRequest); i {
  590. case 0:
  591. return &v.state
  592. case 1:
  593. return &v.sizeCache
  594. case 2:
  595. return &v.unknownFields
  596. default:
  597. return nil
  598. }
  599. }
  600. file_api_gobus_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  601. switch v := v.(*SyncRequest); i {
  602. case 0:
  603. return &v.state
  604. case 1:
  605. return &v.sizeCache
  606. case 2:
  607. return &v.unknownFields
  608. default:
  609. return nil
  610. }
  611. }
  612. file_api_gobus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  613. switch v := v.(*SyncResponse); i {
  614. case 0:
  615. return &v.state
  616. case 1:
  617. return &v.sizeCache
  618. case 2:
  619. return &v.unknownFields
  620. default:
  621. return nil
  622. }
  623. }
  624. file_api_gobus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  625. switch v := v.(*PublicRequest); i {
  626. case 0:
  627. return &v.state
  628. case 1:
  629. return &v.sizeCache
  630. case 2:
  631. return &v.unknownFields
  632. default:
  633. return nil
  634. }
  635. }
  636. file_api_gobus_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  637. switch v := v.(*TopicMsg); i {
  638. case 0:
  639. return &v.state
  640. case 1:
  641. return &v.sizeCache
  642. case 2:
  643. return &v.unknownFields
  644. default:
  645. return nil
  646. }
  647. }
  648. file_api_gobus_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  649. switch v := v.(*DefaultResponse); i {
  650. case 0:
  651. return &v.state
  652. case 1:
  653. return &v.sizeCache
  654. case 2:
  655. return &v.unknownFields
  656. default:
  657. return nil
  658. }
  659. }
  660. }
  661. type x struct{}
  662. out := protoimpl.TypeBuilder{
  663. File: protoimpl.DescBuilder{
  664. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  665. RawDescriptor: file_api_gobus_proto_rawDesc,
  666. NumEnums: 0,
  667. NumMessages: 9,
  668. NumExtensions: 0,
  669. NumServices: 1,
  670. },
  671. GoTypes: file_api_gobus_proto_goTypes,
  672. DependencyIndexes: file_api_gobus_proto_depIdxs,
  673. MessageInfos: file_api_gobus_proto_msgTypes,
  674. }.Build()
  675. File_api_gobus_proto = out.File
  676. file_api_gobus_proto_rawDesc = nil
  677. file_api_gobus_proto_goTypes = nil
  678. file_api_gobus_proto_depIdxs = nil
  679. }