config.pb.go 9.1 KB

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