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.

209 lines
6.9 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
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
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
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
3 years ago
5 years ago
3 years ago
5 years ago
3 years ago
3 years ago
5 years ago
3 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 FindBrokerLeaderRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. }
  24. func (x *FindBrokerLeaderRequest) Reset() {
  25. *x = FindBrokerLeaderRequest{}
  26. if protoimpl.UnsafeEnabled {
  27. mi := &file_mq_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. }
  32. func (x *FindBrokerLeaderRequest) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*FindBrokerLeaderRequest) ProtoMessage() {}
  36. func (x *FindBrokerLeaderRequest) ProtoReflect() protoreflect.Message {
  37. mi := &file_mq_proto_msgTypes[0]
  38. if protoimpl.UnsafeEnabled && x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use FindBrokerLeaderRequest.ProtoReflect.Descriptor instead.
  48. func (*FindBrokerLeaderRequest) Descriptor() ([]byte, []int) {
  49. return file_mq_proto_rawDescGZIP(), []int{0}
  50. }
  51. type FindBrokerLeaderResponse struct {
  52. state protoimpl.MessageState
  53. sizeCache protoimpl.SizeCache
  54. unknownFields protoimpl.UnknownFields
  55. Broker string `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty"`
  56. }
  57. func (x *FindBrokerLeaderResponse) Reset() {
  58. *x = FindBrokerLeaderResponse{}
  59. if protoimpl.UnsafeEnabled {
  60. mi := &file_mq_proto_msgTypes[1]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. }
  65. func (x *FindBrokerLeaderResponse) String() string {
  66. return protoimpl.X.MessageStringOf(x)
  67. }
  68. func (*FindBrokerLeaderResponse) ProtoMessage() {}
  69. func (x *FindBrokerLeaderResponse) ProtoReflect() protoreflect.Message {
  70. mi := &file_mq_proto_msgTypes[1]
  71. if protoimpl.UnsafeEnabled && x != nil {
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. if ms.LoadMessageInfo() == nil {
  74. ms.StoreMessageInfo(mi)
  75. }
  76. return ms
  77. }
  78. return mi.MessageOf(x)
  79. }
  80. // Deprecated: Use FindBrokerLeaderResponse.ProtoReflect.Descriptor instead.
  81. func (*FindBrokerLeaderResponse) Descriptor() ([]byte, []int) {
  82. return file_mq_proto_rawDescGZIP(), []int{1}
  83. }
  84. func (x *FindBrokerLeaderResponse) GetBroker() string {
  85. if x != nil {
  86. return x.Broker
  87. }
  88. return ""
  89. }
  90. var File_mq_proto protoreflect.FileDescriptor
  91. var file_mq_proto_rawDesc = []byte{
  92. 0x0a, 0x08, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  93. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0x19, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64,
  94. 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  95. 0x65, 0x73, 0x74, 0x22, 0x32, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65,
  96. 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  97. 0x16, 0x0a, 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  98. 0x06, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x32, 0x77, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x77, 0x65,
  99. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x12, 0x63, 0x0a, 0x10, 0x46,
  100. 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
  101. 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46,
  102. 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
  103. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69,
  104. 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72,
  105. 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
  106. 0x42, 0x4e, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x6d, 0x71,
  107. 0x42, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x50, 0x72, 0x6f,
  108. 0x74, 0x6f, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
  109. 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64,
  110. 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x71, 0x5f, 0x70, 0x62,
  111. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  112. }
  113. var (
  114. file_mq_proto_rawDescOnce sync.Once
  115. file_mq_proto_rawDescData = file_mq_proto_rawDesc
  116. )
  117. func file_mq_proto_rawDescGZIP() []byte {
  118. file_mq_proto_rawDescOnce.Do(func() {
  119. file_mq_proto_rawDescData = protoimpl.X.CompressGZIP(file_mq_proto_rawDescData)
  120. })
  121. return file_mq_proto_rawDescData
  122. }
  123. var file_mq_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  124. var file_mq_proto_goTypes = []interface{}{
  125. (*FindBrokerLeaderRequest)(nil), // 0: messaging_pb.FindBrokerLeaderRequest
  126. (*FindBrokerLeaderResponse)(nil), // 1: messaging_pb.FindBrokerLeaderResponse
  127. }
  128. var file_mq_proto_depIdxs = []int32{
  129. 0, // 0: messaging_pb.SeaweedMessaging.FindBrokerLeader:input_type -> messaging_pb.FindBrokerLeaderRequest
  130. 1, // 1: messaging_pb.SeaweedMessaging.FindBrokerLeader:output_type -> messaging_pb.FindBrokerLeaderResponse
  131. 1, // [1:2] is the sub-list for method output_type
  132. 0, // [0:1] is the sub-list for method input_type
  133. 0, // [0:0] is the sub-list for extension type_name
  134. 0, // [0:0] is the sub-list for extension extendee
  135. 0, // [0:0] is the sub-list for field type_name
  136. }
  137. func init() { file_mq_proto_init() }
  138. func file_mq_proto_init() {
  139. if File_mq_proto != nil {
  140. return
  141. }
  142. if !protoimpl.UnsafeEnabled {
  143. file_mq_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  144. switch v := v.(*FindBrokerLeaderRequest); i {
  145. case 0:
  146. return &v.state
  147. case 1:
  148. return &v.sizeCache
  149. case 2:
  150. return &v.unknownFields
  151. default:
  152. return nil
  153. }
  154. }
  155. file_mq_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  156. switch v := v.(*FindBrokerLeaderResponse); i {
  157. case 0:
  158. return &v.state
  159. case 1:
  160. return &v.sizeCache
  161. case 2:
  162. return &v.unknownFields
  163. default:
  164. return nil
  165. }
  166. }
  167. }
  168. type x struct{}
  169. out := protoimpl.TypeBuilder{
  170. File: protoimpl.DescBuilder{
  171. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  172. RawDescriptor: file_mq_proto_rawDesc,
  173. NumEnums: 0,
  174. NumMessages: 2,
  175. NumExtensions: 0,
  176. NumServices: 1,
  177. },
  178. GoTypes: file_mq_proto_goTypes,
  179. DependencyIndexes: file_mq_proto_depIdxs,
  180. MessageInfos: file_mq_proto_msgTypes,
  181. }.Build()
  182. File_mq_proto = out.File
  183. file_mq_proto_rawDesc = nil
  184. file_mq_proto_goTypes = nil
  185. file_mq_proto_depIdxs = nil
  186. }