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