1
0

config.pb.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: proxy/tun/config.proto
  6. package tun
  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. unsafe "unsafe"
  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. type Config struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  23. MTU uint32 `protobuf:"varint,2,opt,name=MTU,proto3" json:"MTU,omitempty"`
  24. UserLevel uint32 `protobuf:"varint,3,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. mi := &file_proxy_tun_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Config) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Config) ProtoMessage() {}
  38. func (x *Config) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_tun_config_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  50. func (*Config) Descriptor() ([]byte, []int) {
  51. return file_proxy_tun_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Config) GetName() string {
  54. if x != nil {
  55. return x.Name
  56. }
  57. return ""
  58. }
  59. func (x *Config) GetMTU() uint32 {
  60. if x != nil {
  61. return x.MTU
  62. }
  63. return 0
  64. }
  65. func (x *Config) GetUserLevel() uint32 {
  66. if x != nil {
  67. return x.UserLevel
  68. }
  69. return 0
  70. }
  71. var File_proxy_tun_config_proto protoreflect.FileDescriptor
  72. const file_proxy_tun_config_proto_rawDesc = "" +
  73. "\n" +
  74. "\x16proxy/tun/config.proto\x12\x0exray.proxy.tun\"M\n" +
  75. "\x06Config\x12\x12\n" +
  76. "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" +
  77. "\x03MTU\x18\x02 \x01(\rR\x03MTU\x12\x1d\n" +
  78. "\n" +
  79. "user_level\x18\x03 \x01(\rR\tuserLevelBL\n" +
  80. "\x12com.xray.proxy.tunP\x01Z#github.com/xtls/xray-core/proxy/tun\xaa\x02\x0eXray.Proxy.Tunb\x06proto3"
  81. var (
  82. file_proxy_tun_config_proto_rawDescOnce sync.Once
  83. file_proxy_tun_config_proto_rawDescData []byte
  84. )
  85. func file_proxy_tun_config_proto_rawDescGZIP() []byte {
  86. file_proxy_tun_config_proto_rawDescOnce.Do(func() {
  87. file_proxy_tun_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_tun_config_proto_rawDesc), len(file_proxy_tun_config_proto_rawDesc)))
  88. })
  89. return file_proxy_tun_config_proto_rawDescData
  90. }
  91. var file_proxy_tun_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  92. var file_proxy_tun_config_proto_goTypes = []any{
  93. (*Config)(nil), // 0: xray.proxy.tun.Config
  94. }
  95. var file_proxy_tun_config_proto_depIdxs = []int32{
  96. 0, // [0:0] is the sub-list for method output_type
  97. 0, // [0:0] is the sub-list for method input_type
  98. 0, // [0:0] is the sub-list for extension type_name
  99. 0, // [0:0] is the sub-list for extension extendee
  100. 0, // [0:0] is the sub-list for field type_name
  101. }
  102. func init() { file_proxy_tun_config_proto_init() }
  103. func file_proxy_tun_config_proto_init() {
  104. if File_proxy_tun_config_proto != nil {
  105. return
  106. }
  107. type x struct{}
  108. out := protoimpl.TypeBuilder{
  109. File: protoimpl.DescBuilder{
  110. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  111. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_tun_config_proto_rawDesc), len(file_proxy_tun_config_proto_rawDesc)),
  112. NumEnums: 0,
  113. NumMessages: 1,
  114. NumExtensions: 0,
  115. NumServices: 0,
  116. },
  117. GoTypes: file_proxy_tun_config_proto_goTypes,
  118. DependencyIndexes: file_proxy_tun_config_proto_depIdxs,
  119. MessageInfos: file_proxy_tun_config_proto_msgTypes,
  120. }.Build()
  121. File_proxy_tun_config_proto = out.File
  122. file_proxy_tun_config_proto_goTypes = nil
  123. file_proxy_tun_config_proto_depIdxs = nil
  124. }