config.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. package dns
  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. // Server is the DNS server address. If specified, this address overrides the
  21. // original one.
  22. Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  23. UserLevel uint32 `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  24. }
  25. func (x *Config) Reset() {
  26. *x = Config{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_proxy_dns_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *Config) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Config) ProtoMessage() {}
  37. func (x *Config) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_dns_config_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  49. func (*Config) Descriptor() ([]byte, []int) {
  50. return file_proxy_dns_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Config) GetServer() *net.Endpoint {
  53. if x != nil {
  54. return x.Server
  55. }
  56. return nil
  57. }
  58. func (x *Config) GetUserLevel() uint32 {
  59. if x != nil {
  60. return x.UserLevel
  61. }
  62. return 0
  63. }
  64. type SimplifiedConfig struct {
  65. state protoimpl.MessageState
  66. sizeCache protoimpl.SizeCache
  67. unknownFields protoimpl.UnknownFields
  68. }
  69. func (x *SimplifiedConfig) Reset() {
  70. *x = SimplifiedConfig{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_proxy_dns_config_proto_msgTypes[1]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *SimplifiedConfig) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*SimplifiedConfig) ProtoMessage() {}
  81. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  82. mi := &file_proxy_dns_config_proto_msgTypes[1]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  93. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  94. return file_proxy_dns_config_proto_rawDescGZIP(), []int{1}
  95. }
  96. var File_proxy_dns_config_proto protoreflect.FileDescriptor
  97. var file_proxy_dns_config_proto_rawDesc = []byte{
  98. 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
  99. 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  100. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c,
  101. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69,
  102. 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  103. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  104. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60,
  105. 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76,
  106. 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  107. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  108. 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65,
  109. 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
  110. 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c,
  111. 0x22, 0x27, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f,
  112. 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62,
  113. 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x03, 0x64, 0x6e, 0x73, 0x42, 0x5d, 0x0a, 0x18, 0x63, 0x6f, 0x6d,
  114. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  115. 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  116. 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
  117. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e,
  118. 0x73, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50,
  119. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  120. }
  121. var (
  122. file_proxy_dns_config_proto_rawDescOnce sync.Once
  123. file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc
  124. )
  125. func file_proxy_dns_config_proto_rawDescGZIP() []byte {
  126. file_proxy_dns_config_proto_rawDescOnce.Do(func() {
  127. file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData)
  128. })
  129. return file_proxy_dns_config_proto_rawDescData
  130. }
  131. var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  132. var file_proxy_dns_config_proto_goTypes = []interface{}{
  133. (*Config)(nil), // 0: v2ray.core.proxy.dns.Config
  134. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.dns.SimplifiedConfig
  135. (*net.Endpoint)(nil), // 2: v2ray.core.common.net.Endpoint
  136. }
  137. var file_proxy_dns_config_proto_depIdxs = []int32{
  138. 2, // 0: v2ray.core.proxy.dns.Config.server:type_name -> v2ray.core.common.net.Endpoint
  139. 1, // [1:1] is the sub-list for method output_type
  140. 1, // [1:1] is the sub-list for method input_type
  141. 1, // [1:1] is the sub-list for extension type_name
  142. 1, // [1:1] is the sub-list for extension extendee
  143. 0, // [0:1] is the sub-list for field type_name
  144. }
  145. func init() { file_proxy_dns_config_proto_init() }
  146. func file_proxy_dns_config_proto_init() {
  147. if File_proxy_dns_config_proto != nil {
  148. return
  149. }
  150. if !protoimpl.UnsafeEnabled {
  151. file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  152. switch v := v.(*Config); i {
  153. case 0:
  154. return &v.state
  155. case 1:
  156. return &v.sizeCache
  157. case 2:
  158. return &v.unknownFields
  159. default:
  160. return nil
  161. }
  162. }
  163. file_proxy_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  164. switch v := v.(*SimplifiedConfig); i {
  165. case 0:
  166. return &v.state
  167. case 1:
  168. return &v.sizeCache
  169. case 2:
  170. return &v.unknownFields
  171. default:
  172. return nil
  173. }
  174. }
  175. }
  176. type x struct{}
  177. out := protoimpl.TypeBuilder{
  178. File: protoimpl.DescBuilder{
  179. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  180. RawDescriptor: file_proxy_dns_config_proto_rawDesc,
  181. NumEnums: 0,
  182. NumMessages: 2,
  183. NumExtensions: 0,
  184. NumServices: 0,
  185. },
  186. GoTypes: file_proxy_dns_config_proto_goTypes,
  187. DependencyIndexes: file_proxy_dns_config_proto_depIdxs,
  188. MessageInfos: file_proxy_dns_config_proto_msgTypes,
  189. }.Build()
  190. File_proxy_dns_config_proto = out.File
  191. file_proxy_dns_config_proto_rawDesc = nil
  192. file_proxy_dns_config_proto_goTypes = nil
  193. file_proxy_dns_config_proto_depIdxs = nil
  194. }