config.pb.go 12 KB

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