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

     1  package simplified
     2  
     3  import (
     4  	net "github.com/v2fly/v2ray-core/v5/common/net"
     5  	packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
     6  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     7  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     8  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     9  	reflect "reflect"
    10  	sync "sync"
    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 ServerConfig struct {
    21  	state         protoimpl.MessageState
    22  	sizeCache     protoimpl.SizeCache
    23  	unknownFields protoimpl.UnknownFields
    24  
    25  	Address        *net.IPOrDomain           `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
    26  	UdpEnabled     bool                      `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
    27  	PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,7,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
    28  }
    29  
    30  func (x *ServerConfig) Reset() {
    31  	*x = ServerConfig{}
    32  	if protoimpl.UnsafeEnabled {
    33  		mi := &file_proxy_socks_simplified_config_proto_msgTypes[0]
    34  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    35  		ms.StoreMessageInfo(mi)
    36  	}
    37  }
    38  
    39  func (x *ServerConfig) String() string {
    40  	return protoimpl.X.MessageStringOf(x)
    41  }
    42  
    43  func (*ServerConfig) ProtoMessage() {}
    44  
    45  func (x *ServerConfig) ProtoReflect() protoreflect.Message {
    46  	mi := &file_proxy_socks_simplified_config_proto_msgTypes[0]
    47  	if protoimpl.UnsafeEnabled && x != nil {
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		if ms.LoadMessageInfo() == nil {
    50  			ms.StoreMessageInfo(mi)
    51  		}
    52  		return ms
    53  	}
    54  	return mi.MessageOf(x)
    55  }
    56  
    57  // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
    58  func (*ServerConfig) Descriptor() ([]byte, []int) {
    59  	return file_proxy_socks_simplified_config_proto_rawDescGZIP(), []int{0}
    60  }
    61  
    62  func (x *ServerConfig) GetAddress() *net.IPOrDomain {
    63  	if x != nil {
    64  		return x.Address
    65  	}
    66  	return nil
    67  }
    68  
    69  func (x *ServerConfig) GetUdpEnabled() bool {
    70  	if x != nil {
    71  		return x.UdpEnabled
    72  	}
    73  	return false
    74  }
    75  
    76  func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
    77  	if x != nil {
    78  		return x.PacketEncoding
    79  	}
    80  	return packetaddr.PacketAddrType(0)
    81  }
    82  
    83  type ClientConfig struct {
    84  	state         protoimpl.MessageState
    85  	sizeCache     protoimpl.SizeCache
    86  	unknownFields protoimpl.UnknownFields
    87  
    88  	Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    89  	Port    uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    90  }
    91  
    92  func (x *ClientConfig) Reset() {
    93  	*x = ClientConfig{}
    94  	if protoimpl.UnsafeEnabled {
    95  		mi := &file_proxy_socks_simplified_config_proto_msgTypes[1]
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		ms.StoreMessageInfo(mi)
    98  	}
    99  }
   100  
   101  func (x *ClientConfig) String() string {
   102  	return protoimpl.X.MessageStringOf(x)
   103  }
   104  
   105  func (*ClientConfig) ProtoMessage() {}
   106  
   107  func (x *ClientConfig) ProtoReflect() protoreflect.Message {
   108  	mi := &file_proxy_socks_simplified_config_proto_msgTypes[1]
   109  	if protoimpl.UnsafeEnabled && x != nil {
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		if ms.LoadMessageInfo() == nil {
   112  			ms.StoreMessageInfo(mi)
   113  		}
   114  		return ms
   115  	}
   116  	return mi.MessageOf(x)
   117  }
   118  
   119  // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
   120  func (*ClientConfig) Descriptor() ([]byte, []int) {
   121  	return file_proxy_socks_simplified_config_proto_rawDescGZIP(), []int{1}
   122  }
   123  
   124  func (x *ClientConfig) GetAddress() *net.IPOrDomain {
   125  	if x != nil {
   126  		return x.Address
   127  	}
   128  	return nil
   129  }
   130  
   131  func (x *ClientConfig) GetPort() uint32 {
   132  	if x != nil {
   133  		return x.Port
   134  	}
   135  	return 0
   136  }
   137  
   138  var File_proxy_socks_simplified_config_proto protoreflect.FileDescriptor
   139  
   140  var file_proxy_socks_simplified_config_proto_rawDesc = []byte{
   141  	0x0a, 0x23, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x73, 0x69,
   142  	0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   143  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
   144  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69,
   145  	0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   146  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
   147  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
   148  	0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70,
   149  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
   150  	0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
   151  	0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72,
   152  	0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64,
   153  	0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
   154  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
   155  	0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61,
   156  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e,
   157  	0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70,
   158  	0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65,
   159  	0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e,
   160  	0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65,
   161  	0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63,
   162  	0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63,
   163  	0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x14, 0x82, 0xb5, 0x18,
   164  	0x10, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x05, 0x73, 0x6f, 0x63, 0x6b,
   165  	0x73, 0x22, 0x76, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   166  	0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
   167  	0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
   168  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44,
   169  	0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12,
   170  	0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f,
   171  	0x72, 0x74, 0x3a, 0x15, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
   172  	0x6e, 0x64, 0x12, 0x05, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f,
   173  	0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   174  	0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66,
   175  	0x69, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   176  	0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
   177  	0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b,
   178  	0x73, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x21, 0x56,
   179  	0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   180  	0x53, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64,
   181  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   182  }
   183  
   184  var (
   185  	file_proxy_socks_simplified_config_proto_rawDescOnce sync.Once
   186  	file_proxy_socks_simplified_config_proto_rawDescData = file_proxy_socks_simplified_config_proto_rawDesc
   187  )
   188  
   189  func file_proxy_socks_simplified_config_proto_rawDescGZIP() []byte {
   190  	file_proxy_socks_simplified_config_proto_rawDescOnce.Do(func() {
   191  		file_proxy_socks_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_simplified_config_proto_rawDescData)
   192  	})
   193  	return file_proxy_socks_simplified_config_proto_rawDescData
   194  }
   195  
   196  var file_proxy_socks_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   197  var file_proxy_socks_simplified_config_proto_goTypes = []interface{}{
   198  	(*ServerConfig)(nil),           // 0: v2ray.core.proxy.socks.simplified.ServerConfig
   199  	(*ClientConfig)(nil),           // 1: v2ray.core.proxy.socks.simplified.ClientConfig
   200  	(*net.IPOrDomain)(nil),         // 2: v2ray.core.common.net.IPOrDomain
   201  	(packetaddr.PacketAddrType)(0), // 3: v2ray.core.net.packetaddr.PacketAddrType
   202  }
   203  var file_proxy_socks_simplified_config_proto_depIdxs = []int32{
   204  	2, // 0: v2ray.core.proxy.socks.simplified.ServerConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   205  	3, // 1: v2ray.core.proxy.socks.simplified.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
   206  	2, // 2: v2ray.core.proxy.socks.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
   207  	3, // [3:3] is the sub-list for method output_type
   208  	3, // [3:3] is the sub-list for method input_type
   209  	3, // [3:3] is the sub-list for extension type_name
   210  	3, // [3:3] is the sub-list for extension extendee
   211  	0, // [0:3] is the sub-list for field type_name
   212  }
   213  
   214  func init() { file_proxy_socks_simplified_config_proto_init() }
   215  func file_proxy_socks_simplified_config_proto_init() {
   216  	if File_proxy_socks_simplified_config_proto != nil {
   217  		return
   218  	}
   219  	if !protoimpl.UnsafeEnabled {
   220  		file_proxy_socks_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   221  			switch v := v.(*ServerConfig); i {
   222  			case 0:
   223  				return &v.state
   224  			case 1:
   225  				return &v.sizeCache
   226  			case 2:
   227  				return &v.unknownFields
   228  			default:
   229  				return nil
   230  			}
   231  		}
   232  		file_proxy_socks_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   233  			switch v := v.(*ClientConfig); i {
   234  			case 0:
   235  				return &v.state
   236  			case 1:
   237  				return &v.sizeCache
   238  			case 2:
   239  				return &v.unknownFields
   240  			default:
   241  				return nil
   242  			}
   243  		}
   244  	}
   245  	type x struct{}
   246  	out := protoimpl.TypeBuilder{
   247  		File: protoimpl.DescBuilder{
   248  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   249  			RawDescriptor: file_proxy_socks_simplified_config_proto_rawDesc,
   250  			NumEnums:      0,
   251  			NumMessages:   2,
   252  			NumExtensions: 0,
   253  			NumServices:   0,
   254  		},
   255  		GoTypes:           file_proxy_socks_simplified_config_proto_goTypes,
   256  		DependencyIndexes: file_proxy_socks_simplified_config_proto_depIdxs,
   257  		MessageInfos:      file_proxy_socks_simplified_config_proto_msgTypes,
   258  	}.Build()
   259  	File_proxy_socks_simplified_config_proto = out.File
   260  	file_proxy_socks_simplified_config_proto_rawDesc = nil
   261  	file_proxy_socks_simplified_config_proto_goTypes = nil
   262  	file_proxy_socks_simplified_config_proto_depIdxs = nil
   263  }