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