network.pb.go 7.2 KB

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