network.pb.go 7.0 KB

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