gobus.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  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. }
  170. func (x *SubscribeRequest) Reset() {
  171. *x = SubscribeRequest{}
  172. if protoimpl.UnsafeEnabled {
  173. mi := &file_pkg_net_gobus_proto_msgTypes[3]
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. ms.StoreMessageInfo(mi)
  176. }
  177. }
  178. func (x *SubscribeRequest) String() string {
  179. return protoimpl.X.MessageStringOf(x)
  180. }
  181. func (*SubscribeRequest) ProtoMessage() {}
  182. func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
  183. mi := &file_pkg_net_gobus_proto_msgTypes[3]
  184. if protoimpl.UnsafeEnabled && x != nil {
  185. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  186. if ms.LoadMessageInfo() == nil {
  187. ms.StoreMessageInfo(mi)
  188. }
  189. return ms
  190. }
  191. return mi.MessageOf(x)
  192. }
  193. // Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
  194. func (*SubscribeRequest) Descriptor() ([]byte, []int) {
  195. return file_pkg_net_gobus_proto_rawDescGZIP(), []int{3}
  196. }
  197. func (x *SubscribeRequest) GetSample() string {
  198. if x != nil {
  199. return x.Sample
  200. }
  201. return ""
  202. }
  203. // SyncRequest -- синхронный запрос в шину данных
  204. type SyncRequest struct {
  205. state protoimpl.MessageState
  206. sizeCache protoimpl.SizeCache
  207. unknownFields protoimpl.UnknownFields
  208. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
  209. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Где опубликовать запрос
  210. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  211. }
  212. func (x *SyncRequest) Reset() {
  213. *x = SyncRequest{}
  214. if protoimpl.UnsafeEnabled {
  215. mi := &file_pkg_net_gobus_proto_msgTypes[4]
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. ms.StoreMessageInfo(mi)
  218. }
  219. }
  220. func (x *SyncRequest) String() string {
  221. return protoimpl.X.MessageStringOf(x)
  222. }
  223. func (*SyncRequest) ProtoMessage() {}
  224. func (x *SyncRequest) ProtoReflect() protoreflect.Message {
  225. mi := &file_pkg_net_gobus_proto_msgTypes[4]
  226. if protoimpl.UnsafeEnabled && x != nil {
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. if ms.LoadMessageInfo() == nil {
  229. ms.StoreMessageInfo(mi)
  230. }
  231. return ms
  232. }
  233. return mi.MessageOf(x)
  234. }
  235. // Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
  236. func (*SyncRequest) Descriptor() ([]byte, []int) {
  237. return file_pkg_net_gobus_proto_rawDescGZIP(), []int{4}
  238. }
  239. func (x *SyncRequest) GetSource() int32 {
  240. if x != nil {
  241. return x.Source
  242. }
  243. return 0
  244. }
  245. func (x *SyncRequest) GetTopic() string {
  246. if x != nil {
  247. return x.Topic
  248. }
  249. return ""
  250. }
  251. func (x *SyncRequest) GetMsg() []byte {
  252. if x != nil {
  253. return x.Msg
  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_pkg_net_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_pkg_net_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_pkg_net_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. Source int32 `protobuf:"varint,1,opt,name=Source,proto3" json:"Source,omitempty"` // Источник данных (0 -- клиент, другое -- реплика)
  303. Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` // Куда опубликовать сообщение
  304. Msg []byte `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` // Байтовое представление сообщения
  305. }
  306. func (x *PublicRequest) Reset() {
  307. *x = PublicRequest{}
  308. if protoimpl.UnsafeEnabled {
  309. mi := &file_pkg_net_gobus_proto_msgTypes[6]
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. ms.StoreMessageInfo(mi)
  312. }
  313. }
  314. func (x *PublicRequest) String() string {
  315. return protoimpl.X.MessageStringOf(x)
  316. }
  317. func (*PublicRequest) ProtoMessage() {}
  318. func (x *PublicRequest) ProtoReflect() protoreflect.Message {
  319. mi := &file_pkg_net_gobus_proto_msgTypes[6]
  320. if protoimpl.UnsafeEnabled && x != nil {
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. if ms.LoadMessageInfo() == nil {
  323. ms.StoreMessageInfo(mi)
  324. }
  325. return ms
  326. }
  327. return mi.MessageOf(x)
  328. }
  329. // Deprecated: Use PublicRequest.ProtoReflect.Descriptor instead.
  330. func (*PublicRequest) Descriptor() ([]byte, []int) {
  331. return file_pkg_net_gobus_proto_rawDescGZIP(), []int{6}
  332. }
  333. func (x *PublicRequest) GetSource() int32 {
  334. if x != nil {
  335. return x.Source
  336. }
  337. return 0
  338. }
  339. func (x *PublicRequest) GetTopic() string {
  340. if x != nil {
  341. return x.Topic
  342. }
  343. return ""
  344. }
  345. func (x *PublicRequest) GetMsg() []byte {
  346. if x != nil {
  347. return x.Msg
  348. }
  349. return nil
  350. }
  351. // DefaultResponse -- возвращаемое значение по умолчанию (ничего не содержит)
  352. type DefaultResponse struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. }
  357. func (x *DefaultResponse) Reset() {
  358. *x = DefaultResponse{}
  359. if protoimpl.UnsafeEnabled {
  360. mi := &file_pkg_net_gobus_proto_msgTypes[7]
  361. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  362. ms.StoreMessageInfo(mi)
  363. }
  364. }
  365. func (x *DefaultResponse) String() string {
  366. return protoimpl.X.MessageStringOf(x)
  367. }
  368. func (*DefaultResponse) ProtoMessage() {}
  369. func (x *DefaultResponse) ProtoReflect() protoreflect.Message {
  370. mi := &file_pkg_net_gobus_proto_msgTypes[7]
  371. if protoimpl.UnsafeEnabled && x != nil {
  372. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  373. if ms.LoadMessageInfo() == nil {
  374. ms.StoreMessageInfo(mi)
  375. }
  376. return ms
  377. }
  378. return mi.MessageOf(x)
  379. }
  380. // Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
  381. func (*DefaultResponse) Descriptor() ([]byte, []int) {
  382. return file_pkg_net_gobus_proto_rawDescGZIP(), []int{7}
  383. }
  384. var File_pkg_net_gobus_proto protoreflect.FileDescriptor
  385. var file_pkg_net_gobus_proto_rawDesc = []byte{
  386. 0x0a, 0x13, 0x70, 0x6b, 0x67, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x6f, 0x62, 0x75, 0x73, 0x2e,
  387. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x22,
  388. 0x7f, 0x0a, 0x0b, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
  389. 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  390. 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x6d,
  391. 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
  392. 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  393. 0x12, 0x2e, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x53, 0x61, 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e,
  394. 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x4d, 0x73,
  395. 0x67, 0x53, 0x61, 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  396. 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  397. 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
  398. 0x52, 0x06, 0x49, 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18,
  399. 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65,
  400. 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18,
  401. 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x10, 0x53, 0x75,
  402. 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
  403. 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  404. 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x22, 0x4d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65,
  405. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
  406. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a,
  407. 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f,
  408. 0x70, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
  409. 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x20, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73,
  410. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01,
  411. 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x4f, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69,
  412. 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72,
  413. 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
  414. 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  415. 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20,
  416. 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x65, 0x66, 0x61,
  417. 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xca, 0x02, 0x0a, 0x05,
  418. 0x47, 0x6f, 0x42, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12,
  419. 0x17, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69,
  420. 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
  421. 0x72, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
  422. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x79, 0x6e,
  423. 0x63, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e,
  424. 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
  425. 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  426. 0x22, 0x00, 0x12, 0x43, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12,
  427. 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
  428. 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61,
  429. 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f,
  430. 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63,
  431. 0x72, 0x69, 0x62, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x61, 0x72,
  432. 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  433. 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x42, 0x75, 0x66,
  434. 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x39, 0x0a,
  435. 0x03, 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e,
  436. 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  437. 0x1a, 0x14, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x52,
  438. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x6e, 0x65,
  439. 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  440. }
  441. var (
  442. file_pkg_net_gobus_proto_rawDescOnce sync.Once
  443. file_pkg_net_gobus_proto_rawDescData = file_pkg_net_gobus_proto_rawDesc
  444. )
  445. func file_pkg_net_gobus_proto_rawDescGZIP() []byte {
  446. file_pkg_net_gobus_proto_rawDescOnce.Do(func() {
  447. file_pkg_net_gobus_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_net_gobus_proto_rawDescData)
  448. })
  449. return file_pkg_net_gobus_proto_rawDescData
  450. }
  451. var file_pkg_net_gobus_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  452. var file_pkg_net_gobus_proto_goTypes = []interface{}{
  453. (*BuffRequest)(nil), // 0: parserin.BuffRequest
  454. (*BuffResponse)(nil), // 1: parserin.BuffResponse
  455. (*GetRequest)(nil), // 2: parserin.GetRequest
  456. (*SubscribeRequest)(nil), // 3: parserin.SubscribeRequest
  457. (*SyncRequest)(nil), // 4: parserin.SyncRequest
  458. (*SyncResponse)(nil), // 5: parserin.SyncResponse
  459. (*PublicRequest)(nil), // 6: parserin.PublicRequest
  460. (*DefaultResponse)(nil), // 7: parserin.DefaultResponse
  461. }
  462. var file_pkg_net_gobus_proto_depIdxs = []int32{
  463. 6, // 0: parserin.GoBus.Public:input_type -> parserin.PublicRequest
  464. 4, // 1: parserin.GoBus.SendSync:input_type -> parserin.SyncRequest
  465. 3, // 2: parserin.GoBus.Subscribe:input_type -> parserin.SubscribeRequest
  466. 0, // 3: parserin.GoBus.SubscribeBuffer:input_type -> parserin.BuffRequest
  467. 3, // 4: parserin.GoBus.Get:input_type -> parserin.SubscribeRequest
  468. 7, // 5: parserin.GoBus.Public:output_type -> parserin.DefaultResponse
  469. 5, // 6: parserin.GoBus.SendSync:output_type -> parserin.SyncResponse
  470. 5, // 7: parserin.GoBus.Subscribe:output_type -> parserin.SyncResponse
  471. 1, // 8: parserin.GoBus.SubscribeBuffer:output_type -> parserin.BuffResponse
  472. 2, // 9: parserin.GoBus.Get:output_type -> parserin.GetRequest
  473. 5, // [5:10] is the sub-list for method output_type
  474. 0, // [0:5] is the sub-list for method input_type
  475. 0, // [0:0] is the sub-list for extension type_name
  476. 0, // [0:0] is the sub-list for extension extendee
  477. 0, // [0:0] is the sub-list for field type_name
  478. }
  479. func init() { file_pkg_net_gobus_proto_init() }
  480. func file_pkg_net_gobus_proto_init() {
  481. if File_pkg_net_gobus_proto != nil {
  482. return
  483. }
  484. if !protoimpl.UnsafeEnabled {
  485. file_pkg_net_gobus_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  486. switch v := v.(*BuffRequest); i {
  487. case 0:
  488. return &v.state
  489. case 1:
  490. return &v.sizeCache
  491. case 2:
  492. return &v.unknownFields
  493. default:
  494. return nil
  495. }
  496. }
  497. file_pkg_net_gobus_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  498. switch v := v.(*BuffResponse); i {
  499. case 0:
  500. return &v.state
  501. case 1:
  502. return &v.sizeCache
  503. case 2:
  504. return &v.unknownFields
  505. default:
  506. return nil
  507. }
  508. }
  509. file_pkg_net_gobus_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  510. switch v := v.(*GetRequest); i {
  511. case 0:
  512. return &v.state
  513. case 1:
  514. return &v.sizeCache
  515. case 2:
  516. return &v.unknownFields
  517. default:
  518. return nil
  519. }
  520. }
  521. file_pkg_net_gobus_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  522. switch v := v.(*SubscribeRequest); i {
  523. case 0:
  524. return &v.state
  525. case 1:
  526. return &v.sizeCache
  527. case 2:
  528. return &v.unknownFields
  529. default:
  530. return nil
  531. }
  532. }
  533. file_pkg_net_gobus_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  534. switch v := v.(*SyncRequest); i {
  535. case 0:
  536. return &v.state
  537. case 1:
  538. return &v.sizeCache
  539. case 2:
  540. return &v.unknownFields
  541. default:
  542. return nil
  543. }
  544. }
  545. file_pkg_net_gobus_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  546. switch v := v.(*SyncResponse); i {
  547. case 0:
  548. return &v.state
  549. case 1:
  550. return &v.sizeCache
  551. case 2:
  552. return &v.unknownFields
  553. default:
  554. return nil
  555. }
  556. }
  557. file_pkg_net_gobus_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  558. switch v := v.(*PublicRequest); i {
  559. case 0:
  560. return &v.state
  561. case 1:
  562. return &v.sizeCache
  563. case 2:
  564. return &v.unknownFields
  565. default:
  566. return nil
  567. }
  568. }
  569. file_pkg_net_gobus_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  570. switch v := v.(*DefaultResponse); i {
  571. case 0:
  572. return &v.state
  573. case 1:
  574. return &v.sizeCache
  575. case 2:
  576. return &v.unknownFields
  577. default:
  578. return nil
  579. }
  580. }
  581. }
  582. type x struct{}
  583. out := protoimpl.TypeBuilder{
  584. File: protoimpl.DescBuilder{
  585. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  586. RawDescriptor: file_pkg_net_gobus_proto_rawDesc,
  587. NumEnums: 0,
  588. NumMessages: 8,
  589. NumExtensions: 0,
  590. NumServices: 1,
  591. },
  592. GoTypes: file_pkg_net_gobus_proto_goTypes,
  593. DependencyIndexes: file_pkg_net_gobus_proto_depIdxs,
  594. MessageInfos: file_pkg_net_gobus_proto_msgTypes,
  595. }.Build()
  596. File_pkg_net_gobus_proto = out.File
  597. file_pkg_net_gobus_proto_rawDesc = nil
  598. file_pkg_net_gobus_proto_goTypes = nil
  599. file_pkg_net_gobus_proto_depIdxs = nil
  600. }