config.pb.go 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package dns
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. net "v2ray.com/core/common/net"
  7. )
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  17. type Config struct {
  18. // Server is the DNS server address. If specified, this address overrides the original one.
  19. Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Config) Reset() { *m = Config{} }
  25. func (m *Config) String() string { return proto.CompactTextString(m) }
  26. func (*Config) ProtoMessage() {}
  27. func (*Config) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_c49bb2d51e576d57, []int{0}
  29. }
  30. func (m *Config) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Config.Unmarshal(m, b)
  32. }
  33. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  35. }
  36. func (m *Config) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Config.Merge(m, src)
  38. }
  39. func (m *Config) XXX_Size() int {
  40. return xxx_messageInfo_Config.Size(m)
  41. }
  42. func (m *Config) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Config.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Config proto.InternalMessageInfo
  46. func (m *Config) GetServer() *net.Endpoint {
  47. if m != nil {
  48. return m.Server
  49. }
  50. return nil
  51. }
  52. func init() {
  53. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.dns.Config")
  54. }
  55. func init() {
  56. proto.RegisterFile("v2ray.com/core/proxy/dns/config.proto", fileDescriptor_c49bb2d51e576d57)
  57. }
  58. var fileDescriptor_c49bb2d51e576d57 = []byte{
  59. // 190 bytes of a gzipped FileDescriptorProto
  60. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8e, 0x31, 0xab, 0xc2, 0x30,
  61. 0x14, 0x46, 0xe9, 0x7b, 0xd0, 0x21, 0x6f, 0x2b, 0x1d, 0xca, 0x5b, 0xde, 0x43, 0x10, 0x04, 0xe1,
  62. 0x06, 0xea, 0xa0, 0xab, 0x56, 0xf7, 0xd2, 0xc1, 0xc1, 0xad, 0x26, 0x51, 0x32, 0xe4, 0xde, 0x72,
  63. 0x13, 0x8a, 0xfd, 0x4b, 0xfe, 0x4a, 0x31, 0x55, 0x10, 0x71, 0xfe, 0xce, 0x77, 0x38, 0x62, 0xda,
  64. 0x97, 0xdc, 0x0e, 0xa0, 0xc8, 0x49, 0x45, 0x6c, 0x64, 0xc7, 0x74, 0x19, 0xa4, 0x46, 0x2f, 0x15,
  65. 0xe1, 0xc9, 0x9e, 0xa1, 0x63, 0x0a, 0x94, 0xe5, 0x4f, 0x8c, 0x0d, 0x44, 0x04, 0x34, 0xfa, 0xdf,
  66. 0xf9, 0xdb, 0x59, 0x91, 0x73, 0x84, 0x12, 0x4d, 0x90, 0xda, 0xf8, 0x60, 0xb1, 0x0d, 0x96, 0x70,
  67. 0x54, 0x4c, 0xd6, 0x22, 0xad, 0xa2, 0x32, 0x5b, 0x8a, 0xd4, 0x1b, 0xee, 0x0d, 0x17, 0xc9, 0x7f,
  68. 0x32, 0xfb, 0x29, 0xff, 0xe0, 0xc5, 0x3e, 0x3a, 0x00, 0x4d, 0x80, 0x1d, 0xea, 0x8e, 0x2c, 0x86,
  69. 0xe6, 0x81, 0x6f, 0x56, 0xa2, 0x50, 0xe4, 0xe0, 0x53, 0x4b, 0x9d, 0x1c, 0xbe, 0x35, 0xfa, 0xeb,
  70. 0x57, 0xbe, 0x2f, 0x9b, 0x76, 0x80, 0xea, 0xbe, 0xd6, 0x71, 0xdd, 0xa2, 0x3f, 0xa6, 0xb1, 0x61,
  71. 0x71, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x84, 0x9c, 0x79, 0xef, 0x00, 0x00, 0x00,
  72. }