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.

1550 lines
56 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. TsNs int64 `protobuf:"varint,4,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
  466. }
  467. func (x *PublishRecordRequest) Reset() {
  468. *x = PublishRecordRequest{}
  469. if protoimpl.UnsafeEnabled {
  470. mi := &file_mq_agent_proto_msgTypes[8]
  471. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  472. ms.StoreMessageInfo(mi)
  473. }
  474. }
  475. func (x *PublishRecordRequest) String() string {
  476. return protoimpl.X.MessageStringOf(x)
  477. }
  478. func (*PublishRecordRequest) ProtoMessage() {}
  479. func (x *PublishRecordRequest) ProtoReflect() protoreflect.Message {
  480. mi := &file_mq_agent_proto_msgTypes[8]
  481. if protoimpl.UnsafeEnabled && x != nil {
  482. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  483. if ms.LoadMessageInfo() == nil {
  484. ms.StoreMessageInfo(mi)
  485. }
  486. return ms
  487. }
  488. return mi.MessageOf(x)
  489. }
  490. // Deprecated: Use PublishRecordRequest.ProtoReflect.Descriptor instead.
  491. func (*PublishRecordRequest) Descriptor() ([]byte, []int) {
  492. return file_mq_agent_proto_rawDescGZIP(), []int{8}
  493. }
  494. func (x *PublishRecordRequest) GetSessionId() int64 {
  495. if x != nil {
  496. return x.SessionId
  497. }
  498. return 0
  499. }
  500. func (x *PublishRecordRequest) GetKey() []byte {
  501. if x != nil {
  502. return x.Key
  503. }
  504. return nil
  505. }
  506. func (x *PublishRecordRequest) GetValue() *schema_pb.RecordValue {
  507. if x != nil {
  508. return x.Value
  509. }
  510. return nil
  511. }
  512. func (x *PublishRecordRequest) GetTsNs() int64 {
  513. if x != nil {
  514. return x.TsNs
  515. }
  516. return 0
  517. }
  518. type PublishRecordResponse struct {
  519. state protoimpl.MessageState
  520. sizeCache protoimpl.SizeCache
  521. unknownFields protoimpl.UnknownFields
  522. AckSequence int64 `protobuf:"varint,1,opt,name=ack_sequence,json=ackSequence,proto3" json:"ack_sequence,omitempty"`
  523. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  524. }
  525. func (x *PublishRecordResponse) Reset() {
  526. *x = PublishRecordResponse{}
  527. if protoimpl.UnsafeEnabled {
  528. mi := &file_mq_agent_proto_msgTypes[9]
  529. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  530. ms.StoreMessageInfo(mi)
  531. }
  532. }
  533. func (x *PublishRecordResponse) String() string {
  534. return protoimpl.X.MessageStringOf(x)
  535. }
  536. func (*PublishRecordResponse) ProtoMessage() {}
  537. func (x *PublishRecordResponse) ProtoReflect() protoreflect.Message {
  538. mi := &file_mq_agent_proto_msgTypes[9]
  539. if protoimpl.UnsafeEnabled && x != nil {
  540. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  541. if ms.LoadMessageInfo() == nil {
  542. ms.StoreMessageInfo(mi)
  543. }
  544. return ms
  545. }
  546. return mi.MessageOf(x)
  547. }
  548. // Deprecated: Use PublishRecordResponse.ProtoReflect.Descriptor instead.
  549. func (*PublishRecordResponse) Descriptor() ([]byte, []int) {
  550. return file_mq_agent_proto_rawDescGZIP(), []int{9}
  551. }
  552. func (x *PublishRecordResponse) GetAckSequence() int64 {
  553. if x != nil {
  554. return x.AckSequence
  555. }
  556. return 0
  557. }
  558. func (x *PublishRecordResponse) GetError() string {
  559. if x != nil {
  560. return x.Error
  561. }
  562. return ""
  563. }
  564. // ////////////////////////////////////////////////
  565. type StartSubscribeSessionRequest struct {
  566. state protoimpl.MessageState
  567. sizeCache protoimpl.SizeCache
  568. unknownFields protoimpl.UnknownFields
  569. ConsumerGroup string `protobuf:"bytes,1,opt,name=consumer_group,json=consumerGroup,proto3" json:"consumer_group,omitempty"`
  570. ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
  571. ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
  572. Topic *Topic `protobuf:"bytes,4,opt,name=topic,proto3" json:"topic,omitempty"`
  573. PartitionOffset *PartitionOffset `protobuf:"bytes,5,opt,name=partition_offset,json=partitionOffset,proto3" json:"partition_offset,omitempty"`
  574. Filter string `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"`
  575. Concurrency int32 `protobuf:"varint,8,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
  576. }
  577. func (x *StartSubscribeSessionRequest) Reset() {
  578. *x = StartSubscribeSessionRequest{}
  579. if protoimpl.UnsafeEnabled {
  580. mi := &file_mq_agent_proto_msgTypes[10]
  581. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  582. ms.StoreMessageInfo(mi)
  583. }
  584. }
  585. func (x *StartSubscribeSessionRequest) String() string {
  586. return protoimpl.X.MessageStringOf(x)
  587. }
  588. func (*StartSubscribeSessionRequest) ProtoMessage() {}
  589. func (x *StartSubscribeSessionRequest) ProtoReflect() protoreflect.Message {
  590. mi := &file_mq_agent_proto_msgTypes[10]
  591. if protoimpl.UnsafeEnabled && x != nil {
  592. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  593. if ms.LoadMessageInfo() == nil {
  594. ms.StoreMessageInfo(mi)
  595. }
  596. return ms
  597. }
  598. return mi.MessageOf(x)
  599. }
  600. // Deprecated: Use StartSubscribeSessionRequest.ProtoReflect.Descriptor instead.
  601. func (*StartSubscribeSessionRequest) Descriptor() ([]byte, []int) {
  602. return file_mq_agent_proto_rawDescGZIP(), []int{10}
  603. }
  604. func (x *StartSubscribeSessionRequest) GetConsumerGroup() string {
  605. if x != nil {
  606. return x.ConsumerGroup
  607. }
  608. return ""
  609. }
  610. func (x *StartSubscribeSessionRequest) GetConsumerId() string {
  611. if x != nil {
  612. return x.ConsumerId
  613. }
  614. return ""
  615. }
  616. func (x *StartSubscribeSessionRequest) GetClientId() string {
  617. if x != nil {
  618. return x.ClientId
  619. }
  620. return ""
  621. }
  622. func (x *StartSubscribeSessionRequest) GetTopic() *Topic {
  623. if x != nil {
  624. return x.Topic
  625. }
  626. return nil
  627. }
  628. func (x *StartSubscribeSessionRequest) GetPartitionOffset() *PartitionOffset {
  629. if x != nil {
  630. return x.PartitionOffset
  631. }
  632. return nil
  633. }
  634. func (x *StartSubscribeSessionRequest) GetFilter() string {
  635. if x != nil {
  636. return x.Filter
  637. }
  638. return ""
  639. }
  640. func (x *StartSubscribeSessionRequest) GetConcurrency() int32 {
  641. if x != nil {
  642. return x.Concurrency
  643. }
  644. return 0
  645. }
  646. type StartSubscribeSessionResponse struct {
  647. state protoimpl.MessageState
  648. sizeCache protoimpl.SizeCache
  649. unknownFields protoimpl.UnknownFields
  650. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  651. SessionId int64 `protobuf:"varint,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  652. }
  653. func (x *StartSubscribeSessionResponse) Reset() {
  654. *x = StartSubscribeSessionResponse{}
  655. if protoimpl.UnsafeEnabled {
  656. mi := &file_mq_agent_proto_msgTypes[11]
  657. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  658. ms.StoreMessageInfo(mi)
  659. }
  660. }
  661. func (x *StartSubscribeSessionResponse) String() string {
  662. return protoimpl.X.MessageStringOf(x)
  663. }
  664. func (*StartSubscribeSessionResponse) ProtoMessage() {}
  665. func (x *StartSubscribeSessionResponse) ProtoReflect() protoreflect.Message {
  666. mi := &file_mq_agent_proto_msgTypes[11]
  667. if protoimpl.UnsafeEnabled && x != nil {
  668. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  669. if ms.LoadMessageInfo() == nil {
  670. ms.StoreMessageInfo(mi)
  671. }
  672. return ms
  673. }
  674. return mi.MessageOf(x)
  675. }
  676. // Deprecated: Use StartSubscribeSessionResponse.ProtoReflect.Descriptor instead.
  677. func (*StartSubscribeSessionResponse) Descriptor() ([]byte, []int) {
  678. return file_mq_agent_proto_rawDescGZIP(), []int{11}
  679. }
  680. func (x *StartSubscribeSessionResponse) GetError() string {
  681. if x != nil {
  682. return x.Error
  683. }
  684. return ""
  685. }
  686. func (x *StartSubscribeSessionResponse) GetSessionId() int64 {
  687. if x != nil {
  688. return x.SessionId
  689. }
  690. return 0
  691. }
  692. type CloseSubscribeSessionRequest struct {
  693. state protoimpl.MessageState
  694. sizeCache protoimpl.SizeCache
  695. unknownFields protoimpl.UnknownFields
  696. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
  697. }
  698. func (x *CloseSubscribeSessionRequest) Reset() {
  699. *x = CloseSubscribeSessionRequest{}
  700. if protoimpl.UnsafeEnabled {
  701. mi := &file_mq_agent_proto_msgTypes[12]
  702. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  703. ms.StoreMessageInfo(mi)
  704. }
  705. }
  706. func (x *CloseSubscribeSessionRequest) String() string {
  707. return protoimpl.X.MessageStringOf(x)
  708. }
  709. func (*CloseSubscribeSessionRequest) ProtoMessage() {}
  710. func (x *CloseSubscribeSessionRequest) ProtoReflect() protoreflect.Message {
  711. mi := &file_mq_agent_proto_msgTypes[12]
  712. if protoimpl.UnsafeEnabled && x != nil {
  713. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  714. if ms.LoadMessageInfo() == nil {
  715. ms.StoreMessageInfo(mi)
  716. }
  717. return ms
  718. }
  719. return mi.MessageOf(x)
  720. }
  721. // Deprecated: Use CloseSubscribeSessionRequest.ProtoReflect.Descriptor instead.
  722. func (*CloseSubscribeSessionRequest) Descriptor() ([]byte, []int) {
  723. return file_mq_agent_proto_rawDescGZIP(), []int{12}
  724. }
  725. func (x *CloseSubscribeSessionRequest) GetSessionId() int64 {
  726. if x != nil {
  727. return x.SessionId
  728. }
  729. return 0
  730. }
  731. type CloseSubscribeSessionResponse struct {
  732. state protoimpl.MessageState
  733. sizeCache protoimpl.SizeCache
  734. unknownFields protoimpl.UnknownFields
  735. Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  736. }
  737. func (x *CloseSubscribeSessionResponse) Reset() {
  738. *x = CloseSubscribeSessionResponse{}
  739. if protoimpl.UnsafeEnabled {
  740. mi := &file_mq_agent_proto_msgTypes[13]
  741. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  742. ms.StoreMessageInfo(mi)
  743. }
  744. }
  745. func (x *CloseSubscribeSessionResponse) String() string {
  746. return protoimpl.X.MessageStringOf(x)
  747. }
  748. func (*CloseSubscribeSessionResponse) ProtoMessage() {}
  749. func (x *CloseSubscribeSessionResponse) ProtoReflect() protoreflect.Message {
  750. mi := &file_mq_agent_proto_msgTypes[13]
  751. if protoimpl.UnsafeEnabled && x != nil {
  752. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  753. if ms.LoadMessageInfo() == nil {
  754. ms.StoreMessageInfo(mi)
  755. }
  756. return ms
  757. }
  758. return mi.MessageOf(x)
  759. }
  760. // Deprecated: Use CloseSubscribeSessionResponse.ProtoReflect.Descriptor instead.
  761. func (*CloseSubscribeSessionResponse) Descriptor() ([]byte, []int) {
  762. return file_mq_agent_proto_rawDescGZIP(), []int{13}
  763. }
  764. func (x *CloseSubscribeSessionResponse) GetError() string {
  765. if x != nil {
  766. return x.Error
  767. }
  768. return ""
  769. }
  770. // ////////////////////////////////////////////////
  771. type SubscribeRecordRequest struct {
  772. state protoimpl.MessageState
  773. sizeCache protoimpl.SizeCache
  774. unknownFields protoimpl.UnknownFields
  775. SessionId int64 `protobuf:"varint,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // session_id is required for the first record
  776. AckSequence int64 `protobuf:"varint,2,opt,name=ack_sequence,json=ackSequence,proto3" json:"ack_sequence,omitempty"`
  777. AckKey []byte `protobuf:"bytes,3,opt,name=ack_key,json=ackKey,proto3" json:"ack_key,omitempty"`
  778. }
  779. func (x *SubscribeRecordRequest) Reset() {
  780. *x = SubscribeRecordRequest{}
  781. if protoimpl.UnsafeEnabled {
  782. mi := &file_mq_agent_proto_msgTypes[14]
  783. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  784. ms.StoreMessageInfo(mi)
  785. }
  786. }
  787. func (x *SubscribeRecordRequest) String() string {
  788. return protoimpl.X.MessageStringOf(x)
  789. }
  790. func (*SubscribeRecordRequest) ProtoMessage() {}
  791. func (x *SubscribeRecordRequest) ProtoReflect() protoreflect.Message {
  792. mi := &file_mq_agent_proto_msgTypes[14]
  793. if protoimpl.UnsafeEnabled && x != nil {
  794. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  795. if ms.LoadMessageInfo() == nil {
  796. ms.StoreMessageInfo(mi)
  797. }
  798. return ms
  799. }
  800. return mi.MessageOf(x)
  801. }
  802. // Deprecated: Use SubscribeRecordRequest.ProtoReflect.Descriptor instead.
  803. func (*SubscribeRecordRequest) Descriptor() ([]byte, []int) {
  804. return file_mq_agent_proto_rawDescGZIP(), []int{14}
  805. }
  806. func (x *SubscribeRecordRequest) GetSessionId() int64 {
  807. if x != nil {
  808. return x.SessionId
  809. }
  810. return 0
  811. }
  812. func (x *SubscribeRecordRequest) GetAckSequence() int64 {
  813. if x != nil {
  814. return x.AckSequence
  815. }
  816. return 0
  817. }
  818. func (x *SubscribeRecordRequest) GetAckKey() []byte {
  819. if x != nil {
  820. return x.AckKey
  821. }
  822. return nil
  823. }
  824. type SubscribeRecordResponse struct {
  825. state protoimpl.MessageState
  826. sizeCache protoimpl.SizeCache
  827. unknownFields protoimpl.UnknownFields
  828. Sequence int64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
  829. Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  830. Value *schema_pb.RecordValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  831. TsNs int64 `protobuf:"varint,4,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
  832. Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
  833. IsEndOfStream bool `protobuf:"varint,6,opt,name=is_end_of_stream,json=isEndOfStream,proto3" json:"is_end_of_stream,omitempty"`
  834. IsEndOfTopic bool `protobuf:"varint,7,opt,name=is_end_of_topic,json=isEndOfTopic,proto3" json:"is_end_of_topic,omitempty"`
  835. }
  836. func (x *SubscribeRecordResponse) Reset() {
  837. *x = SubscribeRecordResponse{}
  838. if protoimpl.UnsafeEnabled {
  839. mi := &file_mq_agent_proto_msgTypes[15]
  840. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  841. ms.StoreMessageInfo(mi)
  842. }
  843. }
  844. func (x *SubscribeRecordResponse) String() string {
  845. return protoimpl.X.MessageStringOf(x)
  846. }
  847. func (*SubscribeRecordResponse) ProtoMessage() {}
  848. func (x *SubscribeRecordResponse) ProtoReflect() protoreflect.Message {
  849. mi := &file_mq_agent_proto_msgTypes[15]
  850. if protoimpl.UnsafeEnabled && x != nil {
  851. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  852. if ms.LoadMessageInfo() == nil {
  853. ms.StoreMessageInfo(mi)
  854. }
  855. return ms
  856. }
  857. return mi.MessageOf(x)
  858. }
  859. // Deprecated: Use SubscribeRecordResponse.ProtoReflect.Descriptor instead.
  860. func (*SubscribeRecordResponse) Descriptor() ([]byte, []int) {
  861. return file_mq_agent_proto_rawDescGZIP(), []int{15}
  862. }
  863. func (x *SubscribeRecordResponse) GetSequence() int64 {
  864. if x != nil {
  865. return x.Sequence
  866. }
  867. return 0
  868. }
  869. func (x *SubscribeRecordResponse) GetKey() []byte {
  870. if x != nil {
  871. return x.Key
  872. }
  873. return nil
  874. }
  875. func (x *SubscribeRecordResponse) GetValue() *schema_pb.RecordValue {
  876. if x != nil {
  877. return x.Value
  878. }
  879. return nil
  880. }
  881. func (x *SubscribeRecordResponse) GetTsNs() int64 {
  882. if x != nil {
  883. return x.TsNs
  884. }
  885. return 0
  886. }
  887. func (x *SubscribeRecordResponse) GetError() string {
  888. if x != nil {
  889. return x.Error
  890. }
  891. return ""
  892. }
  893. func (x *SubscribeRecordResponse) GetIsEndOfStream() bool {
  894. if x != nil {
  895. return x.IsEndOfStream
  896. }
  897. return false
  898. }
  899. func (x *SubscribeRecordResponse) GetIsEndOfTopic() bool {
  900. if x != nil {
  901. return x.IsEndOfTopic
  902. }
  903. return false
  904. }
  905. var File_mq_agent_proto protoreflect.FileDescriptor
  906. var file_mq_agent_proto_rawDesc = []byte{
  907. 0x0a, 0x0e, 0x6d, 0x71, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  908. 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x1a, 0x0f,
  909. 0x6d, 0x71, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  910. 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65,
  911. 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d,
  912. 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  913. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x09, 0x50,
  914. 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x69, 0x6e, 0x67,
  915. 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x69, 0x6e,
  916. 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x73,
  917. 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x67,
  918. 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f,
  919. 0x73, 0x74, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67,
  920. 0x65, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x74, 0x69,
  921. 0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x6e, 0x69,
  922. 0x78, 0x54, 0x69, 0x6d, 0x65, 0x4e, 0x73, 0x22, 0x7f, 0x0a, 0x06, 0x4f, 0x66, 0x66, 0x73, 0x65,
  923. 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  924. 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  925. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x4a, 0x0a, 0x11,
  926. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74,
  927. 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  928. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
  929. 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x52, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
  930. 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0f, 0x50, 0x61, 0x72,
  931. 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x35, 0x0a, 0x09,
  932. 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  933. 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50,
  934. 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
  935. 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x73, 0x5f,
  936. 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
  937. 0x73, 0x4e, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x74, 0x73, 0x5f, 0x6e,
  938. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x54, 0x73, 0x4e,
  939. 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  940. 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  941. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66,
  942. 0x66, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x73,
  943. 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x1a, 0x53, 0x74, 0x61,
  944. 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
  945. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63,
  946. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69,
  947. 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70,
  948. 0x69, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
  949. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x61, 0x72,
  950. 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x72,
  951. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  952. 0x32, 0x15, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63,
  953. 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54,
  954. 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72,
  955. 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x75, 0x62,
  956. 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x1b, 0x53, 0x74,
  957. 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
  958. 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
  959. 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,
  960. 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
  961. 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3b,
  962. 0x0a, 0x1a, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65,
  963. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
  964. 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  965. 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x1b, 0x43,
  966. 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69,
  967. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
  968. 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
  969. 0x22, 0x8a, 0x01, 0x0a, 0x14, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f,
  970. 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73,
  971. 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73,
  972. 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  973. 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61,
  974. 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x63, 0x68, 0x65,
  975. 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x56, 0x61, 0x6c, 0x75,
  976. 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x73, 0x5f, 0x6e,
  977. 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x73, 0x4e, 0x73, 0x22, 0x50, 0x0a,
  978. 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
  979. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x65,
  980. 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x63,
  981. 0x6b, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72,
  982. 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22,
  983. 0xb2, 0x02, 0x0a, 0x1c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
  984. 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  985. 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f,
  986. 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
  987. 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x75,
  988. 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f,
  989. 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65,
  990. 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69,
  991. 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x04,
  992. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67,
  993. 0x5f, 0x70, 0x62, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63,
  994. 0x12, 0x48, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x66,
  995. 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x65, 0x73,
  996. 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74,
  997. 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69,
  998. 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
  999. 0x6c, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
  1000. 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63,
  1001. 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72,
  1002. 0x65, 0x6e, 0x63, 0x79, 0x22, 0x54, 0x0a, 0x1d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62,
  1003. 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
  1004. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01,
  1005. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
  1006. 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1007. 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x1c, 0x43, 0x6c,
  1008. 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73,
  1009. 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65,
  1010. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  1011. 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x1d, 0x43, 0x6c, 0x6f,
  1012. 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69,
  1013. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
  1014. 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
  1015. 0x22, 0x73, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63,
  1016. 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65,
  1017. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  1018. 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x6b,
  1019. 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1020. 0x0b, 0x61, 0x63, 0x6b, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07,
  1021. 0x61, 0x63, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61,
  1022. 0x63, 0x6b, 0x4b, 0x65, 0x79, 0x22, 0xf0, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  1023. 0x69, 0x62, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  1024. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
  1025. 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a,
  1026. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  1027. 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
  1028. 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72,
  1029. 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x13, 0x0a,
  1030. 0x05, 0x74, 0x73, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x73,
  1031. 0x4e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
  1032. 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x65,
  1033. 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, 0x01,
  1034. 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x53, 0x74, 0x72, 0x65, 0x61,
  1035. 0x6d, 0x12, 0x25, 0x0a, 0x0f, 0x69, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x6f, 0x66, 0x5f, 0x74,
  1036. 0x6f, 0x70, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x45, 0x6e,
  1037. 0x64, 0x4f, 0x66, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x2a, 0x4c, 0x0a, 0x18, 0x50, 0x61, 0x72, 0x74,
  1038. 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74,
  1039. 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54,
  1040. 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x41, 0x52, 0x4c, 0x49, 0x45, 0x53, 0x54, 0x5f, 0x49,
  1041. 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x4f, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x41,
  1042. 0x54, 0x45, 0x53, 0x54, 0x10, 0x02, 0x32, 0xa1, 0x05, 0x0a, 0x15, 0x53, 0x65, 0x61, 0x77, 0x65,
  1043. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74,
  1044. 0x12, 0x6c, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
  1045. 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1046. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c,
  1047. 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  1048. 0x74, 0x1a, 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1049. 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73,
  1050. 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c,
  1051. 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65,
  1052. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  1053. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73,
  1054. 0x68, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  1055. 0x29, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43,
  1056. 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x73, 0x73, 0x69,
  1057. 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0d,
  1058. 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x22, 0x2e,
  1059. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x62,
  1060. 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  1061. 0x74, 0x1a, 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1062. 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
  1063. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x15,
  1064. 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65,
  1065. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  1066. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  1067. 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  1068. 0x74, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62,
  1069. 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53,
  1070. 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
  1071. 0x12, 0x72, 0x0a, 0x15, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
  1072. 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  1073. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75,
  1074. 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
  1075. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e,
  1076. 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,
  1077. 0x69, 0x62, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  1078. 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  1079. 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1080. 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
  1081. 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e,
  1082. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62,
  1083. 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70,
  1084. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x60, 0x0a, 0x12, 0x73, 0x65,
  1085. 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x6d, 0x71, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74,
  1086. 0x42, 0x16, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x67,
  1087. 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  1088. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73,
  1089. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62,
  1090. 0x2f, 0x6d, 0x71, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
  1091. 0x6f, 0x74, 0x6f, 0x33,
  1092. }
  1093. var (
  1094. file_mq_agent_proto_rawDescOnce sync.Once
  1095. file_mq_agent_proto_rawDescData = file_mq_agent_proto_rawDesc
  1096. )
  1097. func file_mq_agent_proto_rawDescGZIP() []byte {
  1098. file_mq_agent_proto_rawDescOnce.Do(func() {
  1099. file_mq_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_agent_proto_rawDescData)
  1100. })
  1101. return file_mq_agent_proto_rawDescData
  1102. }
  1103. var file_mq_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1104. var file_mq_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
  1105. var file_mq_agent_proto_goTypes = []any{
  1106. (PartitionOffsetStartType)(0), // 0: messaging_pb.PartitionOffsetStartType
  1107. (*Topic)(nil), // 1: messaging_pb.Topic
  1108. (*Partition)(nil), // 2: messaging_pb.Partition
  1109. (*Offset)(nil), // 3: messaging_pb.Offset
  1110. (*PartitionOffset)(nil), // 4: messaging_pb.PartitionOffset
  1111. (*StartPublishSessionRequest)(nil), // 5: messaging_pb.StartPublishSessionRequest
  1112. (*StartPublishSessionResponse)(nil), // 6: messaging_pb.StartPublishSessionResponse
  1113. (*ClosePublishSessionRequest)(nil), // 7: messaging_pb.ClosePublishSessionRequest
  1114. (*ClosePublishSessionResponse)(nil), // 8: messaging_pb.ClosePublishSessionResponse
  1115. (*PublishRecordRequest)(nil), // 9: messaging_pb.PublishRecordRequest
  1116. (*PublishRecordResponse)(nil), // 10: messaging_pb.PublishRecordResponse
  1117. (*StartSubscribeSessionRequest)(nil), // 11: messaging_pb.StartSubscribeSessionRequest
  1118. (*StartSubscribeSessionResponse)(nil), // 12: messaging_pb.StartSubscribeSessionResponse
  1119. (*CloseSubscribeSessionRequest)(nil), // 13: messaging_pb.CloseSubscribeSessionRequest
  1120. (*CloseSubscribeSessionResponse)(nil), // 14: messaging_pb.CloseSubscribeSessionResponse
  1121. (*SubscribeRecordRequest)(nil), // 15: messaging_pb.SubscribeRecordRequest
  1122. (*SubscribeRecordResponse)(nil), // 16: messaging_pb.SubscribeRecordResponse
  1123. (*schema_pb.RecordType)(nil), // 17: schema_pb.RecordType
  1124. (*schema_pb.RecordValue)(nil), // 18: schema_pb.RecordValue
  1125. }
  1126. var file_mq_agent_proto_depIdxs = []int32{
  1127. 1, // 0: messaging_pb.Offset.topic:type_name -> messaging_pb.Topic
  1128. 4, // 1: messaging_pb.Offset.partition_offsets:type_name -> messaging_pb.PartitionOffset
  1129. 2, // 2: messaging_pb.PartitionOffset.partition:type_name -> messaging_pb.Partition
  1130. 0, // 3: messaging_pb.PartitionOffset.start_type:type_name -> messaging_pb.PartitionOffsetStartType
  1131. 1, // 4: messaging_pb.StartPublishSessionRequest.topic:type_name -> messaging_pb.Topic
  1132. 17, // 5: messaging_pb.StartPublishSessionRequest.record_type:type_name -> schema_pb.RecordType
  1133. 18, // 6: messaging_pb.PublishRecordRequest.value:type_name -> schema_pb.RecordValue
  1134. 1, // 7: messaging_pb.StartSubscribeSessionRequest.topic:type_name -> messaging_pb.Topic
  1135. 4, // 8: messaging_pb.StartSubscribeSessionRequest.partition_offset:type_name -> messaging_pb.PartitionOffset
  1136. 18, // 9: messaging_pb.SubscribeRecordResponse.value:type_name -> schema_pb.RecordValue
  1137. 5, // 10: messaging_pb.SeaweedMessagingAgent.StartPublishSession:input_type -> messaging_pb.StartPublishSessionRequest
  1138. 7, // 11: messaging_pb.SeaweedMessagingAgent.ClosePublishSession:input_type -> messaging_pb.ClosePublishSessionRequest
  1139. 9, // 12: messaging_pb.SeaweedMessagingAgent.PublishRecord:input_type -> messaging_pb.PublishRecordRequest
  1140. 11, // 13: messaging_pb.SeaweedMessagingAgent.StartSubscribeSession:input_type -> messaging_pb.StartSubscribeSessionRequest
  1141. 13, // 14: messaging_pb.SeaweedMessagingAgent.CloseSubscribeSession:input_type -> messaging_pb.CloseSubscribeSessionRequest
  1142. 15, // 15: messaging_pb.SeaweedMessagingAgent.SubscribeRecord:input_type -> messaging_pb.SubscribeRecordRequest
  1143. 6, // 16: messaging_pb.SeaweedMessagingAgent.StartPublishSession:output_type -> messaging_pb.StartPublishSessionResponse
  1144. 8, // 17: messaging_pb.SeaweedMessagingAgent.ClosePublishSession:output_type -> messaging_pb.ClosePublishSessionResponse
  1145. 10, // 18: messaging_pb.SeaweedMessagingAgent.PublishRecord:output_type -> messaging_pb.PublishRecordResponse
  1146. 12, // 19: messaging_pb.SeaweedMessagingAgent.StartSubscribeSession:output_type -> messaging_pb.StartSubscribeSessionResponse
  1147. 14, // 20: messaging_pb.SeaweedMessagingAgent.CloseSubscribeSession:output_type -> messaging_pb.CloseSubscribeSessionResponse
  1148. 16, // 21: messaging_pb.SeaweedMessagingAgent.SubscribeRecord:output_type -> messaging_pb.SubscribeRecordResponse
  1149. 16, // [16:22] is the sub-list for method output_type
  1150. 10, // [10:16] is the sub-list for method input_type
  1151. 10, // [10:10] is the sub-list for extension type_name
  1152. 10, // [10:10] is the sub-list for extension extendee
  1153. 0, // [0:10] is the sub-list for field type_name
  1154. }
  1155. func init() { file_mq_agent_proto_init() }
  1156. func file_mq_agent_proto_init() {
  1157. if File_mq_agent_proto != nil {
  1158. return
  1159. }
  1160. if !protoimpl.UnsafeEnabled {
  1161. file_mq_agent_proto_msgTypes[0].Exporter = func(v any, i int) any {
  1162. switch v := v.(*Topic); i {
  1163. case 0:
  1164. return &v.state
  1165. case 1:
  1166. return &v.sizeCache
  1167. case 2:
  1168. return &v.unknownFields
  1169. default:
  1170. return nil
  1171. }
  1172. }
  1173. file_mq_agent_proto_msgTypes[1].Exporter = func(v any, i int) any {
  1174. switch v := v.(*Partition); i {
  1175. case 0:
  1176. return &v.state
  1177. case 1:
  1178. return &v.sizeCache
  1179. case 2:
  1180. return &v.unknownFields
  1181. default:
  1182. return nil
  1183. }
  1184. }
  1185. file_mq_agent_proto_msgTypes[2].Exporter = func(v any, i int) any {
  1186. switch v := v.(*Offset); i {
  1187. case 0:
  1188. return &v.state
  1189. case 1:
  1190. return &v.sizeCache
  1191. case 2:
  1192. return &v.unknownFields
  1193. default:
  1194. return nil
  1195. }
  1196. }
  1197. file_mq_agent_proto_msgTypes[3].Exporter = func(v any, i int) any {
  1198. switch v := v.(*PartitionOffset); i {
  1199. case 0:
  1200. return &v.state
  1201. case 1:
  1202. return &v.sizeCache
  1203. case 2:
  1204. return &v.unknownFields
  1205. default:
  1206. return nil
  1207. }
  1208. }
  1209. file_mq_agent_proto_msgTypes[4].Exporter = func(v any, i int) any {
  1210. switch v := v.(*StartPublishSessionRequest); i {
  1211. case 0:
  1212. return &v.state
  1213. case 1:
  1214. return &v.sizeCache
  1215. case 2:
  1216. return &v.unknownFields
  1217. default:
  1218. return nil
  1219. }
  1220. }
  1221. file_mq_agent_proto_msgTypes[5].Exporter = func(v any, i int) any {
  1222. switch v := v.(*StartPublishSessionResponse); i {
  1223. case 0:
  1224. return &v.state
  1225. case 1:
  1226. return &v.sizeCache
  1227. case 2:
  1228. return &v.unknownFields
  1229. default:
  1230. return nil
  1231. }
  1232. }
  1233. file_mq_agent_proto_msgTypes[6].Exporter = func(v any, i int) any {
  1234. switch v := v.(*ClosePublishSessionRequest); i {
  1235. case 0:
  1236. return &v.state
  1237. case 1:
  1238. return &v.sizeCache
  1239. case 2:
  1240. return &v.unknownFields
  1241. default:
  1242. return nil
  1243. }
  1244. }
  1245. file_mq_agent_proto_msgTypes[7].Exporter = func(v any, i int) any {
  1246. switch v := v.(*ClosePublishSessionResponse); i {
  1247. case 0:
  1248. return &v.state
  1249. case 1:
  1250. return &v.sizeCache
  1251. case 2:
  1252. return &v.unknownFields
  1253. default:
  1254. return nil
  1255. }
  1256. }
  1257. file_mq_agent_proto_msgTypes[8].Exporter = func(v any, i int) any {
  1258. switch v := v.(*PublishRecordRequest); i {
  1259. case 0:
  1260. return &v.state
  1261. case 1:
  1262. return &v.sizeCache
  1263. case 2:
  1264. return &v.unknownFields
  1265. default:
  1266. return nil
  1267. }
  1268. }
  1269. file_mq_agent_proto_msgTypes[9].Exporter = func(v any, i int) any {
  1270. switch v := v.(*PublishRecordResponse); i {
  1271. case 0:
  1272. return &v.state
  1273. case 1:
  1274. return &v.sizeCache
  1275. case 2:
  1276. return &v.unknownFields
  1277. default:
  1278. return nil
  1279. }
  1280. }
  1281. file_mq_agent_proto_msgTypes[10].Exporter = func(v any, i int) any {
  1282. switch v := v.(*StartSubscribeSessionRequest); i {
  1283. case 0:
  1284. return &v.state
  1285. case 1:
  1286. return &v.sizeCache
  1287. case 2:
  1288. return &v.unknownFields
  1289. default:
  1290. return nil
  1291. }
  1292. }
  1293. file_mq_agent_proto_msgTypes[11].Exporter = func(v any, i int) any {
  1294. switch v := v.(*StartSubscribeSessionResponse); i {
  1295. case 0:
  1296. return &v.state
  1297. case 1:
  1298. return &v.sizeCache
  1299. case 2:
  1300. return &v.unknownFields
  1301. default:
  1302. return nil
  1303. }
  1304. }
  1305. file_mq_agent_proto_msgTypes[12].Exporter = func(v any, i int) any {
  1306. switch v := v.(*CloseSubscribeSessionRequest); i {
  1307. case 0:
  1308. return &v.state
  1309. case 1:
  1310. return &v.sizeCache
  1311. case 2:
  1312. return &v.unknownFields
  1313. default:
  1314. return nil
  1315. }
  1316. }
  1317. file_mq_agent_proto_msgTypes[13].Exporter = func(v any, i int) any {
  1318. switch v := v.(*CloseSubscribeSessionResponse); i {
  1319. case 0:
  1320. return &v.state
  1321. case 1:
  1322. return &v.sizeCache
  1323. case 2:
  1324. return &v.unknownFields
  1325. default:
  1326. return nil
  1327. }
  1328. }
  1329. file_mq_agent_proto_msgTypes[14].Exporter = func(v any, i int) any {
  1330. switch v := v.(*SubscribeRecordRequest); i {
  1331. case 0:
  1332. return &v.state
  1333. case 1:
  1334. return &v.sizeCache
  1335. case 2:
  1336. return &v.unknownFields
  1337. default:
  1338. return nil
  1339. }
  1340. }
  1341. file_mq_agent_proto_msgTypes[15].Exporter = func(v any, i int) any {
  1342. switch v := v.(*SubscribeRecordResponse); i {
  1343. case 0:
  1344. return &v.state
  1345. case 1:
  1346. return &v.sizeCache
  1347. case 2:
  1348. return &v.unknownFields
  1349. default:
  1350. return nil
  1351. }
  1352. }
  1353. }
  1354. type x struct{}
  1355. out := protoimpl.TypeBuilder{
  1356. File: protoimpl.DescBuilder{
  1357. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1358. RawDescriptor: file_mq_agent_proto_rawDesc,
  1359. NumEnums: 1,
  1360. NumMessages: 16,
  1361. NumExtensions: 0,
  1362. NumServices: 1,
  1363. },
  1364. GoTypes: file_mq_agent_proto_goTypes,
  1365. DependencyIndexes: file_mq_agent_proto_depIdxs,
  1366. EnumInfos: file_mq_agent_proto_enumTypes,
  1367. MessageInfos: file_mq_agent_proto_msgTypes,
  1368. }.Build()
  1369. File_mq_agent_proto = out.File
  1370. file_mq_agent_proto_rawDesc = nil
  1371. file_mq_agent_proto_goTypes = nil
  1372. file_mq_agent_proto_depIdxs = nil
  1373. }