github.com/imannamdari/v2ray-core/v5@v5.0.5/proxy/vmess/inbound/config.pb.go (about) 1 package inbound 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 protocol "github.com/imannamdari/v2ray-core/v5/common/protocol" 8 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 9 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 11 ) 12 13 const ( 14 // Verify that this generated code is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 16 // Verify that runtime/protoimpl is sufficiently up-to-date. 17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 18 ) 19 20 type DetourConfig struct { 21 state protoimpl.MessageState 22 sizeCache protoimpl.SizeCache 23 unknownFields protoimpl.UnknownFields 24 25 To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` 26 } 27 28 func (x *DetourConfig) Reset() { 29 *x = DetourConfig{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *DetourConfig) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*DetourConfig) ProtoMessage() {} 42 43 func (x *DetourConfig) ProtoReflect() protoreflect.Message { 44 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead. 56 func (*DetourConfig) Descriptor() ([]byte, []int) { 57 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *DetourConfig) GetTo() string { 61 if x != nil { 62 return x.To 63 } 64 return "" 65 } 66 67 type DefaultConfig struct { 68 state protoimpl.MessageState 69 sizeCache protoimpl.SizeCache 70 unknownFields protoimpl.UnknownFields 71 72 AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"` 73 Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` 74 } 75 76 func (x *DefaultConfig) Reset() { 77 *x = DefaultConfig{} 78 if protoimpl.UnsafeEnabled { 79 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1] 80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 ms.StoreMessageInfo(mi) 82 } 83 } 84 85 func (x *DefaultConfig) String() string { 86 return protoimpl.X.MessageStringOf(x) 87 } 88 89 func (*DefaultConfig) ProtoMessage() {} 90 91 func (x *DefaultConfig) ProtoReflect() protoreflect.Message { 92 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1] 93 if protoimpl.UnsafeEnabled && x != nil { 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 if ms.LoadMessageInfo() == nil { 96 ms.StoreMessageInfo(mi) 97 } 98 return ms 99 } 100 return mi.MessageOf(x) 101 } 102 103 // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead. 104 func (*DefaultConfig) Descriptor() ([]byte, []int) { 105 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1} 106 } 107 108 func (x *DefaultConfig) GetAlterId() uint32 { 109 if x != nil { 110 return x.AlterId 111 } 112 return 0 113 } 114 115 func (x *DefaultConfig) GetLevel() uint32 { 116 if x != nil { 117 return x.Level 118 } 119 return 0 120 } 121 122 type Config struct { 123 state protoimpl.MessageState 124 sizeCache protoimpl.SizeCache 125 unknownFields protoimpl.UnknownFields 126 127 User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"` 128 Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` 129 Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"` 130 SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"` 131 } 132 133 func (x *Config) Reset() { 134 *x = Config{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *Config) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*Config) ProtoMessage() {} 147 148 func (x *Config) ProtoReflect() protoreflect.Message { 149 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 161 func (*Config) Descriptor() ([]byte, []int) { 162 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2} 163 } 164 165 func (x *Config) GetUser() []*protocol.User { 166 if x != nil { 167 return x.User 168 } 169 return nil 170 } 171 172 func (x *Config) GetDefault() *DefaultConfig { 173 if x != nil { 174 return x.Default 175 } 176 return nil 177 } 178 179 func (x *Config) GetDetour() *DetourConfig { 180 if x != nil { 181 return x.Detour 182 } 183 return nil 184 } 185 186 func (x *Config) GetSecureEncryptionOnly() bool { 187 if x != nil { 188 return x.SecureEncryptionOnly 189 } 190 return false 191 } 192 193 type SimplifiedConfig struct { 194 state protoimpl.MessageState 195 sizeCache protoimpl.SizeCache 196 unknownFields protoimpl.UnknownFields 197 198 Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` 199 } 200 201 func (x *SimplifiedConfig) Reset() { 202 *x = SimplifiedConfig{} 203 if protoimpl.UnsafeEnabled { 204 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3] 205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 206 ms.StoreMessageInfo(mi) 207 } 208 } 209 210 func (x *SimplifiedConfig) String() string { 211 return protoimpl.X.MessageStringOf(x) 212 } 213 214 func (*SimplifiedConfig) ProtoMessage() {} 215 216 func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message { 217 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3] 218 if protoimpl.UnsafeEnabled && x != nil { 219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 220 if ms.LoadMessageInfo() == nil { 221 ms.StoreMessageInfo(mi) 222 } 223 return ms 224 } 225 return mi.MessageOf(x) 226 } 227 228 // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead. 229 func (*SimplifiedConfig) Descriptor() ([]byte, []int) { 230 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{3} 231 } 232 233 func (x *SimplifiedConfig) GetUsers() []string { 234 if x != nil { 235 return x.Users 236 } 237 return nil 238 } 239 240 var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor 241 242 var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{ 243 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 244 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 245 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 246 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 247 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 248 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 249 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 250 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 251 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 252 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 253 0x22, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 254 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 255 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 256 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 257 0x65, 0x6c, 0x22, 0x83, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 258 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 259 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 260 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 261 0x73, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 262 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 263 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 264 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 265 0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x06, 266 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 267 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 268 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 269 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 270 0x75, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63, 271 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 272 0x28, 0x08, 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 273 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x42, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 274 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 275 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 276 0x72, 0x73, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 277 0x64, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7b, 0x0a, 0x22, 278 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 279 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 280 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 281 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 282 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 283 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 284 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 285 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 286 0x33, 287 } 288 289 var ( 290 file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once 291 file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc 292 ) 293 294 func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte { 295 file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() { 296 file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData) 297 }) 298 return file_proxy_vmess_inbound_config_proto_rawDescData 299 } 300 301 var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 302 var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{ 303 (*DetourConfig)(nil), // 0: v2ray.core.proxy.vmess.inbound.DetourConfig 304 (*DefaultConfig)(nil), // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig 305 (*Config)(nil), // 2: v2ray.core.proxy.vmess.inbound.Config 306 (*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.vmess.inbound.SimplifiedConfig 307 (*protocol.User)(nil), // 4: v2ray.core.common.protocol.User 308 } 309 var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{ 310 4, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User 311 1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig 312 0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.proxy.vmess.inbound.DetourConfig 313 3, // [3:3] is the sub-list for method output_type 314 3, // [3:3] is the sub-list for method input_type 315 3, // [3:3] is the sub-list for extension type_name 316 3, // [3:3] is the sub-list for extension extendee 317 0, // [0:3] is the sub-list for field type_name 318 } 319 320 func init() { file_proxy_vmess_inbound_config_proto_init() } 321 func file_proxy_vmess_inbound_config_proto_init() { 322 if File_proxy_vmess_inbound_config_proto != nil { 323 return 324 } 325 if !protoimpl.UnsafeEnabled { 326 file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 327 switch v := v.(*DetourConfig); i { 328 case 0: 329 return &v.state 330 case 1: 331 return &v.sizeCache 332 case 2: 333 return &v.unknownFields 334 default: 335 return nil 336 } 337 } 338 file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 339 switch v := v.(*DefaultConfig); i { 340 case 0: 341 return &v.state 342 case 1: 343 return &v.sizeCache 344 case 2: 345 return &v.unknownFields 346 default: 347 return nil 348 } 349 } 350 file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 351 switch v := v.(*Config); i { 352 case 0: 353 return &v.state 354 case 1: 355 return &v.sizeCache 356 case 2: 357 return &v.unknownFields 358 default: 359 return nil 360 } 361 } 362 file_proxy_vmess_inbound_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 363 switch v := v.(*SimplifiedConfig); i { 364 case 0: 365 return &v.state 366 case 1: 367 return &v.sizeCache 368 case 2: 369 return &v.unknownFields 370 default: 371 return nil 372 } 373 } 374 } 375 type x struct{} 376 out := protoimpl.TypeBuilder{ 377 File: protoimpl.DescBuilder{ 378 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 379 RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc, 380 NumEnums: 0, 381 NumMessages: 4, 382 NumExtensions: 0, 383 NumServices: 0, 384 }, 385 GoTypes: file_proxy_vmess_inbound_config_proto_goTypes, 386 DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs, 387 MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes, 388 }.Build() 389 File_proxy_vmess_inbound_config_proto = out.File 390 file_proxy_vmess_inbound_config_proto_rawDesc = nil 391 file_proxy_vmess_inbound_config_proto_goTypes = nil 392 file_proxy_vmess_inbound_config_proto_depIdxs = nil 393 }