Quellcode durchsuchen

refactor: protoc-gen换到v3

lihf vor 4 Monaten
Ursprung
Commit
e09db8ddc3
3 geänderte Dateien mit 74 neuen und 166 gelöschten Zeilen
  1. 2 2
      build.sh
  2. 48 113
      kuban/api/annotations/annotations.pb.go
  3. 24 51
      kuban/api/annotations/file.pb.go

+ 2 - 2
build.sh

@@ -2,6 +2,6 @@ find ./proto/kuban \
     -name '*.proto' \
     -exec protoc \
         --proto_path=./proto \
-        --go_out=./kuban \
-        --go_opt=module=git.ikuban.com/server/kubanapis/kuban \
+        --go-v3_out=./kuban \
+        --go-v3_opt=module=git.ikuban.com/server/kubanapis/kuban \
         {} \;

+ 48 - 113
kuban/api/annotations/annotations.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
-// 	protoc-gen-go v1.30.0-devel
-// 	protoc        v5.26.1
+// 	protoc-gen-go v1.36.6-modify
+// 	protoc        v6.31.1
 // source: kuban/api/annotations.proto
 
 package annotations
@@ -12,6 +12,7 @@ import (
 	descriptorpb "google.golang.org/protobuf/types/descriptorpb"
 	reflect "reflect"
 	sync "sync"
+	unsafe "unsafe"
 )
 
 const (
@@ -23,23 +24,20 @@ const (
 
 // 自定义option
 type Options struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
+	state protoimpl.MessageState `protogen:"open.v1"`
 	// 操作记录
 	OperationRecord *OperationRecord `protobuf:"bytes,2,opt,name=operation_record,json=operationRecord,proto3" json:"operation_record"`
 	// mcp 配置
-	McpOptions *McpOptions `protobuf:"bytes,3,opt,name=mcp_options,json=mcpOptions,proto3" json:"mcp_options"`
+	McpOptions    *McpOptions `protobuf:"bytes,3,opt,name=mcp_options,json=mcpOptions,proto3" json:"mcp_options"`
+	unknownFields protoimpl.UnknownFields
+	sizeCache     protoimpl.SizeCache
 }
 
 func (x *Options) Reset() {
 	*x = Options{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_kuban_api_annotations_proto_msgTypes[0]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
+	mi := &file_kuban_api_annotations_proto_msgTypes[0]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
 }
 
 func (x *Options) String() string {
@@ -50,7 +48,7 @@ func (*Options) ProtoMessage() {}
 
 func (x *Options) ProtoReflect() protoreflect.Message {
 	mi := &file_kuban_api_annotations_proto_msgTypes[0]
-	if protoimpl.UnsafeEnabled && x != nil {
+	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
 			ms.StoreMessageInfo(mi)
@@ -66,36 +64,33 @@ func (*Options) Descriptor() ([]byte, []int) {
 }
 
 func (x *Options) GetOperationRecord() *OperationRecord {
-	if x != nil && x.OperationRecord != nil {
+	if x != nil {
 		return x.OperationRecord
 	}
-	return &OperationRecord{}
+	return nil
 }
 
 func (x *Options) GetMcpOptions() *McpOptions {
-	if x != nil && x.McpOptions != nil {
+	if x != nil {
 		return x.McpOptions
 	}
-	return &McpOptions{}
+	return nil
 }
 
 // 操作记录
 type OperationRecord struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
+	state protoimpl.MessageState `protogen:"open.v1"`
 	// 接口是否需要记录
-	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
+	Enabled       bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
+	unknownFields protoimpl.UnknownFields
+	sizeCache     protoimpl.SizeCache
 }
 
 func (x *OperationRecord) Reset() {
 	*x = OperationRecord{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_kuban_api_annotations_proto_msgTypes[1]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
+	mi := &file_kuban_api_annotations_proto_msgTypes[1]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
 }
 
 func (x *OperationRecord) String() string {
@@ -106,7 +101,7 @@ func (*OperationRecord) ProtoMessage() {}
 
 func (x *OperationRecord) ProtoReflect() protoreflect.Message {
 	mi := &file_kuban_api_annotations_proto_msgTypes[1]
-	if protoimpl.UnsafeEnabled && x != nil {
+	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
 			ms.StoreMessageInfo(mi)
@@ -129,21 +124,18 @@ func (x *OperationRecord) GetEnabled() bool {
 }
 
 type McpOptions struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
+	state protoimpl.MessageState `protogen:"open.v1"`
 	// 是否生成mcp
-	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
+	Enabled       bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled"`
+	unknownFields protoimpl.UnknownFields
+	sizeCache     protoimpl.SizeCache
 }
 
 func (x *McpOptions) Reset() {
 	*x = McpOptions{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_kuban_api_annotations_proto_msgTypes[2]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
+	mi := &file_kuban_api_annotations_proto_msgTypes[2]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
 }
 
 func (x *McpOptions) String() string {
@@ -154,7 +146,7 @@ func (*McpOptions) ProtoMessage() {}
 
 func (x *McpOptions) ProtoReflect() protoreflect.Message {
 	mi := &file_kuban_api_annotations_proto_msgTypes[2]
-	if protoimpl.UnsafeEnabled && x != nil {
+	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
 			ms.StoreMessageInfo(mi)
@@ -195,52 +187,34 @@ var (
 
 var File_kuban_api_annotations_proto protoreflect.FileDescriptor
 
-var file_kuban_api_annotations_proto_rawDesc = []byte{
-	0x0a, 0x1b, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
-	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6b,
-	0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
-	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
-	0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x07, 0x4f,
-	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
-	0x32, 0x1a, 0x2e, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, 0x65,
-	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x0f, 0x6f, 0x70,
-	0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x36, 0x0a,
-	0x0b, 0x6d, 0x63, 0x70, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01,
-	0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d,
-	0x63, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x6d, 0x63, 0x70, 0x4f, 0x70,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
-	0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
-	0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
-	0x65, 0x64, 0x22, 0x26, 0x0a, 0x0a, 0x4d, 0x63, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
-	0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
-	0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x4d, 0x0a, 0x07, 0x6f, 0x70,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
-	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x92, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6b,
-	0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
-	0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74,
-	0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76,
-	0x65, 0x72, 0x2f, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6b, 0x75, 0x62,
-	0x61, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
-	0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
-}
+const file_kuban_api_annotations_proto_rawDesc = "" +
+	"\n" +
+	"\x1bkuban/api/annotations.proto\x12\tkuban.api\x1a google/protobuf/descriptor.proto\"\x88\x01\n" +
+	"\aOptions\x12E\n" +
+	"\x10operation_record\x18\x02 \x01(\v2\x1a.kuban.api.OperationRecordR\x0foperationRecord\x126\n" +
+	"\vmcp_options\x18\x03 \x01(\v2\x15.kuban.api.McpOptionsR\n" +
+	"mcpOptions\"+\n" +
+	"\x0fOperationRecord\x12\x18\n" +
+	"\aenabled\x18\x01 \x01(\bR\aenabled\"&\n" +
+	"\n" +
+	"McpOptions\x12\x18\n" +
+	"\aenabled\x18\x01 \x01(\bR\aenabled:M\n" +
+	"\aoptions\x12\x1e.google.protobuf.MethodOptions\x18\x92N \x01(\v2\x12.kuban.api.OptionsR\aoptionsBCZAgit.ikuban.com/server/kubanapis/kuban/api/annotations;annotationsb\x06proto3"
 
 var (
 	file_kuban_api_annotations_proto_rawDescOnce sync.Once
-	file_kuban_api_annotations_proto_rawDescData = file_kuban_api_annotations_proto_rawDesc
+	file_kuban_api_annotations_proto_rawDescData []byte
 )
 
 func file_kuban_api_annotations_proto_rawDescGZIP() []byte {
 	file_kuban_api_annotations_proto_rawDescOnce.Do(func() {
-		file_kuban_api_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_kuban_api_annotations_proto_rawDescData)
+		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)))
 	})
 	return file_kuban_api_annotations_proto_rawDescData
 }
 
 var file_kuban_api_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
-var file_kuban_api_annotations_proto_goTypes = []interface{}{
+var file_kuban_api_annotations_proto_goTypes = []any{
 	(*Options)(nil),                    // 0: kuban.api.Options
 	(*OperationRecord)(nil),            // 1: kuban.api.OperationRecord
 	(*McpOptions)(nil),                 // 2: kuban.api.McpOptions
@@ -263,49 +237,11 @@ func file_kuban_api_annotations_proto_init() {
 	if File_kuban_api_annotations_proto != nil {
 		return
 	}
-	if !protoimpl.UnsafeEnabled {
-		file_kuban_api_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*Options); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_kuban_api_annotations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*OperationRecord); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_kuban_api_annotations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*McpOptions); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
 		File: protoimpl.DescBuilder{
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
-			RawDescriptor: file_kuban_api_annotations_proto_rawDesc,
+			RawDescriptor: unsafe.Slice(unsafe.StringData(file_kuban_api_annotations_proto_rawDesc), len(file_kuban_api_annotations_proto_rawDesc)),
 			NumEnums:      0,
 			NumMessages:   3,
 			NumExtensions: 1,
@@ -317,7 +253,6 @@ func file_kuban_api_annotations_proto_init() {
 		ExtensionInfos:    file_kuban_api_annotations_proto_extTypes,
 	}.Build()
 	File_kuban_api_annotations_proto = out.File
-	file_kuban_api_annotations_proto_rawDesc = nil
 	file_kuban_api_annotations_proto_goTypes = nil
 	file_kuban_api_annotations_proto_depIdxs = nil
 }

+ 24 - 51
kuban/api/annotations/file.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
-// 	protoc-gen-go v1.30.0-devel
-// 	protoc        v5.26.1
+// 	protoc-gen-go v1.36.6-modify
+// 	protoc        v6.31.1
 // source: kuban/api/file.proto
 
 package annotations
@@ -12,6 +12,7 @@ import (
 	_ "google.golang.org/protobuf/types/descriptorpb"
 	reflect "reflect"
 	sync "sync"
+	unsafe "unsafe"
 )
 
 const (
@@ -22,22 +23,19 @@ const (
 )
 
 type File struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
+	state         protoimpl.MessageState `protogen:"open.v1"`
+	Filename      string                 `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename"`
+	Content       []byte                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content"`
+	Size          int64                  `protobuf:"varint,3,opt,name=size,proto3" json:"size"`
 	unknownFields protoimpl.UnknownFields
-
-	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename"`
-	Content  []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content"`
-	Size     int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size"`
+	sizeCache     protoimpl.SizeCache
 }
 
 func (x *File) Reset() {
 	*x = File{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_kuban_api_file_proto_msgTypes[0]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
+	mi := &file_kuban_api_file_proto_msgTypes[0]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
 }
 
 func (x *File) String() string {
@@ -48,7 +46,7 @@ func (*File) ProtoMessage() {}
 
 func (x *File) ProtoReflect() protoreflect.Message {
 	mi := &file_kuban_api_file_proto_msgTypes[0]
-	if protoimpl.UnsafeEnabled && x != nil {
+	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
 			ms.StoreMessageInfo(mi)
@@ -74,7 +72,7 @@ func (x *File) GetContent() []byte {
 	if x != nil {
 		return x.Content
 	}
-	return make([]byte, 0)
+	return nil
 }
 
 func (x *File) GetSize() int64 {
@@ -86,38 +84,28 @@ func (x *File) GetSize() int64 {
 
 var File_kuban_api_file_proto protoreflect.FileDescriptor
 
-var file_kuban_api_file_proto_rawDesc = []byte{
-	0x0a, 0x14, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65,
-	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x61, 0x70,
-	0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
-	0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66,
-	0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66,
-	0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
-	0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
-	0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x04, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75,
-	0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x6b,
-	0x75, 0x62, 0x61, 0x6e, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2f, 0x61,
-	0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61,
-	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x33,
-}
+const file_kuban_api_file_proto_rawDesc = "" +
+	"\n" +
+	"\x14kuban/api/file.proto\x12\tkuban.api\x1a google/protobuf/descriptor.proto\"P\n" +
+	"\x04File\x12\x1a\n" +
+	"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x18\n" +
+	"\acontent\x18\x02 \x01(\fR\acontent\x12\x12\n" +
+	"\x04size\x18\x03 \x01(\x03R\x04sizeBCZAgit.ikuban.com/server/kubanapis/kuban/api/annotations;annotationsb\x06proto3"
 
 var (
 	file_kuban_api_file_proto_rawDescOnce sync.Once
-	file_kuban_api_file_proto_rawDescData = file_kuban_api_file_proto_rawDesc
+	file_kuban_api_file_proto_rawDescData []byte
 )
 
 func file_kuban_api_file_proto_rawDescGZIP() []byte {
 	file_kuban_api_file_proto_rawDescOnce.Do(func() {
-		file_kuban_api_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_kuban_api_file_proto_rawDescData)
+		file_kuban_api_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kuban_api_file_proto_rawDesc), len(file_kuban_api_file_proto_rawDesc)))
 	})
 	return file_kuban_api_file_proto_rawDescData
 }
 
 var file_kuban_api_file_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
-var file_kuban_api_file_proto_goTypes = []interface{}{
+var file_kuban_api_file_proto_goTypes = []any{
 	(*File)(nil), // 0: kuban.api.File
 }
 var file_kuban_api_file_proto_depIdxs = []int32{
@@ -133,25 +121,11 @@ func file_kuban_api_file_proto_init() {
 	if File_kuban_api_file_proto != nil {
 		return
 	}
-	if !protoimpl.UnsafeEnabled {
-		file_kuban_api_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*File); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
 		File: protoimpl.DescBuilder{
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
-			RawDescriptor: file_kuban_api_file_proto_rawDesc,
+			RawDescriptor: unsafe.Slice(unsafe.StringData(file_kuban_api_file_proto_rawDesc), len(file_kuban_api_file_proto_rawDesc)),
 			NumEnums:      0,
 			NumMessages:   1,
 			NumExtensions: 0,
@@ -162,7 +136,6 @@ func file_kuban_api_file_proto_init() {
 		MessageInfos:      file_kuban_api_file_proto_msgTypes,
 	}.Build()
 	File_kuban_api_file_proto = out.File
-	file_kuban_api_file_proto_rawDesc = nil
 	file_kuban_api_file_proto_goTypes = nil
 	file_kuban_api_file_proto_depIdxs = nil
 }