config.pb.go 13 KB

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