github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/proxy/vmess/inbound/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v4.23.1 5 // source: proxy/vmess/inbound/config.proto 6 7 package inbound 8 9 import ( 10 protocol "github.com/xmplusdev/xmcore/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 Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` 77 } 78 79 func (x *DefaultConfig) Reset() { 80 *x = DefaultConfig{} 81 if protoimpl.UnsafeEnabled { 82 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1] 83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 84 ms.StoreMessageInfo(mi) 85 } 86 } 87 88 func (x *DefaultConfig) String() string { 89 return protoimpl.X.MessageStringOf(x) 90 } 91 92 func (*DefaultConfig) ProtoMessage() {} 93 94 func (x *DefaultConfig) ProtoReflect() protoreflect.Message { 95 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1] 96 if protoimpl.UnsafeEnabled && x != nil { 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 if ms.LoadMessageInfo() == nil { 99 ms.StoreMessageInfo(mi) 100 } 101 return ms 102 } 103 return mi.MessageOf(x) 104 } 105 106 // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead. 107 func (*DefaultConfig) Descriptor() ([]byte, []int) { 108 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1} 109 } 110 111 func (x *DefaultConfig) GetLevel() uint32 { 112 if x != nil { 113 return x.Level 114 } 115 return 0 116 } 117 118 type Config struct { 119 state protoimpl.MessageState 120 sizeCache protoimpl.SizeCache 121 unknownFields protoimpl.UnknownFields 122 123 User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"` 124 Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` 125 Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"` // 4 is for legacy setting 126 } 127 128 func (x *Config) Reset() { 129 *x = Config{} 130 if protoimpl.UnsafeEnabled { 131 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2] 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 ms.StoreMessageInfo(mi) 134 } 135 } 136 137 func (x *Config) String() string { 138 return protoimpl.X.MessageStringOf(x) 139 } 140 141 func (*Config) ProtoMessage() {} 142 143 func (x *Config) ProtoReflect() protoreflect.Message { 144 mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2] 145 if protoimpl.UnsafeEnabled && x != nil { 146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 147 if ms.LoadMessageInfo() == nil { 148 ms.StoreMessageInfo(mi) 149 } 150 return ms 151 } 152 return mi.MessageOf(x) 153 } 154 155 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 156 func (*Config) Descriptor() ([]byte, []int) { 157 return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2} 158 } 159 160 func (x *Config) GetUser() []*protocol.User { 161 if x != nil { 162 return x.User 163 } 164 return nil 165 } 166 167 func (x *Config) GetDefault() *DefaultConfig { 168 if x != nil { 169 return x.Default 170 } 171 return nil 172 } 173 174 func (x *Config) GetDetour() *DetourConfig { 175 if x != nil { 176 return x.Detour 177 } 178 return nil 179 } 180 181 var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor 182 183 var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{ 184 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 185 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 186 0x74, 0x6f, 0x12, 0x18, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 187 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 188 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 189 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f, 190 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 191 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61, 192 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 193 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 194 0xbb, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75, 0x73, 195 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 196 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 197 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65, 198 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 199 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 200 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 201 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3e, 0x0a, 202 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 203 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 204 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 205 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x42, 0x6a, 0x0a, 206 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 207 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 208 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 209 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 210 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 211 0x18, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 212 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 213 0x33, 214 } 215 216 var ( 217 file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once 218 file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc 219 ) 220 221 func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte { 222 file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() { 223 file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData) 224 }) 225 return file_proxy_vmess_inbound_config_proto_rawDescData 226 } 227 228 var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 229 var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{ 230 (*DetourConfig)(nil), // 0: xray.proxy.vmess.inbound.DetourConfig 231 (*DefaultConfig)(nil), // 1: xray.proxy.vmess.inbound.DefaultConfig 232 (*Config)(nil), // 2: xray.proxy.vmess.inbound.Config 233 (*protocol.User)(nil), // 3: xray.common.protocol.User 234 } 235 var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{ 236 3, // 0: xray.proxy.vmess.inbound.Config.user:type_name -> xray.common.protocol.User 237 1, // 1: xray.proxy.vmess.inbound.Config.default:type_name -> xray.proxy.vmess.inbound.DefaultConfig 238 0, // 2: xray.proxy.vmess.inbound.Config.detour:type_name -> xray.proxy.vmess.inbound.DetourConfig 239 3, // [3:3] is the sub-list for method output_type 240 3, // [3:3] is the sub-list for method input_type 241 3, // [3:3] is the sub-list for extension type_name 242 3, // [3:3] is the sub-list for extension extendee 243 0, // [0:3] is the sub-list for field type_name 244 } 245 246 func init() { file_proxy_vmess_inbound_config_proto_init() } 247 func file_proxy_vmess_inbound_config_proto_init() { 248 if File_proxy_vmess_inbound_config_proto != nil { 249 return 250 } 251 if !protoimpl.UnsafeEnabled { 252 file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 253 switch v := v.(*DetourConfig); i { 254 case 0: 255 return &v.state 256 case 1: 257 return &v.sizeCache 258 case 2: 259 return &v.unknownFields 260 default: 261 return nil 262 } 263 } 264 file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 265 switch v := v.(*DefaultConfig); i { 266 case 0: 267 return &v.state 268 case 1: 269 return &v.sizeCache 270 case 2: 271 return &v.unknownFields 272 default: 273 return nil 274 } 275 } 276 file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 277 switch v := v.(*Config); i { 278 case 0: 279 return &v.state 280 case 1: 281 return &v.sizeCache 282 case 2: 283 return &v.unknownFields 284 default: 285 return nil 286 } 287 } 288 } 289 type x struct{} 290 out := protoimpl.TypeBuilder{ 291 File: protoimpl.DescBuilder{ 292 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 293 RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc, 294 NumEnums: 0, 295 NumMessages: 3, 296 NumExtensions: 0, 297 NumServices: 0, 298 }, 299 GoTypes: file_proxy_vmess_inbound_config_proto_goTypes, 300 DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs, 301 MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes, 302 }.Build() 303 File_proxy_vmess_inbound_config_proto = out.File 304 file_proxy_vmess_inbound_config_proto_rawDesc = nil 305 file_proxy_vmess_inbound_config_proto_goTypes = nil 306 file_proxy_vmess_inbound_config_proto_depIdxs = nil 307 }