network.pb.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. type Network int32
  15. const (
  16. Network_Unknown Network = 0
  17. Network_RawTCP Network = 1 // Deprecated: Do not use.
  18. Network_TCP Network = 2
  19. Network_UDP Network = 3
  20. )
  21. var Network_name = map[int32]string{
  22. 0: "Unknown",
  23. 1: "RawTCP",
  24. 2: "TCP",
  25. 3: "UDP",
  26. }
  27. var Network_value = map[string]int32{
  28. "Unknown": 0,
  29. "RawTCP": 1,
  30. "TCP": 2,
  31. "UDP": 3,
  32. }
  33. func (x Network) String() string {
  34. return proto.EnumName(Network_name, int32(x))
  35. }
  36. func (Network) EnumDescriptor() ([]byte, []int) {
  37. return fileDescriptor_6a103d5ccb9e785e, []int{0}
  38. }
  39. // NetworkList is a list of Networks.
  40. type NetworkList struct {
  41. Network []Network `protobuf:"varint,1,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  42. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  43. XXX_unrecognized []byte `json:"-"`
  44. XXX_sizecache int32 `json:"-"`
  45. }
  46. func (m *NetworkList) Reset() { *m = NetworkList{} }
  47. func (m *NetworkList) String() string { return proto.CompactTextString(m) }
  48. func (*NetworkList) ProtoMessage() {}
  49. func (*NetworkList) Descriptor() ([]byte, []int) {
  50. return fileDescriptor_6a103d5ccb9e785e, []int{0}
  51. }
  52. func (m *NetworkList) XXX_Unmarshal(b []byte) error {
  53. return xxx_messageInfo_NetworkList.Unmarshal(m, b)
  54. }
  55. func (m *NetworkList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  56. return xxx_messageInfo_NetworkList.Marshal(b, m, deterministic)
  57. }
  58. func (m *NetworkList) XXX_Merge(src proto.Message) {
  59. xxx_messageInfo_NetworkList.Merge(m, src)
  60. }
  61. func (m *NetworkList) XXX_Size() int {
  62. return xxx_messageInfo_NetworkList.Size(m)
  63. }
  64. func (m *NetworkList) XXX_DiscardUnknown() {
  65. xxx_messageInfo_NetworkList.DiscardUnknown(m)
  66. }
  67. var xxx_messageInfo_NetworkList proto.InternalMessageInfo
  68. func (m *NetworkList) GetNetwork() []Network {
  69. if m != nil {
  70. return m.Network
  71. }
  72. return nil
  73. }
  74. func init() {
  75. proto.RegisterType((*NetworkList)(nil), "v2ray.core.common.net.NetworkList")
  76. proto.RegisterEnum("v2ray.core.common.net.Network", Network_name, Network_value)
  77. }
  78. func init() {
  79. proto.RegisterFile("v2ray.com/core/common/net/network.proto", fileDescriptor_6a103d5ccb9e785e)
  80. }
  81. var fileDescriptor_6a103d5ccb9e785e = []byte{
  82. // 198 bytes of a gzipped FileDescriptorProto
  83. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2f, 0x33, 0x2a, 0x4a,
  84. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  85. 0xcf, 0xd3, 0xcf, 0x4b, 0x2d, 0x01, 0xe1, 0xf2, 0xfc, 0xa2, 0x6c, 0xbd, 0x82, 0xa2, 0xfc, 0x92,
  86. 0x7c, 0x21, 0x51, 0x98, 0xc2, 0xa2, 0x54, 0x3d, 0x88, 0x22, 0xbd, 0xbc, 0xd4, 0x12, 0x25, 0x77,
  87. 0x2e, 0x6e, 0x3f, 0x88, 0x3a, 0x9f, 0xcc, 0xe2, 0x12, 0x21, 0x0b, 0x2e, 0x76, 0xa8, 0x36, 0x09,
  88. 0x46, 0x05, 0x66, 0x0d, 0x3e, 0x23, 0x39, 0x3d, 0xac, 0xfa, 0xf4, 0xa0, 0x9a, 0x82, 0x60, 0xca,
  89. 0xb5, 0x2c, 0xb8, 0xd8, 0xa1, 0x62, 0x42, 0xdc, 0x5c, 0xec, 0xa1, 0x79, 0xd9, 0x79, 0xf9, 0xe5,
  90. 0x79, 0x02, 0x0c, 0x42, 0x7c, 0x5c, 0x6c, 0x41, 0x89, 0xe5, 0x21, 0xce, 0x01, 0x02, 0x8c, 0x52,
  91. 0x4c, 0x1c, 0x8c, 0x42, 0xec, 0x5c, 0xcc, 0x20, 0x0e, 0x13, 0x88, 0x11, 0xea, 0x12, 0x20, 0xc0,
  92. 0xec, 0x64, 0xc5, 0x25, 0x99, 0x9c, 0x9f, 0x8b, 0xdd, 0x9e, 0x00, 0xc6, 0x28, 0xe6, 0xbc, 0xd4,
  93. 0x92, 0x55, 0x4c, 0xa2, 0x61, 0x46, 0x41, 0x89, 0x95, 0x7a, 0xce, 0x20, 0x69, 0x67, 0x88, 0xb4,
  94. 0x5f, 0x6a, 0x49, 0x12, 0x1b, 0xd8, 0x73, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xef, 0x75,
  95. 0xd9, 0x5b, 0x07, 0x01, 0x00, 0x00,
  96. }