github.com/imannamdari/v2ray-core/v5@v5.0.5/proxy/dokodemo/config.pb.go (about)

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