github.com/xraypb/xray-core@v1.6.6/proxy/vmess/inbound/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.18.0
     5  // source: proxy/vmess/inbound/config.proto
     6  
     7  package inbound
     8  
     9  import (
    10  	protocol "github.com/xraypb/xray-core/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, 0x18, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
   203  	0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f,
   204  	0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73,
   205  	0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f,
   206  	0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
   207  	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61,
   208  	0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74,
   209  	0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74,
   210  	0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20,
   211  	0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xf1, 0x01, 0x0a, 0x06, 0x43,
   212  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
   213  	0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   214  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
   215  	0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
   216  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72,
   217  	0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
   218  	0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
   219  	0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x6f,
   220  	0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
   221  	0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f,
   222  	0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   223  	0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75,
   224  	0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e,
   225  	0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65,
   226  	0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x42, 0x6a,
   227  	0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
   228  	0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01,
   229  	0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
   230  	0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78,
   231  	0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa,
   232  	0x02, 0x18, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65,
   233  	0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   234  	0x6f, 0x33,
   235  }
   236  
   237  var (
   238  	file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
   239  	file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
   240  )
   241  
   242  func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
   243  	file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
   244  		file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
   245  	})
   246  	return file_proxy_vmess_inbound_config_proto_rawDescData
   247  }
   248  
   249  var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   250  var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
   251  	(*DetourConfig)(nil),  // 0: xray.proxy.vmess.inbound.DetourConfig
   252  	(*DefaultConfig)(nil), // 1: xray.proxy.vmess.inbound.DefaultConfig
   253  	(*Config)(nil),        // 2: xray.proxy.vmess.inbound.Config
   254  	(*protocol.User)(nil), // 3: xray.common.protocol.User
   255  }
   256  var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
   257  	3, // 0: xray.proxy.vmess.inbound.Config.user:type_name -> xray.common.protocol.User
   258  	1, // 1: xray.proxy.vmess.inbound.Config.default:type_name -> xray.proxy.vmess.inbound.DefaultConfig
   259  	0, // 2: xray.proxy.vmess.inbound.Config.detour:type_name -> xray.proxy.vmess.inbound.DetourConfig
   260  	3, // [3:3] is the sub-list for method output_type
   261  	3, // [3:3] is the sub-list for method input_type
   262  	3, // [3:3] is the sub-list for extension type_name
   263  	3, // [3:3] is the sub-list for extension extendee
   264  	0, // [0:3] is the sub-list for field type_name
   265  }
   266  
   267  func init() { file_proxy_vmess_inbound_config_proto_init() }
   268  func file_proxy_vmess_inbound_config_proto_init() {
   269  	if File_proxy_vmess_inbound_config_proto != nil {
   270  		return
   271  	}
   272  	if !protoimpl.UnsafeEnabled {
   273  		file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   274  			switch v := v.(*DetourConfig); i {
   275  			case 0:
   276  				return &v.state
   277  			case 1:
   278  				return &v.sizeCache
   279  			case 2:
   280  				return &v.unknownFields
   281  			default:
   282  				return nil
   283  			}
   284  		}
   285  		file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   286  			switch v := v.(*DefaultConfig); i {
   287  			case 0:
   288  				return &v.state
   289  			case 1:
   290  				return &v.sizeCache
   291  			case 2:
   292  				return &v.unknownFields
   293  			default:
   294  				return nil
   295  			}
   296  		}
   297  		file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   298  			switch v := v.(*Config); i {
   299  			case 0:
   300  				return &v.state
   301  			case 1:
   302  				return &v.sizeCache
   303  			case 2:
   304  				return &v.unknownFields
   305  			default:
   306  				return nil
   307  			}
   308  		}
   309  	}
   310  	type x struct{}
   311  	out := protoimpl.TypeBuilder{
   312  		File: protoimpl.DescBuilder{
   313  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   314  			RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
   315  			NumEnums:      0,
   316  			NumMessages:   3,
   317  			NumExtensions: 0,
   318  			NumServices:   0,
   319  		},
   320  		GoTypes:           file_proxy_vmess_inbound_config_proto_goTypes,
   321  		DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
   322  		MessageInfos:      file_proxy_vmess_inbound_config_proto_msgTypes,
   323  	}.Build()
   324  	File_proxy_vmess_inbound_config_proto = out.File
   325  	file_proxy_vmess_inbound_config_proto_rawDesc = nil
   326  	file_proxy_vmess_inbound_config_proto_goTypes = nil
   327  	file_proxy_vmess_inbound_config_proto_depIdxs = nil
   328  }