port.pb.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. // PortRange represents a range of ports.
  15. type PortRange struct {
  16. // The port that this range starts from.
  17. From uint32 `protobuf:"varint,1,opt,name=From" json:"From,omitempty"`
  18. // The port that this range ends with (inclusive).
  19. To uint32 `protobuf:"varint,2,opt,name=To" json:"To,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *PortRange) Reset() { *m = PortRange{} }
  25. func (m *PortRange) String() string { return proto.CompactTextString(m) }
  26. func (*PortRange) ProtoMessage() {}
  27. func (*PortRange) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_port_8c6b320a9a741caa, []int{0}
  29. }
  30. func (m *PortRange) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_PortRange.Unmarshal(m, b)
  32. }
  33. func (m *PortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_PortRange.Marshal(b, m, deterministic)
  35. }
  36. func (dst *PortRange) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_PortRange.Merge(dst, src)
  38. }
  39. func (m *PortRange) XXX_Size() int {
  40. return xxx_messageInfo_PortRange.Size(m)
  41. }
  42. func (m *PortRange) XXX_DiscardUnknown() {
  43. xxx_messageInfo_PortRange.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_PortRange proto.InternalMessageInfo
  46. func (m *PortRange) GetFrom() uint32 {
  47. if m != nil {
  48. return m.From
  49. }
  50. return 0
  51. }
  52. func (m *PortRange) GetTo() uint32 {
  53. if m != nil {
  54. return m.To
  55. }
  56. return 0
  57. }
  58. func init() {
  59. proto.RegisterType((*PortRange)(nil), "v2ray.core.common.net.PortRange")
  60. }
  61. func init() {
  62. proto.RegisterFile("v2ray.com/core/common/net/port.proto", fileDescriptor_port_8c6b320a9a741caa)
  63. }
  64. var fileDescriptor_port_8c6b320a9a741caa = []byte{
  65. // 158 bytes of a gzipped FileDescriptorProto
  66. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x33, 0x2a, 0x4a,
  67. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  68. 0xcf, 0xd3, 0xcf, 0x4b, 0x2d, 0xd1, 0x2f, 0xc8, 0x2f, 0x2a, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
  69. 0x17, 0x12, 0x85, 0xa9, 0x2a, 0x4a, 0xd5, 0x83, 0xa8, 0xd0, 0xcb, 0x4b, 0x2d, 0x51, 0xd2, 0xe7,
  70. 0xe2, 0x0c, 0xc8, 0x2f, 0x2a, 0x09, 0x4a, 0xcc, 0x4b, 0x4f, 0x15, 0x12, 0xe2, 0x62, 0x71, 0x2b,
  71. 0xca, 0xcf, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0d, 0x02, 0xb3, 0x85, 0xf8, 0xb8, 0x98, 0x42,
  72. 0xf2, 0x25, 0x98, 0xc0, 0x22, 0x4c, 0x21, 0xf9, 0x4e, 0x56, 0x5c, 0x92, 0xc9, 0xf9, 0xb9, 0x7a,
  73. 0x58, 0x4d, 0x0b, 0x60, 0x8c, 0x62, 0xce, 0x4b, 0x2d, 0x59, 0xc5, 0x24, 0x1a, 0x66, 0x14, 0x94,
  74. 0x58, 0xa9, 0xe7, 0x0c, 0x92, 0x76, 0x86, 0x48, 0xfb, 0xa5, 0x96, 0x24, 0xb1, 0x81, 0x9d, 0x62,
  75. 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x0f, 0x6a, 0xc0, 0xb2, 0x00, 0x00, 0x00,
  76. }