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.

237 lines
7.6 KiB

5 years ago
3 years ago
3 years ago
5 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.17.3
  5. // source: mq.proto
  6. package mq_pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type FindBrokerRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
  24. Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
  25. Parition int32 `protobuf:"varint,3,opt,name=parition,proto3" json:"parition,omitempty"`
  26. }
  27. func (x *FindBrokerRequest) Reset() {
  28. *x = FindBrokerRequest{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_mq_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *FindBrokerRequest) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*FindBrokerRequest) ProtoMessage() {}
  39. func (x *FindBrokerRequest) ProtoReflect() protoreflect.Message {
  40. mi := &file_mq_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use FindBrokerRequest.ProtoReflect.Descriptor instead.
  51. func (*FindBrokerRequest) Descriptor() ([]byte, []int) {
  52. return file_mq_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *FindBrokerRequest) GetNamespace() string {
  55. if x != nil {
  56. return x.Namespace
  57. }
  58. return ""
  59. }
  60. func (x *FindBrokerRequest) GetTopic() string {
  61. if x != nil {
  62. return x.Topic
  63. }
  64. return ""
  65. }
  66. func (x *FindBrokerRequest) GetParition() int32 {
  67. if x != nil {
  68. return x.Parition
  69. }
  70. return 0
  71. }
  72. type FindBrokerResponse struct {
  73. state protoimpl.MessageState
  74. sizeCache protoimpl.SizeCache
  75. unknownFields protoimpl.UnknownFields
  76. Broker string `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
  77. }
  78. func (x *FindBrokerResponse) Reset() {
  79. *x = FindBrokerResponse{}
  80. if protoimpl.UnsafeEnabled {
  81. mi := &file_mq_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. }
  86. func (x *FindBrokerResponse) String() string {
  87. return protoimpl.X.MessageStringOf(x)
  88. }
  89. func (*FindBrokerResponse) ProtoMessage() {}
  90. func (x *FindBrokerResponse) ProtoReflect() protoreflect.Message {
  91. mi := &file_mq_proto_msgTypes[1]
  92. if protoimpl.UnsafeEnabled && x != nil {
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. if ms.LoadMessageInfo() == nil {
  95. ms.StoreMessageInfo(mi)
  96. }
  97. return ms
  98. }
  99. return mi.MessageOf(x)
  100. }
  101. // Deprecated: Use FindBrokerResponse.ProtoReflect.Descriptor instead.
  102. func (*FindBrokerResponse) Descriptor() ([]byte, []int) {
  103. return file_mq_proto_rawDescGZIP(), []int{1}
  104. }
  105. func (x *FindBrokerResponse) GetBroker() string {
  106. if x != nil {
  107. return x.Broker
  108. }
  109. return ""
  110. }
  111. var File_mq_proto protoreflect.FileDescriptor
  112. var file_mq_proto_rawDesc = []byte{
  113. 0x0a, 0x08, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  114. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0x63, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64,
  115. 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a,
  116. 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  117. 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
  118. 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69,
  119. 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
  120. 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x72, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a,
  121. 0x12, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
  122. 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20,
  123. 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x32, 0x65, 0x0a, 0x10, 0x53,
  124. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12,
  125. 0x51, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x12, 0x1f, 0x2e,
  126. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
  127. 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20,
  128. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69,
  129. 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  130. 0x22, 0x00, 0x42, 0x4e, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e,
  131. 0x6d, 0x71, 0x42, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50,
  132. 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  133. 0x2f, 0x63, 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65,
  134. 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x71, 0x5f,
  135. 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  136. }
  137. var (
  138. file_mq_proto_rawDescOnce sync.Once
  139. file_mq_proto_rawDescData = file_mq_proto_rawDesc
  140. )
  141. func file_mq_proto_rawDescGZIP() []byte {
  142. file_mq_proto_rawDescOnce.Do(func() {
  143. file_mq_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_proto_rawDescData)
  144. })
  145. return file_mq_proto_rawDescData
  146. }
  147. var file_mq_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  148. var file_mq_proto_goTypes = []interface{}{
  149. (*FindBrokerRequest)(nil), // 0: messaging_pb.FindBrokerRequest
  150. (*FindBrokerResponse)(nil), // 1: messaging_pb.FindBrokerResponse
  151. }
  152. var file_mq_proto_depIdxs = []int32{
  153. 0, // 0: messaging_pb.SeaweedMessaging.FindBroker:input_type -> messaging_pb.FindBrokerRequest
  154. 1, // 1: messaging_pb.SeaweedMessaging.FindBroker:output_type -> messaging_pb.FindBrokerResponse
  155. 1, // [1:2] is the sub-list for method output_type
  156. 0, // [0:1] is the sub-list for method input_type
  157. 0, // [0:0] is the sub-list for extension type_name
  158. 0, // [0:0] is the sub-list for extension extendee
  159. 0, // [0:0] is the sub-list for field type_name
  160. }
  161. func init() { file_mq_proto_init() }
  162. func file_mq_proto_init() {
  163. if File_mq_proto != nil {
  164. return
  165. }
  166. if !protoimpl.UnsafeEnabled {
  167. file_mq_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  168. switch v := v.(*FindBrokerRequest); i {
  169. case 0:
  170. return &v.state
  171. case 1:
  172. return &v.sizeCache
  173. case 2:
  174. return &v.unknownFields
  175. default:
  176. return nil
  177. }
  178. }
  179. file_mq_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  180. switch v := v.(*FindBrokerResponse); i {
  181. case 0:
  182. return &v.state
  183. case 1:
  184. return &v.sizeCache
  185. case 2:
  186. return &v.unknownFields
  187. default:
  188. return nil
  189. }
  190. }
  191. }
  192. type x struct{}
  193. out := protoimpl.TypeBuilder{
  194. File: protoimpl.DescBuilder{
  195. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  196. RawDescriptor: file_mq_proto_rawDesc,
  197. NumEnums: 0,
  198. NumMessages: 2,
  199. NumExtensions: 0,
  200. NumServices: 1,
  201. },
  202. GoTypes: file_mq_proto_goTypes,
  203. DependencyIndexes: file_mq_proto_depIdxs,
  204. MessageInfos: file_mq_proto_msgTypes,
  205. }.Build()
  206. File_mq_proto = out.File
  207. file_mq_proto_rawDesc = nil
  208. file_mq_proto_goTypes = nil
  209. file_mq_proto_depIdxs = nil
  210. }