github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/net/network.pb.go (about) 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 7 package net 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type Network int32 29 30 const ( 31 Network_Unknown Network = 0 32 // Deprecated: Do not use. 33 Network_RawTCP Network = 1 34 Network_TCP Network = 2 35 Network_UDP Network = 3 36 ) 37 38 // Enum value maps for Network. 39 var ( 40 Network_name = map[int32]string{ 41 0: "Unknown", 42 1: "RawTCP", 43 2: "TCP", 44 3: "UDP", 45 } 46 Network_value = map[string]int32{ 47 "Unknown": 0, 48 "RawTCP": 1, 49 "TCP": 2, 50 "UDP": 3, 51 } 52 ) 53 54 func (x Network) Enum() *Network { 55 p := new(Network) 56 *p = x 57 return p 58 } 59 60 func (x Network) String() string { 61 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 62 } 63 64 func (Network) Descriptor() protoreflect.EnumDescriptor { 65 return file_common_net_network_proto_enumTypes[0].Descriptor() 66 } 67 68 func (Network) Type() protoreflect.EnumType { 69 return &file_common_net_network_proto_enumTypes[0] 70 } 71 72 func (x Network) Number() protoreflect.EnumNumber { 73 return protoreflect.EnumNumber(x) 74 } 75 76 // Deprecated: Use Network.Descriptor instead. 77 func (Network) EnumDescriptor() ([]byte, []int) { 78 return file_common_net_network_proto_rawDescGZIP(), []int{0} 79 } 80 81 // NetworkList is a list of Networks. 82 type NetworkList struct { 83 state protoimpl.MessageState 84 sizeCache protoimpl.SizeCache 85 unknownFields protoimpl.UnknownFields 86 87 Network []Network `protobuf:"varint,1,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"` 88 } 89 90 func (x *NetworkList) Reset() { 91 *x = NetworkList{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_common_net_network_proto_msgTypes[0] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *NetworkList) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*NetworkList) ProtoMessage() {} 104 105 func (x *NetworkList) ProtoReflect() protoreflect.Message { 106 mi := &file_common_net_network_proto_msgTypes[0] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use NetworkList.ProtoReflect.Descriptor instead. 118 func (*NetworkList) Descriptor() ([]byte, []int) { 119 return file_common_net_network_proto_rawDescGZIP(), []int{0} 120 } 121 122 func (x *NetworkList) GetNetwork() []Network { 123 if x != nil { 124 return x.Network 125 } 126 return nil 127 } 128 129 var File_common_net_network_proto protoreflect.FileDescriptor 130 131 var file_common_net_network_proto_rawDesc = []byte{ 132 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 133 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 134 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 135 0x74, 0x22, 0x47, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 136 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 137 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 138 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 139 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2a, 0x38, 0x0a, 0x07, 0x4e, 0x65, 140 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 141 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x06, 0x52, 0x61, 0x77, 0x54, 0x43, 0x50, 0x10, 0x01, 0x1a, 0x02, 142 0x08, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x55, 143 0x44, 0x50, 0x10, 0x03, 0x42, 0x50, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 144 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 145 0x74, 0x50, 0x01, 0x5a, 0x19, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 146 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 147 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 148 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 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 }