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