github.com/imannamdari/v2ray-core/v5@v5.0.5/proxy/socks/simplified/config.pb.go (about) 1 package simplified 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 net "github.com/imannamdari/v2ray-core/v5/common/net" 8 packetaddr "github.com/imannamdari/v2ray-core/v5/common/net/packetaddr" 9 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 ) 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 21 type ServerConfig struct { 22 state protoimpl.MessageState 23 sizeCache protoimpl.SizeCache 24 unknownFields protoimpl.UnknownFields 25 26 Address *net.IPOrDomain `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` 27 UdpEnabled bool `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"` 28 PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,7,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"` 29 } 30 31 func (x *ServerConfig) Reset() { 32 *x = ServerConfig{} 33 if protoimpl.UnsafeEnabled { 34 mi := &file_proxy_socks_simplified_config_proto_msgTypes[0] 35 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 ms.StoreMessageInfo(mi) 37 } 38 } 39 40 func (x *ServerConfig) String() string { 41 return protoimpl.X.MessageStringOf(x) 42 } 43 44 func (*ServerConfig) ProtoMessage() {} 45 46 func (x *ServerConfig) ProtoReflect() protoreflect.Message { 47 mi := &file_proxy_socks_simplified_config_proto_msgTypes[0] 48 if protoimpl.UnsafeEnabled && x != nil { 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 if ms.LoadMessageInfo() == nil { 51 ms.StoreMessageInfo(mi) 52 } 53 return ms 54 } 55 return mi.MessageOf(x) 56 } 57 58 // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead. 59 func (*ServerConfig) Descriptor() ([]byte, []int) { 60 return file_proxy_socks_simplified_config_proto_rawDescGZIP(), []int{0} 61 } 62 63 func (x *ServerConfig) GetAddress() *net.IPOrDomain { 64 if x != nil { 65 return x.Address 66 } 67 return nil 68 } 69 70 func (x *ServerConfig) GetUdpEnabled() bool { 71 if x != nil { 72 return x.UdpEnabled 73 } 74 return false 75 } 76 77 func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType { 78 if x != nil { 79 return x.PacketEncoding 80 } 81 return packetaddr.PacketAddrType(0) 82 } 83 84 type ClientConfig struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 90 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 91 } 92 93 func (x *ClientConfig) Reset() { 94 *x = ClientConfig{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_proxy_socks_simplified_config_proto_msgTypes[1] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *ClientConfig) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*ClientConfig) ProtoMessage() {} 107 108 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 109 mi := &file_proxy_socks_simplified_config_proto_msgTypes[1] 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 ClientConfig.ProtoReflect.Descriptor instead. 121 func (*ClientConfig) Descriptor() ([]byte, []int) { 122 return file_proxy_socks_simplified_config_proto_rawDescGZIP(), []int{1} 123 } 124 125 func (x *ClientConfig) GetAddress() *net.IPOrDomain { 126 if x != nil { 127 return x.Address 128 } 129 return nil 130 } 131 132 func (x *ClientConfig) GetPort() uint32 { 133 if x != nil { 134 return x.Port 135 } 136 return 0 137 } 138 139 var File_proxy_socks_simplified_config_proto protoreflect.FileDescriptor 140 141 var file_proxy_socks_simplified_config_proto_rawDesc = []byte{ 142 0x0a, 0x23, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x73, 0x69, 143 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 144 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 145 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69, 146 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 147 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 148 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 149 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 150 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 151 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 152 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xda, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 153 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 154 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 155 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 156 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 157 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 158 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70, 159 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 160 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 161 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 162 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 163 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 164 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x18, 0x82, 0xb5, 0x18, 165 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 166 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0x7a, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 167 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 168 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 169 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 170 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 171 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 172 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 173 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 0x73, 0x6f, 0x63, 0x6b, 174 0x73, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 175 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 176 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x35, 0x67, 177 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 178 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 179 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 180 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 181 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x69, 182 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 183 } 184 185 var ( 186 file_proxy_socks_simplified_config_proto_rawDescOnce sync.Once 187 file_proxy_socks_simplified_config_proto_rawDescData = file_proxy_socks_simplified_config_proto_rawDesc 188 ) 189 190 func file_proxy_socks_simplified_config_proto_rawDescGZIP() []byte { 191 file_proxy_socks_simplified_config_proto_rawDescOnce.Do(func() { 192 file_proxy_socks_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_simplified_config_proto_rawDescData) 193 }) 194 return file_proxy_socks_simplified_config_proto_rawDescData 195 } 196 197 var file_proxy_socks_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 198 var file_proxy_socks_simplified_config_proto_goTypes = []interface{}{ 199 (*ServerConfig)(nil), // 0: v2ray.core.proxy.socks.simplified.ServerConfig 200 (*ClientConfig)(nil), // 1: v2ray.core.proxy.socks.simplified.ClientConfig 201 (*net.IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain 202 (packetaddr.PacketAddrType)(0), // 3: v2ray.core.net.packetaddr.PacketAddrType 203 } 204 var file_proxy_socks_simplified_config_proto_depIdxs = []int32{ 205 2, // 0: v2ray.core.proxy.socks.simplified.ServerConfig.address:type_name -> v2ray.core.common.net.IPOrDomain 206 3, // 1: v2ray.core.proxy.socks.simplified.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType 207 2, // 2: v2ray.core.proxy.socks.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain 208 3, // [3:3] is the sub-list for method output_type 209 3, // [3:3] is the sub-list for method input_type 210 3, // [3:3] is the sub-list for extension type_name 211 3, // [3:3] is the sub-list for extension extendee 212 0, // [0:3] is the sub-list for field type_name 213 } 214 215 func init() { file_proxy_socks_simplified_config_proto_init() } 216 func file_proxy_socks_simplified_config_proto_init() { 217 if File_proxy_socks_simplified_config_proto != nil { 218 return 219 } 220 if !protoimpl.UnsafeEnabled { 221 file_proxy_socks_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 222 switch v := v.(*ServerConfig); i { 223 case 0: 224 return &v.state 225 case 1: 226 return &v.sizeCache 227 case 2: 228 return &v.unknownFields 229 default: 230 return nil 231 } 232 } 233 file_proxy_socks_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 234 switch v := v.(*ClientConfig); i { 235 case 0: 236 return &v.state 237 case 1: 238 return &v.sizeCache 239 case 2: 240 return &v.unknownFields 241 default: 242 return nil 243 } 244 } 245 } 246 type x struct{} 247 out := protoimpl.TypeBuilder{ 248 File: protoimpl.DescBuilder{ 249 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 250 RawDescriptor: file_proxy_socks_simplified_config_proto_rawDesc, 251 NumEnums: 0, 252 NumMessages: 2, 253 NumExtensions: 0, 254 NumServices: 0, 255 }, 256 GoTypes: file_proxy_socks_simplified_config_proto_goTypes, 257 DependencyIndexes: file_proxy_socks_simplified_config_proto_depIdxs, 258 MessageInfos: file_proxy_socks_simplified_config_proto_msgTypes, 259 }.Build() 260 File_proxy_socks_simplified_config_proto = out.File 261 file_proxy_socks_simplified_config_proto_rawDesc = nil 262 file_proxy_socks_simplified_config_proto_goTypes = nil 263 file_proxy_socks_simplified_config_proto_depIdxs = nil 264 }