file.pb.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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/file.proto
  6. package annotations
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. _ "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. type File struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename"`
  24. Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content"`
  25. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size"`
  26. unknownFields protoimpl.UnknownFields
  27. sizeCache protoimpl.SizeCache
  28. }
  29. func (x *File) Reset() {
  30. *x = File{}
  31. mi := &file_kuban_api_file_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *File) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*File) ProtoMessage() {}
  39. func (x *File) ProtoReflect() protoreflect.Message {
  40. mi := &file_kuban_api_file_proto_msgTypes[0]
  41. if 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 File.ProtoReflect.Descriptor instead.
  51. func (*File) Descriptor() ([]byte, []int) {
  52. return file_kuban_api_file_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *File) GetFilename() string {
  55. if x != nil {
  56. return x.Filename
  57. }
  58. return ""
  59. }
  60. func (x *File) GetContent() []byte {
  61. if x != nil {
  62. return x.Content
  63. }
  64. return nil
  65. }
  66. func (x *File) GetSize() int64 {
  67. if x != nil {
  68. return x.Size
  69. }
  70. return 0
  71. }
  72. var File_kuban_api_file_proto protoreflect.FileDescriptor
  73. const file_kuban_api_file_proto_rawDesc = "" +
  74. "\n" +
  75. "\x14kuban/api/file.proto\x12\tkuban.api\x1a google/protobuf/descriptor.proto\"P\n" +
  76. "\x04File\x12\x1a\n" +
  77. "\bfilename\x18\x01 \x01(\tR\bfilename\x12\x18\n" +
  78. "\acontent\x18\x02 \x01(\fR\acontent\x12\x12\n" +
  79. "\x04size\x18\x03 \x01(\x03R\x04sizeBCZAgit.ikuban.com/server/kubanapis/kuban/api/annotations;annotationsb\x06proto3"
  80. var (
  81. file_kuban_api_file_proto_rawDescOnce sync.Once
  82. file_kuban_api_file_proto_rawDescData []byte
  83. )
  84. func file_kuban_api_file_proto_rawDescGZIP() []byte {
  85. file_kuban_api_file_proto_rawDescOnce.Do(func() {
  86. 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)))
  87. })
  88. return file_kuban_api_file_proto_rawDescData
  89. }
  90. var file_kuban_api_file_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  91. var file_kuban_api_file_proto_goTypes = []any{
  92. (*File)(nil), // 0: kuban.api.File
  93. }
  94. var file_kuban_api_file_proto_depIdxs = []int32{
  95. 0, // [0:0] is the sub-list for method output_type
  96. 0, // [0:0] is the sub-list for method input_type
  97. 0, // [0:0] is the sub-list for extension type_name
  98. 0, // [0:0] is the sub-list for extension extendee
  99. 0, // [0:0] is the sub-list for field type_name
  100. }
  101. func init() { file_kuban_api_file_proto_init() }
  102. func file_kuban_api_file_proto_init() {
  103. if File_kuban_api_file_proto != nil {
  104. return
  105. }
  106. type x struct{}
  107. out := protoimpl.TypeBuilder{
  108. File: protoimpl.DescBuilder{
  109. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  110. RawDescriptor: unsafe.Slice(unsafe.StringData(file_kuban_api_file_proto_rawDesc), len(file_kuban_api_file_proto_rawDesc)),
  111. NumEnums: 0,
  112. NumMessages: 1,
  113. NumExtensions: 0,
  114. NumServices: 0,
  115. },
  116. GoTypes: file_kuban_api_file_proto_goTypes,
  117. DependencyIndexes: file_kuban_api_file_proto_depIdxs,
  118. MessageInfos: file_kuban_api_file_proto_msgTypes,
  119. }.Build()
  120. File_kuban_api_file_proto = out.File
  121. file_kuban_api_file_proto_goTypes = nil
  122. file_kuban_api_file_proto_depIdxs = nil
  123. }