annotations.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6-modify
  4. // protoc v6.31.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. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 自定义option
  22. type Options struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 操作记录
  25. OperationRecord *OperationRecord `protobuf:"bytes,2,opt,name=operation_record,json=operationRecord,proto3" json:"operation_record"`
  26. // mcp 配置
  27. McpOptions *McpOptions `protobuf:"bytes,3,opt,name=mcp_options,json=mcpOptions,proto3" json:"mcp_options"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *Options) Reset() {
  32. *x = Options{}
  33. mi := &file_kuban_api_annotations_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *Options) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*Options) ProtoMessage() {}
  41. func (x *Options) ProtoReflect() protoreflect.Message {
  42. mi := &file_kuban_api_annotations_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use Options.ProtoReflect.Descriptor instead.
  53. func (*Options) Descriptor() ([]byte, []int) {
  54. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *Options) GetOperationRecord() *OperationRecord {
  57. if x != nil {
  58. return x.OperationRecord
  59. }
  60. return nil
  61. }
  62. func (x *Options) GetMcpOptions() *McpOptions {
  63. if x != nil {
  64. return x.McpOptions
  65. }
  66. return nil
  67. }
  68. // 操作记录
  69. type OperationRecord struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. // 接口是否需要记录
  72. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
  73. unknownFields protoimpl.UnknownFields
  74. sizeCache protoimpl.SizeCache
  75. }
  76. func (x *OperationRecord) Reset() {
  77. *x = OperationRecord{}
  78. mi := &file_kuban_api_annotations_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. func (x *OperationRecord) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*OperationRecord) ProtoMessage() {}
  86. func (x *OperationRecord) ProtoReflect() protoreflect.Message {
  87. mi := &file_kuban_api_annotations_proto_msgTypes[1]
  88. if x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use OperationRecord.ProtoReflect.Descriptor instead.
  98. func (*OperationRecord) Descriptor() ([]byte, []int) {
  99. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *OperationRecord) GetEnabled() bool {
  102. if x != nil {
  103. return x.Enabled
  104. }
  105. return false
  106. }
  107. type McpOptions struct {
  108. state protoimpl.MessageState `protogen:"open.v1"`
  109. // 是否生成mcp
  110. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
  111. unknownFields protoimpl.UnknownFields
  112. sizeCache protoimpl.SizeCache
  113. }
  114. func (x *McpOptions) Reset() {
  115. *x = McpOptions{}
  116. mi := &file_kuban_api_annotations_proto_msgTypes[2]
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. ms.StoreMessageInfo(mi)
  119. }
  120. func (x *McpOptions) String() string {
  121. return protoimpl.X.MessageStringOf(x)
  122. }
  123. func (*McpOptions) ProtoMessage() {}
  124. func (x *McpOptions) ProtoReflect() protoreflect.Message {
  125. mi := &file_kuban_api_annotations_proto_msgTypes[2]
  126. if x != nil {
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. if ms.LoadMessageInfo() == nil {
  129. ms.StoreMessageInfo(mi)
  130. }
  131. return ms
  132. }
  133. return mi.MessageOf(x)
  134. }
  135. // Deprecated: Use McpOptions.ProtoReflect.Descriptor instead.
  136. func (*McpOptions) Descriptor() ([]byte, []int) {
  137. return file_kuban_api_annotations_proto_rawDescGZIP(), []int{2}
  138. }
  139. func (x *McpOptions) GetEnabled() bool {
  140. if x != nil {
  141. return x.Enabled
  142. }
  143. return false
  144. }
  145. var file_kuban_api_annotations_proto_extTypes = []protoimpl.ExtensionInfo{
  146. {
  147. ExtendedType: (*descriptorpb.MethodOptions)(nil),
  148. ExtensionType: (*Options)(nil),
  149. Field: 10002,
  150. Name: "kuban.api.options",
  151. Tag: "bytes,10002,opt,name=options",
  152. Filename: "kuban/api/annotations.proto",
  153. },
  154. }
  155. // Extension fields to descriptorpb.MethodOptions.
  156. var (
  157. // optional kuban.api.Options options = 10002;
  158. E_Options = &file_kuban_api_annotations_proto_extTypes[0]
  159. )
  160. var File_kuban_api_annotations_proto protoreflect.FileDescriptor
  161. const file_kuban_api_annotations_proto_rawDesc = "" +
  162. "\n" +
  163. "\x1bkuban/api/annotations.proto\x12\tkuban.api\x1a google/protobuf/descriptor.proto\"\x88\x01\n" +
  164. "\aOptions\x12E\n" +
  165. "\x10operation_record\x18\x02 \x01(\v2\x1a.kuban.api.OperationRecordR\x0foperationRecord\x126\n" +
  166. "\vmcp_options\x18\x03 \x01(\v2\x15.kuban.api.McpOptionsR\n" +
  167. "mcpOptions\"+\n" +
  168. "\x0fOperationRecord\x12\x18\n" +
  169. "\aenabled\x18\x01 \x01(\bR\aenabled\"&\n" +
  170. "\n" +
  171. "McpOptions\x12\x18\n" +
  172. "\aenabled\x18\x01 \x01(\bR\aenabled:M\n" +
  173. "\aoptions\x12\x1e.google.protobuf.MethodOptions\x18\x92N \x01(\v2\x12.kuban.api.OptionsR\aoptionsBCZAgit.ikuban.com/server/kubanapis/kuban/api/annotations;annotationsb\x06proto3"
  174. var (
  175. file_kuban_api_annotations_proto_rawDescOnce sync.Once
  176. file_kuban_api_annotations_proto_rawDescData []byte
  177. )
  178. func file_kuban_api_annotations_proto_rawDescGZIP() []byte {
  179. file_kuban_api_annotations_proto_rawDescOnce.Do(func() {
  180. file_kuban_api_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kuban_api_annotations_proto_rawDesc), len(file_kuban_api_annotations_proto_rawDesc)))
  181. })
  182. return file_kuban_api_annotations_proto_rawDescData
  183. }
  184. var file_kuban_api_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  185. var file_kuban_api_annotations_proto_goTypes = []any{
  186. (*Options)(nil), // 0: kuban.api.Options
  187. (*OperationRecord)(nil), // 1: kuban.api.OperationRecord
  188. (*McpOptions)(nil), // 2: kuban.api.McpOptions
  189. (*descriptorpb.MethodOptions)(nil), // 3: google.protobuf.MethodOptions
  190. }
  191. var file_kuban_api_annotations_proto_depIdxs = []int32{
  192. 1, // 0: kuban.api.Options.operation_record:type_name -> kuban.api.OperationRecord
  193. 2, // 1: kuban.api.Options.mcp_options:type_name -> kuban.api.McpOptions
  194. 3, // 2: kuban.api.options:extendee -> google.protobuf.MethodOptions
  195. 0, // 3: kuban.api.options:type_name -> kuban.api.Options
  196. 4, // [4:4] is the sub-list for method output_type
  197. 4, // [4:4] is the sub-list for method input_type
  198. 3, // [3:4] is the sub-list for extension type_name
  199. 2, // [2:3] is the sub-list for extension extendee
  200. 0, // [0:2] is the sub-list for field type_name
  201. }
  202. func init() { file_kuban_api_annotations_proto_init() }
  203. func file_kuban_api_annotations_proto_init() {
  204. if File_kuban_api_annotations_proto != nil {
  205. return
  206. }
  207. type x struct{}
  208. out := protoimpl.TypeBuilder{
  209. File: protoimpl.DescBuilder{
  210. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  211. RawDescriptor: unsafe.Slice(unsafe.StringData(file_kuban_api_annotations_proto_rawDesc), len(file_kuban_api_annotations_proto_rawDesc)),
  212. NumEnums: 0,
  213. NumMessages: 3,
  214. NumExtensions: 1,
  215. NumServices: 0,
  216. },
  217. GoTypes: file_kuban_api_annotations_proto_goTypes,
  218. DependencyIndexes: file_kuban_api_annotations_proto_depIdxs,
  219. MessageInfos: file_kuban_api_annotations_proto_msgTypes,
  220. ExtensionInfos: file_kuban_api_annotations_proto_extTypes,
  221. }.Build()
  222. File_kuban_api_annotations_proto = out.File
  223. file_kuban_api_annotations_proto_goTypes = nil
  224. file_kuban_api_annotations_proto_depIdxs = nil
  225. }