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