config.pb.go 7.7 KB

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