network.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. package net
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type Network int32
  19. const (
  20. Network_Unknown Network = 0
  21. // Deprecated: Do not use.
  22. Network_RawTCP Network = 1
  23. Network_TCP Network = 2
  24. Network_UDP Network = 3
  25. )
  26. // Enum value maps for Network.
  27. var (
  28. Network_name = map[int32]string{
  29. 0: "Unknown",
  30. 1: "RawTCP",
  31. 2: "TCP",
  32. 3: "UDP",
  33. }
  34. Network_value = map[string]int32{
  35. "Unknown": 0,
  36. "RawTCP": 1,
  37. "TCP": 2,
  38. "UDP": 3,
  39. }
  40. )
  41. func (x Network) Enum() *Network {
  42. p := new(Network)
  43. *p = x
  44. return p
  45. }
  46. func (x Network) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (Network) Descriptor() protoreflect.EnumDescriptor {
  50. return file_v2ray_com_core_common_net_network_proto_enumTypes[0].Descriptor()
  51. }
  52. func (Network) Type() protoreflect.EnumType {
  53. return &file_v2ray_com_core_common_net_network_proto_enumTypes[0]
  54. }
  55. func (x Network) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use Network.Descriptor instead.
  59. func (Network) EnumDescriptor() ([]byte, []int) {
  60. return file_v2ray_com_core_common_net_network_proto_rawDescGZIP(), []int{0}
  61. }
  62. // NetworkList is a list of Networks.
  63. type NetworkList struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. Network []Network `protobuf:"varint,1,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  68. }
  69. func (x *NetworkList) Reset() {
  70. *x = NetworkList{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_v2ray_com_core_common_net_network_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *NetworkList) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*NetworkList) ProtoMessage() {}
  81. func (x *NetworkList) ProtoReflect() protoreflect.Message {
  82. mi := &file_v2ray_com_core_common_net_network_proto_msgTypes[0]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use NetworkList.ProtoReflect.Descriptor instead.
  93. func (*NetworkList) Descriptor() ([]byte, []int) {
  94. return file_v2ray_com_core_common_net_network_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *NetworkList) GetNetwork() []Network {
  97. if x != nil {
  98. return x.Network
  99. }
  100. return nil
  101. }
  102. var File_v2ray_com_core_common_net_network_proto protoreflect.FileDescriptor
  103. var file_v2ray_com_core_common_net_network_proto_rawDesc = []byte{
  104. 0x0a, 0x27, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  105. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77,
  106. 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  107. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  108. 0x22, 0x47, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12,
  109. 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e,
  110. 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  111. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  112. 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2a, 0x38, 0x0a, 0x07, 0x4e, 0x65, 0x74,
  113. 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10,
  114. 0x00, 0x12, 0x0e, 0x0a, 0x06, 0x52, 0x61, 0x77, 0x54, 0x43, 0x50, 0x10, 0x01, 0x1a, 0x02, 0x08,
  115. 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44,
  116. 0x50, 0x10, 0x03, 0x42, 0x3a, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  117. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  118. 0x50, 0x01, 0x5a, 0x03, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
  119. 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62,
  120. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  121. }
  122. var (
  123. file_v2ray_com_core_common_net_network_proto_rawDescOnce sync.Once
  124. file_v2ray_com_core_common_net_network_proto_rawDescData = file_v2ray_com_core_common_net_network_proto_rawDesc
  125. )
  126. func file_v2ray_com_core_common_net_network_proto_rawDescGZIP() []byte {
  127. file_v2ray_com_core_common_net_network_proto_rawDescOnce.Do(func() {
  128. file_v2ray_com_core_common_net_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_common_net_network_proto_rawDescData)
  129. })
  130. return file_v2ray_com_core_common_net_network_proto_rawDescData
  131. }
  132. var file_v2ray_com_core_common_net_network_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  133. var file_v2ray_com_core_common_net_network_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  134. var file_v2ray_com_core_common_net_network_proto_goTypes = []interface{}{
  135. (Network)(0), // 0: v2ray.core.common.net.Network
  136. (*NetworkList)(nil), // 1: v2ray.core.common.net.NetworkList
  137. }
  138. var file_v2ray_com_core_common_net_network_proto_depIdxs = []int32{
  139. 0, // 0: v2ray.core.common.net.NetworkList.network:type_name -> v2ray.core.common.net.Network
  140. 1, // [1:1] is the sub-list for method output_type
  141. 1, // [1:1] is the sub-list for method input_type
  142. 1, // [1:1] is the sub-list for extension type_name
  143. 1, // [1:1] is the sub-list for extension extendee
  144. 0, // [0:1] is the sub-list for field type_name
  145. }
  146. func init() { file_v2ray_com_core_common_net_network_proto_init() }
  147. func file_v2ray_com_core_common_net_network_proto_init() {
  148. if File_v2ray_com_core_common_net_network_proto != nil {
  149. return
  150. }
  151. if !protoimpl.UnsafeEnabled {
  152. file_v2ray_com_core_common_net_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  153. switch v := v.(*NetworkList); i {
  154. case 0:
  155. return &v.state
  156. case 1:
  157. return &v.sizeCache
  158. case 2:
  159. return &v.unknownFields
  160. default:
  161. return nil
  162. }
  163. }
  164. }
  165. type x struct{}
  166. out := protoimpl.TypeBuilder{
  167. File: protoimpl.DescBuilder{
  168. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  169. RawDescriptor: file_v2ray_com_core_common_net_network_proto_rawDesc,
  170. NumEnums: 1,
  171. NumMessages: 1,
  172. NumExtensions: 0,
  173. NumServices: 0,
  174. },
  175. GoTypes: file_v2ray_com_core_common_net_network_proto_goTypes,
  176. DependencyIndexes: file_v2ray_com_core_common_net_network_proto_depIdxs,
  177. EnumInfos: file_v2ray_com_core_common_net_network_proto_enumTypes,
  178. MessageInfos: file_v2ray_com_core_common_net_network_proto_msgTypes,
  179. }.Build()
  180. File_v2ray_com_core_common_net_network_proto = out.File
  181. file_v2ray_com_core_common_net_network_proto_rawDesc = nil
  182. file_v2ray_com_core_common_net_network_proto_goTypes = nil
  183. file_v2ray_com_core_common_net_network_proto_depIdxs = nil
  184. }