config.pb.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v3.21.12
  5. // source: app/tun/config.proto
  6. package tun
  7. import (
  8. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  9. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  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 Config struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  26. Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"`
  27. UserLevel uint32 `protobuf:"varint,3,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  28. Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
  29. Ips []*routercommon.CIDR `protobuf:"bytes,6,rep,name=ips,proto3" json:"ips,omitempty"`
  30. Routes []*routercommon.CIDR `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty"`
  31. EnablePromiscuousMode bool `protobuf:"varint,8,opt,name=enable_promiscuous_mode,json=enablePromiscuousMode,proto3" json:"enable_promiscuous_mode,omitempty"`
  32. EnableSpoofing bool `protobuf:"varint,9,opt,name=enable_spoofing,json=enableSpoofing,proto3" json:"enable_spoofing,omitempty"`
  33. }
  34. func (x *Config) Reset() {
  35. *x = Config{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_app_tun_config_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Config) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Config) ProtoMessage() {}
  46. func (x *Config) ProtoReflect() protoreflect.Message {
  47. mi := &file_app_tun_config_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  58. func (*Config) Descriptor() ([]byte, []int) {
  59. return file_app_tun_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Config) GetName() string {
  62. if x != nil {
  63. return x.Name
  64. }
  65. return ""
  66. }
  67. func (x *Config) GetMtu() uint32 {
  68. if x != nil {
  69. return x.Mtu
  70. }
  71. return 0
  72. }
  73. func (x *Config) GetUserLevel() uint32 {
  74. if x != nil {
  75. return x.UserLevel
  76. }
  77. return 0
  78. }
  79. func (x *Config) GetTag() string {
  80. if x != nil {
  81. return x.Tag
  82. }
  83. return ""
  84. }
  85. func (x *Config) GetIps() []*routercommon.CIDR {
  86. if x != nil {
  87. return x.Ips
  88. }
  89. return nil
  90. }
  91. func (x *Config) GetRoutes() []*routercommon.CIDR {
  92. if x != nil {
  93. return x.Routes
  94. }
  95. return nil
  96. }
  97. func (x *Config) GetEnablePromiscuousMode() bool {
  98. if x != nil {
  99. return x.EnablePromiscuousMode
  100. }
  101. return false
  102. }
  103. func (x *Config) GetEnableSpoofing() bool {
  104. if x != nil {
  105. return x.EnableSpoofing
  106. }
  107. return false
  108. }
  109. var File_app_tun_config_proto protoreflect.FileDescriptor
  110. var file_app_tun_config_proto_rawDesc = []byte{
  111. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  112. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  113. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f,
  114. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d,
  115. 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  116. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  117. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  118. 0x74, 0x6f, 0x22, 0xd8, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
  119. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  120. 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03,
  121. 0x6d, 0x74, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65,
  122. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76,
  123. 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
  124. 0x03, 0x74, 0x61, 0x67, 0x12, 0x3a, 0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
  125. 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  126. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  127. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x03, 0x69, 0x70, 0x73,
  128. 0x12, 0x40, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
  129. 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  130. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63,
  131. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74,
  132. 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f,
  133. 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20,
  134. 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x69,
  135. 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e,
  136. 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x70, 0x6f, 0x6f, 0x66, 0x69, 0x6e, 0x67, 0x18, 0x09, 0x20,
  137. 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x70, 0x6f, 0x6f, 0x66,
  138. 0x69, 0x6e, 0x67, 0x3a, 0x12, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
  139. 0x63, 0x65, 0x12, 0x03, 0x74, 0x75, 0x6e, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x42, 0x57, 0x0a,
  140. 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  141. 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75,
  142. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
  143. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75,
  144. 0x6e, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41,
  145. 0x70, 0x70, 0x2e, 0x54, 0x75, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  146. }
  147. var (
  148. file_app_tun_config_proto_rawDescOnce sync.Once
  149. file_app_tun_config_proto_rawDescData = file_app_tun_config_proto_rawDesc
  150. )
  151. func file_app_tun_config_proto_rawDescGZIP() []byte {
  152. file_app_tun_config_proto_rawDescOnce.Do(func() {
  153. file_app_tun_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_tun_config_proto_rawDescData)
  154. })
  155. return file_app_tun_config_proto_rawDescData
  156. }
  157. var file_app_tun_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  158. var file_app_tun_config_proto_goTypes = []interface{}{
  159. (*Config)(nil), // 0: v2ray.core.app.tun.Config
  160. (*routercommon.CIDR)(nil), // 1: v2ray.core.app.router.routercommon.CIDR
  161. }
  162. var file_app_tun_config_proto_depIdxs = []int32{
  163. 1, // 0: v2ray.core.app.tun.Config.ips:type_name -> v2ray.core.app.router.routercommon.CIDR
  164. 1, // 1: v2ray.core.app.tun.Config.routes:type_name -> v2ray.core.app.router.routercommon.CIDR
  165. 2, // [2:2] is the sub-list for method output_type
  166. 2, // [2:2] is the sub-list for method input_type
  167. 2, // [2:2] is the sub-list for extension type_name
  168. 2, // [2:2] is the sub-list for extension extendee
  169. 0, // [0:2] is the sub-list for field type_name
  170. }
  171. func init() { file_app_tun_config_proto_init() }
  172. func file_app_tun_config_proto_init() {
  173. if File_app_tun_config_proto != nil {
  174. return
  175. }
  176. if !protoimpl.UnsafeEnabled {
  177. file_app_tun_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  178. switch v := v.(*Config); i {
  179. case 0:
  180. return &v.state
  181. case 1:
  182. return &v.sizeCache
  183. case 2:
  184. return &v.unknownFields
  185. default:
  186. return nil
  187. }
  188. }
  189. }
  190. type x struct{}
  191. out := protoimpl.TypeBuilder{
  192. File: protoimpl.DescBuilder{
  193. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  194. RawDescriptor: file_app_tun_config_proto_rawDesc,
  195. NumEnums: 0,
  196. NumMessages: 1,
  197. NumExtensions: 0,
  198. NumServices: 0,
  199. },
  200. GoTypes: file_app_tun_config_proto_goTypes,
  201. DependencyIndexes: file_app_tun_config_proto_depIdxs,
  202. MessageInfos: file_app_tun_config_proto_msgTypes,
  203. }.Build()
  204. File_app_tun_config_proto = out.File
  205. file_app_tun_config_proto_rawDesc = nil
  206. file_app_tun_config_proto_goTypes = nil
  207. file_app_tun_config_proto_depIdxs = nil
  208. }