network.pb.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/common/net/network.proto
  3. // DO NOT EDIT!
  4. package net
  5. import proto "github.com/golang/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  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. type Network int32
  13. const (
  14. Network_Unknown Network = 0
  15. // Native TCP provided by system.
  16. Network_RawTCP Network = 1
  17. // V2Ray specific TCP.
  18. Network_TCP Network = 2
  19. Network_UDP Network = 3
  20. Network_KCP Network = 4
  21. Network_WebSocket Network = 5
  22. )
  23. var Network_name = map[int32]string{
  24. 0: "Unknown",
  25. 1: "RawTCP",
  26. 2: "TCP",
  27. 3: "UDP",
  28. 4: "KCP",
  29. 5: "WebSocket",
  30. }
  31. var Network_value = map[string]int32{
  32. "Unknown": 0,
  33. "RawTCP": 1,
  34. "TCP": 2,
  35. "UDP": 3,
  36. "KCP": 4,
  37. "WebSocket": 5,
  38. }
  39. func (x Network) String() string {
  40. return proto.EnumName(Network_name, int32(x))
  41. }
  42. func (Network) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
  43. type NetworkList struct {
  44. Network []Network `protobuf:"varint,1,rep,packed,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  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) { return fileDescriptor2, []int{0} }
  50. func (m *NetworkList) GetNetwork() []Network {
  51. if m != nil {
  52. return m.Network
  53. }
  54. return nil
  55. }
  56. func init() {
  57. proto.RegisterType((*NetworkList)(nil), "v2ray.core.common.net.NetworkList")
  58. proto.RegisterEnum("v2ray.core.common.net.Network", Network_name, Network_value)
  59. }
  60. func init() { proto.RegisterFile("v2ray.com/core/common/net/network.proto", fileDescriptor2) }
  61. var fileDescriptor2 = []byte{
  62. // 221 bytes of a gzipped FileDescriptorProto
  63. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x52, 0x2f, 0x33, 0x2a, 0x4a,
  64. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  65. 0xcf, 0xd3, 0xcf, 0x4b, 0x2d, 0x01, 0xe1, 0xf2, 0xfc, 0xa2, 0x6c, 0xbd, 0x82, 0xa2, 0xfc, 0x92,
  66. 0x7c, 0x21, 0x51, 0x98, 0xc2, 0xa2, 0x54, 0x3d, 0x88, 0x22, 0xbd, 0xbc, 0xd4, 0x12, 0x25, 0x77,
  67. 0x2e, 0x6e, 0x3f, 0x88, 0x3a, 0x9f, 0xcc, 0xe2, 0x12, 0x21, 0x0b, 0x2e, 0x76, 0xa8, 0x36, 0x09,
  68. 0x46, 0x05, 0x66, 0x0d, 0x3e, 0x23, 0x39, 0x3d, 0xac, 0xfa, 0xf4, 0xa0, 0x9a, 0x82, 0x60, 0xca,
  69. 0xb5, 0x7c, 0xb8, 0xd8, 0xa1, 0x62, 0x42, 0xdc, 0x5c, 0xec, 0xa1, 0x79, 0xd9, 0x79, 0xf9, 0xe5,
  70. 0x79, 0x02, 0x0c, 0x42, 0x5c, 0x5c, 0x6c, 0x41, 0x89, 0xe5, 0x21, 0xce, 0x01, 0x02, 0x8c, 0x42,
  71. 0xec, 0x5c, 0xcc, 0x20, 0x06, 0x13, 0x88, 0x11, 0xea, 0x12, 0x20, 0xc0, 0x0c, 0x62, 0x78, 0x3b,
  72. 0x07, 0x08, 0xb0, 0x08, 0xf1, 0x72, 0x71, 0x86, 0xa7, 0x26, 0x05, 0xe7, 0x27, 0x67, 0xa7, 0x96,
  73. 0x08, 0xb0, 0x3a, 0xb9, 0x71, 0x49, 0x26, 0xe7, 0xe7, 0x62, 0xb7, 0xdb, 0x89, 0x07, 0x6a, 0x51,
  74. 0x00, 0xc8, 0x63, 0x51, 0xcc, 0x79, 0xa9, 0x25, 0xab, 0x98, 0x44, 0xc3, 0x8c, 0x82, 0x12, 0x2b,
  75. 0xf5, 0x9c, 0x41, 0x4a, 0x9d, 0x21, 0x4a, 0xfd, 0x52, 0x4b, 0x92, 0xd8, 0xc0, 0x9e, 0x37, 0x06,
  76. 0x04, 0x00, 0x00, 0xff, 0xff, 0x18, 0xab, 0xfe, 0x3a, 0x27, 0x01, 0x00, 0x00,
  77. }