config.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package dns
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. net "v2ray.com/core/common/net"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. // Server is the DNS server address. If specified, this address overrides the original one.
  24. Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  25. }
  26. func (x *Config) Reset() {
  27. *x = Config{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_v2ray_com_core_proxy_dns_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *Config) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Config) ProtoMessage() {}
  38. func (x *Config) ProtoReflect() protoreflect.Message {
  39. mi := &file_v2ray_com_core_proxy_dns_config_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  50. func (*Config) Descriptor() ([]byte, []int) {
  51. return file_v2ray_com_core_proxy_dns_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Config) GetServer() *net.Endpoint {
  54. if x != nil {
  55. return x.Server
  56. }
  57. return nil
  58. }
  59. var File_v2ray_com_core_proxy_dns_config_proto protoreflect.FileDescriptor
  60. var file_v2ray_com_core_proxy_dns_config_proto_rawDesc = []byte{
  61. 0x0a, 0x25, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  62. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
  63. 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  64. 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x2b, 0x76,
  65. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f,
  66. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61,
  67. 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x06, 0x43, 0x6f,
  68. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01,
  69. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  70. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64,
  71. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x38, 0x0a,
  72. 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  73. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x03, 0x64, 0x6e, 0x73,
  74. 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72,
  75. 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  76. }
  77. var (
  78. file_v2ray_com_core_proxy_dns_config_proto_rawDescOnce sync.Once
  79. file_v2ray_com_core_proxy_dns_config_proto_rawDescData = file_v2ray_com_core_proxy_dns_config_proto_rawDesc
  80. )
  81. func file_v2ray_com_core_proxy_dns_config_proto_rawDescGZIP() []byte {
  82. file_v2ray_com_core_proxy_dns_config_proto_rawDescOnce.Do(func() {
  83. file_v2ray_com_core_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_dns_config_proto_rawDescData)
  84. })
  85. return file_v2ray_com_core_proxy_dns_config_proto_rawDescData
  86. }
  87. var file_v2ray_com_core_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  88. var file_v2ray_com_core_proxy_dns_config_proto_goTypes = []interface{}{
  89. (*Config)(nil), // 0: v2ray.core.proxy.dns.Config
  90. (*net.Endpoint)(nil), // 1: v2ray.core.common.net.Endpoint
  91. }
  92. var file_v2ray_com_core_proxy_dns_config_proto_depIdxs = []int32{
  93. 1, // 0: v2ray.core.proxy.dns.Config.server:type_name -> v2ray.core.common.net.Endpoint
  94. 1, // [1:1] is the sub-list for method output_type
  95. 1, // [1:1] is the sub-list for method input_type
  96. 1, // [1:1] is the sub-list for extension type_name
  97. 1, // [1:1] is the sub-list for extension extendee
  98. 0, // [0:1] is the sub-list for field type_name
  99. }
  100. func init() { file_v2ray_com_core_proxy_dns_config_proto_init() }
  101. func file_v2ray_com_core_proxy_dns_config_proto_init() {
  102. if File_v2ray_com_core_proxy_dns_config_proto != nil {
  103. return
  104. }
  105. if !protoimpl.UnsafeEnabled {
  106. file_v2ray_com_core_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  107. switch v := v.(*Config); i {
  108. case 0:
  109. return &v.state
  110. case 1:
  111. return &v.sizeCache
  112. case 2:
  113. return &v.unknownFields
  114. default:
  115. return nil
  116. }
  117. }
  118. }
  119. type x struct{}
  120. out := protoimpl.TypeBuilder{
  121. File: protoimpl.DescBuilder{
  122. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  123. RawDescriptor: file_v2ray_com_core_proxy_dns_config_proto_rawDesc,
  124. NumEnums: 0,
  125. NumMessages: 1,
  126. NumExtensions: 0,
  127. NumServices: 0,
  128. },
  129. GoTypes: file_v2ray_com_core_proxy_dns_config_proto_goTypes,
  130. DependencyIndexes: file_v2ray_com_core_proxy_dns_config_proto_depIdxs,
  131. MessageInfos: file_v2ray_com_core_proxy_dns_config_proto_msgTypes,
  132. }.Build()
  133. File_v2ray_com_core_proxy_dns_config_proto = out.File
  134. file_v2ray_com_core_proxy_dns_config_proto_rawDesc = nil
  135. file_v2ray_com_core_proxy_dns_config_proto_goTypes = nil
  136. file_v2ray_com_core_proxy_dns_config_proto_depIdxs = nil
  137. }