config.pb.go 18 KB

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