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