config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  5. // source: app/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. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
  24. Inet4Address []string `protobuf:"bytes,2,rep,name=inet4_address,json=inet4Address,proto3" json:"inet4_address,omitempty"`
  25. Inet6Address []string `protobuf:"bytes,3,rep,name=inet6_address,json=inet6Address,proto3" json:"inet6_address,omitempty"`
  26. Mtu uint32 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
  27. AutoRoute bool `protobuf:"varint,5,opt,name=auto_route,json=autoRoute,proto3" json:"auto_route,omitempty"`
  28. StrictRoute bool `protobuf:"varint,6,opt,name=strict_route,json=strictRoute,proto3" json:"strict_route,omitempty"`
  29. Inet4RouteAddress []string `protobuf:"bytes,7,rep,name=inet4_route_address,json=inet4RouteAddress,proto3" json:"inet4_route_address,omitempty"`
  30. Inet6RouteAddress []string `protobuf:"bytes,8,rep,name=inet6_route_address,json=inet6RouteAddress,proto3" json:"inet6_route_address,omitempty"`
  31. EndpointIndependentNat bool `protobuf:"varint,9,opt,name=endpoint_independent_nat,json=endpointIndependentNat,proto3" json:"endpoint_independent_nat,omitempty"`
  32. UdpTimeout int64 `protobuf:"varint,10,opt,name=udp_timeout,json=udpTimeout,proto3" json:"udp_timeout,omitempty"`
  33. Stack string `protobuf:"bytes,11,opt,name=stack,proto3" json:"stack,omitempty"`
  34. IncludeUid []uint32 `protobuf:"varint,12,rep,packed,name=include_uid,json=includeUid,proto3" json:"include_uid,omitempty"`
  35. IncludeUidRange []string `protobuf:"bytes,13,rep,name=include_uid_range,json=includeUidRange,proto3" json:"include_uid_range,omitempty"`
  36. ExcludeUid []uint32 `protobuf:"varint,14,rep,packed,name=exclude_uid,json=excludeUid,proto3" json:"exclude_uid,omitempty"`
  37. ExcludeUidRange []string `protobuf:"bytes,15,rep,name=exclude_uid_range,json=excludeUidRange,proto3" json:"exclude_uid_range,omitempty"`
  38. IncludeAndroidUser []int32 `protobuf:"varint,16,rep,packed,name=include_android_user,json=includeAndroidUser,proto3" json:"include_android_user,omitempty"`
  39. IncludePackage []string `protobuf:"bytes,17,rep,name=include_package,json=includePackage,proto3" json:"include_package,omitempty"`
  40. ExcludePackage []string `protobuf:"bytes,18,rep,name=exclude_package,json=excludePackage,proto3" json:"exclude_package,omitempty"`
  41. // for xray
  42. AutoDetectInterface bool `protobuf:"varint,100,opt,name=auto_detect_interface,json=autoDetectInterface,proto3" json:"auto_detect_interface,omitempty"`
  43. OverrideAndroidVpn bool `protobuf:"varint,101,opt,name=override_android_vpn,json=overrideAndroidVpn,proto3" json:"override_android_vpn,omitempty"`
  44. }
  45. func (x *Config) Reset() {
  46. *x = Config{}
  47. if protoimpl.UnsafeEnabled {
  48. mi := &file_app_tun_config_proto_msgTypes[0]
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. ms.StoreMessageInfo(mi)
  51. }
  52. }
  53. func (x *Config) String() string {
  54. return protoimpl.X.MessageStringOf(x)
  55. }
  56. func (*Config) ProtoMessage() {}
  57. func (x *Config) ProtoReflect() protoreflect.Message {
  58. mi := &file_app_tun_config_proto_msgTypes[0]
  59. if protoimpl.UnsafeEnabled && x != nil {
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. if ms.LoadMessageInfo() == nil {
  62. ms.StoreMessageInfo(mi)
  63. }
  64. return ms
  65. }
  66. return mi.MessageOf(x)
  67. }
  68. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  69. func (*Config) Descriptor() ([]byte, []int) {
  70. return file_app_tun_config_proto_rawDescGZIP(), []int{0}
  71. }
  72. func (x *Config) GetInterfaceName() string {
  73. if x != nil {
  74. return x.InterfaceName
  75. }
  76. return ""
  77. }
  78. func (x *Config) GetInet4Address() []string {
  79. if x != nil {
  80. return x.Inet4Address
  81. }
  82. return nil
  83. }
  84. func (x *Config) GetInet6Address() []string {
  85. if x != nil {
  86. return x.Inet6Address
  87. }
  88. return nil
  89. }
  90. func (x *Config) GetMtu() uint32 {
  91. if x != nil {
  92. return x.Mtu
  93. }
  94. return 0
  95. }
  96. func (x *Config) GetAutoRoute() bool {
  97. if x != nil {
  98. return x.AutoRoute
  99. }
  100. return false
  101. }
  102. func (x *Config) GetStrictRoute() bool {
  103. if x != nil {
  104. return x.StrictRoute
  105. }
  106. return false
  107. }
  108. func (x *Config) GetInet4RouteAddress() []string {
  109. if x != nil {
  110. return x.Inet4RouteAddress
  111. }
  112. return nil
  113. }
  114. func (x *Config) GetInet6RouteAddress() []string {
  115. if x != nil {
  116. return x.Inet6RouteAddress
  117. }
  118. return nil
  119. }
  120. func (x *Config) GetEndpointIndependentNat() bool {
  121. if x != nil {
  122. return x.EndpointIndependentNat
  123. }
  124. return false
  125. }
  126. func (x *Config) GetUdpTimeout() int64 {
  127. if x != nil {
  128. return x.UdpTimeout
  129. }
  130. return 0
  131. }
  132. func (x *Config) GetStack() string {
  133. if x != nil {
  134. return x.Stack
  135. }
  136. return ""
  137. }
  138. func (x *Config) GetIncludeUid() []uint32 {
  139. if x != nil {
  140. return x.IncludeUid
  141. }
  142. return nil
  143. }
  144. func (x *Config) GetIncludeUidRange() []string {
  145. if x != nil {
  146. return x.IncludeUidRange
  147. }
  148. return nil
  149. }
  150. func (x *Config) GetExcludeUid() []uint32 {
  151. if x != nil {
  152. return x.ExcludeUid
  153. }
  154. return nil
  155. }
  156. func (x *Config) GetExcludeUidRange() []string {
  157. if x != nil {
  158. return x.ExcludeUidRange
  159. }
  160. return nil
  161. }
  162. func (x *Config) GetIncludeAndroidUser() []int32 {
  163. if x != nil {
  164. return x.IncludeAndroidUser
  165. }
  166. return nil
  167. }
  168. func (x *Config) GetIncludePackage() []string {
  169. if x != nil {
  170. return x.IncludePackage
  171. }
  172. return nil
  173. }
  174. func (x *Config) GetExcludePackage() []string {
  175. if x != nil {
  176. return x.ExcludePackage
  177. }
  178. return nil
  179. }
  180. func (x *Config) GetAutoDetectInterface() bool {
  181. if x != nil {
  182. return x.AutoDetectInterface
  183. }
  184. return false
  185. }
  186. func (x *Config) GetOverrideAndroidVpn() bool {
  187. if x != nil {
  188. return x.OverrideAndroidVpn
  189. }
  190. return false
  191. }
  192. var File_app_tun_config_proto protoreflect.FileDescriptor
  193. var file_app_tun_config_proto_rawDesc = []byte{
  194. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x74, 0x75, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  195. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  196. 0x2e, 0x74, 0x75, 0x6e, 0x22, 0xa2, 0x06, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  197. 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
  198. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
  199. 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x65, 0x74, 0x34, 0x5f,
  200. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x69,
  201. 0x6e, 0x65, 0x74, 0x34, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69,
  202. 0x6e, 0x65, 0x74, 0x36, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x03,
  203. 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x65, 0x74, 0x36, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  204. 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6d,
  205. 0x74, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  206. 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x75, 0x74, 0x6f, 0x52, 0x6f, 0x75, 0x74,
  207. 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x75, 0x74,
  208. 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x52,
  209. 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x65, 0x74, 0x34, 0x5f, 0x72, 0x6f,
  210. 0x75, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
  211. 0x09, 0x52, 0x11, 0x69, 0x6e, 0x65, 0x74, 0x34, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x41, 0x64, 0x64,
  212. 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x65, 0x74, 0x36, 0x5f, 0x72, 0x6f,
  213. 0x75, 0x74, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28,
  214. 0x09, 0x52, 0x11, 0x69, 0x6e, 0x65, 0x74, 0x36, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x41, 0x64, 0x64,
  215. 0x72, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  216. 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x74,
  217. 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  218. 0x49, 0x6e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x74, 0x12, 0x1f,
  219. 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20,
  220. 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
  221. 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  222. 0x73, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65,
  223. 0x5f, 0x75, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x63, 0x6c,
  224. 0x75, 0x64, 0x65, 0x55, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,
  225. 0x65, 0x5f, 0x75, 0x69, 0x64, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x03, 0x28,
  226. 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x55, 0x69, 0x64, 0x52, 0x61, 0x6e,
  227. 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x75, 0x69,
  228. 0x64, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65,
  229. 0x55, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x75,
  230. 0x69, 0x64, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f,
  231. 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x55, 0x69, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12,
  232. 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x61, 0x6e, 0x64, 0x72, 0x6f,
  233. 0x69, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x10, 0x20, 0x03, 0x28, 0x05, 0x52, 0x12, 0x69,
  234. 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x55, 0x73, 0x65,
  235. 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x61, 0x63,
  236. 0x6b, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c,
  237. 0x75, 0x64, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78,
  238. 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x12, 0x20,
  239. 0x03, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x61, 0x63, 0x6b,
  240. 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x74, 0x65,
  241. 0x63, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x64, 0x20, 0x01,
  242. 0x28, 0x08, 0x52, 0x13, 0x61, 0x75, 0x74, 0x6f, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x49, 0x6e,
  243. 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6f, 0x76, 0x65, 0x72, 0x72,
  244. 0x69, 0x64, 0x65, 0x5f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x5f, 0x76, 0x70, 0x6e, 0x18,
  245. 0x65, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x41,
  246. 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x56, 0x70, 0x6e, 0x42, 0x46, 0x0a, 0x10, 0x63, 0x6f, 0x6d,
  247. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x74, 0x75, 0x6e, 0x50, 0x01, 0x5a,
  248. 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  249. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x74,
  250. 0x75, 0x6e, 0xaa, 0x02, 0x0c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x54, 0x75,
  251. 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  252. }
  253. var (
  254. file_app_tun_config_proto_rawDescOnce sync.Once
  255. file_app_tun_config_proto_rawDescData = file_app_tun_config_proto_rawDesc
  256. )
  257. func file_app_tun_config_proto_rawDescGZIP() []byte {
  258. file_app_tun_config_proto_rawDescOnce.Do(func() {
  259. file_app_tun_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_tun_config_proto_rawDescData)
  260. })
  261. return file_app_tun_config_proto_rawDescData
  262. }
  263. var file_app_tun_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  264. var file_app_tun_config_proto_goTypes = []interface{}{
  265. (*Config)(nil), // 0: xray.app.tun.Config
  266. }
  267. var file_app_tun_config_proto_depIdxs = []int32{
  268. 0, // [0:0] is the sub-list for method output_type
  269. 0, // [0:0] is the sub-list for method input_type
  270. 0, // [0:0] is the sub-list for extension type_name
  271. 0, // [0:0] is the sub-list for extension extendee
  272. 0, // [0:0] is the sub-list for field type_name
  273. }
  274. func init() { file_app_tun_config_proto_init() }
  275. func file_app_tun_config_proto_init() {
  276. if File_app_tun_config_proto != nil {
  277. return
  278. }
  279. if !protoimpl.UnsafeEnabled {
  280. file_app_tun_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  281. switch v := v.(*Config); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. }
  293. type x struct{}
  294. out := protoimpl.TypeBuilder{
  295. File: protoimpl.DescBuilder{
  296. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  297. RawDescriptor: file_app_tun_config_proto_rawDesc,
  298. NumEnums: 0,
  299. NumMessages: 1,
  300. NumExtensions: 0,
  301. NumServices: 0,
  302. },
  303. GoTypes: file_app_tun_config_proto_goTypes,
  304. DependencyIndexes: file_app_tun_config_proto_depIdxs,
  305. MessageInfos: file_app_tun_config_proto_msgTypes,
  306. }.Build()
  307. File_app_tun_config_proto = out.File
  308. file_app_tun_config_proto_rawDesc = nil
  309. file_app_tun_config_proto_goTypes = nil
  310. file_app_tun_config_proto_depIdxs = nil
  311. }