network.pb.go 6.9 KB

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