You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2053 lines
74 KiB

5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.12.3
  5. // source: messaging.proto
  6. package messaging_pb
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type SubscriberMessage_InitMessage_StartPosition int32
  28. const (
  29. SubscriberMessage_InitMessage_LATEST SubscriberMessage_InitMessage_StartPosition = 0 // Start at the newest message
  30. SubscriberMessage_InitMessage_EARLIEST SubscriberMessage_InitMessage_StartPosition = 1 // Start at the oldest message
  31. SubscriberMessage_InitMessage_TIMESTAMP SubscriberMessage_InitMessage_StartPosition = 2 // Start after a specified timestamp, exclusive
  32. )
  33. // Enum value maps for SubscriberMessage_InitMessage_StartPosition.
  34. var (
  35. SubscriberMessage_InitMessage_StartPosition_name = map[int32]string{
  36. 0: "LATEST",
  37. 1: "EARLIEST",
  38. 2: "TIMESTAMP",
  39. }
  40. SubscriberMessage_InitMessage_StartPosition_value = map[string]int32{
  41. "LATEST": 0,
  42. "EARLIEST": 1,
  43. "TIMESTAMP": 2,
  44. }
  45. )
  46. func (x SubscriberMessage_InitMessage_StartPosition) Enum() *SubscriberMessage_InitMessage_StartPosition {
  47. p := new(SubscriberMessage_InitMessage_StartPosition)
  48. *p = x
  49. return p
  50. }
  51. func (x SubscriberMessage_InitMessage_StartPosition) String() string {
  52. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53. }
  54. func (SubscriberMessage_InitMessage_StartPosition) Descriptor() protoreflect.EnumDescriptor {
  55. return file_messaging_proto_enumTypes[0].Descriptor()
  56. }
  57. func (SubscriberMessage_InitMessage_StartPosition) Type() protoreflect.EnumType {
  58. return &file_messaging_proto_enumTypes[0]
  59. }
  60. func (x SubscriberMessage_InitMessage_StartPosition) Number() protoreflect.EnumNumber {
  61. return protoreflect.EnumNumber(x)
  62. }
  63. // Deprecated: Use SubscriberMessage_InitMessage_StartPosition.Descriptor instead.
  64. func (SubscriberMessage_InitMessage_StartPosition) EnumDescriptor() ([]byte, []int) {
  65. return file_messaging_proto_rawDescGZIP(), []int{0, 0, 0}
  66. }
  67. type TopicConfiguration_Partitioning int32
  68. const (
  69. TopicConfiguration_NonNullKeyHash TopicConfiguration_Partitioning = 0 // If not null, hash by key value. If null, round robin
  70. TopicConfiguration_KeyHash TopicConfiguration_Partitioning = 1 // hash by key value
  71. TopicConfiguration_RoundRobin TopicConfiguration_Partitioning = 2 // round robin pick one partition
  72. )
  73. // Enum value maps for TopicConfiguration_Partitioning.
  74. var (
  75. TopicConfiguration_Partitioning_name = map[int32]string{
  76. 0: "NonNullKeyHash",
  77. 1: "KeyHash",
  78. 2: "RoundRobin",
  79. }
  80. TopicConfiguration_Partitioning_value = map[string]int32{
  81. "NonNullKeyHash": 0,
  82. "KeyHash": 1,
  83. "RoundRobin": 2,
  84. }
  85. )
  86. func (x TopicConfiguration_Partitioning) Enum() *TopicConfiguration_Partitioning {
  87. p := new(TopicConfiguration_Partitioning)
  88. *p = x
  89. return p
  90. }
  91. func (x TopicConfiguration_Partitioning) String() string {
  92. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  93. }
  94. func (TopicConfiguration_Partitioning) Descriptor() protoreflect.EnumDescriptor {
  95. return file_messaging_proto_enumTypes[1].Descriptor()
  96. }
  97. func (TopicConfiguration_Partitioning) Type() protoreflect.EnumType {
  98. return &file_messaging_proto_enumTypes[1]
  99. }
  100. func (x TopicConfiguration_Partitioning) Number() protoreflect.EnumNumber {
  101. return protoreflect.EnumNumber(x)
  102. }
  103. // Deprecated: Use TopicConfiguration_Partitioning.Descriptor instead.
  104. func (TopicConfiguration_Partitioning) EnumDescriptor() ([]byte, []int) {
  105. return file_messaging_proto_rawDescGZIP(), []int{13, 0}
  106. }
  107. type SubscriberMessage struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. Init *SubscriberMessage_InitMessage `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"`
  112. Ack *SubscriberMessage_AckMessage `protobuf:"bytes,2,opt,name=ack,proto3" json:"ack,omitempty"`
  113. IsClose bool `protobuf:"varint,3,opt,name=is_close,json=isClose,proto3" json:"is_close,omitempty"`
  114. }
  115. func (x *SubscriberMessage) Reset() {
  116. *x = SubscriberMessage{}
  117. if protoimpl.UnsafeEnabled {
  118. mi := &file_messaging_proto_msgTypes[0]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. }
  123. func (x *SubscriberMessage) String() string {
  124. return protoimpl.X.MessageStringOf(x)
  125. }
  126. func (*SubscriberMessage) ProtoMessage() {}
  127. func (x *SubscriberMessage) ProtoReflect() protoreflect.Message {
  128. mi := &file_messaging_proto_msgTypes[0]
  129. if protoimpl.UnsafeEnabled && x != nil {
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. if ms.LoadMessageInfo() == nil {
  132. ms.StoreMessageInfo(mi)
  133. }
  134. return ms
  135. }
  136. return mi.MessageOf(x)
  137. }
  138. // Deprecated: Use SubscriberMessage.ProtoReflect.Descriptor instead.
  139. func (*SubscriberMessage) Descriptor() ([]byte, []int) {
  140. return file_messaging_proto_rawDescGZIP(), []int{0}
  141. }
  142. func (x *SubscriberMessage) GetInit() *SubscriberMessage_InitMessage {
  143. if x != nil {
  144. return x.Init
  145. }
  146. return nil
  147. }
  148. func (x *SubscriberMessage) GetAck() *SubscriberMessage_AckMessage {
  149. if x != nil {
  150. return x.Ack
  151. }
  152. return nil
  153. }
  154. func (x *SubscriberMessage) GetIsClose() bool {
  155. if x != nil {
  156. return x.IsClose
  157. }
  158. return false
  159. }
  160. type Message struct {
  161. state protoimpl.MessageState
  162. sizeCache protoimpl.SizeCache
  163. unknownFields protoimpl.UnknownFields
  164. EventTimeNs int64 `protobuf:"varint,1,opt,name=event_time_ns,json=eventTimeNs,proto3" json:"event_time_ns,omitempty"`
  165. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Message key
  166. Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // Message payload
  167. Headers map[string][]byte `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Message headers
  168. IsClose bool `protobuf:"varint,5,opt,name=is_close,json=isClose,proto3" json:"is_close,omitempty"`
  169. }
  170. func (x *Message) Reset() {
  171. *x = Message{}
  172. if protoimpl.UnsafeEnabled {
  173. mi := &file_messaging_proto_msgTypes[1]
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. ms.StoreMessageInfo(mi)
  176. }
  177. }
  178. func (x *Message) String() string {
  179. return protoimpl.X.MessageStringOf(x)
  180. }
  181. func (*Message) ProtoMessage() {}
  182. func (x *Message) ProtoReflect() protoreflect.Message {
  183. mi := &file_messaging_proto_msgTypes[1]
  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 Message.ProtoReflect.Descriptor instead.
  194. func (*Message) Descriptor() ([]byte, []int) {
  195. return file_messaging_proto_rawDescGZIP(), []int{1}
  196. }
  197. func (x *Message) GetEventTimeNs() int64 {
  198. if x != nil {
  199. return x.EventTimeNs
  200. }
  201. return 0
  202. }
  203. func (x *Message) GetKey() []byte {
  204. if x != nil {
  205. return x.Key
  206. }
  207. return nil
  208. }
  209. func (x *Message) GetValue() []byte {
  210. if x != nil {
  211. return x.Value
  212. }
  213. return nil
  214. }
  215. func (x *Message) GetHeaders() map[string][]byte {
  216. if x != nil {
  217. return x.Headers
  218. }
  219. return nil
  220. }
  221. func (x *Message) GetIsClose() bool {
  222. if x != nil {
  223. return x.IsClose
  224. }
  225. return false
  226. }
  227. type BrokerMessage struct {
  228. state protoimpl.MessageState
  229. sizeCache protoimpl.SizeCache
  230. unknownFields protoimpl.UnknownFields
  231. Data *Message `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  232. }
  233. func (x *BrokerMessage) Reset() {
  234. *x = BrokerMessage{}
  235. if protoimpl.UnsafeEnabled {
  236. mi := &file_messaging_proto_msgTypes[2]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. }
  241. func (x *BrokerMessage) String() string {
  242. return protoimpl.X.MessageStringOf(x)
  243. }
  244. func (*BrokerMessage) ProtoMessage() {}
  245. func (x *BrokerMessage) ProtoReflect() protoreflect.Message {
  246. mi := &file_messaging_proto_msgTypes[2]
  247. if protoimpl.UnsafeEnabled && x != nil {
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. if ms.LoadMessageInfo() == nil {
  250. ms.StoreMessageInfo(mi)
  251. }
  252. return ms
  253. }
  254. return mi.MessageOf(x)
  255. }
  256. // Deprecated: Use BrokerMessage.ProtoReflect.Descriptor instead.
  257. func (*BrokerMessage) Descriptor() ([]byte, []int) {
  258. return file_messaging_proto_rawDescGZIP(), []int{2}
  259. }
  260. func (x *BrokerMessage) GetData() *Message {
  261. if x != nil {
  262. return x.Data
  263. }
  264. return nil
  265. }
  266. type PublishRequest struct {
  267. state protoimpl.MessageState
  268. sizeCache protoimpl.SizeCache
  269. unknownFields protoimpl.UnknownFields
  270. Init *PublishRequest_InitMessage `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"`
  271. Data *Message `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  272. }
  273. func (x *PublishRequest) Reset() {
  274. *x = PublishRequest{}
  275. if protoimpl.UnsafeEnabled {
  276. mi := &file_messaging_proto_msgTypes[3]
  277. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  278. ms.StoreMessageInfo(mi)
  279. }
  280. }
  281. func (x *PublishRequest) String() string {
  282. return protoimpl.X.MessageStringOf(x)
  283. }
  284. func (*PublishRequest) ProtoMessage() {}
  285. func (x *PublishRequest) ProtoReflect() protoreflect.Message {
  286. mi := &file_messaging_proto_msgTypes[3]
  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 PublishRequest.ProtoReflect.Descriptor instead.
  297. func (*PublishRequest) Descriptor() ([]byte, []int) {
  298. return file_messaging_proto_rawDescGZIP(), []int{3}
  299. }
  300. func (x *PublishRequest) GetInit() *PublishRequest_InitMessage {
  301. if x != nil {
  302. return x.Init
  303. }
  304. return nil
  305. }
  306. func (x *PublishRequest) GetData() *Message {
  307. if x != nil {
  308. return x.Data
  309. }
  310. return nil
  311. }
  312. type PublishResponse struct {
  313. state protoimpl.MessageState
  314. sizeCache protoimpl.SizeCache
  315. unknownFields protoimpl.UnknownFields
  316. Config *PublishResponse_ConfigMessage `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  317. Redirect *PublishResponse_RedirectMessage `protobuf:"bytes,2,opt,name=redirect,proto3" json:"redirect,omitempty"`
  318. IsClosed bool `protobuf:"varint,3,opt,name=is_closed,json=isClosed,proto3" json:"is_closed,omitempty"`
  319. }
  320. func (x *PublishResponse) Reset() {
  321. *x = PublishResponse{}
  322. if protoimpl.UnsafeEnabled {
  323. mi := &file_messaging_proto_msgTypes[4]
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. ms.StoreMessageInfo(mi)
  326. }
  327. }
  328. func (x *PublishResponse) String() string {
  329. return protoimpl.X.MessageStringOf(x)
  330. }
  331. func (*PublishResponse) ProtoMessage() {}
  332. func (x *PublishResponse) ProtoReflect() protoreflect.Message {
  333. mi := &file_messaging_proto_msgTypes[4]
  334. if protoimpl.UnsafeEnabled && x != nil {
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. if ms.LoadMessageInfo() == nil {
  337. ms.StoreMessageInfo(mi)
  338. }
  339. return ms
  340. }
  341. return mi.MessageOf(x)
  342. }
  343. // Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.
  344. func (*PublishResponse) Descriptor() ([]byte, []int) {
  345. return file_messaging_proto_rawDescGZIP(), []int{4}
  346. }
  347. func (x *PublishResponse) GetConfig() *PublishResponse_ConfigMessage {
  348. if x != nil {
  349. return x.Config
  350. }
  351. return nil
  352. }
  353. func (x *PublishResponse) GetRedirect() *PublishResponse_RedirectMessage {
  354. if x != nil {
  355. return x.Redirect
  356. }
  357. return nil
  358. }
  359. func (x *PublishResponse) GetIsClosed() bool {
  360. if x != nil {
  361. return x.IsClosed
  362. }
  363. return false
  364. }
  365. type DeleteTopicRequest struct {
  366. state protoimpl.MessageState
  367. sizeCache protoimpl.SizeCache
  368. unknownFields protoimpl.UnknownFields
  369. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  370. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  371. }
  372. func (x *DeleteTopicRequest) Reset() {
  373. *x = DeleteTopicRequest{}
  374. if protoimpl.UnsafeEnabled {
  375. mi := &file_messaging_proto_msgTypes[5]
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. ms.StoreMessageInfo(mi)
  378. }
  379. }
  380. func (x *DeleteTopicRequest) String() string {
  381. return protoimpl.X.MessageStringOf(x)
  382. }
  383. func (*DeleteTopicRequest) ProtoMessage() {}
  384. func (x *DeleteTopicRequest) ProtoReflect() protoreflect.Message {
  385. mi := &file_messaging_proto_msgTypes[5]
  386. if protoimpl.UnsafeEnabled && x != nil {
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. if ms.LoadMessageInfo() == nil {
  389. ms.StoreMessageInfo(mi)
  390. }
  391. return ms
  392. }
  393. return mi.MessageOf(x)
  394. }
  395. // Deprecated: Use DeleteTopicRequest.ProtoReflect.Descriptor instead.
  396. func (*DeleteTopicRequest) Descriptor() ([]byte, []int) {
  397. return file_messaging_proto_rawDescGZIP(), []int{5}
  398. }
  399. func (x *DeleteTopicRequest) GetNamespace() string {
  400. if x != nil {
  401. return x.Namespace
  402. }
  403. return ""
  404. }
  405. func (x *DeleteTopicRequest) GetTopic() string {
  406. if x != nil {
  407. return x.Topic
  408. }
  409. return ""
  410. }
  411. type DeleteTopicResponse struct {
  412. state protoimpl.MessageState
  413. sizeCache protoimpl.SizeCache
  414. unknownFields protoimpl.UnknownFields
  415. }
  416. func (x *DeleteTopicResponse) Reset() {
  417. *x = DeleteTopicResponse{}
  418. if protoimpl.UnsafeEnabled {
  419. mi := &file_messaging_proto_msgTypes[6]
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. ms.StoreMessageInfo(mi)
  422. }
  423. }
  424. func (x *DeleteTopicResponse) String() string {
  425. return protoimpl.X.MessageStringOf(x)
  426. }
  427. func (*DeleteTopicResponse) ProtoMessage() {}
  428. func (x *DeleteTopicResponse) ProtoReflect() protoreflect.Message {
  429. mi := &file_messaging_proto_msgTypes[6]
  430. if protoimpl.UnsafeEnabled && x != nil {
  431. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  432. if ms.LoadMessageInfo() == nil {
  433. ms.StoreMessageInfo(mi)
  434. }
  435. return ms
  436. }
  437. return mi.MessageOf(x)
  438. }
  439. // Deprecated: Use DeleteTopicResponse.ProtoReflect.Descriptor instead.
  440. func (*DeleteTopicResponse) Descriptor() ([]byte, []int) {
  441. return file_messaging_proto_rawDescGZIP(), []int{6}
  442. }
  443. type ConfigureTopicRequest struct {
  444. state protoimpl.MessageState
  445. sizeCache protoimpl.SizeCache
  446. unknownFields protoimpl.UnknownFields
  447. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  448. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  449. Configuration *TopicConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"`
  450. }
  451. func (x *ConfigureTopicRequest) Reset() {
  452. *x = ConfigureTopicRequest{}
  453. if protoimpl.UnsafeEnabled {
  454. mi := &file_messaging_proto_msgTypes[7]
  455. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  456. ms.StoreMessageInfo(mi)
  457. }
  458. }
  459. func (x *ConfigureTopicRequest) String() string {
  460. return protoimpl.X.MessageStringOf(x)
  461. }
  462. func (*ConfigureTopicRequest) ProtoMessage() {}
  463. func (x *ConfigureTopicRequest) ProtoReflect() protoreflect.Message {
  464. mi := &file_messaging_proto_msgTypes[7]
  465. if protoimpl.UnsafeEnabled && x != nil {
  466. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  467. if ms.LoadMessageInfo() == nil {
  468. ms.StoreMessageInfo(mi)
  469. }
  470. return ms
  471. }
  472. return mi.MessageOf(x)
  473. }
  474. // Deprecated: Use ConfigureTopicRequest.ProtoReflect.Descriptor instead.
  475. func (*ConfigureTopicRequest) Descriptor() ([]byte, []int) {
  476. return file_messaging_proto_rawDescGZIP(), []int{7}
  477. }
  478. func (x *ConfigureTopicRequest) GetNamespace() string {
  479. if x != nil {
  480. return x.Namespace
  481. }
  482. return ""
  483. }
  484. func (x *ConfigureTopicRequest) GetTopic() string {
  485. if x != nil {
  486. return x.Topic
  487. }
  488. return ""
  489. }
  490. func (x *ConfigureTopicRequest) GetConfiguration() *TopicConfiguration {
  491. if x != nil {
  492. return x.Configuration
  493. }
  494. return nil
  495. }
  496. type ConfigureTopicResponse struct {
  497. state protoimpl.MessageState
  498. sizeCache protoimpl.SizeCache
  499. unknownFields protoimpl.UnknownFields
  500. }
  501. func (x *ConfigureTopicResponse) Reset() {
  502. *x = ConfigureTopicResponse{}
  503. if protoimpl.UnsafeEnabled {
  504. mi := &file_messaging_proto_msgTypes[8]
  505. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  506. ms.StoreMessageInfo(mi)
  507. }
  508. }
  509. func (x *ConfigureTopicResponse) String() string {
  510. return protoimpl.X.MessageStringOf(x)
  511. }
  512. func (*ConfigureTopicResponse) ProtoMessage() {}
  513. func (x *ConfigureTopicResponse) ProtoReflect() protoreflect.Message {
  514. mi := &file_messaging_proto_msgTypes[8]
  515. if protoimpl.UnsafeEnabled && x != nil {
  516. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  517. if ms.LoadMessageInfo() == nil {
  518. ms.StoreMessageInfo(mi)
  519. }
  520. return ms
  521. }
  522. return mi.MessageOf(x)
  523. }
  524. // Deprecated: Use ConfigureTopicResponse.ProtoReflect.Descriptor instead.
  525. func (*ConfigureTopicResponse) Descriptor() ([]byte, []int) {
  526. return file_messaging_proto_rawDescGZIP(), []int{8}
  527. }
  528. type GetTopicConfigurationRequest struct {
  529. state protoimpl.MessageState
  530. sizeCache protoimpl.SizeCache
  531. unknownFields protoimpl.UnknownFields
  532. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  533. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  534. }
  535. func (x *GetTopicConfigurationRequest) Reset() {
  536. *x = GetTopicConfigurationRequest{}
  537. if protoimpl.UnsafeEnabled {
  538. mi := &file_messaging_proto_msgTypes[9]
  539. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  540. ms.StoreMessageInfo(mi)
  541. }
  542. }
  543. func (x *GetTopicConfigurationRequest) String() string {
  544. return protoimpl.X.MessageStringOf(x)
  545. }
  546. func (*GetTopicConfigurationRequest) ProtoMessage() {}
  547. func (x *GetTopicConfigurationRequest) ProtoReflect() protoreflect.Message {
  548. mi := &file_messaging_proto_msgTypes[9]
  549. if protoimpl.UnsafeEnabled && x != nil {
  550. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  551. if ms.LoadMessageInfo() == nil {
  552. ms.StoreMessageInfo(mi)
  553. }
  554. return ms
  555. }
  556. return mi.MessageOf(x)
  557. }
  558. // Deprecated: Use GetTopicConfigurationRequest.ProtoReflect.Descriptor instead.
  559. func (*GetTopicConfigurationRequest) Descriptor() ([]byte, []int) {
  560. return file_messaging_proto_rawDescGZIP(), []int{9}
  561. }
  562. func (x *GetTopicConfigurationRequest) GetNamespace() string {
  563. if x != nil {
  564. return x.Namespace
  565. }
  566. return ""
  567. }
  568. func (x *GetTopicConfigurationRequest) GetTopic() string {
  569. if x != nil {
  570. return x.Topic
  571. }
  572. return ""
  573. }
  574. type GetTopicConfigurationResponse struct {
  575. state protoimpl.MessageState
  576. sizeCache protoimpl.SizeCache
  577. unknownFields protoimpl.UnknownFields
  578. Configuration *TopicConfiguration `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"`
  579. }
  580. func (x *GetTopicConfigurationResponse) Reset() {
  581. *x = GetTopicConfigurationResponse{}
  582. if protoimpl.UnsafeEnabled {
  583. mi := &file_messaging_proto_msgTypes[10]
  584. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  585. ms.StoreMessageInfo(mi)
  586. }
  587. }
  588. func (x *GetTopicConfigurationResponse) String() string {
  589. return protoimpl.X.MessageStringOf(x)
  590. }
  591. func (*GetTopicConfigurationResponse) ProtoMessage() {}
  592. func (x *GetTopicConfigurationResponse) ProtoReflect() protoreflect.Message {
  593. mi := &file_messaging_proto_msgTypes[10]
  594. if protoimpl.UnsafeEnabled && x != nil {
  595. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  596. if ms.LoadMessageInfo() == nil {
  597. ms.StoreMessageInfo(mi)
  598. }
  599. return ms
  600. }
  601. return mi.MessageOf(x)
  602. }
  603. // Deprecated: Use GetTopicConfigurationResponse.ProtoReflect.Descriptor instead.
  604. func (*GetTopicConfigurationResponse) Descriptor() ([]byte, []int) {
  605. return file_messaging_proto_rawDescGZIP(), []int{10}
  606. }
  607. func (x *GetTopicConfigurationResponse) GetConfiguration() *TopicConfiguration {
  608. if x != nil {
  609. return x.Configuration
  610. }
  611. return nil
  612. }
  613. type FindBrokerRequest struct {
  614. state protoimpl.MessageState
  615. sizeCache protoimpl.SizeCache
  616. unknownFields protoimpl.UnknownFields
  617. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  618. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  619. Parition int32 `protobuf:"varint,3,opt,name=parition,proto3" json:"parition,omitempty"`
  620. }
  621. func (x *FindBrokerRequest) Reset() {
  622. *x = FindBrokerRequest{}
  623. if protoimpl.UnsafeEnabled {
  624. mi := &file_messaging_proto_msgTypes[11]
  625. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  626. ms.StoreMessageInfo(mi)
  627. }
  628. }
  629. func (x *FindBrokerRequest) String() string {
  630. return protoimpl.X.MessageStringOf(x)
  631. }
  632. func (*FindBrokerRequest) ProtoMessage() {}
  633. func (x *FindBrokerRequest) ProtoReflect() protoreflect.Message {
  634. mi := &file_messaging_proto_msgTypes[11]
  635. if protoimpl.UnsafeEnabled && x != nil {
  636. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  637. if ms.LoadMessageInfo() == nil {
  638. ms.StoreMessageInfo(mi)
  639. }
  640. return ms
  641. }
  642. return mi.MessageOf(x)
  643. }
  644. // Deprecated: Use FindBrokerRequest.ProtoReflect.Descriptor instead.
  645. func (*FindBrokerRequest) Descriptor() ([]byte, []int) {
  646. return file_messaging_proto_rawDescGZIP(), []int{11}
  647. }
  648. func (x *FindBrokerRequest) GetNamespace() string {
  649. if x != nil {
  650. return x.Namespace
  651. }
  652. return ""
  653. }
  654. func (x *FindBrokerRequest) GetTopic() string {
  655. if x != nil {
  656. return x.Topic
  657. }
  658. return ""
  659. }
  660. func (x *FindBrokerRequest) GetParition() int32 {
  661. if x != nil {
  662. return x.Parition
  663. }
  664. return 0
  665. }
  666. type FindBrokerResponse struct {
  667. state protoimpl.MessageState
  668. sizeCache protoimpl.SizeCache
  669. unknownFields protoimpl.UnknownFields
  670. Broker string `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
  671. }
  672. func (x *FindBrokerResponse) Reset() {
  673. *x = FindBrokerResponse{}
  674. if protoimpl.UnsafeEnabled {
  675. mi := &file_messaging_proto_msgTypes[12]
  676. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  677. ms.StoreMessageInfo(mi)
  678. }
  679. }
  680. func (x *FindBrokerResponse) String() string {
  681. return protoimpl.X.MessageStringOf(x)
  682. }
  683. func (*FindBrokerResponse) ProtoMessage() {}
  684. func (x *FindBrokerResponse) ProtoReflect() protoreflect.Message {
  685. mi := &file_messaging_proto_msgTypes[12]
  686. if protoimpl.UnsafeEnabled && x != nil {
  687. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  688. if ms.LoadMessageInfo() == nil {
  689. ms.StoreMessageInfo(mi)
  690. }
  691. return ms
  692. }
  693. return mi.MessageOf(x)
  694. }
  695. // Deprecated: Use FindBrokerResponse.ProtoReflect.Descriptor instead.
  696. func (*FindBrokerResponse) Descriptor() ([]byte, []int) {
  697. return file_messaging_proto_rawDescGZIP(), []int{12}
  698. }
  699. func (x *FindBrokerResponse) GetBroker() string {
  700. if x != nil {
  701. return x.Broker
  702. }
  703. return ""
  704. }
  705. type TopicConfiguration struct {
  706. state protoimpl.MessageState
  707. sizeCache protoimpl.SizeCache
  708. unknownFields protoimpl.UnknownFields
  709. PartitionCount int32 `protobuf:"varint,1,opt,name=partition_count,json=partitionCount,proto3" json:"partition_count,omitempty"`
  710. Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"`
  711. Replication string `protobuf:"bytes,3,opt,name=replication,proto3" json:"replication,omitempty"`
  712. IsTransient bool `protobuf:"varint,4,opt,name=is_transient,json=isTransient,proto3" json:"is_transient,omitempty"`
  713. Partitoning TopicConfiguration_Partitioning `protobuf:"varint,5,opt,name=partitoning,proto3,enum=messaging_pb.TopicConfiguration_Partitioning" json:"partitoning,omitempty"`
  714. }
  715. func (x *TopicConfiguration) Reset() {
  716. *x = TopicConfiguration{}
  717. if protoimpl.UnsafeEnabled {
  718. mi := &file_messaging_proto_msgTypes[13]
  719. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  720. ms.StoreMessageInfo(mi)
  721. }
  722. }
  723. func (x *TopicConfiguration) String() string {
  724. return protoimpl.X.MessageStringOf(x)
  725. }
  726. func (*TopicConfiguration) ProtoMessage() {}
  727. func (x *TopicConfiguration) ProtoReflect() protoreflect.Message {
  728. mi := &file_messaging_proto_msgTypes[13]
  729. if protoimpl.UnsafeEnabled && x != nil {
  730. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  731. if ms.LoadMessageInfo() == nil {
  732. ms.StoreMessageInfo(mi)
  733. }
  734. return ms
  735. }
  736. return mi.MessageOf(x)
  737. }
  738. // Deprecated: Use TopicConfiguration.ProtoReflect.Descriptor instead.
  739. func (*TopicConfiguration) Descriptor() ([]byte, []int) {
  740. return file_messaging_proto_rawDescGZIP(), []int{13}
  741. }
  742. func (x *TopicConfiguration) GetPartitionCount() int32 {
  743. if x != nil {
  744. return x.PartitionCount
  745. }
  746. return 0
  747. }
  748. func (x *TopicConfiguration) GetCollection() string {
  749. if x != nil {
  750. return x.Collection
  751. }
  752. return ""
  753. }
  754. func (x *TopicConfiguration) GetReplication() string {
  755. if x != nil {
  756. return x.Replication
  757. }
  758. return ""
  759. }
  760. func (x *TopicConfiguration) GetIsTransient() bool {
  761. if x != nil {
  762. return x.IsTransient
  763. }
  764. return false
  765. }
  766. func (x *TopicConfiguration) GetPartitoning() TopicConfiguration_Partitioning {
  767. if x != nil {
  768. return x.Partitoning
  769. }
  770. return TopicConfiguration_NonNullKeyHash
  771. }
  772. type SubscriberMessage_InitMessage struct {
  773. state protoimpl.MessageState
  774. sizeCache protoimpl.SizeCache
  775. unknownFields protoimpl.UnknownFields
  776. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  777. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  778. Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"`
  779. StartPosition SubscriberMessage_InitMessage_StartPosition `protobuf:"varint,4,opt,name=startPosition,proto3,enum=messaging_pb.SubscriberMessage_InitMessage_StartPosition" json:"startPosition,omitempty"` // Where to begin consuming from
  780. TimestampNs int64 `protobuf:"varint,5,opt,name=timestampNs,proto3" json:"timestampNs,omitempty"` // timestamp in nano seconds
  781. SubscriberId string `protobuf:"bytes,6,opt,name=subscriber_id,json=subscriberId,proto3" json:"subscriber_id,omitempty"` // uniquely identify a subscriber to track consumption
  782. }
  783. func (x *SubscriberMessage_InitMessage) Reset() {
  784. *x = SubscriberMessage_InitMessage{}
  785. if protoimpl.UnsafeEnabled {
  786. mi := &file_messaging_proto_msgTypes[14]
  787. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  788. ms.StoreMessageInfo(mi)
  789. }
  790. }
  791. func (x *SubscriberMessage_InitMessage) String() string {
  792. return protoimpl.X.MessageStringOf(x)
  793. }
  794. func (*SubscriberMessage_InitMessage) ProtoMessage() {}
  795. func (x *SubscriberMessage_InitMessage) ProtoReflect() protoreflect.Message {
  796. mi := &file_messaging_proto_msgTypes[14]
  797. if protoimpl.UnsafeEnabled && x != nil {
  798. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  799. if ms.LoadMessageInfo() == nil {
  800. ms.StoreMessageInfo(mi)
  801. }
  802. return ms
  803. }
  804. return mi.MessageOf(x)
  805. }
  806. // Deprecated: Use SubscriberMessage_InitMessage.ProtoReflect.Descriptor instead.
  807. func (*SubscriberMessage_InitMessage) Descriptor() ([]byte, []int) {
  808. return file_messaging_proto_rawDescGZIP(), []int{0, 0}
  809. }
  810. func (x *SubscriberMessage_InitMessage) GetNamespace() string {
  811. if x != nil {
  812. return x.Namespace
  813. }
  814. return ""
  815. }
  816. func (x *SubscriberMessage_InitMessage) GetTopic() string {
  817. if x != nil {
  818. return x.Topic
  819. }
  820. return ""
  821. }
  822. func (x *SubscriberMessage_InitMessage) GetPartition() int32 {
  823. if x != nil {
  824. return x.Partition
  825. }
  826. return 0
  827. }
  828. func (x *SubscriberMessage_InitMessage) GetStartPosition() SubscriberMessage_InitMessage_StartPosition {
  829. if x != nil {
  830. return x.StartPosition
  831. }
  832. return SubscriberMessage_InitMessage_LATEST
  833. }
  834. func (x *SubscriberMessage_InitMessage) GetTimestampNs() int64 {
  835. if x != nil {
  836. return x.TimestampNs
  837. }
  838. return 0
  839. }
  840. func (x *SubscriberMessage_InitMessage) GetSubscriberId() string {
  841. if x != nil {
  842. return x.SubscriberId
  843. }
  844. return ""
  845. }
  846. type SubscriberMessage_AckMessage struct {
  847. state protoimpl.MessageState
  848. sizeCache protoimpl.SizeCache
  849. unknownFields protoimpl.UnknownFields
  850. MessageId int64 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
  851. }
  852. func (x *SubscriberMessage_AckMessage) Reset() {
  853. *x = SubscriberMessage_AckMessage{}
  854. if protoimpl.UnsafeEnabled {
  855. mi := &file_messaging_proto_msgTypes[15]
  856. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  857. ms.StoreMessageInfo(mi)
  858. }
  859. }
  860. func (x *SubscriberMessage_AckMessage) String() string {
  861. return protoimpl.X.MessageStringOf(x)
  862. }
  863. func (*SubscriberMessage_AckMessage) ProtoMessage() {}
  864. func (x *SubscriberMessage_AckMessage) ProtoReflect() protoreflect.Message {
  865. mi := &file_messaging_proto_msgTypes[15]
  866. if protoimpl.UnsafeEnabled && x != nil {
  867. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  868. if ms.LoadMessageInfo() == nil {
  869. ms.StoreMessageInfo(mi)
  870. }
  871. return ms
  872. }
  873. return mi.MessageOf(x)
  874. }
  875. // Deprecated: Use SubscriberMessage_AckMessage.ProtoReflect.Descriptor instead.
  876. func (*SubscriberMessage_AckMessage) Descriptor() ([]byte, []int) {
  877. return file_messaging_proto_rawDescGZIP(), []int{0, 1}
  878. }
  879. func (x *SubscriberMessage_AckMessage) GetMessageId() int64 {
  880. if x != nil {
  881. return x.MessageId
  882. }
  883. return 0
  884. }
  885. type PublishRequest_InitMessage struct {
  886. state protoimpl.MessageState
  887. sizeCache protoimpl.SizeCache
  888. unknownFields protoimpl.UnknownFields
  889. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // only needed on the initial request
  890. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` // only needed on the initial request
  891. Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"`
  892. }
  893. func (x *PublishRequest_InitMessage) Reset() {
  894. *x = PublishRequest_InitMessage{}
  895. if protoimpl.UnsafeEnabled {
  896. mi := &file_messaging_proto_msgTypes[17]
  897. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  898. ms.StoreMessageInfo(mi)
  899. }
  900. }
  901. func (x *PublishRequest_InitMessage) String() string {
  902. return protoimpl.X.MessageStringOf(x)
  903. }
  904. func (*PublishRequest_InitMessage) ProtoMessage() {}
  905. func (x *PublishRequest_InitMessage) ProtoReflect() protoreflect.Message {
  906. mi := &file_messaging_proto_msgTypes[17]
  907. if protoimpl.UnsafeEnabled && x != nil {
  908. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  909. if ms.LoadMessageInfo() == nil {
  910. ms.StoreMessageInfo(mi)
  911. }
  912. return ms
  913. }
  914. return mi.MessageOf(x)
  915. }
  916. // Deprecated: Use PublishRequest_InitMessage.ProtoReflect.Descriptor instead.
  917. func (*PublishRequest_InitMessage) Descriptor() ([]byte, []int) {
  918. return file_messaging_proto_rawDescGZIP(), []int{3, 0}
  919. }
  920. func (x *PublishRequest_InitMessage) GetNamespace() string {
  921. if x != nil {
  922. return x.Namespace
  923. }
  924. return ""
  925. }
  926. func (x *PublishRequest_InitMessage) GetTopic() string {
  927. if x != nil {
  928. return x.Topic
  929. }
  930. return ""
  931. }
  932. func (x *PublishRequest_InitMessage) GetPartition() int32 {
  933. if x != nil {
  934. return x.Partition
  935. }
  936. return 0
  937. }
  938. type PublishResponse_ConfigMessage struct {
  939. state protoimpl.MessageState
  940. sizeCache protoimpl.SizeCache
  941. unknownFields protoimpl.UnknownFields
  942. PartitionCount int32 `protobuf:"varint,1,opt,name=partition_count,json=partitionCount,proto3" json:"partition_count,omitempty"`
  943. }
  944. func (x *PublishResponse_ConfigMessage) Reset() {
  945. *x = PublishResponse_ConfigMessage{}
  946. if protoimpl.UnsafeEnabled {
  947. mi := &file_messaging_proto_msgTypes[18]
  948. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  949. ms.StoreMessageInfo(mi)
  950. }
  951. }
  952. func (x *PublishResponse_ConfigMessage) String() string {
  953. return protoimpl.X.MessageStringOf(x)
  954. }
  955. func (*PublishResponse_ConfigMessage) ProtoMessage() {}
  956. func (x *PublishResponse_ConfigMessage) ProtoReflect() protoreflect.Message {
  957. mi := &file_messaging_proto_msgTypes[18]
  958. if protoimpl.UnsafeEnabled && x != nil {
  959. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  960. if ms.LoadMessageInfo() == nil {
  961. ms.StoreMessageInfo(mi)
  962. }
  963. return ms
  964. }
  965. return mi.MessageOf(x)
  966. }
  967. // Deprecated: Use PublishResponse_ConfigMessage.ProtoReflect.Descriptor instead.
  968. func (*PublishResponse_ConfigMessage) Descriptor() ([]byte, []int) {
  969. return file_messaging_proto_rawDescGZIP(), []int{4, 0}
  970. }
  971. func (x *PublishResponse_ConfigMessage) GetPartitionCount() int32 {
  972. if x != nil {
  973. return x.PartitionCount
  974. }
  975. return 0
  976. }
  977. type PublishResponse_RedirectMessage struct {
  978. state protoimpl.MessageState
  979. sizeCache protoimpl.SizeCache
  980. unknownFields protoimpl.UnknownFields
  981. NewBroker string `protobuf:"bytes,1,opt,name=new_broker,json=newBroker,proto3" json:"new_broker,omitempty"`
  982. }
  983. func (x *PublishResponse_RedirectMessage) Reset() {
  984. *x = PublishResponse_RedirectMessage{}
  985. if protoimpl.UnsafeEnabled {
  986. mi := &file_messaging_proto_msgTypes[19]
  987. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  988. ms.StoreMessageInfo(mi)
  989. }
  990. }
  991. func (x *PublishResponse_RedirectMessage) String() string {
  992. return protoimpl.X.MessageStringOf(x)
  993. }
  994. func (*PublishResponse_RedirectMessage) ProtoMessage() {}
  995. func (x *PublishResponse_RedirectMessage) ProtoReflect() protoreflect.Message {
  996. mi := &file_messaging_proto_msgTypes[19]
  997. if protoimpl.UnsafeEnabled && x != nil {
  998. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  999. if ms.LoadMessageInfo() == nil {
  1000. ms.StoreMessageInfo(mi)
  1001. }
  1002. return ms
  1003. }
  1004. return mi.MessageOf(x)
  1005. }
  1006. // Deprecated: Use PublishResponse_RedirectMessage.ProtoReflect.Descriptor instead.
  1007. func (*PublishResponse_RedirectMessage) Descriptor() ([]byte, []int) {
  1008. return file_messaging_proto_rawDescGZIP(), []int{4, 1}
  1009. }
  1010. func (x *PublishResponse_RedirectMessage) GetNewBroker() string {
  1011. if x != nil {
  1012. return x.NewBroker
  1013. }
  1014. return ""
  1015. }
  1016. var File_messaging_proto protoreflect.FileDescriptor
  1017. var file_messaging_proto_rawDesc = []byte{
  1018. 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  1019. 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22,
  1020. 0x9e, 0x04, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4d, 0x65,
  1021. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20,
  1022. 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  1023. 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4d, 0x65, 0x73,
  1024. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1025. 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x12, 0x3c, 0x0a, 0x03, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20,
  1026. 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  1027. 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4d, 0x65, 0x73,
  1028. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1029. 0x03, 0x61, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65,
  1030. 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x1a,
  1031. 0xc1, 0x02, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1032. 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
  1033. 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a,
  1034. 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
  1035. 0x70, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
  1036. 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
  1037. 0x6e, 0x12, 0x5f, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
  1038. 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  1039. 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  1040. 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4d, 0x65,
  1041. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74,
  1042. 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
  1043. 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e,
  1044. 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
  1045. 0x6d, 0x70, 0x4e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  1046. 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62,
  1047. 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x0d, 0x53, 0x74, 0x61,
  1048. 0x72, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x41,
  1049. 0x54, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45,
  1050. 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
  1051. 0x50, 0x10, 0x02, 0x1a, 0x2b, 0x0a, 0x0a, 0x41, 0x63, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1052. 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18,
  1053. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64,
  1054. 0x22, 0xee, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x0d,
  1055. 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x01, 0x20,
  1056. 0x01, 0x28, 0x03, 0x42, 0x02, 0x30, 0x01, 0x52, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69,
  1057. 0x6d, 0x65, 0x4e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
  1058. 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  1059. 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x07,
  1060. 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e,
  1061. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73,
  1062. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72,
  1063. 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73,
  1064. 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73,
  1065. 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
  1066. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  1067. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1068. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  1069. 0x01, 0x22, 0x3a, 0x0a, 0x0d, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1070. 0x67, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  1071. 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  1072. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xda, 0x01,
  1073. 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  1074. 0x12, 0x3c, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
  1075. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75,
  1076. 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x69,
  1077. 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x12, 0x29,
  1078. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d,
  1079. 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73,
  1080. 0x61, 0x67, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x5f, 0x0a, 0x0b, 0x49, 0x6e, 0x69,
  1081. 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
  1082. 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
  1083. 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18,
  1084. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09,
  1085. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  1086. 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x02, 0x0a, 0x0f, 0x50,
  1087. 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43,
  1088. 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b,
  1089. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75,
  1090. 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f,
  1091. 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e,
  1092. 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18,
  1093. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  1094. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
  1095. 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x73,
  1096. 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1b,
  1097. 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  1098. 0x08, 0x52, 0x08, 0x69, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x1a, 0x38, 0x0a, 0x0d, 0x43,
  1099. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f,
  1100. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  1101. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
  1102. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x30, 0x0a, 0x0f, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
  1103. 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f,
  1104. 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65,
  1105. 0x77, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74,
  1106. 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a,
  1107. 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  1108. 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
  1109. 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69,
  1110. 0x63, 0x22, 0x15, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63,
  1111. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6e,
  1112. 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
  1113. 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18,
  1114. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
  1115. 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1116. 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x46, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  1117. 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
  1118. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x70,
  1119. 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
  1120. 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x18,
  1121. 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63,
  1122. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x54,
  1123. 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
  1124. 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
  1125. 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
  1126. 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18,
  1127. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x67, 0x0a, 0x1d,
  1128. 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72,
  1129. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a,
  1130. 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
  1131. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  1132. 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75,
  1133. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72,
  1134. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f,
  1135. 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61,
  1136. 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e,
  1137. 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69,
  1138. 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1a,
  1139. 0x0a, 0x08, 0x70, 0x61, 0x72, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
  1140. 0x52, 0x08, 0x70, 0x61, 0x72, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x12, 0x46, 0x69,
  1141. 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  1142. 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  1143. 0x52, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x22, 0xb4, 0x02, 0x0a, 0x12, 0x54, 0x6f, 0x70,
  1144. 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
  1145. 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75,
  1146. 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
  1147. 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c,
  1148. 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f,
  1149. 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6c,
  1150. 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72,
  1151. 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73,
  1152. 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
  1153. 0x52, 0x0b, 0x69, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x4f, 0x0a,
  1154. 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01,
  1155. 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70,
  1156. 0x62, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61,
  1157. 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e,
  1158. 0x67, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0x3f,
  1159. 0x0a, 0x0c, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x12,
  1160. 0x0a, 0x0e, 0x4e, 0x6f, 0x6e, 0x4e, 0x75, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x48, 0x61, 0x73, 0x68,
  1161. 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x48, 0x61, 0x73, 0x68, 0x10, 0x01, 0x12,
  1162. 0x0e, 0x0a, 0x0a, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x52, 0x6f, 0x62, 0x69, 0x6e, 0x10, 0x02, 0x32,
  1163. 0xad, 0x04, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1164. 0x67, 0x69, 0x6e, 0x67, 0x12, 0x4f, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  1165. 0x65, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1166. 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1167. 0x67, 0x65, 0x1a, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70,
  1168. 0x62, 0x2e, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22,
  1169. 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x4c, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
  1170. 0x12, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  1171. 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
  1172. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75,
  1173. 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28,
  1174. 0x01, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70,
  1175. 0x69, 0x63, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70,
  1176. 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71,
  1177. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  1178. 0x5f, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52,
  1179. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0e, 0x43, 0x6f, 0x6e,
  1180. 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x23, 0x2e, 0x6d, 0x65,
  1181. 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  1182. 0x67, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  1183. 0x1a, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  1184. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65,
  1185. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54,
  1186. 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
  1187. 0x6e, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1188. 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75,
  1189. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e,
  1190. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74,
  1191. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69,
  1192. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a,
  1193. 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73,
  1194. 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72,
  1195. 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6d, 0x65,
  1196. 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42,
  1197. 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42,
  1198. 0x57, 0x0a, 0x10, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69,
  1199. 0x65, 0x6e, 0x74, 0x42, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x50, 0x72,
  1200. 0x6f, 0x74, 0x6f, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  1201. 0x63, 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65,
  1202. 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73,
  1203. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1204. }
  1205. var (
  1206. file_messaging_proto_rawDescOnce sync.Once
  1207. file_messaging_proto_rawDescData = file_messaging_proto_rawDesc
  1208. )
  1209. func file_messaging_proto_rawDescGZIP() []byte {
  1210. file_messaging_proto_rawDescOnce.Do(func() {
  1211. file_messaging_proto_rawDescData = protoimpl.X.CompressGZIP(file_messaging_proto_rawDescData)
  1212. })
  1213. return file_messaging_proto_rawDescData
  1214. }
  1215. var file_messaging_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1216. var file_messaging_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
  1217. var file_messaging_proto_goTypes = []interface{}{
  1218. (SubscriberMessage_InitMessage_StartPosition)(0), // 0: messaging_pb.SubscriberMessage.InitMessage.StartPosition
  1219. (TopicConfiguration_Partitioning)(0), // 1: messaging_pb.TopicConfiguration.Partitioning
  1220. (*SubscriberMessage)(nil), // 2: messaging_pb.SubscriberMessage
  1221. (*Message)(nil), // 3: messaging_pb.Message
  1222. (*BrokerMessage)(nil), // 4: messaging_pb.BrokerMessage
  1223. (*PublishRequest)(nil), // 5: messaging_pb.PublishRequest
  1224. (*PublishResponse)(nil), // 6: messaging_pb.PublishResponse
  1225. (*DeleteTopicRequest)(nil), // 7: messaging_pb.DeleteTopicRequest
  1226. (*DeleteTopicResponse)(nil), // 8: messaging_pb.DeleteTopicResponse
  1227. (*ConfigureTopicRequest)(nil), // 9: messaging_pb.ConfigureTopicRequest
  1228. (*ConfigureTopicResponse)(nil), // 10: messaging_pb.ConfigureTopicResponse
  1229. (*GetTopicConfigurationRequest)(nil), // 11: messaging_pb.GetTopicConfigurationRequest
  1230. (*GetTopicConfigurationResponse)(nil), // 12: messaging_pb.GetTopicConfigurationResponse
  1231. (*FindBrokerRequest)(nil), // 13: messaging_pb.FindBrokerRequest
  1232. (*FindBrokerResponse)(nil), // 14: messaging_pb.FindBrokerResponse
  1233. (*TopicConfiguration)(nil), // 15: messaging_pb.TopicConfiguration
  1234. (*SubscriberMessage_InitMessage)(nil), // 16: messaging_pb.SubscriberMessage.InitMessage
  1235. (*SubscriberMessage_AckMessage)(nil), // 17: messaging_pb.SubscriberMessage.AckMessage
  1236. nil, // 18: messaging_pb.Message.HeadersEntry
  1237. (*PublishRequest_InitMessage)(nil), // 19: messaging_pb.PublishRequest.InitMessage
  1238. (*PublishResponse_ConfigMessage)(nil), // 20: messaging_pb.PublishResponse.ConfigMessage
  1239. (*PublishResponse_RedirectMessage)(nil), // 21: messaging_pb.PublishResponse.RedirectMessage
  1240. }
  1241. var file_messaging_proto_depIdxs = []int32{
  1242. 16, // 0: messaging_pb.SubscriberMessage.init:type_name -> messaging_pb.SubscriberMessage.InitMessage
  1243. 17, // 1: messaging_pb.SubscriberMessage.ack:type_name -> messaging_pb.SubscriberMessage.AckMessage
  1244. 18, // 2: messaging_pb.Message.headers:type_name -> messaging_pb.Message.HeadersEntry
  1245. 3, // 3: messaging_pb.BrokerMessage.data:type_name -> messaging_pb.Message
  1246. 19, // 4: messaging_pb.PublishRequest.init:type_name -> messaging_pb.PublishRequest.InitMessage
  1247. 3, // 5: messaging_pb.PublishRequest.data:type_name -> messaging_pb.Message
  1248. 20, // 6: messaging_pb.PublishResponse.config:type_name -> messaging_pb.PublishResponse.ConfigMessage
  1249. 21, // 7: messaging_pb.PublishResponse.redirect:type_name -> messaging_pb.PublishResponse.RedirectMessage
  1250. 15, // 8: messaging_pb.ConfigureTopicRequest.configuration:type_name -> messaging_pb.TopicConfiguration
  1251. 15, // 9: messaging_pb.GetTopicConfigurationResponse.configuration:type_name -> messaging_pb.TopicConfiguration
  1252. 1, // 10: messaging_pb.TopicConfiguration.partitoning:type_name -> messaging_pb.TopicConfiguration.Partitioning
  1253. 0, // 11: messaging_pb.SubscriberMessage.InitMessage.startPosition:type_name -> messaging_pb.SubscriberMessage.InitMessage.StartPosition
  1254. 2, // 12: messaging_pb.SeaweedMessaging.Subscribe:input_type -> messaging_pb.SubscriberMessage
  1255. 5, // 13: messaging_pb.SeaweedMessaging.Publish:input_type -> messaging_pb.PublishRequest
  1256. 7, // 14: messaging_pb.SeaweedMessaging.DeleteTopic:input_type -> messaging_pb.DeleteTopicRequest
  1257. 9, // 15: messaging_pb.SeaweedMessaging.ConfigureTopic:input_type -> messaging_pb.ConfigureTopicRequest
  1258. 11, // 16: messaging_pb.SeaweedMessaging.GetTopicConfiguration:input_type -> messaging_pb.GetTopicConfigurationRequest
  1259. 13, // 17: messaging_pb.SeaweedMessaging.FindBroker:input_type -> messaging_pb.FindBrokerRequest
  1260. 4, // 18: messaging_pb.SeaweedMessaging.Subscribe:output_type -> messaging_pb.BrokerMessage
  1261. 6, // 19: messaging_pb.SeaweedMessaging.Publish:output_type -> messaging_pb.PublishResponse
  1262. 8, // 20: messaging_pb.SeaweedMessaging.DeleteTopic:output_type -> messaging_pb.DeleteTopicResponse
  1263. 10, // 21: messaging_pb.SeaweedMessaging.ConfigureTopic:output_type -> messaging_pb.ConfigureTopicResponse
  1264. 12, // 22: messaging_pb.SeaweedMessaging.GetTopicConfiguration:output_type -> messaging_pb.GetTopicConfigurationResponse
  1265. 14, // 23: messaging_pb.SeaweedMessaging.FindBroker:output_type -> messaging_pb.FindBrokerResponse
  1266. 18, // [18:24] is the sub-list for method output_type
  1267. 12, // [12:18] is the sub-list for method input_type
  1268. 12, // [12:12] is the sub-list for extension type_name
  1269. 12, // [12:12] is the sub-list for extension extendee
  1270. 0, // [0:12] is the sub-list for field type_name
  1271. }
  1272. func init() { file_messaging_proto_init() }
  1273. func file_messaging_proto_init() {
  1274. if File_messaging_proto != nil {
  1275. return
  1276. }
  1277. if !protoimpl.UnsafeEnabled {
  1278. file_messaging_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1279. switch v := v.(*SubscriberMessage); i {
  1280. case 0:
  1281. return &v.state
  1282. case 1:
  1283. return &v.sizeCache
  1284. case 2:
  1285. return &v.unknownFields
  1286. default:
  1287. return nil
  1288. }
  1289. }
  1290. file_messaging_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1291. switch v := v.(*Message); i {
  1292. case 0:
  1293. return &v.state
  1294. case 1:
  1295. return &v.sizeCache
  1296. case 2:
  1297. return &v.unknownFields
  1298. default:
  1299. return nil
  1300. }
  1301. }
  1302. file_messaging_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1303. switch v := v.(*BrokerMessage); i {
  1304. case 0:
  1305. return &v.state
  1306. case 1:
  1307. return &v.sizeCache
  1308. case 2:
  1309. return &v.unknownFields
  1310. default:
  1311. return nil
  1312. }
  1313. }
  1314. file_messaging_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1315. switch v := v.(*PublishRequest); i {
  1316. case 0:
  1317. return &v.state
  1318. case 1:
  1319. return &v.sizeCache
  1320. case 2:
  1321. return &v.unknownFields
  1322. default:
  1323. return nil
  1324. }
  1325. }
  1326. file_messaging_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1327. switch v := v.(*PublishResponse); i {
  1328. case 0:
  1329. return &v.state
  1330. case 1:
  1331. return &v.sizeCache
  1332. case 2:
  1333. return &v.unknownFields
  1334. default:
  1335. return nil
  1336. }
  1337. }
  1338. file_messaging_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1339. switch v := v.(*DeleteTopicRequest); i {
  1340. case 0:
  1341. return &v.state
  1342. case 1:
  1343. return &v.sizeCache
  1344. case 2:
  1345. return &v.unknownFields
  1346. default:
  1347. return nil
  1348. }
  1349. }
  1350. file_messaging_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1351. switch v := v.(*DeleteTopicResponse); i {
  1352. case 0:
  1353. return &v.state
  1354. case 1:
  1355. return &v.sizeCache
  1356. case 2:
  1357. return &v.unknownFields
  1358. default:
  1359. return nil
  1360. }
  1361. }
  1362. file_messaging_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1363. switch v := v.(*ConfigureTopicRequest); i {
  1364. case 0:
  1365. return &v.state
  1366. case 1:
  1367. return &v.sizeCache
  1368. case 2:
  1369. return &v.unknownFields
  1370. default:
  1371. return nil
  1372. }
  1373. }
  1374. file_messaging_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1375. switch v := v.(*ConfigureTopicResponse); i {
  1376. case 0:
  1377. return &v.state
  1378. case 1:
  1379. return &v.sizeCache
  1380. case 2:
  1381. return &v.unknownFields
  1382. default:
  1383. return nil
  1384. }
  1385. }
  1386. file_messaging_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1387. switch v := v.(*GetTopicConfigurationRequest); i {
  1388. case 0:
  1389. return &v.state
  1390. case 1:
  1391. return &v.sizeCache
  1392. case 2:
  1393. return &v.unknownFields
  1394. default:
  1395. return nil
  1396. }
  1397. }
  1398. file_messaging_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1399. switch v := v.(*GetTopicConfigurationResponse); i {
  1400. case 0:
  1401. return &v.state
  1402. case 1:
  1403. return &v.sizeCache
  1404. case 2:
  1405. return &v.unknownFields
  1406. default:
  1407. return nil
  1408. }
  1409. }
  1410. file_messaging_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1411. switch v := v.(*FindBrokerRequest); i {
  1412. case 0:
  1413. return &v.state
  1414. case 1:
  1415. return &v.sizeCache
  1416. case 2:
  1417. return &v.unknownFields
  1418. default:
  1419. return nil
  1420. }
  1421. }
  1422. file_messaging_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1423. switch v := v.(*FindBrokerResponse); i {
  1424. case 0:
  1425. return &v.state
  1426. case 1:
  1427. return &v.sizeCache
  1428. case 2:
  1429. return &v.unknownFields
  1430. default:
  1431. return nil
  1432. }
  1433. }
  1434. file_messaging_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1435. switch v := v.(*TopicConfiguration); i {
  1436. case 0:
  1437. return &v.state
  1438. case 1:
  1439. return &v.sizeCache
  1440. case 2:
  1441. return &v.unknownFields
  1442. default:
  1443. return nil
  1444. }
  1445. }
  1446. file_messaging_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1447. switch v := v.(*SubscriberMessage_InitMessage); i {
  1448. case 0:
  1449. return &v.state
  1450. case 1:
  1451. return &v.sizeCache
  1452. case 2:
  1453. return &v.unknownFields
  1454. default:
  1455. return nil
  1456. }
  1457. }
  1458. file_messaging_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1459. switch v := v.(*SubscriberMessage_AckMessage); i {
  1460. case 0:
  1461. return &v.state
  1462. case 1:
  1463. return &v.sizeCache
  1464. case 2:
  1465. return &v.unknownFields
  1466. default:
  1467. return nil
  1468. }
  1469. }
  1470. file_messaging_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1471. switch v := v.(*PublishRequest_InitMessage); i {
  1472. case 0:
  1473. return &v.state
  1474. case 1:
  1475. return &v.sizeCache
  1476. case 2:
  1477. return &v.unknownFields
  1478. default:
  1479. return nil
  1480. }
  1481. }
  1482. file_messaging_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  1483. switch v := v.(*PublishResponse_ConfigMessage); i {
  1484. case 0:
  1485. return &v.state
  1486. case 1:
  1487. return &v.sizeCache
  1488. case 2:
  1489. return &v.unknownFields
  1490. default:
  1491. return nil
  1492. }
  1493. }
  1494. file_messaging_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
  1495. switch v := v.(*PublishResponse_RedirectMessage); i {
  1496. case 0:
  1497. return &v.state
  1498. case 1:
  1499. return &v.sizeCache
  1500. case 2:
  1501. return &v.unknownFields
  1502. default:
  1503. return nil
  1504. }
  1505. }
  1506. }
  1507. type x struct{}
  1508. out := protoimpl.TypeBuilder{
  1509. File: protoimpl.DescBuilder{
  1510. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1511. RawDescriptor: file_messaging_proto_rawDesc,
  1512. NumEnums: 2,
  1513. NumMessages: 20,
  1514. NumExtensions: 0,
  1515. NumServices: 1,
  1516. },
  1517. GoTypes: file_messaging_proto_goTypes,
  1518. DependencyIndexes: file_messaging_proto_depIdxs,
  1519. EnumInfos: file_messaging_proto_enumTypes,
  1520. MessageInfos: file_messaging_proto_msgTypes,
  1521. }.Build()
  1522. File_messaging_proto = out.File
  1523. file_messaging_proto_rawDesc = nil
  1524. file_messaging_proto_goTypes = nil
  1525. file_messaging_proto_depIdxs = nil
  1526. }
  1527. // Reference imports to suppress errors if they are not otherwise used.
  1528. var _ context.Context
  1529. var _ grpc.ClientConnInterface
  1530. // This is a compile-time assertion to ensure that this generated file
  1531. // is compatible with the grpc package it is being compiled against.
  1532. const _ = grpc.SupportPackageIsVersion6
  1533. // SeaweedMessagingClient is the client API for SeaweedMessaging service.
  1534. //
  1535. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1536. type SeaweedMessagingClient interface {
  1537. Subscribe(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeClient, error)
  1538. Publish(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_PublishClient, error)
  1539. DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*DeleteTopicResponse, error)
  1540. ConfigureTopic(ctx context.Context, in *ConfigureTopicRequest, opts ...grpc.CallOption) (*ConfigureTopicResponse, error)
  1541. GetTopicConfiguration(ctx context.Context, in *GetTopicConfigurationRequest, opts ...grpc.CallOption) (*GetTopicConfigurationResponse, error)
  1542. FindBroker(ctx context.Context, in *FindBrokerRequest, opts ...grpc.CallOption) (*FindBrokerResponse, error)
  1543. }
  1544. type seaweedMessagingClient struct {
  1545. cc grpc.ClientConnInterface
  1546. }
  1547. func NewSeaweedMessagingClient(cc grpc.ClientConnInterface) SeaweedMessagingClient {
  1548. return &seaweedMessagingClient{cc}
  1549. }
  1550. func (c *seaweedMessagingClient) Subscribe(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeClient, error) {
  1551. stream, err := c.cc.NewStream(ctx, &_SeaweedMessaging_serviceDesc.Streams[0], "/messaging_pb.SeaweedMessaging/Subscribe", opts...)
  1552. if err != nil {
  1553. return nil, err
  1554. }
  1555. x := &seaweedMessagingSubscribeClient{stream}
  1556. return x, nil
  1557. }
  1558. type SeaweedMessaging_SubscribeClient interface {
  1559. Send(*SubscriberMessage) error
  1560. Recv() (*BrokerMessage, error)
  1561. grpc.ClientStream
  1562. }
  1563. type seaweedMessagingSubscribeClient struct {
  1564. grpc.ClientStream
  1565. }
  1566. func (x *seaweedMessagingSubscribeClient) Send(m *SubscriberMessage) error {
  1567. return x.ClientStream.SendMsg(m)
  1568. }
  1569. func (x *seaweedMessagingSubscribeClient) Recv() (*BrokerMessage, error) {
  1570. m := new(BrokerMessage)
  1571. if err := x.ClientStream.RecvMsg(m); err != nil {
  1572. return nil, err
  1573. }
  1574. return m, nil
  1575. }
  1576. func (c *seaweedMessagingClient) Publish(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_PublishClient, error) {
  1577. stream, err := c.cc.NewStream(ctx, &_SeaweedMessaging_serviceDesc.Streams[1], "/messaging_pb.SeaweedMessaging/Publish", opts...)
  1578. if err != nil {
  1579. return nil, err
  1580. }
  1581. x := &seaweedMessagingPublishClient{stream}
  1582. return x, nil
  1583. }
  1584. type SeaweedMessaging_PublishClient interface {
  1585. Send(*PublishRequest) error
  1586. Recv() (*PublishResponse, error)
  1587. grpc.ClientStream
  1588. }
  1589. type seaweedMessagingPublishClient struct {
  1590. grpc.ClientStream
  1591. }
  1592. func (x *seaweedMessagingPublishClient) Send(m *PublishRequest) error {
  1593. return x.ClientStream.SendMsg(m)
  1594. }
  1595. func (x *seaweedMessagingPublishClient) Recv() (*PublishResponse, error) {
  1596. m := new(PublishResponse)
  1597. if err := x.ClientStream.RecvMsg(m); err != nil {
  1598. return nil, err
  1599. }
  1600. return m, nil
  1601. }
  1602. func (c *seaweedMessagingClient) DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*DeleteTopicResponse, error) {
  1603. out := new(DeleteTopicResponse)
  1604. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/DeleteTopic", in, out, opts...)
  1605. if err != nil {
  1606. return nil, err
  1607. }
  1608. return out, nil
  1609. }
  1610. func (c *seaweedMessagingClient) ConfigureTopic(ctx context.Context, in *ConfigureTopicRequest, opts ...grpc.CallOption) (*ConfigureTopicResponse, error) {
  1611. out := new(ConfigureTopicResponse)
  1612. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/ConfigureTopic", in, out, opts...)
  1613. if err != nil {
  1614. return nil, err
  1615. }
  1616. return out, nil
  1617. }
  1618. func (c *seaweedMessagingClient) GetTopicConfiguration(ctx context.Context, in *GetTopicConfigurationRequest, opts ...grpc.CallOption) (*GetTopicConfigurationResponse, error) {
  1619. out := new(GetTopicConfigurationResponse)
  1620. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/GetTopicConfiguration", in, out, opts...)
  1621. if err != nil {
  1622. return nil, err
  1623. }
  1624. return out, nil
  1625. }
  1626. func (c *seaweedMessagingClient) FindBroker(ctx context.Context, in *FindBrokerRequest, opts ...grpc.CallOption) (*FindBrokerResponse, error) {
  1627. out := new(FindBrokerResponse)
  1628. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/FindBroker", in, out, opts...)
  1629. if err != nil {
  1630. return nil, err
  1631. }
  1632. return out, nil
  1633. }
  1634. // SeaweedMessagingServer is the server API for SeaweedMessaging service.
  1635. type SeaweedMessagingServer interface {
  1636. Subscribe(SeaweedMessaging_SubscribeServer) error
  1637. Publish(SeaweedMessaging_PublishServer) error
  1638. DeleteTopic(context.Context, *DeleteTopicRequest) (*DeleteTopicResponse, error)
  1639. ConfigureTopic(context.Context, *ConfigureTopicRequest) (*ConfigureTopicResponse, error)
  1640. GetTopicConfiguration(context.Context, *GetTopicConfigurationRequest) (*GetTopicConfigurationResponse, error)
  1641. FindBroker(context.Context, *FindBrokerRequest) (*FindBrokerResponse, error)
  1642. }
  1643. // UnimplementedSeaweedMessagingServer can be embedded to have forward compatible implementations.
  1644. type UnimplementedSeaweedMessagingServer struct {
  1645. }
  1646. func (*UnimplementedSeaweedMessagingServer) Subscribe(SeaweedMessaging_SubscribeServer) error {
  1647. return status.Errorf(codes.Unimplemented, "method Subscribe not implemented")
  1648. }
  1649. func (*UnimplementedSeaweedMessagingServer) Publish(SeaweedMessaging_PublishServer) error {
  1650. return status.Errorf(codes.Unimplemented, "method Publish not implemented")
  1651. }
  1652. func (*UnimplementedSeaweedMessagingServer) DeleteTopic(context.Context, *DeleteTopicRequest) (*DeleteTopicResponse, error) {
  1653. return nil, status.Errorf(codes.Unimplemented, "method DeleteTopic not implemented")
  1654. }
  1655. func (*UnimplementedSeaweedMessagingServer) ConfigureTopic(context.Context, *ConfigureTopicRequest) (*ConfigureTopicResponse, error) {
  1656. return nil, status.Errorf(codes.Unimplemented, "method ConfigureTopic not implemented")
  1657. }
  1658. func (*UnimplementedSeaweedMessagingServer) GetTopicConfiguration(context.Context, *GetTopicConfigurationRequest) (*GetTopicConfigurationResponse, error) {
  1659. return nil, status.Errorf(codes.Unimplemented, "method GetTopicConfiguration not implemented")
  1660. }
  1661. func (*UnimplementedSeaweedMessagingServer) FindBroker(context.Context, *FindBrokerRequest) (*FindBrokerResponse, error) {
  1662. return nil, status.Errorf(codes.Unimplemented, "method FindBroker not implemented")
  1663. }
  1664. func RegisterSeaweedMessagingServer(s *grpc.Server, srv SeaweedMessagingServer) {
  1665. s.RegisterService(&_SeaweedMessaging_serviceDesc, srv)
  1666. }
  1667. func _SeaweedMessaging_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
  1668. return srv.(SeaweedMessagingServer).Subscribe(&seaweedMessagingSubscribeServer{stream})
  1669. }
  1670. type SeaweedMessaging_SubscribeServer interface {
  1671. Send(*BrokerMessage) error
  1672. Recv() (*SubscriberMessage, error)
  1673. grpc.ServerStream
  1674. }
  1675. type seaweedMessagingSubscribeServer struct {
  1676. grpc.ServerStream
  1677. }
  1678. func (x *seaweedMessagingSubscribeServer) Send(m *BrokerMessage) error {
  1679. return x.ServerStream.SendMsg(m)
  1680. }
  1681. func (x *seaweedMessagingSubscribeServer) Recv() (*SubscriberMessage, error) {
  1682. m := new(SubscriberMessage)
  1683. if err := x.ServerStream.RecvMsg(m); err != nil {
  1684. return nil, err
  1685. }
  1686. return m, nil
  1687. }
  1688. func _SeaweedMessaging_Publish_Handler(srv interface{}, stream grpc.ServerStream) error {
  1689. return srv.(SeaweedMessagingServer).Publish(&seaweedMessagingPublishServer{stream})
  1690. }
  1691. type SeaweedMessaging_PublishServer interface {
  1692. Send(*PublishResponse) error
  1693. Recv() (*PublishRequest, error)
  1694. grpc.ServerStream
  1695. }
  1696. type seaweedMessagingPublishServer struct {
  1697. grpc.ServerStream
  1698. }
  1699. func (x *seaweedMessagingPublishServer) Send(m *PublishResponse) error {
  1700. return x.ServerStream.SendMsg(m)
  1701. }
  1702. func (x *seaweedMessagingPublishServer) Recv() (*PublishRequest, error) {
  1703. m := new(PublishRequest)
  1704. if err := x.ServerStream.RecvMsg(m); err != nil {
  1705. return nil, err
  1706. }
  1707. return m, nil
  1708. }
  1709. func _SeaweedMessaging_DeleteTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1710. in := new(DeleteTopicRequest)
  1711. if err := dec(in); err != nil {
  1712. return nil, err
  1713. }
  1714. if interceptor == nil {
  1715. return srv.(SeaweedMessagingServer).DeleteTopic(ctx, in)
  1716. }
  1717. info := &grpc.UnaryServerInfo{
  1718. Server: srv,
  1719. FullMethod: "/messaging_pb.SeaweedMessaging/DeleteTopic",
  1720. }
  1721. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1722. return srv.(SeaweedMessagingServer).DeleteTopic(ctx, req.(*DeleteTopicRequest))
  1723. }
  1724. return interceptor(ctx, in, info, handler)
  1725. }
  1726. func _SeaweedMessaging_ConfigureTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1727. in := new(ConfigureTopicRequest)
  1728. if err := dec(in); err != nil {
  1729. return nil, err
  1730. }
  1731. if interceptor == nil {
  1732. return srv.(SeaweedMessagingServer).ConfigureTopic(ctx, in)
  1733. }
  1734. info := &grpc.UnaryServerInfo{
  1735. Server: srv,
  1736. FullMethod: "/messaging_pb.SeaweedMessaging/ConfigureTopic",
  1737. }
  1738. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1739. return srv.(SeaweedMessagingServer).ConfigureTopic(ctx, req.(*ConfigureTopicRequest))
  1740. }
  1741. return interceptor(ctx, in, info, handler)
  1742. }
  1743. func _SeaweedMessaging_GetTopicConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1744. in := new(GetTopicConfigurationRequest)
  1745. if err := dec(in); err != nil {
  1746. return nil, err
  1747. }
  1748. if interceptor == nil {
  1749. return srv.(SeaweedMessagingServer).GetTopicConfiguration(ctx, in)
  1750. }
  1751. info := &grpc.UnaryServerInfo{
  1752. Server: srv,
  1753. FullMethod: "/messaging_pb.SeaweedMessaging/GetTopicConfiguration",
  1754. }
  1755. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1756. return srv.(SeaweedMessagingServer).GetTopicConfiguration(ctx, req.(*GetTopicConfigurationRequest))
  1757. }
  1758. return interceptor(ctx, in, info, handler)
  1759. }
  1760. func _SeaweedMessaging_FindBroker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1761. in := new(FindBrokerRequest)
  1762. if err := dec(in); err != nil {
  1763. return nil, err
  1764. }
  1765. if interceptor == nil {
  1766. return srv.(SeaweedMessagingServer).FindBroker(ctx, in)
  1767. }
  1768. info := &grpc.UnaryServerInfo{
  1769. Server: srv,
  1770. FullMethod: "/messaging_pb.SeaweedMessaging/FindBroker",
  1771. }
  1772. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1773. return srv.(SeaweedMessagingServer).FindBroker(ctx, req.(*FindBrokerRequest))
  1774. }
  1775. return interceptor(ctx, in, info, handler)
  1776. }
  1777. var _SeaweedMessaging_serviceDesc = grpc.ServiceDesc{
  1778. ServiceName: "messaging_pb.SeaweedMessaging",
  1779. HandlerType: (*SeaweedMessagingServer)(nil),
  1780. Methods: []grpc.MethodDesc{
  1781. {
  1782. MethodName: "DeleteTopic",
  1783. Handler: _SeaweedMessaging_DeleteTopic_Handler,
  1784. },
  1785. {
  1786. MethodName: "ConfigureTopic",
  1787. Handler: _SeaweedMessaging_ConfigureTopic_Handler,
  1788. },
  1789. {
  1790. MethodName: "GetTopicConfiguration",
  1791. Handler: _SeaweedMessaging_GetTopicConfiguration_Handler,
  1792. },
  1793. {
  1794. MethodName: "FindBroker",
  1795. Handler: _SeaweedMessaging_FindBroker_Handler,
  1796. },
  1797. },
  1798. Streams: []grpc.StreamDesc{
  1799. {
  1800. StreamName: "Subscribe",
  1801. Handler: _SeaweedMessaging_Subscribe_Handler,
  1802. ServerStreams: true,
  1803. ClientStreams: true,
  1804. },
  1805. {
  1806. StreamName: "Publish",
  1807. Handler: _SeaweedMessaging_Publish_Handler,
  1808. ServerStreams: true,
  1809. ClientStreams: true,
  1810. },
  1811. },
  1812. Metadata: "messaging.proto",
  1813. }