config.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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, 0x2b, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f,
  112. 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x17, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62,
  113. 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x05, 0x12, 0x03, 0x64, 0x6e, 0x73, 0x42, 0x5d, 0x0a,
  114. 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  115. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74,
  116. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  117. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78,
  118. 0x79, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  119. 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72,
  120. 0x6f, 0x74, 0x6f, 0x33,
  121. }
  122. var (
  123. file_proxy_dns_config_proto_rawDescOnce sync.Once
  124. file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc
  125. )
  126. func file_proxy_dns_config_proto_rawDescGZIP() []byte {
  127. file_proxy_dns_config_proto_rawDescOnce.Do(func() {
  128. file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData)
  129. })
  130. return file_proxy_dns_config_proto_rawDescData
  131. }
  132. var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  133. var file_proxy_dns_config_proto_goTypes = []interface{}{
  134. (*Config)(nil), // 0: v2ray.core.proxy.dns.Config
  135. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.dns.SimplifiedConfig
  136. (*net.Endpoint)(nil), // 2: v2ray.core.common.net.Endpoint
  137. }
  138. var file_proxy_dns_config_proto_depIdxs = []int32{
  139. 2, // 0: v2ray.core.proxy.dns.Config.server:type_name -> v2ray.core.common.net.Endpoint
  140. 1, // [1:1] is the sub-list for method output_type
  141. 1, // [1:1] is the sub-list for method input_type
  142. 1, // [1:1] is the sub-list for extension type_name
  143. 1, // [1:1] is the sub-list for extension extendee
  144. 0, // [0:1] is the sub-list for field type_name
  145. }
  146. func init() { file_proxy_dns_config_proto_init() }
  147. func file_proxy_dns_config_proto_init() {
  148. if File_proxy_dns_config_proto != nil {
  149. return
  150. }
  151. if !protoimpl.UnsafeEnabled {
  152. file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  153. switch v := v.(*Config); i {
  154. case 0:
  155. return &v.state
  156. case 1:
  157. return &v.sizeCache
  158. case 2:
  159. return &v.unknownFields
  160. default:
  161. return nil
  162. }
  163. }
  164. file_proxy_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  165. switch v := v.(*SimplifiedConfig); i {
  166. case 0:
  167. return &v.state
  168. case 1:
  169. return &v.sizeCache
  170. case 2:
  171. return &v.unknownFields
  172. default:
  173. return nil
  174. }
  175. }
  176. }
  177. type x struct{}
  178. out := protoimpl.TypeBuilder{
  179. File: protoimpl.DescBuilder{
  180. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  181. RawDescriptor: file_proxy_dns_config_proto_rawDesc,
  182. NumEnums: 0,
  183. NumMessages: 2,
  184. NumExtensions: 0,
  185. NumServices: 0,
  186. },
  187. GoTypes: file_proxy_dns_config_proto_goTypes,
  188. DependencyIndexes: file_proxy_dns_config_proto_depIdxs,
  189. MessageInfos: file_proxy_dns_config_proto_msgTypes,
  190. }.Build()
  191. File_proxy_dns_config_proto = out.File
  192. file_proxy_dns_config_proto_rawDesc = nil
  193. file_proxy_dns_config_proto_goTypes = nil
  194. file_proxy_dns_config_proto_depIdxs = nil
  195. }