destination.pb.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package net
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. )
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Endpoint of a network connection.
  17. type Endpoint struct {
  18. Network Network `protobuf:"varint,1,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  19. Address *IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
  20. Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *Endpoint) Reset() { *m = Endpoint{} }
  26. func (m *Endpoint) String() string { return proto.CompactTextString(m) }
  27. func (*Endpoint) ProtoMessage() {}
  28. func (*Endpoint) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_77acfe1424029862, []int{0}
  30. }
  31. func (m *Endpoint) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_Endpoint.Unmarshal(m, b)
  33. }
  34. func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
  36. }
  37. func (m *Endpoint) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_Endpoint.Merge(m, src)
  39. }
  40. func (m *Endpoint) XXX_Size() int {
  41. return xxx_messageInfo_Endpoint.Size(m)
  42. }
  43. func (m *Endpoint) XXX_DiscardUnknown() {
  44. xxx_messageInfo_Endpoint.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_Endpoint proto.InternalMessageInfo
  47. func (m *Endpoint) GetNetwork() Network {
  48. if m != nil {
  49. return m.Network
  50. }
  51. return Network_Unknown
  52. }
  53. func (m *Endpoint) GetAddress() *IPOrDomain {
  54. if m != nil {
  55. return m.Address
  56. }
  57. return nil
  58. }
  59. func (m *Endpoint) GetPort() uint32 {
  60. if m != nil {
  61. return m.Port
  62. }
  63. return 0
  64. }
  65. func init() {
  66. proto.RegisterType((*Endpoint)(nil), "v2ray.core.common.net.Endpoint")
  67. }
  68. func init() {
  69. proto.RegisterFile("v2ray.com/core/common/net/destination.proto", fileDescriptor_77acfe1424029862)
  70. }
  71. var fileDescriptor_77acfe1424029862 = []byte{
  72. // 230 bytes of a gzipped FileDescriptorProto
  73. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x33, 0x2a, 0x4a,
  74. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  75. 0xcf, 0xd3, 0xcf, 0x4b, 0x2d, 0xd1, 0x4f, 0x49, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0x2c, 0xc9, 0xcc,
  76. 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x85, 0x29, 0x2e, 0x4a, 0xd5, 0x83, 0x28,
  77. 0xd4, 0xcb, 0x4b, 0x2d, 0x91, 0x52, 0xc7, 0x6d, 0x46, 0x5e, 0x6a, 0x49, 0x79, 0x7e, 0x51, 0x36,
  78. 0x44, 0x3f, 0x3e, 0x85, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x10, 0x85, 0x4a, 0x53, 0x19,
  79. 0xb9, 0x38, 0x5c, 0xf3, 0x52, 0x0a, 0xf2, 0x33, 0xf3, 0x4a, 0x84, 0x2c, 0xb8, 0xd8, 0xa1, 0xc6,
  80. 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x19, 0xc9, 0xe9, 0x61, 0x75, 0x87, 0x9e, 0x1f, 0x44, 0x55,
  81. 0x10, 0x4c, 0xb9, 0x90, 0x35, 0x17, 0x3b, 0xd4, 0x5c, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x6e, 0x23,
  82. 0x45, 0x1c, 0x3a, 0x3d, 0x03, 0xfc, 0x8b, 0x5c, 0xf2, 0x73, 0x13, 0x33, 0xf3, 0x82, 0x60, 0x3a,
  83. 0x84, 0x84, 0xb8, 0x58, 0x0a, 0xf2, 0x8b, 0x4a, 0x24, 0x98, 0x15, 0x18, 0x35, 0x78, 0x83, 0xc0,
  84. 0x6c, 0x27, 0x2b, 0x2e, 0xc9, 0xe4, 0xfc, 0x5c, 0xec, 0x86, 0x04, 0x30, 0x46, 0x31, 0xe7, 0xa5,
  85. 0x96, 0xac, 0x62, 0x12, 0x0d, 0x33, 0x0a, 0x4a, 0xac, 0xd4, 0x73, 0x06, 0x49, 0x3b, 0x43, 0xa4,
  86. 0xfd, 0x52, 0x4b, 0x92, 0xd8, 0xc0, 0x5e, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x75, 0xe4,
  87. 0xce, 0x58, 0x72, 0x01, 0x00, 0x00,
  88. }