config.pb.go 8.9 KB

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