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.

1540 lines
55 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.28.1
  5. // source: mq_agent.proto
  6. package mq_agent_pb
  7. import (
  8. schema_pb "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type PartitionOffsetStartType int32
  21. const (
  22. PartitionOffsetStartType_EARLIEST PartitionOffsetStartType = 0
  23. PartitionOffsetStartType_EARLIEST_IN_MEMORY PartitionOffsetStartType = 1
  24. PartitionOffsetStartType_LATEST PartitionOffsetStartType = 2
  25. )
  26. // Enum value maps for PartitionOffsetStartType.
  27. var (
  28. PartitionOffsetStartType_name = map[int32]string{
  29. 0: "EARLIEST",
  30. 1: "EARLIEST_IN_MEMORY",
  31. 2: "LATEST",
  32. }
  33. PartitionOffsetStartType_value = map[string]int32{
  34. "EARLIEST": 0,
  35. "EARLIEST_IN_MEMORY": 1,
  36. "LATEST": 2,
  37. }
  38. )
  39. func (x PartitionOffsetStartType) Enum() *PartitionOffsetStartType {
  40. p := new(PartitionOffsetStartType)
  41. *p = x
  42. return p
  43. }
  44. func (x PartitionOffsetStartType) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (PartitionOffsetStartType) Descriptor() protoreflect.EnumDescriptor {
  48. return file_mq_agent_proto_enumTypes[0].Descriptor()
  49. }
  50. func (PartitionOffsetStartType) Type() protoreflect.EnumType {
  51. return &file_mq_agent_proto_enumTypes[0]
  52. }
  53. func (x PartitionOffsetStartType) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use PartitionOffsetStartType.Descriptor instead.
  57. func (PartitionOffsetStartType) EnumDescriptor() ([]byte, []int) {
  58. return file_mq_agent_proto_rawDescGZIP(), []int{0}
  59. }
  60. type Topic struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  65. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  66. }
  67. func (x *Topic) Reset() {
  68. *x = Topic{}
  69. if protoimpl.UnsafeEnabled {
  70. mi := &file_mq_agent_proto_msgTypes[0]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. }
  75. func (x *Topic) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*Topic) ProtoMessage() {}
  79. func (x *Topic) ProtoReflect() protoreflect.Message {
  80. mi := &file_mq_agent_proto_msgTypes[0]
  81. if protoimpl.UnsafeEnabled && x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use Topic.ProtoReflect.Descriptor instead.
  91. func (*Topic) Descriptor() ([]byte, []int) {
  92. return file_mq_agent_proto_rawDescGZIP(), []int{0}
  93. }
  94. func (x *Topic) GetNamespace() string {
  95. if x != nil {
  96. return x.Namespace
  97. }
  98. return ""
  99. }
  100. func (x *Topic) GetName() string {
  101. if x != nil {
  102. return x.Name
  103. }
  104. return ""
  105. }
  106. type Partition struct {
  107. state protoimpl.MessageState
  108. sizeCache protoimpl.SizeCache
  109. unknownFields protoimpl.UnknownFields
  110. RingSize int32 `protobuf:"varint,1,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"`
  111. RangeStart int32 `protobuf:"varint,2,opt,name=range_start,json=rangeStart,proto3" json:"range_start,omitempty"`
  112. RangeStop int32 `protobuf:"varint,3,opt,name=range_stop,json=rangeStop,proto3" json:"range_stop,omitempty"`
  113. UnixTimeNs int64 `protobuf:"varint,4,opt,name=unix_time_ns,json=unixTimeNs,proto3" json:"unix_time_ns,omitempty"`
  114. }
  115. func (x *Partition) Reset() {
  116. *x = Partition{}
  117. if protoimpl.UnsafeEnabled {
  118. mi := &file_mq_agent_proto_msgTypes[1]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. }
  123. func (x *Partition) String() string {
  124. return protoimpl.X.MessageStringOf(x)
  125. }
  126. func (*Partition) ProtoMessage() {}
  127. func (x *Partition) ProtoReflect() protoreflect.Message {
  128. mi := &file_mq_agent_proto_msgTypes[1]
  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 Partition.ProtoReflect.Descriptor instead.
  139. func (*Partition) Descriptor() ([]byte, []int) {
  140. return file_mq_agent_proto_rawDescGZIP(), []int{1}
  141. }
  142. func (x *Partition) GetRingSize() int32 {
  143. if x != nil {
  144. return x.RingSize
  145. }
  146. return 0
  147. }
  148. func (x *Partition) GetRangeStart() int32 {
  149. if x != nil {
  150. return x.RangeStart
  151. }
  152. return 0
  153. }
  154. func (x *Partition) GetRangeStop() int32 {
  155. if x != nil {
  156. return x.RangeStop
  157. }
  158. return 0
  159. }
  160. func (x *Partition) GetUnixTimeNs() int64 {
  161. if x != nil {
  162. return x.UnixTimeNs
  163. }
  164. return 0
  165. }
  166. type Offset struct {
  167. state protoimpl.MessageState
  168. sizeCache protoimpl.SizeCache
  169. unknownFields protoimpl.UnknownFields
  170. Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  171. PartitionOffsets []*PartitionOffset `protobuf:"bytes,2,rep,name=partition_offsets,json=partitionOffsets,proto3" json:"partition_offsets,omitempty"`
  172. }
  173. func (x *Offset) Reset() {
  174. *x = Offset{}
  175. if protoimpl.UnsafeEnabled {
  176. mi := &file_mq_agent_proto_msgTypes[2]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. }
  181. func (x *Offset) String() string {
  182. return protoimpl.X.MessageStringOf(x)
  183. }
  184. func (*Offset) ProtoMessage() {}
  185. func (x *Offset) ProtoReflect() protoreflect.Message {
  186. mi := &file_mq_agent_proto_msgTypes[2]
  187. if protoimpl.UnsafeEnabled && x != nil {
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. if ms.LoadMessageInfo() == nil {
  190. ms.StoreMessageInfo(mi)
  191. }
  192. return ms
  193. }
  194. return mi.MessageOf(x)
  195. }
  196. // Deprecated: Use Offset.ProtoReflect.Descriptor instead.
  197. func (*Offset) Descriptor() ([]byte, []int) {
  198. return file_mq_agent_proto_rawDescGZIP(), []int{2}
  199. }
  200. func (x *Offset) GetTopic() *Topic {
  201. if x != nil {
  202. return x.Topic
  203. }
  204. return nil
  205. }
  206. func (x *Offset) GetPartitionOffsets() []*PartitionOffset {
  207. if x != nil {
  208. return x.PartitionOffsets
  209. }
  210. return nil
  211. }
  212. type PartitionOffset struct {
  213. state protoimpl.MessageState
  214. sizeCache protoimpl.SizeCache
  215. unknownFields protoimpl.UnknownFields
  216. Partition *Partition `protobuf:"bytes,1,opt,name=partition,proto3" json:"partition,omitempty"`
  217. StartTsNs int64 `protobuf:"varint,2,opt,name=start_ts_ns,json=startTsNs,proto3" json:"start_ts_ns,omitempty"`
  218. StopTsNs int64 `protobuf:"varint,3,opt,name=stop_ts_ns,json=stopTsNs,proto3" json:"stop_ts_ns,omitempty"`
  219. StartType PartitionOffsetStartType `protobuf:"varint,4,opt,name=start_type,json=startType,proto3,enum=messaging_pb.PartitionOffsetStartType" json:"start_type,omitempty"`
  220. }
  221. func (x *PartitionOffset) Reset() {
  222. *x = PartitionOffset{}
  223. if protoimpl.UnsafeEnabled {
  224. mi := &file_mq_agent_proto_msgTypes[3]
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. ms.StoreMessageInfo(mi)
  227. }
  228. }
  229. func (x *PartitionOffset) String() string {
  230. return protoimpl.X.MessageStringOf(x)
  231. }
  232. func (*PartitionOffset) ProtoMessage() {}
  233. func (x *PartitionOffset) ProtoReflect() protoreflect.Message {
  234. mi := &file_mq_agent_proto_msgTypes[3]
  235. if protoimpl.UnsafeEnabled && x != nil {
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. if ms.LoadMessageInfo() == nil {
  238. ms.StoreMessageInfo(mi)
  239. }
  240. return ms
  241. }
  242. return mi.MessageOf(x)
  243. }
  244. // Deprecated: Use PartitionOffset.ProtoReflect.Descriptor instead.
  245. func (*PartitionOffset) Descriptor() ([]byte, []int) {
  246. return file_mq_agent_proto_rawDescGZIP(), []int{3}
  247. }
  248. func (x *PartitionOffset) GetPartition() *Partition {
  249. if x != nil {
  250. return x.Partition
  251. }
  252. return nil
  253. }
  254. func (x *PartitionOffset) GetStartTsNs() int64 {
  255. if x != nil {
  256. return x.StartTsNs
  257. }
  258. return 0
  259. }
  260. func (x *PartitionOffset) GetStopTsNs() int64 {
  261. if x != nil {
  262. return x.StopTsNs
  263. }
  264. return 0
  265. }
  266. func (x *PartitionOffset) GetStartType() PartitionOffsetStartType {
  267. if x != nil {
  268. return x.StartType
  269. }
  270. return PartitionOffsetStartType_EARLIEST
  271. }
  272. // ////////////////////////////////////////////////
  273. type StartPublishSessionRequest struct {
  274. state protoimpl.MessageState
  275. sizeCache protoimpl.SizeCache
  276. unknownFields protoimpl.UnknownFields
  277. Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  278. PartitionCount int32 `protobuf:"varint,2,opt,name=partition_count,json=partitionCount,proto3" json:"partition_count,omitempty"`
  279. RecordType *schema_pb.RecordType `protobuf:"bytes,3,opt,name=record_type,json=recordType,proto3" json:"record_type,omitempty"`
  280. PublisherName string `protobuf:"bytes,4,opt,name=publisher_name,json=publisherName,proto3" json:"publisher_name,omitempty"`
  281. }
  282. func (x *StartPublishSessionRequest) Reset() {
  283. *x = StartPublishSessionRequest{}
  284. if protoimpl.UnsafeEnabled {
  285. mi := &file_mq_agent_proto_msgTypes[4]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. }
  290. func (x *StartPublishSessionRequest) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*StartPublishSessionRequest) ProtoMessage() {}
  294. func (x *StartPublishSessionRequest) ProtoReflect() protoreflect.Message {
  295. mi := &file_mq_agent_proto_msgTypes[4]
  296. if protoimpl.UnsafeEnabled && x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use StartPublishSessionRequest.ProtoReflect.Descriptor instead.
  306. func (*StartPublishSessionRequest) Descriptor() ([]byte, []int) {
  307. return file_mq_agent_proto_rawDescGZIP(), []int{4}
  308. }
  309. func (x *StartPublishSessionRequest) GetTopic() *Topic {
  310. if x != nil {
  311. return x.Topic
  312. }
  313. return nil
  314. }
  315. func (x *StartPublishSessionRequest) GetPartitionCount() int32 {
  316. if x != nil {
  317. return x.PartitionCount
  318. }
  319. return 0
  320. }
  321. func (x *StartPublishSessionRequest) GetRecordType() *schema_pb.RecordType {
  322. if x != nil {
  323. return x.RecordType
  324. }
  325. return nil
  326. }
  327. func (x *StartPublishSessionRequest) GetPublisherName() string {
  328. if x != nil {
  329. return x.PublisherName
  330. }
  331. return ""
  332. }
  333. type StartPublishSessionResponse struct {
  334. state protoimpl.MessageState
  335. sizeCache protoimpl.SizeCache
  336. unknownFields protoimpl.UnknownFields
  337. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  338. SessionId int64 `protobuf:"varint,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  339. }
  340. func (x *StartPublishSessionResponse) Reset() {
  341. *x = StartPublishSessionResponse{}
  342. if protoimpl.UnsafeEnabled {
  343. mi := &file_mq_agent_proto_msgTypes[5]
  344. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  345. ms.StoreMessageInfo(mi)
  346. }
  347. }
  348. func (x *StartPublishSessionResponse) String() string {
  349. return protoimpl.X.MessageStringOf(x)
  350. }
  351. func (*StartPublishSessionResponse) ProtoMessage() {}
  352. func (x *StartPublishSessionResponse) ProtoReflect() protoreflect.Message {
  353. mi := &file_mq_agent_proto_msgTypes[5]
  354. if protoimpl.UnsafeEnabled && x != nil {
  355. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  356. if ms.LoadMessageInfo() == nil {
  357. ms.StoreMessageInfo(mi)
  358. }
  359. return ms
  360. }
  361. return mi.MessageOf(x)
  362. }
  363. // Deprecated: Use StartPublishSessionResponse.ProtoReflect.Descriptor instead.
  364. func (*StartPublishSessionResponse) Descriptor() ([]byte, []int) {
  365. return file_mq_agent_proto_rawDescGZIP(), []int{5}
  366. }
  367. func (x *StartPublishSessionResponse) GetError() string {
  368. if x != nil {
  369. return x.Error
  370. }
  371. return ""
  372. }
  373. func (x *StartPublishSessionResponse) GetSessionId() int64 {
  374. if x != nil {
  375. return x.SessionId
  376. }
  377. return 0
  378. }
  379. type ClosePublishSessionRequest struct {
  380. state protoimpl.MessageState
  381. sizeCache protoimpl.SizeCache
  382. unknownFields protoimpl.UnknownFields
  383. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  384. }
  385. func (x *ClosePublishSessionRequest) Reset() {
  386. *x = ClosePublishSessionRequest{}
  387. if protoimpl.UnsafeEnabled {
  388. mi := &file_mq_agent_proto_msgTypes[6]
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. ms.StoreMessageInfo(mi)
  391. }
  392. }
  393. func (x *ClosePublishSessionRequest) String() string {
  394. return protoimpl.X.MessageStringOf(x)
  395. }
  396. func (*ClosePublishSessionRequest) ProtoMessage() {}
  397. func (x *ClosePublishSessionRequest) ProtoReflect() protoreflect.Message {
  398. mi := &file_mq_agent_proto_msgTypes[6]
  399. if protoimpl.UnsafeEnabled && x != nil {
  400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  401. if ms.LoadMessageInfo() == nil {
  402. ms.StoreMessageInfo(mi)
  403. }
  404. return ms
  405. }
  406. return mi.MessageOf(x)
  407. }
  408. // Deprecated: Use ClosePublishSessionRequest.ProtoReflect.Descriptor instead.
  409. func (*ClosePublishSessionRequest) Descriptor() ([]byte, []int) {
  410. return file_mq_agent_proto_rawDescGZIP(), []int{6}
  411. }
  412. func (x *ClosePublishSessionRequest) GetSessionId() int64 {
  413. if x != nil {
  414. return x.SessionId
  415. }
  416. return 0
  417. }
  418. type ClosePublishSessionResponse struct {
  419. state protoimpl.MessageState
  420. sizeCache protoimpl.SizeCache
  421. unknownFields protoimpl.UnknownFields
  422. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  423. }
  424. func (x *ClosePublishSessionResponse) Reset() {
  425. *x = ClosePublishSessionResponse{}
  426. if protoimpl.UnsafeEnabled {
  427. mi := &file_mq_agent_proto_msgTypes[7]
  428. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  429. ms.StoreMessageInfo(mi)
  430. }
  431. }
  432. func (x *ClosePublishSessionResponse) String() string {
  433. return protoimpl.X.MessageStringOf(x)
  434. }
  435. func (*ClosePublishSessionResponse) ProtoMessage() {}
  436. func (x *ClosePublishSessionResponse) ProtoReflect() protoreflect.Message {
  437. mi := &file_mq_agent_proto_msgTypes[7]
  438. if protoimpl.UnsafeEnabled && x != nil {
  439. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  440. if ms.LoadMessageInfo() == nil {
  441. ms.StoreMessageInfo(mi)
  442. }
  443. return ms
  444. }
  445. return mi.MessageOf(x)
  446. }
  447. // Deprecated: Use ClosePublishSessionResponse.ProtoReflect.Descriptor instead.
  448. func (*ClosePublishSessionResponse) Descriptor() ([]byte, []int) {
  449. return file_mq_agent_proto_rawDescGZIP(), []int{7}
  450. }
  451. func (x *ClosePublishSessionResponse) GetError() string {
  452. if x != nil {
  453. return x.Error
  454. }
  455. return ""
  456. }
  457. // ////////////////////////////////////////////////
  458. type PublishRecordRequest struct {
  459. state protoimpl.MessageState
  460. sizeCache protoimpl.SizeCache
  461. unknownFields protoimpl.UnknownFields
  462. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // session_id is required for the first record
  463. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  464. Value *schema_pb.RecordValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  465. }
  466. func (x *PublishRecordRequest) Reset() {
  467. *x = PublishRecordRequest{}
  468. if protoimpl.UnsafeEnabled {
  469. mi := &file_mq_agent_proto_msgTypes[8]
  470. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  471. ms.StoreMessageInfo(mi)
  472. }
  473. }
  474. func (x *PublishRecordRequest) String() string {
  475. return protoimpl.X.MessageStringOf(x)
  476. }
  477. func (*PublishRecordRequest) ProtoMessage() {}
  478. func (x *PublishRecordRequest) ProtoReflect() protoreflect.Message {
  479. mi := &file_mq_agent_proto_msgTypes[8]
  480. if protoimpl.UnsafeEnabled && x != nil {
  481. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  482. if ms.LoadMessageInfo() == nil {
  483. ms.StoreMessageInfo(mi)
  484. }
  485. return ms
  486. }
  487. return mi.MessageOf(x)
  488. }
  489. // Deprecated: Use PublishRecordRequest.ProtoReflect.Descriptor instead.
  490. func (*PublishRecordRequest) Descriptor() ([]byte, []int) {
  491. return file_mq_agent_proto_rawDescGZIP(), []int{8}
  492. }
  493. func (x *PublishRecordRequest) GetSessionId() int64 {
  494. if x != nil {
  495. return x.SessionId
  496. }
  497. return 0
  498. }
  499. func (x *PublishRecordRequest) GetKey() []byte {
  500. if x != nil {
  501. return x.Key
  502. }
  503. return nil
  504. }
  505. func (x *PublishRecordRequest) GetValue() *schema_pb.RecordValue {
  506. if x != nil {
  507. return x.Value
  508. }
  509. return nil
  510. }
  511. type PublishRecordResponse struct {
  512. state protoimpl.MessageState
  513. sizeCache protoimpl.SizeCache
  514. unknownFields protoimpl.UnknownFields
  515. AckSequence int64 `protobuf:"varint,1,opt,name=ack_sequence,json=ackSequence,proto3" json:"ack_sequence,omitempty"`
  516. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  517. }
  518. func (x *PublishRecordResponse) Reset() {
  519. *x = PublishRecordResponse{}
  520. if protoimpl.UnsafeEnabled {
  521. mi := &file_mq_agent_proto_msgTypes[9]
  522. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  523. ms.StoreMessageInfo(mi)
  524. }
  525. }
  526. func (x *PublishRecordResponse) String() string {
  527. return protoimpl.X.MessageStringOf(x)
  528. }
  529. func (*PublishRecordResponse) ProtoMessage() {}
  530. func (x *PublishRecordResponse) ProtoReflect() protoreflect.Message {
  531. mi := &file_mq_agent_proto_msgTypes[9]
  532. if protoimpl.UnsafeEnabled && x != nil {
  533. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  534. if ms.LoadMessageInfo() == nil {
  535. ms.StoreMessageInfo(mi)
  536. }
  537. return ms
  538. }
  539. return mi.MessageOf(x)
  540. }
  541. // Deprecated: Use PublishRecordResponse.ProtoReflect.Descriptor instead.
  542. func (*PublishRecordResponse) Descriptor() ([]byte, []int) {
  543. return file_mq_agent_proto_rawDescGZIP(), []int{9}
  544. }
  545. func (x *PublishRecordResponse) GetAckSequence() int64 {
  546. if x != nil {
  547. return x.AckSequence
  548. }
  549. return 0
  550. }
  551. func (x *PublishRecordResponse) GetError() string {
  552. if x != nil {
  553. return x.Error
  554. }
  555. return ""
  556. }
  557. // ////////////////////////////////////////////////
  558. type StartSubscribeSessionRequest struct {
  559. state protoimpl.MessageState
  560. sizeCache protoimpl.SizeCache
  561. unknownFields protoimpl.UnknownFields
  562. ConsumerGroup string `protobuf:"bytes,1,opt,name=consumer_group,json=consumerGroup,proto3" json:"consumer_group,omitempty"`
  563. ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
  564. ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  565. Topic *Topic `protobuf:"bytes,4,opt,name=topic,proto3" json:"topic,omitempty"`
  566. PartitionOffset *PartitionOffset `protobuf:"bytes,5,opt,name=partition_offset,json=partitionOffset,proto3" json:"partition_offset,omitempty"`
  567. Filter string `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
  568. Concurrency int32 `protobuf:"varint,8,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  569. }
  570. func (x *StartSubscribeSessionRequest) Reset() {
  571. *x = StartSubscribeSessionRequest{}
  572. if protoimpl.UnsafeEnabled {
  573. mi := &file_mq_agent_proto_msgTypes[10]
  574. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  575. ms.StoreMessageInfo(mi)
  576. }
  577. }
  578. func (x *StartSubscribeSessionRequest) String() string {
  579. return protoimpl.X.MessageStringOf(x)
  580. }
  581. func (*StartSubscribeSessionRequest) ProtoMessage() {}
  582. func (x *StartSubscribeSessionRequest) ProtoReflect() protoreflect.Message {
  583. mi := &file_mq_agent_proto_msgTypes[10]
  584. if protoimpl.UnsafeEnabled && x != nil {
  585. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  586. if ms.LoadMessageInfo() == nil {
  587. ms.StoreMessageInfo(mi)
  588. }
  589. return ms
  590. }
  591. return mi.MessageOf(x)
  592. }
  593. // Deprecated: Use StartSubscribeSessionRequest.ProtoReflect.Descriptor instead.
  594. func (*StartSubscribeSessionRequest) Descriptor() ([]byte, []int) {
  595. return file_mq_agent_proto_rawDescGZIP(), []int{10}
  596. }
  597. func (x *StartSubscribeSessionRequest) GetConsumerGroup() string {
  598. if x != nil {
  599. return x.ConsumerGroup
  600. }
  601. return ""
  602. }
  603. func (x *StartSubscribeSessionRequest) GetConsumerId() string {
  604. if x != nil {
  605. return x.ConsumerId
  606. }
  607. return ""
  608. }
  609. func (x *StartSubscribeSessionRequest) GetClientId() string {
  610. if x != nil {
  611. return x.ClientId
  612. }
  613. return ""
  614. }
  615. func (x *StartSubscribeSessionRequest) GetTopic() *Topic {
  616. if x != nil {
  617. return x.Topic
  618. }
  619. return nil
  620. }
  621. func (x *StartSubscribeSessionRequest) GetPartitionOffset() *PartitionOffset {
  622. if x != nil {
  623. return x.PartitionOffset
  624. }
  625. return nil
  626. }
  627. func (x *StartSubscribeSessionRequest) GetFilter() string {
  628. if x != nil {
  629. return x.Filter
  630. }
  631. return ""
  632. }
  633. func (x *StartSubscribeSessionRequest) GetConcurrency() int32 {
  634. if x != nil {
  635. return x.Concurrency
  636. }
  637. return 0
  638. }
  639. type StartSubscribeSessionResponse struct {
  640. state protoimpl.MessageState
  641. sizeCache protoimpl.SizeCache
  642. unknownFields protoimpl.UnknownFields
  643. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  644. SessionId int64 `protobuf:"varint,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  645. }
  646. func (x *StartSubscribeSessionResponse) Reset() {
  647. *x = StartSubscribeSessionResponse{}
  648. if protoimpl.UnsafeEnabled {
  649. mi := &file_mq_agent_proto_msgTypes[11]
  650. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  651. ms.StoreMessageInfo(mi)
  652. }
  653. }
  654. func (x *StartSubscribeSessionResponse) String() string {
  655. return protoimpl.X.MessageStringOf(x)
  656. }
  657. func (*StartSubscribeSessionResponse) ProtoMessage() {}
  658. func (x *StartSubscribeSessionResponse) ProtoReflect() protoreflect.Message {
  659. mi := &file_mq_agent_proto_msgTypes[11]
  660. if protoimpl.UnsafeEnabled && x != nil {
  661. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  662. if ms.LoadMessageInfo() == nil {
  663. ms.StoreMessageInfo(mi)
  664. }
  665. return ms
  666. }
  667. return mi.MessageOf(x)
  668. }
  669. // Deprecated: Use StartSubscribeSessionResponse.ProtoReflect.Descriptor instead.
  670. func (*StartSubscribeSessionResponse) Descriptor() ([]byte, []int) {
  671. return file_mq_agent_proto_rawDescGZIP(), []int{11}
  672. }
  673. func (x *StartSubscribeSessionResponse) GetError() string {
  674. if x != nil {
  675. return x.Error
  676. }
  677. return ""
  678. }
  679. func (x *StartSubscribeSessionResponse) GetSessionId() int64 {
  680. if x != nil {
  681. return x.SessionId
  682. }
  683. return 0
  684. }
  685. type CloseSubscribeSessionRequest struct {
  686. state protoimpl.MessageState
  687. sizeCache protoimpl.SizeCache
  688. unknownFields protoimpl.UnknownFields
  689. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  690. }
  691. func (x *CloseSubscribeSessionRequest) Reset() {
  692. *x = CloseSubscribeSessionRequest{}
  693. if protoimpl.UnsafeEnabled {
  694. mi := &file_mq_agent_proto_msgTypes[12]
  695. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  696. ms.StoreMessageInfo(mi)
  697. }
  698. }
  699. func (x *CloseSubscribeSessionRequest) String() string {
  700. return protoimpl.X.MessageStringOf(x)
  701. }
  702. func (*CloseSubscribeSessionRequest) ProtoMessage() {}
  703. func (x *CloseSubscribeSessionRequest) ProtoReflect() protoreflect.Message {
  704. mi := &file_mq_agent_proto_msgTypes[12]
  705. if protoimpl.UnsafeEnabled && x != nil {
  706. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  707. if ms.LoadMessageInfo() == nil {
  708. ms.StoreMessageInfo(mi)
  709. }
  710. return ms
  711. }
  712. return mi.MessageOf(x)
  713. }
  714. // Deprecated: Use CloseSubscribeSessionRequest.ProtoReflect.Descriptor instead.
  715. func (*CloseSubscribeSessionRequest) Descriptor() ([]byte, []int) {
  716. return file_mq_agent_proto_rawDescGZIP(), []int{12}
  717. }
  718. func (x *CloseSubscribeSessionRequest) GetSessionId() int64 {
  719. if x != nil {
  720. return x.SessionId
  721. }
  722. return 0
  723. }
  724. type CloseSubscribeSessionResponse struct {
  725. state protoimpl.MessageState
  726. sizeCache protoimpl.SizeCache
  727. unknownFields protoimpl.UnknownFields
  728. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  729. }
  730. func (x *CloseSubscribeSessionResponse) Reset() {
  731. *x = CloseSubscribeSessionResponse{}
  732. if protoimpl.UnsafeEnabled {
  733. mi := &file_mq_agent_proto_msgTypes[13]
  734. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  735. ms.StoreMessageInfo(mi)
  736. }
  737. }
  738. func (x *CloseSubscribeSessionResponse) String() string {
  739. return protoimpl.X.MessageStringOf(x)
  740. }
  741. func (*CloseSubscribeSessionResponse) ProtoMessage() {}
  742. func (x *CloseSubscribeSessionResponse) ProtoReflect() protoreflect.Message {
  743. mi := &file_mq_agent_proto_msgTypes[13]
  744. if protoimpl.UnsafeEnabled && x != nil {
  745. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  746. if ms.LoadMessageInfo() == nil {
  747. ms.StoreMessageInfo(mi)
  748. }
  749. return ms
  750. }
  751. return mi.MessageOf(x)
  752. }
  753. // Deprecated: Use CloseSubscribeSessionResponse.ProtoReflect.Descriptor instead.
  754. func (*CloseSubscribeSessionResponse) Descriptor() ([]byte, []int) {
  755. return file_mq_agent_proto_rawDescGZIP(), []int{13}
  756. }
  757. func (x *CloseSubscribeSessionResponse) GetError() string {
  758. if x != nil {
  759. return x.Error
  760. }
  761. return ""
  762. }
  763. // ////////////////////////////////////////////////
  764. type SubscribeRecordRequest struct {
  765. state protoimpl.MessageState
  766. sizeCache protoimpl.SizeCache
  767. unknownFields protoimpl.UnknownFields
  768. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // session_id is required for the first record
  769. AckSequence int64 `protobuf:"varint,2,opt,name=ack_sequence,json=ackSequence,proto3" json:"ack_sequence,omitempty"`
  770. AckKey []byte `protobuf:"bytes,3,opt,name=ack_key,json=ackKey,proto3" json:"ack_key,omitempty"`
  771. }
  772. func (x *SubscribeRecordRequest) Reset() {
  773. *x = SubscribeRecordRequest{}
  774. if protoimpl.UnsafeEnabled {
  775. mi := &file_mq_agent_proto_msgTypes[14]
  776. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  777. ms.StoreMessageInfo(mi)
  778. }
  779. }
  780. func (x *SubscribeRecordRequest) String() string {
  781. return protoimpl.X.MessageStringOf(x)
  782. }
  783. func (*SubscribeRecordRequest) ProtoMessage() {}
  784. func (x *SubscribeRecordRequest) ProtoReflect() protoreflect.Message {
  785. mi := &file_mq_agent_proto_msgTypes[14]
  786. if protoimpl.UnsafeEnabled && x != nil {
  787. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  788. if ms.LoadMessageInfo() == nil {
  789. ms.StoreMessageInfo(mi)
  790. }
  791. return ms
  792. }
  793. return mi.MessageOf(x)
  794. }
  795. // Deprecated: Use SubscribeRecordRequest.ProtoReflect.Descriptor instead.
  796. func (*SubscribeRecordRequest) Descriptor() ([]byte, []int) {
  797. return file_mq_agent_proto_rawDescGZIP(), []int{14}
  798. }
  799. func (x *SubscribeRecordRequest) GetSessionId() int64 {
  800. if x != nil {
  801. return x.SessionId
  802. }
  803. return 0
  804. }
  805. func (x *SubscribeRecordRequest) GetAckSequence() int64 {
  806. if x != nil {
  807. return x.AckSequence
  808. }
  809. return 0
  810. }
  811. func (x *SubscribeRecordRequest) GetAckKey() []byte {
  812. if x != nil {
  813. return x.AckKey
  814. }
  815. return nil
  816. }
  817. type SubscribeRecordResponse struct {
  818. state protoimpl.MessageState
  819. sizeCache protoimpl.SizeCache
  820. unknownFields protoimpl.UnknownFields
  821. Sequence int64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
  822. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  823. Value *schema_pb.RecordValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  824. TsNs int64 `protobuf:"varint,4,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
  825. Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
  826. IsEndOfStream bool `protobuf:"varint,6,opt,name=is_end_of_stream,json=isEndOfStream,proto3" json:"is_end_of_stream,omitempty"`
  827. IsEndOfTopic bool `protobuf:"varint,7,opt,name=is_end_of_topic,json=isEndOfTopic,proto3" json:"is_end_of_topic,omitempty"`
  828. }
  829. func (x *SubscribeRecordResponse) Reset() {
  830. *x = SubscribeRecordResponse{}
  831. if protoimpl.UnsafeEnabled {
  832. mi := &file_mq_agent_proto_msgTypes[15]
  833. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  834. ms.StoreMessageInfo(mi)
  835. }
  836. }
  837. func (x *SubscribeRecordResponse) String() string {
  838. return protoimpl.X.MessageStringOf(x)
  839. }
  840. func (*SubscribeRecordResponse) ProtoMessage() {}
  841. func (x *SubscribeRecordResponse) ProtoReflect() protoreflect.Message {
  842. mi := &file_mq_agent_proto_msgTypes[15]
  843. if protoimpl.UnsafeEnabled && x != nil {
  844. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  845. if ms.LoadMessageInfo() == nil {
  846. ms.StoreMessageInfo(mi)
  847. }
  848. return ms
  849. }
  850. return mi.MessageOf(x)
  851. }
  852. // Deprecated: Use SubscribeRecordResponse.ProtoReflect.Descriptor instead.
  853. func (*SubscribeRecordResponse) Descriptor() ([]byte, []int) {
  854. return file_mq_agent_proto_rawDescGZIP(), []int{15}
  855. }
  856. func (x *SubscribeRecordResponse) GetSequence() int64 {
  857. if x != nil {
  858. return x.Sequence
  859. }
  860. return 0
  861. }
  862. func (x *SubscribeRecordResponse) GetKey() []byte {
  863. if x != nil {
  864. return x.Key
  865. }
  866. return nil
  867. }
  868. func (x *SubscribeRecordResponse) GetValue() *schema_pb.RecordValue {
  869. if x != nil {
  870. return x.Value
  871. }
  872. return nil
  873. }
  874. func (x *SubscribeRecordResponse) GetTsNs() int64 {
  875. if x != nil {
  876. return x.TsNs
  877. }
  878. return 0
  879. }
  880. func (x *SubscribeRecordResponse) GetError() string {
  881. if x != nil {
  882. return x.Error
  883. }
  884. return ""
  885. }
  886. func (x *SubscribeRecordResponse) GetIsEndOfStream() bool {
  887. if x != nil {
  888. return x.IsEndOfStream
  889. }
  890. return false
  891. }
  892. func (x *SubscribeRecordResponse) GetIsEndOfTopic() bool {
  893. if x != nil {
  894. return x.IsEndOfTopic
  895. }
  896. return false
  897. }
  898. var File_mq_agent_proto protoreflect.FileDescriptor
  899. var file_mq_agent_proto_rawDesc = []byte{
  900. 0x0a, 0x0e, 0x6d, 0x71, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  901. 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x1a, 0x0f,
  902. 0x6d, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  903. 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
  904. 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
  905. 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  906. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x09, 0x50,
  907. 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69, 0x6e, 0x67,
  908. 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x69, 0x6e,
  909. 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73,
  910. 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67,
  911. 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f,
  912. 0x73, 0x74, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67,
  913. 0x65, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x74, 0x69,
  914. 0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x6e, 0x69,
  915. 0x78, 0x54, 0x69, 0x6d, 0x65, 0x4e, 0x73, 0x22, 0x7f, 0x0a, 0x06, 0x4f, 0x66, 0x66, 0x73, 0x65,
  916. 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  917. 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  918. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x4a, 0x0a, 0x11,
  919. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74,
  920. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  921. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
  922. 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x52, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
  923. 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0f, 0x50, 0x61, 0x72,
  924. 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x35, 0x0a, 0x09,
  925. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  926. 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50,
  927. 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
  928. 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x5f,
  929. 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
  930. 0x73, 0x4e, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x74, 0x73, 0x5f, 0x6e,
  931. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x54, 0x73, 0x4e,
  932. 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  933. 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  934. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66,
  935. 0x66, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x73,
  936. 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x1a, 0x53, 0x74, 0x61,
  937. 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
  938. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63,
  939. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69,
  940. 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70,
  941. 0x69, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  942. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x61, 0x72,
  943. 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x72,
  944. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  945. 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63,
  946. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54,
  947. 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72,
  948. 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x75, 0x62,
  949. 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x1b, 0x53, 0x74,
  950. 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
  951. 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
  952. 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,
  953. 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
  954. 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3b,
  955. 0x0a, 0x1a, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65,
  956. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
  957. 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  958. 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x1b, 0x43,
  959. 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69,
  960. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
  961. 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
  962. 0x22, 0x75, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72,
  963. 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73,
  964. 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65,
  965. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02,
  966. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  967. 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d,
  968. 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
  969. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69,
  970. 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  971. 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65,
  972. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x63, 0x6b, 0x53, 0x65, 0x71, 0x75, 0x65,
  973. 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01,
  974. 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xb2, 0x02, 0x0a, 0x1c, 0x53, 0x74,
  975. 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73,
  976. 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f,
  977. 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01,
  978. 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75,
  979. 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64,
  980. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72,
  981. 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,
  982. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
  983. 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
  984. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f,
  985. 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x48, 0x0a, 0x10, 0x70, 0x61,
  986. 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05,
  987. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  988. 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66,
  989. 0x73, 0x65, 0x74, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66,
  990. 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06,
  991. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b,
  992. 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28,
  993. 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x54,
  994. 0x0a, 0x1d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
  995. 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  996. 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  997. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
  998. 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69,
  999. 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x1c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62,
  1000. 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
  1001. 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f,
  1002. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
  1003. 0x6e, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x1d, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73,
  1004. 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
  1005. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
  1006. 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x73, 0x0a, 0x16, 0x53, 0x75,
  1007. 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
  1008. 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f,
  1009. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
  1010. 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65,
  1011. 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x63, 0x6b, 0x53, 0x65,
  1012. 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x6b, 0x65,
  1013. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x22,
  1014. 0xf0, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63,
  1015. 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73,
  1016. 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73,
  1017. 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02,
  1018. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  1019. 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d,
  1020. 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
  1021. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x73, 0x5f, 0x6e, 0x73,
  1022. 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x73, 0x4e, 0x73, 0x12, 0x14, 0x0a, 0x05,
  1023. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72,
  1024. 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f,
  1025. 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73,
  1026. 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x0a, 0x0f, 0x69,
  1027. 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x07,
  1028. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x54, 0x6f, 0x70,
  1029. 0x69, 0x63, 0x2a, 0x4c, 0x0a, 0x18, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f,
  1030. 0x66, 0x66, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c,
  1031. 0x0a, 0x08, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12,
  1032. 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x5f, 0x49, 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x4f,
  1033. 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x41, 0x54, 0x45, 0x53, 0x54, 0x10, 0x02,
  1034. 0x32, 0xa1, 0x05, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  1035. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x6c, 0x0a, 0x13, 0x53, 0x74,
  1036. 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
  1037. 0x6e, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1038. 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73,
  1039. 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x65,
  1040. 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74,
  1041. 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
  1042. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x73,
  1043. 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  1044. 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43,
  1045. 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69,
  1046. 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  1047. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75,
  1048. 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
  1049. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73,
  1050. 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1051. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65,
  1052. 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x6d, 0x65,
  1053. 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69,
  1054. 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  1055. 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53,
  1056. 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  1057. 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53,
  1058. 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73,
  1059. 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6d, 0x65,
  1060. 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74,
  1061. 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
  1062. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x15, 0x43, 0x6c,
  1063. 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73,
  1064. 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  1065. 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  1066. 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  1067. 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43,
  1068. 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73,
  1069. 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64,
  1070. 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
  1071. 0x64, 0x12, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1072. 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
  1073. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1074. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
  1075. 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
  1076. 0x28, 0x01, 0x30, 0x01, 0x42, 0x60, 0x0a, 0x12, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66,
  1077. 0x73, 0x2e, 0x6d, 0x71, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x16, 0x4d, 0x65, 0x73, 0x73,
  1078. 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f,
  1079. 0x74, 0x6f, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
  1080. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64,
  1081. 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x71, 0x5f, 0x61, 0x67,
  1082. 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1083. }
  1084. var (
  1085. file_mq_agent_proto_rawDescOnce sync.Once
  1086. file_mq_agent_proto_rawDescData = file_mq_agent_proto_rawDesc
  1087. )
  1088. func file_mq_agent_proto_rawDescGZIP() []byte {
  1089. file_mq_agent_proto_rawDescOnce.Do(func() {
  1090. file_mq_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_agent_proto_rawDescData)
  1091. })
  1092. return file_mq_agent_proto_rawDescData
  1093. }
  1094. var file_mq_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1095. var file_mq_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
  1096. var file_mq_agent_proto_goTypes = []any{
  1097. (PartitionOffsetStartType)(0), // 0: messaging_pb.PartitionOffsetStartType
  1098. (*Topic)(nil), // 1: messaging_pb.Topic
  1099. (*Partition)(nil), // 2: messaging_pb.Partition
  1100. (*Offset)(nil), // 3: messaging_pb.Offset
  1101. (*PartitionOffset)(nil), // 4: messaging_pb.PartitionOffset
  1102. (*StartPublishSessionRequest)(nil), // 5: messaging_pb.StartPublishSessionRequest
  1103. (*StartPublishSessionResponse)(nil), // 6: messaging_pb.StartPublishSessionResponse
  1104. (*ClosePublishSessionRequest)(nil), // 7: messaging_pb.ClosePublishSessionRequest
  1105. (*ClosePublishSessionResponse)(nil), // 8: messaging_pb.ClosePublishSessionResponse
  1106. (*PublishRecordRequest)(nil), // 9: messaging_pb.PublishRecordRequest
  1107. (*PublishRecordResponse)(nil), // 10: messaging_pb.PublishRecordResponse
  1108. (*StartSubscribeSessionRequest)(nil), // 11: messaging_pb.StartSubscribeSessionRequest
  1109. (*StartSubscribeSessionResponse)(nil), // 12: messaging_pb.StartSubscribeSessionResponse
  1110. (*CloseSubscribeSessionRequest)(nil), // 13: messaging_pb.CloseSubscribeSessionRequest
  1111. (*CloseSubscribeSessionResponse)(nil), // 14: messaging_pb.CloseSubscribeSessionResponse
  1112. (*SubscribeRecordRequest)(nil), // 15: messaging_pb.SubscribeRecordRequest
  1113. (*SubscribeRecordResponse)(nil), // 16: messaging_pb.SubscribeRecordResponse
  1114. (*schema_pb.RecordType)(nil), // 17: schema_pb.RecordType
  1115. (*schema_pb.RecordValue)(nil), // 18: schema_pb.RecordValue
  1116. }
  1117. var file_mq_agent_proto_depIdxs = []int32{
  1118. 1, // 0: messaging_pb.Offset.topic:type_name -> messaging_pb.Topic
  1119. 4, // 1: messaging_pb.Offset.partition_offsets:type_name -> messaging_pb.PartitionOffset
  1120. 2, // 2: messaging_pb.PartitionOffset.partition:type_name -> messaging_pb.Partition
  1121. 0, // 3: messaging_pb.PartitionOffset.start_type:type_name -> messaging_pb.PartitionOffsetStartType
  1122. 1, // 4: messaging_pb.StartPublishSessionRequest.topic:type_name -> messaging_pb.Topic
  1123. 17, // 5: messaging_pb.StartPublishSessionRequest.record_type:type_name -> schema_pb.RecordType
  1124. 18, // 6: messaging_pb.PublishRecordRequest.value:type_name -> schema_pb.RecordValue
  1125. 1, // 7: messaging_pb.StartSubscribeSessionRequest.topic:type_name -> messaging_pb.Topic
  1126. 4, // 8: messaging_pb.StartSubscribeSessionRequest.partition_offset:type_name -> messaging_pb.PartitionOffset
  1127. 18, // 9: messaging_pb.SubscribeRecordResponse.value:type_name -> schema_pb.RecordValue
  1128. 5, // 10: messaging_pb.SeaweedMessagingAgent.StartPublishSession:input_type -> messaging_pb.StartPublishSessionRequest
  1129. 7, // 11: messaging_pb.SeaweedMessagingAgent.ClosePublishSession:input_type -> messaging_pb.ClosePublishSessionRequest
  1130. 9, // 12: messaging_pb.SeaweedMessagingAgent.PublishRecord:input_type -> messaging_pb.PublishRecordRequest
  1131. 11, // 13: messaging_pb.SeaweedMessagingAgent.StartSubscribeSession:input_type -> messaging_pb.StartSubscribeSessionRequest
  1132. 13, // 14: messaging_pb.SeaweedMessagingAgent.CloseSubscribeSession:input_type -> messaging_pb.CloseSubscribeSessionRequest
  1133. 15, // 15: messaging_pb.SeaweedMessagingAgent.SubscribeRecord:input_type -> messaging_pb.SubscribeRecordRequest
  1134. 6, // 16: messaging_pb.SeaweedMessagingAgent.StartPublishSession:output_type -> messaging_pb.StartPublishSessionResponse
  1135. 8, // 17: messaging_pb.SeaweedMessagingAgent.ClosePublishSession:output_type -> messaging_pb.ClosePublishSessionResponse
  1136. 10, // 18: messaging_pb.SeaweedMessagingAgent.PublishRecord:output_type -> messaging_pb.PublishRecordResponse
  1137. 12, // 19: messaging_pb.SeaweedMessagingAgent.StartSubscribeSession:output_type -> messaging_pb.StartSubscribeSessionResponse
  1138. 14, // 20: messaging_pb.SeaweedMessagingAgent.CloseSubscribeSession:output_type -> messaging_pb.CloseSubscribeSessionResponse
  1139. 16, // 21: messaging_pb.SeaweedMessagingAgent.SubscribeRecord:output_type -> messaging_pb.SubscribeRecordResponse
  1140. 16, // [16:22] is the sub-list for method output_type
  1141. 10, // [10:16] is the sub-list for method input_type
  1142. 10, // [10:10] is the sub-list for extension type_name
  1143. 10, // [10:10] is the sub-list for extension extendee
  1144. 0, // [0:10] is the sub-list for field type_name
  1145. }
  1146. func init() { file_mq_agent_proto_init() }
  1147. func file_mq_agent_proto_init() {
  1148. if File_mq_agent_proto != nil {
  1149. return
  1150. }
  1151. if !protoimpl.UnsafeEnabled {
  1152. file_mq_agent_proto_msgTypes[0].Exporter = func(v any, i int) any {
  1153. switch v := v.(*Topic); i {
  1154. case 0:
  1155. return &v.state
  1156. case 1:
  1157. return &v.sizeCache
  1158. case 2:
  1159. return &v.unknownFields
  1160. default:
  1161. return nil
  1162. }
  1163. }
  1164. file_mq_agent_proto_msgTypes[1].Exporter = func(v any, i int) any {
  1165. switch v := v.(*Partition); i {
  1166. case 0:
  1167. return &v.state
  1168. case 1:
  1169. return &v.sizeCache
  1170. case 2:
  1171. return &v.unknownFields
  1172. default:
  1173. return nil
  1174. }
  1175. }
  1176. file_mq_agent_proto_msgTypes[2].Exporter = func(v any, i int) any {
  1177. switch v := v.(*Offset); i {
  1178. case 0:
  1179. return &v.state
  1180. case 1:
  1181. return &v.sizeCache
  1182. case 2:
  1183. return &v.unknownFields
  1184. default:
  1185. return nil
  1186. }
  1187. }
  1188. file_mq_agent_proto_msgTypes[3].Exporter = func(v any, i int) any {
  1189. switch v := v.(*PartitionOffset); i {
  1190. case 0:
  1191. return &v.state
  1192. case 1:
  1193. return &v.sizeCache
  1194. case 2:
  1195. return &v.unknownFields
  1196. default:
  1197. return nil
  1198. }
  1199. }
  1200. file_mq_agent_proto_msgTypes[4].Exporter = func(v any, i int) any {
  1201. switch v := v.(*StartPublishSessionRequest); i {
  1202. case 0:
  1203. return &v.state
  1204. case 1:
  1205. return &v.sizeCache
  1206. case 2:
  1207. return &v.unknownFields
  1208. default:
  1209. return nil
  1210. }
  1211. }
  1212. file_mq_agent_proto_msgTypes[5].Exporter = func(v any, i int) any {
  1213. switch v := v.(*StartPublishSessionResponse); i {
  1214. case 0:
  1215. return &v.state
  1216. case 1:
  1217. return &v.sizeCache
  1218. case 2:
  1219. return &v.unknownFields
  1220. default:
  1221. return nil
  1222. }
  1223. }
  1224. file_mq_agent_proto_msgTypes[6].Exporter = func(v any, i int) any {
  1225. switch v := v.(*ClosePublishSessionRequest); i {
  1226. case 0:
  1227. return &v.state
  1228. case 1:
  1229. return &v.sizeCache
  1230. case 2:
  1231. return &v.unknownFields
  1232. default:
  1233. return nil
  1234. }
  1235. }
  1236. file_mq_agent_proto_msgTypes[7].Exporter = func(v any, i int) any {
  1237. switch v := v.(*ClosePublishSessionResponse); i {
  1238. case 0:
  1239. return &v.state
  1240. case 1:
  1241. return &v.sizeCache
  1242. case 2:
  1243. return &v.unknownFields
  1244. default:
  1245. return nil
  1246. }
  1247. }
  1248. file_mq_agent_proto_msgTypes[8].Exporter = func(v any, i int) any {
  1249. switch v := v.(*PublishRecordRequest); i {
  1250. case 0:
  1251. return &v.state
  1252. case 1:
  1253. return &v.sizeCache
  1254. case 2:
  1255. return &v.unknownFields
  1256. default:
  1257. return nil
  1258. }
  1259. }
  1260. file_mq_agent_proto_msgTypes[9].Exporter = func(v any, i int) any {
  1261. switch v := v.(*PublishRecordResponse); i {
  1262. case 0:
  1263. return &v.state
  1264. case 1:
  1265. return &v.sizeCache
  1266. case 2:
  1267. return &v.unknownFields
  1268. default:
  1269. return nil
  1270. }
  1271. }
  1272. file_mq_agent_proto_msgTypes[10].Exporter = func(v any, i int) any {
  1273. switch v := v.(*StartSubscribeSessionRequest); i {
  1274. case 0:
  1275. return &v.state
  1276. case 1:
  1277. return &v.sizeCache
  1278. case 2:
  1279. return &v.unknownFields
  1280. default:
  1281. return nil
  1282. }
  1283. }
  1284. file_mq_agent_proto_msgTypes[11].Exporter = func(v any, i int) any {
  1285. switch v := v.(*StartSubscribeSessionResponse); i {
  1286. case 0:
  1287. return &v.state
  1288. case 1:
  1289. return &v.sizeCache
  1290. case 2:
  1291. return &v.unknownFields
  1292. default:
  1293. return nil
  1294. }
  1295. }
  1296. file_mq_agent_proto_msgTypes[12].Exporter = func(v any, i int) any {
  1297. switch v := v.(*CloseSubscribeSessionRequest); i {
  1298. case 0:
  1299. return &v.state
  1300. case 1:
  1301. return &v.sizeCache
  1302. case 2:
  1303. return &v.unknownFields
  1304. default:
  1305. return nil
  1306. }
  1307. }
  1308. file_mq_agent_proto_msgTypes[13].Exporter = func(v any, i int) any {
  1309. switch v := v.(*CloseSubscribeSessionResponse); i {
  1310. case 0:
  1311. return &v.state
  1312. case 1:
  1313. return &v.sizeCache
  1314. case 2:
  1315. return &v.unknownFields
  1316. default:
  1317. return nil
  1318. }
  1319. }
  1320. file_mq_agent_proto_msgTypes[14].Exporter = func(v any, i int) any {
  1321. switch v := v.(*SubscribeRecordRequest); i {
  1322. case 0:
  1323. return &v.state
  1324. case 1:
  1325. return &v.sizeCache
  1326. case 2:
  1327. return &v.unknownFields
  1328. default:
  1329. return nil
  1330. }
  1331. }
  1332. file_mq_agent_proto_msgTypes[15].Exporter = func(v any, i int) any {
  1333. switch v := v.(*SubscribeRecordResponse); i {
  1334. case 0:
  1335. return &v.state
  1336. case 1:
  1337. return &v.sizeCache
  1338. case 2:
  1339. return &v.unknownFields
  1340. default:
  1341. return nil
  1342. }
  1343. }
  1344. }
  1345. type x struct{}
  1346. out := protoimpl.TypeBuilder{
  1347. File: protoimpl.DescBuilder{
  1348. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1349. RawDescriptor: file_mq_agent_proto_rawDesc,
  1350. NumEnums: 1,
  1351. NumMessages: 16,
  1352. NumExtensions: 0,
  1353. NumServices: 1,
  1354. },
  1355. GoTypes: file_mq_agent_proto_goTypes,
  1356. DependencyIndexes: file_mq_agent_proto_depIdxs,
  1357. EnumInfos: file_mq_agent_proto_enumTypes,
  1358. MessageInfos: file_mq_agent_proto_msgTypes,
  1359. }.Build()
  1360. File_mq_agent_proto = out.File
  1361. file_mq_agent_proto_rawDesc = nil
  1362. file_mq_agent_proto_goTypes = nil
  1363. file_mq_agent_proto_depIdxs = nil
  1364. }