config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. package dokodemo
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  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 Config struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  21. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  22. // List of networks that the Dokodemo accepts.
  23. // Deprecated. Use networks.
  24. //
  25. // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
  26. NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"`
  27. // List of networks that the Dokodemo accepts.
  28. Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,omitempty"`
  29. // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
  30. Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
  31. FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
  32. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  33. }
  34. func (x *Config) Reset() {
  35. *x = Config{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Config) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Config) ProtoMessage() {}
  46. func (x *Config) ProtoReflect() protoreflect.Message {
  47. mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  58. func (*Config) Descriptor() ([]byte, []int) {
  59. return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Config) GetAddress() *net.IPOrDomain {
  62. if x != nil {
  63. return x.Address
  64. }
  65. return nil
  66. }
  67. func (x *Config) GetPort() uint32 {
  68. if x != nil {
  69. return x.Port
  70. }
  71. return 0
  72. }
  73. // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
  74. func (x *Config) GetNetworkList() *net.NetworkList {
  75. if x != nil {
  76. return x.NetworkList
  77. }
  78. return nil
  79. }
  80. func (x *Config) GetNetworks() []net.Network {
  81. if x != nil {
  82. return x.Networks
  83. }
  84. return nil
  85. }
  86. // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
  87. func (x *Config) GetTimeout() uint32 {
  88. if x != nil {
  89. return x.Timeout
  90. }
  91. return 0
  92. }
  93. func (x *Config) GetFollowRedirect() bool {
  94. if x != nil {
  95. return x.FollowRedirect
  96. }
  97. return false
  98. }
  99. func (x *Config) GetUserLevel() uint32 {
  100. if x != nil {
  101. return x.UserLevel
  102. }
  103. return 0
  104. }
  105. type SimplifiedConfig struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  110. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  111. Networks *net.NetworkList `protobuf:"bytes,3,opt,name=networks,proto3" json:"networks,omitempty"`
  112. FollowRedirect bool `protobuf:"varint,4,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
  113. }
  114. func (x *SimplifiedConfig) Reset() {
  115. *x = SimplifiedConfig{}
  116. if protoimpl.UnsafeEnabled {
  117. mi := &file_proxy_dokodemo_config_proto_msgTypes[1]
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. ms.StoreMessageInfo(mi)
  120. }
  121. }
  122. func (x *SimplifiedConfig) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*SimplifiedConfig) ProtoMessage() {}
  126. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  127. mi := &file_proxy_dokodemo_config_proto_msgTypes[1]
  128. if protoimpl.UnsafeEnabled && x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  138. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  139. return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{1}
  140. }
  141. func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain {
  142. if x != nil {
  143. return x.Address
  144. }
  145. return nil
  146. }
  147. func (x *SimplifiedConfig) GetPort() uint32 {
  148. if x != nil {
  149. return x.Port
  150. }
  151. return 0
  152. }
  153. func (x *SimplifiedConfig) GetNetworks() *net.NetworkList {
  154. if x != nil {
  155. return x.Networks
  156. }
  157. return nil
  158. }
  159. func (x *SimplifiedConfig) GetFollowRedirect() bool {
  160. if x != nil {
  161. return x.FollowRedirect
  162. }
  163. return false
  164. }
  165. var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
  166. var file_proxy_dokodemo_config_proto_rawDesc = []byte{
  167. 0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f,
  168. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x76,
  169. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  170. 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  171. 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  172. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  173. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  174. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  175. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6,
  176. 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64,
  177. 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
  178. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  179. 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61,
  180. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02,
  181. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65,
  182. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  183. 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  184. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  185. 0x4c, 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  186. 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  187. 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  188. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  189. 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  190. 0x73, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01,
  191. 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
  192. 0x27, 0x0a, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65,
  193. 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
  194. 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
  195. 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73,
  196. 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xea, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70,
  197. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07,
  198. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e,
  199. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  200. 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  201. 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
  202. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3e, 0x0a,
  203. 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
  204. 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  205. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c,
  206. 0x69, 0x73, 0x74, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x27, 0x0a,
  207. 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
  208. 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65,
  209. 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x3a, 0x1c, 0x82, 0xb5, 0x18, 0x18, 0x0a, 0x07, 0x69, 0x6e,
  210. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x0d, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x2d,
  211. 0x64, 0x6f, 0x6f, 0x72, 0x42, 0x6c, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  212. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b,
  213. 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  214. 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
  215. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f,
  216. 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0xaa, 0x02, 0x19, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  217. 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6f, 0x6b, 0x6f, 0x64, 0x65,
  218. 0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  219. }
  220. var (
  221. file_proxy_dokodemo_config_proto_rawDescOnce sync.Once
  222. file_proxy_dokodemo_config_proto_rawDescData = file_proxy_dokodemo_config_proto_rawDesc
  223. )
  224. func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte {
  225. file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() {
  226. file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dokodemo_config_proto_rawDescData)
  227. })
  228. return file_proxy_dokodemo_config_proto_rawDescData
  229. }
  230. var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  231. var file_proxy_dokodemo_config_proto_goTypes = []interface{}{
  232. (*Config)(nil), // 0: v2ray.core.proxy.dokodemo.Config
  233. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.dokodemo.SimplifiedConfig
  234. (*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
  235. (*net.NetworkList)(nil), // 3: v2ray.core.common.net.NetworkList
  236. (net.Network)(0), // 4: v2ray.core.common.net.Network
  237. }
  238. var file_proxy_dokodemo_config_proto_depIdxs = []int32{
  239. 2, // 0: v2ray.core.proxy.dokodemo.Config.address:type_name -> v2ray.core.common.net.IPOrDomain
  240. 3, // 1: v2ray.core.proxy.dokodemo.Config.network_list:type_name -> v2ray.core.common.net.NetworkList
  241. 4, // 2: v2ray.core.proxy.dokodemo.Config.networks:type_name -> v2ray.core.common.net.Network
  242. 2, // 3: v2ray.core.proxy.dokodemo.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  243. 3, // 4: v2ray.core.proxy.dokodemo.SimplifiedConfig.networks:type_name -> v2ray.core.common.net.NetworkList
  244. 5, // [5:5] is the sub-list for method output_type
  245. 5, // [5:5] is the sub-list for method input_type
  246. 5, // [5:5] is the sub-list for extension type_name
  247. 5, // [5:5] is the sub-list for extension extendee
  248. 0, // [0:5] is the sub-list for field type_name
  249. }
  250. func init() { file_proxy_dokodemo_config_proto_init() }
  251. func file_proxy_dokodemo_config_proto_init() {
  252. if File_proxy_dokodemo_config_proto != nil {
  253. return
  254. }
  255. if !protoimpl.UnsafeEnabled {
  256. file_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  257. switch v := v.(*Config); i {
  258. case 0:
  259. return &v.state
  260. case 1:
  261. return &v.sizeCache
  262. case 2:
  263. return &v.unknownFields
  264. default:
  265. return nil
  266. }
  267. }
  268. file_proxy_dokodemo_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  269. switch v := v.(*SimplifiedConfig); i {
  270. case 0:
  271. return &v.state
  272. case 1:
  273. return &v.sizeCache
  274. case 2:
  275. return &v.unknownFields
  276. default:
  277. return nil
  278. }
  279. }
  280. }
  281. type x struct{}
  282. out := protoimpl.TypeBuilder{
  283. File: protoimpl.DescBuilder{
  284. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  285. RawDescriptor: file_proxy_dokodemo_config_proto_rawDesc,
  286. NumEnums: 0,
  287. NumMessages: 2,
  288. NumExtensions: 0,
  289. NumServices: 0,
  290. },
  291. GoTypes: file_proxy_dokodemo_config_proto_goTypes,
  292. DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs,
  293. MessageInfos: file_proxy_dokodemo_config_proto_msgTypes,
  294. }.Build()
  295. File_proxy_dokodemo_config_proto = out.File
  296. file_proxy_dokodemo_config_proto_rawDesc = nil
  297. file_proxy_dokodemo_config_proto_goTypes = nil
  298. file_proxy_dokodemo_config_proto_depIdxs = nil
  299. }