github.com/eagleql/xray-core@v1.4.4/proxy/vmess/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/vmess/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 DetourConfig struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
    35  }
    36  
    37  func (x *DetourConfig) Reset() {
    38  	*x = DetourConfig{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *DetourConfig) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*DetourConfig) ProtoMessage() {}
    51  
    52  func (x *DetourConfig) ProtoReflect() protoreflect.Message {
    53  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
    54  	if protoimpl.UnsafeEnabled && x != nil {
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		if ms.LoadMessageInfo() == nil {
    57  			ms.StoreMessageInfo(mi)
    58  		}
    59  		return ms
    60  	}
    61  	return mi.MessageOf(x)
    62  }
    63  
    64  // Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead.
    65  func (*DetourConfig) Descriptor() ([]byte, []int) {
    66  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *DetourConfig) GetTo() string {
    70  	if x != nil {
    71  		return x.To
    72  	}
    73  	return ""
    74  }
    75  
    76  type DefaultConfig struct {
    77  	state         protoimpl.MessageState
    78  	sizeCache     protoimpl.SizeCache
    79  	unknownFields protoimpl.UnknownFields
    80  
    81  	AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
    82  	Level   uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
    83  }
    84  
    85  func (x *DefaultConfig) Reset() {
    86  	*x = DefaultConfig{}
    87  	if protoimpl.UnsafeEnabled {
    88  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
    89  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    90  		ms.StoreMessageInfo(mi)
    91  	}
    92  }
    93  
    94  func (x *DefaultConfig) String() string {
    95  	return protoimpl.X.MessageStringOf(x)
    96  }
    97  
    98  func (*DefaultConfig) ProtoMessage() {}
    99  
   100  func (x *DefaultConfig) ProtoReflect() protoreflect.Message {
   101  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
   102  	if protoimpl.UnsafeEnabled && x != nil {
   103  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   104  		if ms.LoadMessageInfo() == nil {
   105  			ms.StoreMessageInfo(mi)
   106  		}
   107  		return ms
   108  	}
   109  	return mi.MessageOf(x)
   110  }
   111  
   112  // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead.
   113  func (*DefaultConfig) Descriptor() ([]byte, []int) {
   114  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1}
   115  }
   116  
   117  func (x *DefaultConfig) GetAlterId() uint32 {
   118  	if x != nil {
   119  		return x.AlterId
   120  	}
   121  	return 0
   122  }
   123  
   124  func (x *DefaultConfig) GetLevel() uint32 {
   125  	if x != nil {
   126  		return x.Level
   127  	}
   128  	return 0
   129  }
   130  
   131  type Config struct {
   132  	state         protoimpl.MessageState
   133  	sizeCache     protoimpl.SizeCache
   134  	unknownFields protoimpl.UnknownFields
   135  
   136  	User                 []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
   137  	Default              *DefaultConfig   `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
   138  	Detour               *DetourConfig    `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
   139  	SecureEncryptionOnly bool             `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
   140  }
   141  
   142  func (x *Config) Reset() {
   143  	*x = Config{}
   144  	if protoimpl.UnsafeEnabled {
   145  		mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
   146  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   147  		ms.StoreMessageInfo(mi)
   148  	}
   149  }
   150  
   151  func (x *Config) String() string {
   152  	return protoimpl.X.MessageStringOf(x)
   153  }
   154  
   155  func (*Config) ProtoMessage() {}
   156  
   157  func (x *Config) ProtoReflect() protoreflect.Message {
   158  	mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
   159  	if protoimpl.UnsafeEnabled && x != nil {
   160  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   161  		if ms.LoadMessageInfo() == nil {
   162  			ms.StoreMessageInfo(mi)
   163  		}
   164  		return ms
   165  	}
   166  	return mi.MessageOf(x)
   167  }
   168  
   169  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   170  func (*Config) Descriptor() ([]byte, []int) {
   171  	return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
   172  }
   173  
   174  func (x *Config) GetUser() []*protocol.User {
   175  	if x != nil {
   176  		return x.User
   177  	}
   178  	return nil
   179  }
   180  
   181  func (x *Config) GetDefault() *DefaultConfig {
   182  	if x != nil {
   183  		return x.Default
   184  	}
   185  	return nil
   186  }
   187  
   188  func (x *Config) GetDetour() *DetourConfig {
   189  	if x != nil {
   190  		return x.Detour
   191  	}
   192  	return nil
   193  }
   194  
   195  func (x *Config) GetSecureEncryptionOnly() bool {
   196  	if x != nil {
   197  		return x.SecureEncryptionOnly
   198  	}
   199  	return false
   200  }
   201  
   202  var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
   203  
   204  var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{
   205  	0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
   206  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
   207  	0x74, 0x6f, 0x12, 0x18, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
   208  	0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f,
   209  	0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73,
   210  	0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f,
   211  	0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
   212  	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61,
   213  	0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74,
   214  	0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74,
   215  	0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20,
   216  	0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xf1, 0x01, 0x0a, 0x06, 0x43,
   217  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
   218  	0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   219  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
   220  	0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
   221  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72,
   222  	0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
   223  	0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
   224  	0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x6f,
   225  	0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
   226  	0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f,
   227  	0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   228  	0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75,
   229  	0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e,
   230  	0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65,
   231  	0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x42, 0x6a,
   232  	0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
   233  	0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01,
   234  	0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
   235  	0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78,
   236  	0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa,
   237  	0x02, 0x18, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65,
   238  	0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   239  	0x6f, 0x33,
   240  }
   241  
   242  var (
   243  	file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
   244  	file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
   245  )
   246  
   247  func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
   248  	file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
   249  		file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
   250  	})
   251  	return file_proxy_vmess_inbound_config_proto_rawDescData
   252  }
   253  
   254  var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   255  var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
   256  	(*DetourConfig)(nil),  // 0: xray.proxy.vmess.inbound.DetourConfig
   257  	(*DefaultConfig)(nil), // 1: xray.proxy.vmess.inbound.DefaultConfig
   258  	(*Config)(nil),        // 2: xray.proxy.vmess.inbound.Config
   259  	(*protocol.User)(nil), // 3: xray.common.protocol.User
   260  }
   261  var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
   262  	3, // 0: xray.proxy.vmess.inbound.Config.user:type_name -> xray.common.protocol.User
   263  	1, // 1: xray.proxy.vmess.inbound.Config.default:type_name -> xray.proxy.vmess.inbound.DefaultConfig
   264  	0, // 2: xray.proxy.vmess.inbound.Config.detour:type_name -> xray.proxy.vmess.inbound.DetourConfig
   265  	3, // [3:3] is the sub-list for method output_type
   266  	3, // [3:3] is the sub-list for method input_type
   267  	3, // [3:3] is the sub-list for extension type_name
   268  	3, // [3:3] is the sub-list for extension extendee
   269  	0, // [0:3] is the sub-list for field type_name
   270  }
   271  
   272  func init() { file_proxy_vmess_inbound_config_proto_init() }
   273  func file_proxy_vmess_inbound_config_proto_init() {
   274  	if File_proxy_vmess_inbound_config_proto != nil {
   275  		return
   276  	}
   277  	if !protoimpl.UnsafeEnabled {
   278  		file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   279  			switch v := v.(*DetourConfig); i {
   280  			case 0:
   281  				return &v.state
   282  			case 1:
   283  				return &v.sizeCache
   284  			case 2:
   285  				return &v.unknownFields
   286  			default:
   287  				return nil
   288  			}
   289  		}
   290  		file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   291  			switch v := v.(*DefaultConfig); 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_vmess_inbound_config_proto_msgTypes[2].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  	}
   315  	type x struct{}
   316  	out := protoimpl.TypeBuilder{
   317  		File: protoimpl.DescBuilder{
   318  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   319  			RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
   320  			NumEnums:      0,
   321  			NumMessages:   3,
   322  			NumExtensions: 0,
   323  			NumServices:   0,
   324  		},
   325  		GoTypes:           file_proxy_vmess_inbound_config_proto_goTypes,
   326  		DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
   327  		MessageInfos:      file_proxy_vmess_inbound_config_proto_msgTypes,
   328  	}.Build()
   329  	File_proxy_vmess_inbound_config_proto = out.File
   330  	file_proxy_vmess_inbound_config_proto_rawDesc = nil
   331  	file_proxy_vmess_inbound_config_proto_goTypes = nil
   332  	file_proxy_vmess_inbound_config_proto_depIdxs = nil
   333  }