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