gobus.pb.go 25 KB

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