github.com/eagleql/xray-core@v1.4.4/proxy/vless/inbound/config.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: proxy/vless/inbound/config.proto 6 7 package inbound 8 9 import ( 10 protocol "github.com/eagleql/xray-core/common/protocol" 11 proto "github.com/golang/protobuf/proto" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Fallback struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 35 Alpn string `protobuf:"bytes,2,opt,name=alpn,proto3" json:"alpn,omitempty"` 36 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` 37 Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` 38 Dest string `protobuf:"bytes,5,opt,name=dest,proto3" json:"dest,omitempty"` 39 Xver uint64 `protobuf:"varint,6,opt,name=xver,proto3" json:"xver,omitempty"` 40 } 41 42 func (x *Fallback) Reset() { 43 *x = Fallback{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_proxy_vless_inbound_config_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *Fallback) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*Fallback) ProtoMessage() {} 56 57 func (x *Fallback) ProtoReflect() protoreflect.Message { 58 mi := &file_proxy_vless_inbound_config_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use Fallback.ProtoReflect.Descriptor instead. 70 func (*Fallback) Descriptor() ([]byte, []int) { 71 return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *Fallback) GetName() string { 75 if x != nil { 76 return x.Name 77 } 78 return "" 79 } 80 81 func (x *Fallback) GetAlpn() string { 82 if x != nil { 83 return x.Alpn 84 } 85 return "" 86 } 87 88 func (x *Fallback) GetPath() string { 89 if x != nil { 90 return x.Path 91 } 92 return "" 93 } 94 95 func (x *Fallback) GetType() string { 96 if x != nil { 97 return x.Type 98 } 99 return "" 100 } 101 102 func (x *Fallback) GetDest() string { 103 if x != nil { 104 return x.Dest 105 } 106 return "" 107 } 108 109 func (x *Fallback) GetXver() uint64 { 110 if x != nil { 111 return x.Xver 112 } 113 return 0 114 } 115 116 type Config struct { 117 state protoimpl.MessageState 118 sizeCache protoimpl.SizeCache 119 unknownFields protoimpl.UnknownFields 120 121 Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"` 122 // Decryption settings. Only applies to server side, and only accepts "none" 123 // for now. 124 Decryption string `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"` 125 Fallbacks []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"` 126 } 127 128 func (x *Config) Reset() { 129 *x = Config{} 130 if protoimpl.UnsafeEnabled { 131 mi := &file_proxy_vless_inbound_config_proto_msgTypes[1] 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_vless_inbound_config_proto_msgTypes[1] 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_vless_inbound_config_proto_rawDescGZIP(), []int{1} 158 } 159 160 func (x *Config) GetClients() []*protocol.User { 161 if x != nil { 162 return x.Clients 163 } 164 return nil 165 } 166 167 func (x *Config) GetDecryption() string { 168 if x != nil { 169 return x.Decryption 170 } 171 return "" 172 } 173 174 func (x *Config) GetFallbacks() []*Fallback { 175 if x != nil { 176 return x.Fallbacks 177 } 178 return nil 179 } 180 181 var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor 182 183 var file_proxy_vless_inbound_config_proto_rawDesc = []byte{ 184 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 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 0x6c, 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, 0x82, 0x01, 0x0a, 0x08, 0x46, 0x61, 0x6c, 190 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 191 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x6c, 0x70, 192 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e, 0x12, 0x12, 0x0a, 193 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 194 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 195 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 196 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x76, 0x65, 197 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72, 0x22, 0xa0, 0x01, 198 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x6c, 0x69, 0x65, 199 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 200 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 201 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1e, 202 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 203 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 204 0x0a, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 205 0x0b, 0x32, 0x22, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 206 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 207 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 208 0x42, 0x6a, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 209 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 210 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 211 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 212 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 213 0x64, 0xaa, 0x02, 0x18, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 214 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 215 0x6f, 0x74, 0x6f, 0x33, 216 } 217 218 var ( 219 file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once 220 file_proxy_vless_inbound_config_proto_rawDescData = file_proxy_vless_inbound_config_proto_rawDesc 221 ) 222 223 func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte { 224 file_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() { 225 file_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_inbound_config_proto_rawDescData) 226 }) 227 return file_proxy_vless_inbound_config_proto_rawDescData 228 } 229 230 var file_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 231 var file_proxy_vless_inbound_config_proto_goTypes = []interface{}{ 232 (*Fallback)(nil), // 0: xray.proxy.vless.inbound.Fallback 233 (*Config)(nil), // 1: xray.proxy.vless.inbound.Config 234 (*protocol.User)(nil), // 2: xray.common.protocol.User 235 } 236 var file_proxy_vless_inbound_config_proto_depIdxs = []int32{ 237 2, // 0: xray.proxy.vless.inbound.Config.clients:type_name -> xray.common.protocol.User 238 0, // 1: xray.proxy.vless.inbound.Config.fallbacks:type_name -> xray.proxy.vless.inbound.Fallback 239 2, // [2:2] is the sub-list for method output_type 240 2, // [2:2] is the sub-list for method input_type 241 2, // [2:2] is the sub-list for extension type_name 242 2, // [2:2] is the sub-list for extension extendee 243 0, // [0:2] is the sub-list for field type_name 244 } 245 246 func init() { file_proxy_vless_inbound_config_proto_init() } 247 func file_proxy_vless_inbound_config_proto_init() { 248 if File_proxy_vless_inbound_config_proto != nil { 249 return 250 } 251 if !protoimpl.UnsafeEnabled { 252 file_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 253 switch v := v.(*Fallback); 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_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 265 switch v := v.(*Config); 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 } 277 type x struct{} 278 out := protoimpl.TypeBuilder{ 279 File: protoimpl.DescBuilder{ 280 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 281 RawDescriptor: file_proxy_vless_inbound_config_proto_rawDesc, 282 NumEnums: 0, 283 NumMessages: 2, 284 NumExtensions: 0, 285 NumServices: 0, 286 }, 287 GoTypes: file_proxy_vless_inbound_config_proto_goTypes, 288 DependencyIndexes: file_proxy_vless_inbound_config_proto_depIdxs, 289 MessageInfos: file_proxy_vless_inbound_config_proto_msgTypes, 290 }.Build() 291 File_proxy_vless_inbound_config_proto = out.File 292 file_proxy_vless_inbound_config_proto_rawDesc = nil 293 file_proxy_vless_inbound_config_proto_goTypes = nil 294 file_proxy_vless_inbound_config_proto_depIdxs = nil 295 }