github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/vless/inbound/config.pb.go (about)

     1  package inbound
     2  
     3  import (
     4  	protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
     5  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     6  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     7  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     8  	reflect "reflect"
     9  	sync "sync"
    10  )
    11  
    12  const (
    13  	// Verify that this generated code is sufficiently up-to-date.
    14  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    15  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    17  )
    18  
    19  type Fallback struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"`
    25  	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    26  	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
    27  	Dest string `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"`
    28  	Xver uint64 `protobuf:"varint,5,opt,name=xver,proto3" json:"xver,omitempty"`
    29  }
    30  
    31  func (x *Fallback) Reset() {
    32  	*x = Fallback{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *Fallback) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*Fallback) ProtoMessage() {}
    45  
    46  func (x *Fallback) ProtoReflect() protoreflect.Message {
    47  	mi := &file_proxy_vless_inbound_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 Fallback.ProtoReflect.Descriptor instead.
    59  func (*Fallback) Descriptor() ([]byte, []int) {
    60  	return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *Fallback) GetAlpn() string {
    64  	if x != nil {
    65  		return x.Alpn
    66  	}
    67  	return ""
    68  }
    69  
    70  func (x *Fallback) GetPath() string {
    71  	if x != nil {
    72  		return x.Path
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Fallback) GetType() string {
    78  	if x != nil {
    79  		return x.Type
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Fallback) GetDest() string {
    85  	if x != nil {
    86  		return x.Dest
    87  	}
    88  	return ""
    89  }
    90  
    91  func (x *Fallback) GetXver() uint64 {
    92  	if x != nil {
    93  		return x.Xver
    94  	}
    95  	return 0
    96  }
    97  
    98  type Config struct {
    99  	state         protoimpl.MessageState
   100  	sizeCache     protoimpl.SizeCache
   101  	unknownFields protoimpl.UnknownFields
   102  
   103  	Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
   104  	// Decryption settings. Only applies to server side, and only accepts "none"
   105  	// for now.
   106  	Decryption string      `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
   107  	Fallbacks  []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
   108  }
   109  
   110  func (x *Config) Reset() {
   111  	*x = Config{}
   112  	if protoimpl.UnsafeEnabled {
   113  		mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
   114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   115  		ms.StoreMessageInfo(mi)
   116  	}
   117  }
   118  
   119  func (x *Config) String() string {
   120  	return protoimpl.X.MessageStringOf(x)
   121  }
   122  
   123  func (*Config) ProtoMessage() {}
   124  
   125  func (x *Config) ProtoReflect() protoreflect.Message {
   126  	mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
   127  	if protoimpl.UnsafeEnabled && x != nil {
   128  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   129  		if ms.LoadMessageInfo() == nil {
   130  			ms.StoreMessageInfo(mi)
   131  		}
   132  		return ms
   133  	}
   134  	return mi.MessageOf(x)
   135  }
   136  
   137  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   138  func (*Config) Descriptor() ([]byte, []int) {
   139  	return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
   140  }
   141  
   142  func (x *Config) GetClients() []*protocol.User {
   143  	if x != nil {
   144  		return x.Clients
   145  	}
   146  	return nil
   147  }
   148  
   149  func (x *Config) GetDecryption() string {
   150  	if x != nil {
   151  		return x.Decryption
   152  	}
   153  	return ""
   154  }
   155  
   156  func (x *Config) GetFallbacks() []*Fallback {
   157  	if x != nil {
   158  		return x.Fallbacks
   159  	}
   160  	return nil
   161  }
   162  
   163  type SimplifiedConfig struct {
   164  	state         protoimpl.MessageState
   165  	sizeCache     protoimpl.SizeCache
   166  	unknownFields protoimpl.UnknownFields
   167  
   168  	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
   169  }
   170  
   171  func (x *SimplifiedConfig) Reset() {
   172  	*x = SimplifiedConfig{}
   173  	if protoimpl.UnsafeEnabled {
   174  		mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
   175  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   176  		ms.StoreMessageInfo(mi)
   177  	}
   178  }
   179  
   180  func (x *SimplifiedConfig) String() string {
   181  	return protoimpl.X.MessageStringOf(x)
   182  }
   183  
   184  func (*SimplifiedConfig) ProtoMessage() {}
   185  
   186  func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
   187  	mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
   188  	if protoimpl.UnsafeEnabled && x != nil {
   189  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   190  		if ms.LoadMessageInfo() == nil {
   191  			ms.StoreMessageInfo(mi)
   192  		}
   193  		return ms
   194  	}
   195  	return mi.MessageOf(x)
   196  }
   197  
   198  // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
   199  func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
   200  	return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{2}
   201  }
   202  
   203  func (x *SimplifiedConfig) GetUsers() []string {
   204  	if x != nil {
   205  		return x.Users
   206  	}
   207  	return nil
   208  }
   209  
   210  var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
   211  
   212  var file_proxy_vless_inbound_config_proto_rawDesc = []byte{
   213  	0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
   214  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
   215  	0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
   216  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
   217  	0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   218  	0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
   219  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
   220  	0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   221  	0x22, 0x6e, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04,
   222  	0x61, 0x6c, 0x70, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e,
   223  	0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
   224  	0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
   225  	0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74,
   226  	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
   227  	0x78, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72,
   228  	0x22, 0xac, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x07, 0x63,
   229  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76,
   230  	0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   231  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x07,
   232  	0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79,
   233  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x63,
   234  	0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62,
   235  	0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72,
   236  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c,
   237  	0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 0x6c,
   238  	0x62, 0x61, 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x22,
   239  	0x3e, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e,
   240  	0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
   241  	0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x14, 0x82, 0xb5, 0x18, 0x10, 0x0a,
   242  	0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x05, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x42,
   243  	0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   244  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e,
   245  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   246  	0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
   247  	0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c,
   248  	0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32,
   249  	0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56,
   250  	0x6c, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72,
   251  	0x6f, 0x74, 0x6f, 0x33,
   252  }
   253  
   254  var (
   255  	file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
   256  	file_proxy_vless_inbound_config_proto_rawDescData = file_proxy_vless_inbound_config_proto_rawDesc
   257  )
   258  
   259  func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte {
   260  	file_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() {
   261  		file_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_inbound_config_proto_rawDescData)
   262  	})
   263  	return file_proxy_vless_inbound_config_proto_rawDescData
   264  }
   265  
   266  var file_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   267  var file_proxy_vless_inbound_config_proto_goTypes = []interface{}{
   268  	(*Fallback)(nil),         // 0: v2ray.core.proxy.vless.inbound.Fallback
   269  	(*Config)(nil),           // 1: v2ray.core.proxy.vless.inbound.Config
   270  	(*SimplifiedConfig)(nil), // 2: v2ray.core.proxy.vless.inbound.SimplifiedConfig
   271  	(*protocol.User)(nil),    // 3: v2ray.core.common.protocol.User
   272  }
   273  var file_proxy_vless_inbound_config_proto_depIdxs = []int32{
   274  	3, // 0: v2ray.core.proxy.vless.inbound.Config.clients:type_name -> v2ray.core.common.protocol.User
   275  	0, // 1: v2ray.core.proxy.vless.inbound.Config.fallbacks:type_name -> v2ray.core.proxy.vless.inbound.Fallback
   276  	2, // [2:2] is the sub-list for method output_type
   277  	2, // [2:2] is the sub-list for method input_type
   278  	2, // [2:2] is the sub-list for extension type_name
   279  	2, // [2:2] is the sub-list for extension extendee
   280  	0, // [0:2] is the sub-list for field type_name
   281  }
   282  
   283  func init() { file_proxy_vless_inbound_config_proto_init() }
   284  func file_proxy_vless_inbound_config_proto_init() {
   285  	if File_proxy_vless_inbound_config_proto != nil {
   286  		return
   287  	}
   288  	if !protoimpl.UnsafeEnabled {
   289  		file_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   290  			switch v := v.(*Fallback); i {
   291  			case 0:
   292  				return &v.state
   293  			case 1:
   294  				return &v.sizeCache
   295  			case 2:
   296  				return &v.unknownFields
   297  			default:
   298  				return nil
   299  			}
   300  		}
   301  		file_proxy_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   302  			switch v := v.(*Config); i {
   303  			case 0:
   304  				return &v.state
   305  			case 1:
   306  				return &v.sizeCache
   307  			case 2:
   308  				return &v.unknownFields
   309  			default:
   310  				return nil
   311  			}
   312  		}
   313  		file_proxy_vless_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   314  			switch v := v.(*SimplifiedConfig); i {
   315  			case 0:
   316  				return &v.state
   317  			case 1:
   318  				return &v.sizeCache
   319  			case 2:
   320  				return &v.unknownFields
   321  			default:
   322  				return nil
   323  			}
   324  		}
   325  	}
   326  	type x struct{}
   327  	out := protoimpl.TypeBuilder{
   328  		File: protoimpl.DescBuilder{
   329  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   330  			RawDescriptor: file_proxy_vless_inbound_config_proto_rawDesc,
   331  			NumEnums:      0,
   332  			NumMessages:   3,
   333  			NumExtensions: 0,
   334  			NumServices:   0,
   335  		},
   336  		GoTypes:           file_proxy_vless_inbound_config_proto_goTypes,
   337  		DependencyIndexes: file_proxy_vless_inbound_config_proto_depIdxs,
   338  		MessageInfos:      file_proxy_vless_inbound_config_proto_msgTypes,
   339  	}.Build()
   340  	File_proxy_vless_inbound_config_proto = out.File
   341  	file_proxy_vless_inbound_config_proto_rawDesc = nil
   342  	file_proxy_vless_inbound_config_proto_goTypes = nil
   343  	file_proxy_vless_inbound_config_proto_depIdxs = nil
   344  }