config.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. package freedom
  2. import (
  3. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type ProtocolReplacement int32
  17. const (
  18. ProtocolReplacement_IDENTITY ProtocolReplacement = 0
  19. ProtocolReplacement_FORCE_TCP ProtocolReplacement = 1
  20. ProtocolReplacement_FORCE_UDP ProtocolReplacement = 2
  21. )
  22. // Enum value maps for ProtocolReplacement.
  23. var (
  24. ProtocolReplacement_name = map[int32]string{
  25. 0: "IDENTITY",
  26. 1: "FORCE_TCP",
  27. 2: "FORCE_UDP",
  28. }
  29. ProtocolReplacement_value = map[string]int32{
  30. "IDENTITY": 0,
  31. "FORCE_TCP": 1,
  32. "FORCE_UDP": 2,
  33. }
  34. )
  35. func (x ProtocolReplacement) Enum() *ProtocolReplacement {
  36. p := new(ProtocolReplacement)
  37. *p = x
  38. return p
  39. }
  40. func (x ProtocolReplacement) String() string {
  41. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  42. }
  43. func (ProtocolReplacement) Descriptor() protoreflect.EnumDescriptor {
  44. return file_proxy_freedom_config_proto_enumTypes[0].Descriptor()
  45. }
  46. func (ProtocolReplacement) Type() protoreflect.EnumType {
  47. return &file_proxy_freedom_config_proto_enumTypes[0]
  48. }
  49. func (x ProtocolReplacement) Number() protoreflect.EnumNumber {
  50. return protoreflect.EnumNumber(x)
  51. }
  52. // Deprecated: Use ProtocolReplacement.Descriptor instead.
  53. func (ProtocolReplacement) EnumDescriptor() ([]byte, []int) {
  54. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
  55. }
  56. type Config_DomainStrategy int32
  57. const (
  58. Config_AS_IS Config_DomainStrategy = 0
  59. Config_USE_IP Config_DomainStrategy = 1
  60. Config_USE_IP4 Config_DomainStrategy = 2
  61. Config_USE_IP6 Config_DomainStrategy = 3
  62. )
  63. // Enum value maps for Config_DomainStrategy.
  64. var (
  65. Config_DomainStrategy_name = map[int32]string{
  66. 0: "AS_IS",
  67. 1: "USE_IP",
  68. 2: "USE_IP4",
  69. 3: "USE_IP6",
  70. }
  71. Config_DomainStrategy_value = map[string]int32{
  72. "AS_IS": 0,
  73. "USE_IP": 1,
  74. "USE_IP4": 2,
  75. "USE_IP6": 3,
  76. }
  77. )
  78. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  79. p := new(Config_DomainStrategy)
  80. *p = x
  81. return p
  82. }
  83. func (x Config_DomainStrategy) String() string {
  84. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  85. }
  86. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  87. return file_proxy_freedom_config_proto_enumTypes[1].Descriptor()
  88. }
  89. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  90. return &file_proxy_freedom_config_proto_enumTypes[1]
  91. }
  92. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  93. return protoreflect.EnumNumber(x)
  94. }
  95. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  96. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  97. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1, 0}
  98. }
  99. type DestinationOverride struct {
  100. state protoimpl.MessageState
  101. sizeCache protoimpl.SizeCache
  102. unknownFields protoimpl.UnknownFields
  103. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  104. }
  105. func (x *DestinationOverride) Reset() {
  106. *x = DestinationOverride{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *DestinationOverride) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*DestinationOverride) ProtoMessage() {}
  117. func (x *DestinationOverride) ProtoReflect() protoreflect.Message {
  118. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.
  129. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  130. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
  131. }
  132. func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  133. if x != nil {
  134. return x.Server
  135. }
  136. return nil
  137. }
  138. type Config struct {
  139. state protoimpl.MessageState
  140. sizeCache protoimpl.SizeCache
  141. unknownFields protoimpl.UnknownFields
  142. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  143. // Deprecated: Marked as deprecated in proxy/freedom/config.proto.
  144. Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
  145. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  146. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  147. ProtocolReplacement ProtocolReplacement `protobuf:"varint,5,opt,name=protocol_replacement,json=protocolReplacement,proto3,enum=v2ray.core.proxy.freedom.ProtocolReplacement" json:"protocol_replacement,omitempty"`
  148. }
  149. func (x *Config) Reset() {
  150. *x = Config{}
  151. if protoimpl.UnsafeEnabled {
  152. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. ms.StoreMessageInfo(mi)
  155. }
  156. }
  157. func (x *Config) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*Config) ProtoMessage() {}
  161. func (x *Config) ProtoReflect() protoreflect.Message {
  162. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  163. if protoimpl.UnsafeEnabled && x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  173. func (*Config) Descriptor() ([]byte, []int) {
  174. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1}
  175. }
  176. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  177. if x != nil {
  178. return x.DomainStrategy
  179. }
  180. return Config_AS_IS
  181. }
  182. // Deprecated: Marked as deprecated in proxy/freedom/config.proto.
  183. func (x *Config) GetTimeout() uint32 {
  184. if x != nil {
  185. return x.Timeout
  186. }
  187. return 0
  188. }
  189. func (x *Config) GetDestinationOverride() *DestinationOverride {
  190. if x != nil {
  191. return x.DestinationOverride
  192. }
  193. return nil
  194. }
  195. func (x *Config) GetUserLevel() uint32 {
  196. if x != nil {
  197. return x.UserLevel
  198. }
  199. return 0
  200. }
  201. func (x *Config) GetProtocolReplacement() ProtocolReplacement {
  202. if x != nil {
  203. return x.ProtocolReplacement
  204. }
  205. return ProtocolReplacement_IDENTITY
  206. }
  207. type SimplifiedConfig struct {
  208. state protoimpl.MessageState
  209. sizeCache protoimpl.SizeCache
  210. unknownFields protoimpl.UnknownFields
  211. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  212. ProtocolReplacement ProtocolReplacement `protobuf:"varint,5,opt,name=protocol_replacement,json=protocolReplacement,proto3,enum=v2ray.core.proxy.freedom.ProtocolReplacement" json:"protocol_replacement,omitempty"`
  213. }
  214. func (x *SimplifiedConfig) Reset() {
  215. *x = SimplifiedConfig{}
  216. if protoimpl.UnsafeEnabled {
  217. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. ms.StoreMessageInfo(mi)
  220. }
  221. }
  222. func (x *SimplifiedConfig) String() string {
  223. return protoimpl.X.MessageStringOf(x)
  224. }
  225. func (*SimplifiedConfig) ProtoMessage() {}
  226. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  227. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  228. if protoimpl.UnsafeEnabled && x != nil {
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. if ms.LoadMessageInfo() == nil {
  231. ms.StoreMessageInfo(mi)
  232. }
  233. return ms
  234. }
  235. return mi.MessageOf(x)
  236. }
  237. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  238. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  239. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{2}
  240. }
  241. func (x *SimplifiedConfig) GetDestinationOverride() *DestinationOverride {
  242. if x != nil {
  243. return x.DestinationOverride
  244. }
  245. return nil
  246. }
  247. func (x *SimplifiedConfig) GetProtocolReplacement() ProtocolReplacement {
  248. if x != nil {
  249. return x.ProtocolReplacement
  250. }
  251. return ProtocolReplacement_IDENTITY
  252. }
  253. var File_proxy_freedom_config_proto protoreflect.FileDescriptor
  254. var file_proxy_freedom_config_proto_rawDesc = []byte{
  255. 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2f,
  256. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32,
  257. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66,
  258. 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  259. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73,
  260. 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  261. 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  262. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x13, 0x44,
  263. 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69,
  264. 0x64, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
  265. 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  266. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
  267. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06,
  268. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0xa6, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  269. 0x67, 0x12, 0x58, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61,
  270. 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72,
  271. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72,
  272. 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d,
  273. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d,
  274. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1c, 0x0a, 0x07, 0x74,
  275. 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01,
  276. 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x60, 0x0a, 0x14, 0x64, 0x65, 0x73,
  277. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
  278. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  279. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64,
  280. 0x6f, 0x6d, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76,
  281. 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74,
  282. 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75,
  283. 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
  284. 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x60, 0x0a, 0x14, 0x70, 0x72,
  285. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65,
  286. 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  287. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65,
  288. 0x64, 0x6f, 0x6d, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c,
  289. 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  290. 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0e,
  291. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09,
  292. 0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45,
  293. 0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34,
  294. 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x22,
  295. 0xef, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f,
  296. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x60, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74,
  297. 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01,
  298. 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  299. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x44, 0x65,
  300. 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64,
  301. 0x65, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76,
  302. 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x60, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  303. 0x6f, 0x6c, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05,
  304. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  305. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e,
  306. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d,
  307. 0x65, 0x6e, 0x74, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x65, 0x70,
  308. 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x08,
  309. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x07, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f,
  310. 0x6d, 0x2a, 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x65, 0x70,
  311. 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x44, 0x45, 0x4e,
  312. 0x54, 0x49, 0x54, 0x59, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f,
  313. 0x54, 0x43, 0x50, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x55,
  314. 0x44, 0x50, 0x10, 0x02, 0x42, 0x69, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  315. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65,
  316. 0x65, 0x64, 0x6f, 0x6d, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  317. 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63,
  318. 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65,
  319. 0x65, 0x64, 0x6f, 0x6d, 0xaa, 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  320. 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x46, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x62,
  321. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  322. }
  323. var (
  324. file_proxy_freedom_config_proto_rawDescOnce sync.Once
  325. file_proxy_freedom_config_proto_rawDescData = file_proxy_freedom_config_proto_rawDesc
  326. )
  327. func file_proxy_freedom_config_proto_rawDescGZIP() []byte {
  328. file_proxy_freedom_config_proto_rawDescOnce.Do(func() {
  329. file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_freedom_config_proto_rawDescData)
  330. })
  331. return file_proxy_freedom_config_proto_rawDescData
  332. }
  333. var file_proxy_freedom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  334. var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  335. var file_proxy_freedom_config_proto_goTypes = []any{
  336. (ProtocolReplacement)(0), // 0: v2ray.core.proxy.freedom.ProtocolReplacement
  337. (Config_DomainStrategy)(0), // 1: v2ray.core.proxy.freedom.Config.DomainStrategy
  338. (*DestinationOverride)(nil), // 2: v2ray.core.proxy.freedom.DestinationOverride
  339. (*Config)(nil), // 3: v2ray.core.proxy.freedom.Config
  340. (*SimplifiedConfig)(nil), // 4: v2ray.core.proxy.freedom.SimplifiedConfig
  341. (*protocol.ServerEndpoint)(nil), // 5: v2ray.core.common.protocol.ServerEndpoint
  342. }
  343. var file_proxy_freedom_config_proto_depIdxs = []int32{
  344. 5, // 0: v2ray.core.proxy.freedom.DestinationOverride.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  345. 1, // 1: v2ray.core.proxy.freedom.Config.domain_strategy:type_name -> v2ray.core.proxy.freedom.Config.DomainStrategy
  346. 2, // 2: v2ray.core.proxy.freedom.Config.destination_override:type_name -> v2ray.core.proxy.freedom.DestinationOverride
  347. 0, // 3: v2ray.core.proxy.freedom.Config.protocol_replacement:type_name -> v2ray.core.proxy.freedom.ProtocolReplacement
  348. 2, // 4: v2ray.core.proxy.freedom.SimplifiedConfig.destination_override:type_name -> v2ray.core.proxy.freedom.DestinationOverride
  349. 0, // 5: v2ray.core.proxy.freedom.SimplifiedConfig.protocol_replacement:type_name -> v2ray.core.proxy.freedom.ProtocolReplacement
  350. 6, // [6:6] is the sub-list for method output_type
  351. 6, // [6:6] is the sub-list for method input_type
  352. 6, // [6:6] is the sub-list for extension type_name
  353. 6, // [6:6] is the sub-list for extension extendee
  354. 0, // [0:6] is the sub-list for field type_name
  355. }
  356. func init() { file_proxy_freedom_config_proto_init() }
  357. func file_proxy_freedom_config_proto_init() {
  358. if File_proxy_freedom_config_proto != nil {
  359. return
  360. }
  361. if !protoimpl.UnsafeEnabled {
  362. file_proxy_freedom_config_proto_msgTypes[0].Exporter = func(v any, i int) any {
  363. switch v := v.(*DestinationOverride); i {
  364. case 0:
  365. return &v.state
  366. case 1:
  367. return &v.sizeCache
  368. case 2:
  369. return &v.unknownFields
  370. default:
  371. return nil
  372. }
  373. }
  374. file_proxy_freedom_config_proto_msgTypes[1].Exporter = func(v any, i int) any {
  375. switch v := v.(*Config); i {
  376. case 0:
  377. return &v.state
  378. case 1:
  379. return &v.sizeCache
  380. case 2:
  381. return &v.unknownFields
  382. default:
  383. return nil
  384. }
  385. }
  386. file_proxy_freedom_config_proto_msgTypes[2].Exporter = func(v any, i int) any {
  387. switch v := v.(*SimplifiedConfig); i {
  388. case 0:
  389. return &v.state
  390. case 1:
  391. return &v.sizeCache
  392. case 2:
  393. return &v.unknownFields
  394. default:
  395. return nil
  396. }
  397. }
  398. }
  399. type x struct{}
  400. out := protoimpl.TypeBuilder{
  401. File: protoimpl.DescBuilder{
  402. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  403. RawDescriptor: file_proxy_freedom_config_proto_rawDesc,
  404. NumEnums: 2,
  405. NumMessages: 3,
  406. NumExtensions: 0,
  407. NumServices: 0,
  408. },
  409. GoTypes: file_proxy_freedom_config_proto_goTypes,
  410. DependencyIndexes: file_proxy_freedom_config_proto_depIdxs,
  411. EnumInfos: file_proxy_freedom_config_proto_enumTypes,
  412. MessageInfos: file_proxy_freedom_config_proto_msgTypes,
  413. }.Build()
  414. File_proxy_freedom_config_proto = out.File
  415. file_proxy_freedom_config_proto_rawDesc = nil
  416. file_proxy_freedom_config_proto_goTypes = nil
  417. file_proxy_freedom_config_proto_depIdxs = nil
  418. }