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