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

     1  package dokodemo
     2  
     3  import (
     4  	net "github.com/v2fly/v2ray-core/v5/common/net"
     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 Config struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    25  	Port    uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    26  	// List of networks that the Dokodemo accepts.
    27  	// Deprecated. Use networks.
    28  	//
    29  	// Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
    30  	NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"`
    31  	// List of networks that the Dokodemo accepts.
    32  	Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,omitempty"`
    33  	// Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
    34  	Timeout        uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
    35  	FollowRedirect bool   `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
    36  	UserLevel      uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
    37  }
    38  
    39  func (x *Config) Reset() {
    40  	*x = Config{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Config) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Config) ProtoMessage() {}
    53  
    54  func (x *Config) ProtoReflect() protoreflect.Message {
    55  	mi := &file_proxy_dokodemo_config_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    67  func (*Config) Descriptor() ([]byte, []int) {
    68  	return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Config) GetAddress() *net.IPOrDomain {
    72  	if x != nil {
    73  		return x.Address
    74  	}
    75  	return nil
    76  }
    77  
    78  func (x *Config) GetPort() uint32 {
    79  	if x != nil {
    80  		return x.Port
    81  	}
    82  	return 0
    83  }
    84  
    85  // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
    86  func (x *Config) GetNetworkList() *net.NetworkList {
    87  	if x != nil {
    88  		return x.NetworkList
    89  	}
    90  	return nil
    91  }
    92  
    93  func (x *Config) GetNetworks() []net.Network {
    94  	if x != nil {
    95  		return x.Networks
    96  	}
    97  	return nil
    98  }
    99  
   100  // Deprecated: Marked as deprecated in proxy/dokodemo/config.proto.
   101  func (x *Config) GetTimeout() uint32 {
   102  	if x != nil {
   103  		return x.Timeout
   104  	}
   105  	return 0
   106  }
   107  
   108  func (x *Config) GetFollowRedirect() bool {
   109  	if x != nil {
   110  		return x.FollowRedirect
   111  	}
   112  	return false
   113  }
   114  
   115  func (x *Config) GetUserLevel() uint32 {
   116  	if x != nil {
   117  		return x.UserLevel
   118  	}
   119  	return 0
   120  }
   121  
   122  type SimplifiedConfig struct {
   123  	state         protoimpl.MessageState
   124  	sizeCache     protoimpl.SizeCache
   125  	unknownFields protoimpl.UnknownFields
   126  
   127  	Address        *net.IPOrDomain  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   128  	Port           uint32           `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
   129  	Networks       *net.NetworkList `protobuf:"bytes,3,opt,name=networks,proto3" json:"networks,omitempty"`
   130  	FollowRedirect bool             `protobuf:"varint,4,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
   131  }
   132  
   133  func (x *SimplifiedConfig) Reset() {
   134  	*x = SimplifiedConfig{}
   135  	if protoimpl.UnsafeEnabled {
   136  		mi := &file_proxy_dokodemo_config_proto_msgTypes[1]
   137  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   138  		ms.StoreMessageInfo(mi)
   139  	}
   140  }
   141  
   142  func (x *SimplifiedConfig) String() string {
   143  	return protoimpl.X.MessageStringOf(x)
   144  }
   145  
   146  func (*SimplifiedConfig) ProtoMessage() {}
   147  
   148  func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
   149  	mi := &file_proxy_dokodemo_config_proto_msgTypes[1]
   150  	if protoimpl.UnsafeEnabled && x != nil {
   151  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   152  		if ms.LoadMessageInfo() == nil {
   153  			ms.StoreMessageInfo(mi)
   154  		}
   155  		return ms
   156  	}
   157  	return mi.MessageOf(x)
   158  }
   159  
   160  // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
   161  func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
   162  	return file_proxy_dokodemo_config_proto_rawDescGZIP(), []int{1}
   163  }
   164  
   165  func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain {
   166  	if x != nil {
   167  		return x.Address
   168  	}
   169  	return nil
   170  }
   171  
   172  func (x *SimplifiedConfig) GetPort() uint32 {
   173  	if x != nil {
   174  		return x.Port
   175  	}
   176  	return 0
   177  }
   178  
   179  func (x *SimplifiedConfig) GetNetworks() *net.NetworkList {
   180  	if x != nil {
   181  		return x.Networks
   182  	}
   183  	return nil
   184  }
   185  
   186  func (x *SimplifiedConfig) GetFollowRedirect() bool {
   187  	if x != nil {
   188  		return x.FollowRedirect
   189  	}
   190  	return false
   191  }
   192  
   193  var File_proxy_dokodemo_config_proto protoreflect.FileDescriptor
   194  
   195  var file_proxy_dokodemo_config_proto_rawDesc = []byte{
   196  	0x0a, 0x1b, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f,
   197  	0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x76,
   198  	0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   199  	0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   200  	0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   201  	0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
   202  	0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
   203  	0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
   204  	0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6,
   205  	0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64,
   206  	0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
   207  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
   208  	0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61,
   209  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02,
   210  	0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65,
   211  	0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
   212  	0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
   213  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
   214  	0x4c, 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
   215  	0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
   216  	0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   217  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
   218  	0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
   219  	0x73, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01,
   220  	0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
   221  	0x27, 0x0a, 0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65,
   222  	0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
   223  	0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
   224  	0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73,
   225  	0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xea, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70,
   226  	0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07,
   227  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e,
   228  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   229  	0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
   230  	0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
   231  	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3e, 0x0a,
   232  	0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
   233  	0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
   234  	0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c,
   235  	0x69, 0x73, 0x74, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x27, 0x0a,
   236  	0x0f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
   237  	0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65,
   238  	0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x3a, 0x1c, 0x82, 0xb5, 0x18, 0x18, 0x0a, 0x07, 0x69, 0x6e,
   239  	0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x0d, 0x64, 0x6f, 0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x2d,
   240  	0x64, 0x6f, 0x6f, 0x72, 0x42, 0x6c, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
   241  	0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6f, 0x6b,
   242  	0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   243  	0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
   244  	0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6f,
   245  	0x6b, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0xaa, 0x02, 0x19, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
   246  	0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6f, 0x6b, 0x6f, 0x64, 0x65,
   247  	0x6d, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   248  }
   249  
   250  var (
   251  	file_proxy_dokodemo_config_proto_rawDescOnce sync.Once
   252  	file_proxy_dokodemo_config_proto_rawDescData = file_proxy_dokodemo_config_proto_rawDesc
   253  )
   254  
   255  func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte {
   256  	file_proxy_dokodemo_config_proto_rawDescOnce.Do(func() {
   257  		file_proxy_dokodemo_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dokodemo_config_proto_rawDescData)
   258  	})
   259  	return file_proxy_dokodemo_config_proto_rawDescData
   260  }
   261  
   262  var file_proxy_dokodemo_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   263  var file_proxy_dokodemo_config_proto_goTypes = []interface{}{
   264  	(*Config)(nil),           // 0: v2ray.core.proxy.dokodemo.Config
   265  	(*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.dokodemo.SimplifiedConfig
   266  	(*net.IPOrDomain)(nil),   // 2: v2ray.core.common.net.IPOrDomain
   267  	(*net.NetworkList)(nil),  // 3: v2ray.core.common.net.NetworkList
   268  	(net.Network)(0),         // 4: v2ray.core.common.net.Network
   269  }
   270  var file_proxy_dokodemo_config_proto_depIdxs = []int32{
   271  	2, // 0: v2ray.core.proxy.dokodemo.Config.address:type_name -> v2ray.core.common.net.IPOrDomain
   272  	3, // 1: v2ray.core.proxy.dokodemo.Config.network_list:type_name -> v2ray.core.common.net.NetworkList
   273  	4, // 2: v2ray.core.proxy.dokodemo.Config.networks:type_name -> v2ray.core.common.net.Network
   274  	2, // 3: v2ray.core.proxy.dokodemo.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   275  	3, // 4: v2ray.core.proxy.dokodemo.SimplifiedConfig.networks:type_name -> v2ray.core.common.net.NetworkList
   276  	5, // [5:5] is the sub-list for method output_type
   277  	5, // [5:5] is the sub-list for method input_type
   278  	5, // [5:5] is the sub-list for extension type_name
   279  	5, // [5:5] is the sub-list for extension extendee
   280  	0, // [0:5] is the sub-list for field type_name
   281  }
   282  
   283  func init() { file_proxy_dokodemo_config_proto_init() }
   284  func file_proxy_dokodemo_config_proto_init() {
   285  	if File_proxy_dokodemo_config_proto != nil {
   286  		return
   287  	}
   288  	if !protoimpl.UnsafeEnabled {
   289  		file_proxy_dokodemo_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   290  			switch v := v.(*Config); 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_dokodemo_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   302  			switch v := v.(*SimplifiedConfig); 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  	}
   314  	type x struct{}
   315  	out := protoimpl.TypeBuilder{
   316  		File: protoimpl.DescBuilder{
   317  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   318  			RawDescriptor: file_proxy_dokodemo_config_proto_rawDesc,
   319  			NumEnums:      0,
   320  			NumMessages:   2,
   321  			NumExtensions: 0,
   322  			NumServices:   0,
   323  		},
   324  		GoTypes:           file_proxy_dokodemo_config_proto_goTypes,
   325  		DependencyIndexes: file_proxy_dokodemo_config_proto_depIdxs,
   326  		MessageInfos:      file_proxy_dokodemo_config_proto_msgTypes,
   327  	}.Build()
   328  	File_proxy_dokodemo_config_proto = out.File
   329  	file_proxy_dokodemo_config_proto_rawDesc = nil
   330  	file_proxy_dokodemo_config_proto_goTypes = nil
   331  	file_proxy_dokodemo_config_proto_depIdxs = nil
   332  }