config.pb.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. package dokodemo
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. net "v2ray.com/core/common/net"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  24. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  25. // List of networks that the Dokodemo accepts.
  26. // Deprecated. Use networks.
  27. //
  28. // Deprecated: Do not use.
  29. NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"`
  30. // List of networks that the Dokodemo accepts.
  31. Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,omitempty"`
  32. // Deprecated: Do not use.
  33. Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
  34. FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
  35. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  36. }
  37. func (x *Config) Reset() {
  38. *x = Config{}
  39. if protoimpl.UnsafeEnabled {
  40. mi := &file_v2ray_com_core_proxy_dokodemo_config_proto_msgTypes[0]
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. ms.StoreMessageInfo(mi)
  43. }
  44. }
  45. func (x *Config) String() string {
  46. return protoimpl.X.MessageStringOf(x)
  47. }
  48. func (*Config) ProtoMessage() {}
  49. func (x *Config) ProtoReflect() protoreflect.Message {
  50. mi := &file_v2ray_com_core_proxy_dokodemo_config_proto_msgTypes[0]
  51. if protoimpl.UnsafeEnabled && x != nil {
  52. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  53. if ms.LoadMessageInfo() == nil {
  54. ms.StoreMessageInfo(mi)
  55. }
  56. return ms
  57. }
  58. return mi.MessageOf(x)
  59. }
  60. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  61. func (*Config) Descriptor() ([]byte, []int) {
  62. return file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescGZIP(), []int{0}
  63. }
  64. func (x *Config) GetAddress() *net.IPOrDomain {
  65. if x != nil {
  66. return x.Address
  67. }
  68. return nil
  69. }
  70. func (x *Config) GetPort() uint32 {
  71. if x != nil {
  72. return x.Port
  73. }
  74. return 0
  75. }
  76. // Deprecated: Do not use.
  77. func (x *Config) GetNetworkList() *net.NetworkList {
  78. if x != nil {
  79. return x.NetworkList
  80. }
  81. return nil
  82. }
  83. func (x *Config) GetNetworks() []net.Network {
  84. if x != nil {
  85. return x.Networks
  86. }
  87. return nil
  88. }
  89. // Deprecated: Do not use.
  90. func (x *Config) GetTimeout() uint32 {
  91. if x != nil {
  92. return x.Timeout
  93. }
  94. return 0
  95. }
  96. func (x *Config) GetFollowRedirect() bool {
  97. if x != nil {
  98. return x.FollowRedirect
  99. }
  100. return false
  101. }
  102. func (x *Config) GetUserLevel() uint32 {
  103. if x != nil {
  104. return x.UserLevel
  105. }
  106. return 0
  107. }
  108. var File_v2ray_com_core_proxy_dokodemo_config_proto protoreflect.FileDescriptor
  109. var file_v2ray_com_core_proxy_dokodemo_config_proto_rawDesc = []byte{
  110. 0x0a, 0x2a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  111. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x2f,
  112. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x76, 0x32,
  113. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64,
  114. 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x1a, 0x27, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  115. 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  116. 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  117. 0x1a, 0x27, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  118. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77,
  119. 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x02, 0x0a, 0x06, 0x43, 0x6f,
  120. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
  121. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  122. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50,
  123. 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  124. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
  125. 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  126. 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32,
  127. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  128. 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x42,
  129. 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74,
  130. 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03,
  131. 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  132. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f,
  133. 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x1c, 0x0a, 0x07,
  134. 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18,
  135. 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x6f,
  136. 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20,
  137. 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x64, 0x69, 0x72,
  138. 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65,
  139. 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76,
  140. 0x65, 0x6c, 0x42, 0x47, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  141. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b, 0x6f, 0x64,
  142. 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x08, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0xaa,
  143. 0x02, 0x19, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  144. 0x78, 0x79, 0x2e, 0x44, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
  145. 0x74, 0x6f, 0x33,
  146. }
  147. var (
  148. file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescOnce sync.Once
  149. file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescData = file_v2ray_com_core_proxy_dokodemo_config_proto_rawDesc
  150. )
  151. func file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescGZIP() []byte {
  152. file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescOnce.Do(func() {
  153. file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescData)
  154. })
  155. return file_v2ray_com_core_proxy_dokodemo_config_proto_rawDescData
  156. }
  157. var file_v2ray_com_core_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  158. var file_v2ray_com_core_proxy_dokodemo_config_proto_goTypes = []interface{}{
  159. (*Config)(nil), // 0: v2ray.core.proxy.dokodemo.Config
  160. (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
  161. (*net.NetworkList)(nil), // 2: v2ray.core.common.net.NetworkList
  162. (net.Network)(0), // 3: v2ray.core.common.net.Network
  163. }
  164. var file_v2ray_com_core_proxy_dokodemo_config_proto_depIdxs = []int32{
  165. 1, // 0: v2ray.core.proxy.dokodemo.Config.address:type_name -> v2ray.core.common.net.IPOrDomain
  166. 2, // 1: v2ray.core.proxy.dokodemo.Config.network_list:type_name -> v2ray.core.common.net.NetworkList
  167. 3, // 2: v2ray.core.proxy.dokodemo.Config.networks:type_name -> v2ray.core.common.net.Network
  168. 3, // [3:3] is the sub-list for method output_type
  169. 3, // [3:3] is the sub-list for method input_type
  170. 3, // [3:3] is the sub-list for extension type_name
  171. 3, // [3:3] is the sub-list for extension extendee
  172. 0, // [0:3] is the sub-list for field type_name
  173. }
  174. func init() { file_v2ray_com_core_proxy_dokodemo_config_proto_init() }
  175. func file_v2ray_com_core_proxy_dokodemo_config_proto_init() {
  176. if File_v2ray_com_core_proxy_dokodemo_config_proto != nil {
  177. return
  178. }
  179. if !protoimpl.UnsafeEnabled {
  180. file_v2ray_com_core_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  181. switch v := v.(*Config); i {
  182. case 0:
  183. return &v.state
  184. case 1:
  185. return &v.sizeCache
  186. case 2:
  187. return &v.unknownFields
  188. default:
  189. return nil
  190. }
  191. }
  192. }
  193. type x struct{}
  194. out := protoimpl.TypeBuilder{
  195. File: protoimpl.DescBuilder{
  196. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  197. RawDescriptor: file_v2ray_com_core_proxy_dokodemo_config_proto_rawDesc,
  198. NumEnums: 0,
  199. NumMessages: 1,
  200. NumExtensions: 0,
  201. NumServices: 0,
  202. },
  203. GoTypes: file_v2ray_com_core_proxy_dokodemo_config_proto_goTypes,
  204. DependencyIndexes: file_v2ray_com_core_proxy_dokodemo_config_proto_depIdxs,
  205. MessageInfos: file_v2ray_com_core_proxy_dokodemo_config_proto_msgTypes,
  206. }.Build()
  207. File_v2ray_com_core_proxy_dokodemo_config_proto = out.File
  208. file_v2ray_com_core_proxy_dokodemo_config_proto_rawDesc = nil
  209. file_v2ray_com_core_proxy_dokodemo_config_proto_goTypes = nil
  210. file_v2ray_com_core_proxy_dokodemo_config_proto_depIdxs = nil
  211. }