config.pb.go 14 KB

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