gobus.pb.go 22 KB

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