config.pb.go 7.0 KB

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