annotations.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0-devel
  4. // protoc v5.26.1
  5. // source: kuban/api/annotations.proto
  6. package annotations
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  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. // 自定义option
  21. type Options struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. // 操作记录
  26. OperationRecord *OperationRecord `protobuf:"bytes,2,opt,name=operation_record,json=operationRecord,proto3" json:"operation_record"`
  27. // mcp 配置
  28. McpOptions *McpOptions `protobuf:"bytes,3,opt,name=mcp_options,json=mcpOptions,proto3" json:"mcp_options"`
  29. }
  30. func (x *Options) Reset() {
  31. *x = Options{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_kuban_api_annotations_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *Options) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Options) ProtoMessage() {}
  42. func (x *Options) ProtoReflect() protoreflect.Message {
  43. mi := &file_kuban_api_annotations_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Options.ProtoReflect.Descriptor instead.
  54. func (*Options) Descriptor() ([]byte, []int) {
  55. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Options) GetOperationRecord() *OperationRecord {
  58. if x != nil && x.OperationRecord != nil {
  59. return x.OperationRecord
  60. }
  61. return &OperationRecord{}
  62. }
  63. func (x *Options) GetMcpOptions() *McpOptions {
  64. if x != nil && x.McpOptions != nil {
  65. return x.McpOptions
  66. }
  67. return &McpOptions{}
  68. }
  69. // 操作记录
  70. type OperationRecord struct {
  71. state protoimpl.MessageState
  72. sizeCache protoimpl.SizeCache
  73. unknownFields protoimpl.UnknownFields
  74. // 接口是否需要记录
  75. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
  76. }
  77. func (x *OperationRecord) Reset() {
  78. *x = OperationRecord{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_kuban_api_annotations_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *OperationRecord) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*OperationRecord) ProtoMessage() {}
  89. func (x *OperationRecord) ProtoReflect() protoreflect.Message {
  90. mi := &file_kuban_api_annotations_proto_msgTypes[1]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use OperationRecord.ProtoReflect.Descriptor instead.
  101. func (*OperationRecord) Descriptor() ([]byte, []int) {
  102. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{1}
  103. }
  104. func (x *OperationRecord) GetEnabled() bool {
  105. if x != nil {
  106. return x.Enabled
  107. }
  108. return false
  109. }
  110. type McpOptions struct {
  111. state protoimpl.MessageState
  112. sizeCache protoimpl.SizeCache
  113. unknownFields protoimpl.UnknownFields
  114. // 是否生成mcp
  115. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
  116. }
  117. func (x *McpOptions) Reset() {
  118. *x = McpOptions{}
  119. if protoimpl.UnsafeEnabled {
  120. mi := &file_kuban_api_annotations_proto_msgTypes[2]
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. ms.StoreMessageInfo(mi)
  123. }
  124. }
  125. func (x *McpOptions) String() string {
  126. return protoimpl.X.MessageStringOf(x)
  127. }
  128. func (*McpOptions) ProtoMessage() {}
  129. func (x *McpOptions) ProtoReflect() protoreflect.Message {
  130. mi := &file_kuban_api_annotations_proto_msgTypes[2]
  131. if protoimpl.UnsafeEnabled && x != nil {
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. if ms.LoadMessageInfo() == nil {
  134. ms.StoreMessageInfo(mi)
  135. }
  136. return ms
  137. }
  138. return mi.MessageOf(x)
  139. }
  140. // Deprecated: Use McpOptions.ProtoReflect.Descriptor instead.
  141. func (*McpOptions) Descriptor() ([]byte, []int) {
  142. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{2}
  143. }
  144. func (x *McpOptions) GetEnabled() bool {
  145. if x != nil {
  146. return x.Enabled
  147. }
  148. return false
  149. }
  150. var file_kuban_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{
  151. {
  152. ExtendedType: (*descriptorpb.MethodOptions)(nil),
  153. ExtensionType: (*Options)(nil),
  154. Field: 10002,
  155. Name: "kuban.api.options",
  156. Tag: "bytes,10002,opt,name=options",
  157. Filename: "kuban/api/annotations.proto",
  158. },
  159. }
  160. // Extension fields to descriptorpb.MethodOptions.
  161. var (
  162. // optional kuban.api.Options options = 10002;
  163. E_Options = &file_kuban_api_annotations_proto_extTypes[0]
  164. )
  165. var File_kuban_api_annotations_proto protoreflect.FileDescriptor
  166. var file_kuban_api_annotations_proto_rawDesc = []byte{
  167. 0x0a, 0x1b, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
  168. 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6b,
  169. 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  170. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
  171. 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x07, 0x4f,
  172. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
  173. 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  174. 0x32, 0x1a, 0x2e, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, 0x65,
  175. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x0f, 0x6f, 0x70,
  176. 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x36, 0x0a,
  177. 0x0b, 0x6d, 0x63, 0x70, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01,
  178. 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d,
  179. 0x63, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x6d, 0x63, 0x70, 0x4f, 0x70,
  180. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
  181. 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
  182. 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  183. 0x65, 0x64, 0x22, 0x26, 0x0a, 0x0a, 0x4d, 0x63, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  184. 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  185. 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x4d, 0x0a, 0x07, 0x6f, 0x70,
  186. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  187. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70,
  188. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x92, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6b,
  189. 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  190. 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74,
  191. 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76,
  192. 0x65, 0x72, 0x2f, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6b, 0x75, 0x62,
  193. 0x61, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
  194. 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06,
  195. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  196. }
  197. var (
  198. file_kuban_api_annotations_proto_rawDescOnce sync.Once
  199. file_kuban_api_annotations_proto_rawDescData = file_kuban_api_annotations_proto_rawDesc
  200. )
  201. func file_kuban_api_annotations_proto_rawDescGZIP() []byte {
  202. file_kuban_api_annotations_proto_rawDescOnce.Do(func() {
  203. file_kuban_api_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_kuban_api_annotations_proto_rawDescData)
  204. })
  205. return file_kuban_api_annotations_proto_rawDescData
  206. }
  207. var file_kuban_api_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  208. var file_kuban_api_annotations_proto_goTypes = []interface{}{
  209. (*Options)(nil), // 0: kuban.api.Options
  210. (*OperationRecord)(nil), // 1: kuban.api.OperationRecord
  211. (*McpOptions)(nil), // 2: kuban.api.McpOptions
  212. (*descriptorpb.MethodOptions)(nil), // 3: google.protobuf.MethodOptions
  213. }
  214. var file_kuban_api_annotations_proto_depIdxs = []int32{
  215. 1, // 0: kuban.api.Options.operation_record:type_name -> kuban.api.OperationRecord
  216. 2, // 1: kuban.api.Options.mcp_options:type_name -> kuban.api.McpOptions
  217. 3, // 2: kuban.api.options:extendee -> google.protobuf.MethodOptions
  218. 0, // 3: kuban.api.options:type_name -> kuban.api.Options
  219. 4, // [4:4] is the sub-list for method output_type
  220. 4, // [4:4] is the sub-list for method input_type
  221. 3, // [3:4] is the sub-list for extension type_name
  222. 2, // [2:3] is the sub-list for extension extendee
  223. 0, // [0:2] is the sub-list for field type_name
  224. }
  225. func init() { file_kuban_api_annotations_proto_init() }
  226. func file_kuban_api_annotations_proto_init() {
  227. if File_kuban_api_annotations_proto != nil {
  228. return
  229. }
  230. if !protoimpl.UnsafeEnabled {
  231. file_kuban_api_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  232. switch v := v.(*Options); i {
  233. case 0:
  234. return &v.state
  235. case 1:
  236. return &v.sizeCache
  237. case 2:
  238. return &v.unknownFields
  239. default:
  240. return nil
  241. }
  242. }
  243. file_kuban_api_annotations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  244. switch v := v.(*OperationRecord); i {
  245. case 0:
  246. return &v.state
  247. case 1:
  248. return &v.sizeCache
  249. case 2:
  250. return &v.unknownFields
  251. default:
  252. return nil
  253. }
  254. }
  255. file_kuban_api_annotations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  256. switch v := v.(*McpOptions); i {
  257. case 0:
  258. return &v.state
  259. case 1:
  260. return &v.sizeCache
  261. case 2:
  262. return &v.unknownFields
  263. default:
  264. return nil
  265. }
  266. }
  267. }
  268. type x struct{}
  269. out := protoimpl.TypeBuilder{
  270. File: protoimpl.DescBuilder{
  271. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  272. RawDescriptor: file_kuban_api_annotations_proto_rawDesc,
  273. NumEnums: 0,
  274. NumMessages: 3,
  275. NumExtensions: 1,
  276. NumServices: 0,
  277. },
  278. GoTypes: file_kuban_api_annotations_proto_goTypes,
  279. DependencyIndexes: file_kuban_api_annotations_proto_depIdxs,
  280. MessageInfos: file_kuban_api_annotations_proto_msgTypes,
  281. ExtensionInfos: file_kuban_api_annotations_proto_extTypes,
  282. }.Build()
  283. File_kuban_api_annotations_proto = out.File
  284. file_kuban_api_annotations_proto_rawDesc = nil
  285. file_kuban_api_annotations_proto_goTypes = nil
  286. file_kuban_api_annotations_proto_depIdxs = nil
  287. }