destination.pb.go 3.8 KB

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