| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.11
- // protoc v6.33.5
- // source: proxy/shadowsocks_2022/config.proto
- package shadowsocks_2022
- import (
- net "github.com/xtls/xray-core/common/net"
- protocol "github.com/xtls/xray-core/common/protocol"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type ServerConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
- Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
- Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
- Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
- Network []net.Network `protobuf:"varint,5,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ServerConfig) Reset() {
- *x = ServerConfig{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ServerConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ServerConfig) ProtoMessage() {}
- func (x *ServerConfig) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
- func (*ServerConfig) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{0}
- }
- func (x *ServerConfig) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
- func (x *ServerConfig) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *ServerConfig) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *ServerConfig) GetLevel() int32 {
- if x != nil {
- return x.Level
- }
- return 0
- }
- func (x *ServerConfig) GetNetwork() []net.Network {
- if x != nil {
- return x.Network
- }
- return nil
- }
- type MultiUserServerConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
- Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
- Users []*protocol.User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
- Network []net.Network `protobuf:"varint,4,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MultiUserServerConfig) Reset() {
- *x = MultiUserServerConfig{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MultiUserServerConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MultiUserServerConfig) ProtoMessage() {}
- func (x *MultiUserServerConfig) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MultiUserServerConfig.ProtoReflect.Descriptor instead.
- func (*MultiUserServerConfig) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{1}
- }
- func (x *MultiUserServerConfig) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
- func (x *MultiUserServerConfig) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *MultiUserServerConfig) GetUsers() []*protocol.User {
- if x != nil {
- return x.Users
- }
- return nil
- }
- func (x *MultiUserServerConfig) GetNetwork() []net.Network {
- if x != nil {
- return x.Network
- }
- return nil
- }
- type RelayDestination struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Address *net.IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
- Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
- Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
- Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RelayDestination) Reset() {
- *x = RelayDestination{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RelayDestination) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RelayDestination) ProtoMessage() {}
- func (x *RelayDestination) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RelayDestination.ProtoReflect.Descriptor instead.
- func (*RelayDestination) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{2}
- }
- func (x *RelayDestination) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *RelayDestination) GetAddress() *net.IPOrDomain {
- if x != nil {
- return x.Address
- }
- return nil
- }
- func (x *RelayDestination) GetPort() uint32 {
- if x != nil {
- return x.Port
- }
- return 0
- }
- func (x *RelayDestination) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *RelayDestination) GetLevel() int32 {
- if x != nil {
- return x.Level
- }
- return 0
- }
- type RelayServerConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
- Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
- Destinations []*RelayDestination `protobuf:"bytes,3,rep,name=destinations,proto3" json:"destinations,omitempty"`
- Network []net.Network `protobuf:"varint,4,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RelayServerConfig) Reset() {
- *x = RelayServerConfig{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RelayServerConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RelayServerConfig) ProtoMessage() {}
- func (x *RelayServerConfig) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RelayServerConfig.ProtoReflect.Descriptor instead.
- func (*RelayServerConfig) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{3}
- }
- func (x *RelayServerConfig) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
- func (x *RelayServerConfig) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *RelayServerConfig) GetDestinations() []*RelayDestination {
- if x != nil {
- return x.Destinations
- }
- return nil
- }
- func (x *RelayServerConfig) GetNetwork() []net.Network {
- if x != nil {
- return x.Network
- }
- return nil
- }
- type Account struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Account) Reset() {
- *x = Account{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Account) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Account) ProtoMessage() {}
- func (x *Account) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Account.ProtoReflect.Descriptor instead.
- func (*Account) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{4}
- }
- func (x *Account) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- type ClientConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
- Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
- Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
- Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
- UdpOverTcp bool `protobuf:"varint,5,opt,name=udp_over_tcp,json=udpOverTcp,proto3" json:"udp_over_tcp,omitempty"`
- UdpOverTcpVersion uint32 `protobuf:"varint,6,opt,name=udp_over_tcp_version,json=udpOverTcpVersion,proto3" json:"udp_over_tcp_version,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ClientConfig) Reset() {
- *x = ClientConfig{}
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ClientConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ClientConfig) ProtoMessage() {}
- func (x *ClientConfig) ProtoReflect() protoreflect.Message {
- mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
- func (*ClientConfig) Descriptor() ([]byte, []int) {
- return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{5}
- }
- func (x *ClientConfig) GetAddress() *net.IPOrDomain {
- if x != nil {
- return x.Address
- }
- return nil
- }
- func (x *ClientConfig) GetPort() uint32 {
- if x != nil {
- return x.Port
- }
- return 0
- }
- func (x *ClientConfig) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
- func (x *ClientConfig) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *ClientConfig) GetUdpOverTcp() bool {
- if x != nil {
- return x.UdpOverTcp
- }
- return false
- }
- func (x *ClientConfig) GetUdpOverTcpVersion() uint32 {
- if x != nil {
- return x.UdpOverTcpVersion
- }
- return 0
- }
- var File_proxy_shadowsocks_2022_config_proto protoreflect.FileDescriptor
- const file_proxy_shadowsocks_2022_config_proto_rawDesc = "" +
- "\n" +
- "#proxy/shadowsocks_2022/config.proto\x12\x1bxray.proxy.shadowsocks_2022\x1a\x18common/net/network.proto\x1a\x18common/net/address.proto\x1a\x1acommon/protocol/user.proto\"\x98\x01\n" +
- "\fServerConfig\x12\x16\n" +
- "\x06method\x18\x01 \x01(\tR\x06method\x12\x10\n" +
- "\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" +
- "\x05email\x18\x03 \x01(\tR\x05email\x12\x14\n" +
- "\x05level\x18\x04 \x01(\x05R\x05level\x122\n" +
- "\anetwork\x18\x05 \x03(\x0e2\x18.xray.common.net.NetworkR\anetwork\"\xa7\x01\n" +
- "\x15MultiUserServerConfig\x12\x16\n" +
- "\x06method\x18\x01 \x01(\tR\x06method\x12\x10\n" +
- "\x03key\x18\x02 \x01(\tR\x03key\x120\n" +
- "\x05users\x18\x03 \x03(\v2\x1a.xray.common.protocol.UserR\x05users\x122\n" +
- "\anetwork\x18\x04 \x03(\x0e2\x18.xray.common.net.NetworkR\anetwork\"\x9b\x01\n" +
- "\x10RelayDestination\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x125\n" +
- "\aaddress\x18\x02 \x01(\v2\x1b.xray.common.net.IPOrDomainR\aaddress\x12\x12\n" +
- "\x04port\x18\x03 \x01(\rR\x04port\x12\x14\n" +
- "\x05email\x18\x04 \x01(\tR\x05email\x12\x14\n" +
- "\x05level\x18\x05 \x01(\x05R\x05level\"\xc4\x01\n" +
- "\x11RelayServerConfig\x12\x16\n" +
- "\x06method\x18\x01 \x01(\tR\x06method\x12\x10\n" +
- "\x03key\x18\x02 \x01(\tR\x03key\x12Q\n" +
- "\fdestinations\x18\x03 \x03(\v2-.xray.proxy.shadowsocks_2022.RelayDestinationR\fdestinations\x122\n" +
- "\anetwork\x18\x04 \x03(\x0e2\x18.xray.common.net.NetworkR\anetwork\"\x1b\n" +
- "\aAccount\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\"\xd6\x01\n" +
- "\fClientConfig\x125\n" +
- "\aaddress\x18\x01 \x01(\v2\x1b.xray.common.net.IPOrDomainR\aaddress\x12\x12\n" +
- "\x04port\x18\x02 \x01(\rR\x04port\x12\x16\n" +
- "\x06method\x18\x03 \x01(\tR\x06method\x12\x10\n" +
- "\x03key\x18\x04 \x01(\tR\x03key\x12 \n" +
- "\fudp_over_tcp\x18\x05 \x01(\bR\n" +
- "udpOverTcp\x12/\n" +
- "\x14udp_over_tcp_version\x18\x06 \x01(\rR\x11udpOverTcpVersionBr\n" +
- "\x1fcom.xray.proxy.shadowsocks_2022P\x01Z0github.com/xtls/xray-core/proxy/shadowsocks_2022\xaa\x02\x1aXray.Proxy.Shadowsocks2022b\x06proto3"
- var (
- file_proxy_shadowsocks_2022_config_proto_rawDescOnce sync.Once
- file_proxy_shadowsocks_2022_config_proto_rawDescData []byte
- )
- func file_proxy_shadowsocks_2022_config_proto_rawDescGZIP() []byte {
- file_proxy_shadowsocks_2022_config_proto_rawDescOnce.Do(func() {
- file_proxy_shadowsocks_2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_shadowsocks_2022_config_proto_rawDesc), len(file_proxy_shadowsocks_2022_config_proto_rawDesc)))
- })
- return file_proxy_shadowsocks_2022_config_proto_rawDescData
- }
- var file_proxy_shadowsocks_2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
- var file_proxy_shadowsocks_2022_config_proto_goTypes = []any{
- (*ServerConfig)(nil), // 0: xray.proxy.shadowsocks_2022.ServerConfig
- (*MultiUserServerConfig)(nil), // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig
- (*RelayDestination)(nil), // 2: xray.proxy.shadowsocks_2022.RelayDestination
- (*RelayServerConfig)(nil), // 3: xray.proxy.shadowsocks_2022.RelayServerConfig
- (*Account)(nil), // 4: xray.proxy.shadowsocks_2022.Account
- (*ClientConfig)(nil), // 5: xray.proxy.shadowsocks_2022.ClientConfig
- (net.Network)(0), // 6: xray.common.net.Network
- (*protocol.User)(nil), // 7: xray.common.protocol.User
- (*net.IPOrDomain)(nil), // 8: xray.common.net.IPOrDomain
- }
- var file_proxy_shadowsocks_2022_config_proto_depIdxs = []int32{
- 6, // 0: xray.proxy.shadowsocks_2022.ServerConfig.network:type_name -> xray.common.net.Network
- 7, // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig.users:type_name -> xray.common.protocol.User
- 6, // 2: xray.proxy.shadowsocks_2022.MultiUserServerConfig.network:type_name -> xray.common.net.Network
- 8, // 3: xray.proxy.shadowsocks_2022.RelayDestination.address:type_name -> xray.common.net.IPOrDomain
- 2, // 4: xray.proxy.shadowsocks_2022.RelayServerConfig.destinations:type_name -> xray.proxy.shadowsocks_2022.RelayDestination
- 6, // 5: xray.proxy.shadowsocks_2022.RelayServerConfig.network:type_name -> xray.common.net.Network
- 8, // 6: xray.proxy.shadowsocks_2022.ClientConfig.address:type_name -> xray.common.net.IPOrDomain
- 7, // [7:7] is the sub-list for method output_type
- 7, // [7:7] is the sub-list for method input_type
- 7, // [7:7] is the sub-list for extension type_name
- 7, // [7:7] is the sub-list for extension extendee
- 0, // [0:7] is the sub-list for field type_name
- }
- func init() { file_proxy_shadowsocks_2022_config_proto_init() }
- func file_proxy_shadowsocks_2022_config_proto_init() {
- if File_proxy_shadowsocks_2022_config_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_shadowsocks_2022_config_proto_rawDesc), len(file_proxy_shadowsocks_2022_config_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 6,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_proxy_shadowsocks_2022_config_proto_goTypes,
- DependencyIndexes: file_proxy_shadowsocks_2022_config_proto_depIdxs,
- MessageInfos: file_proxy_shadowsocks_2022_config_proto_msgTypes,
- }.Build()
- File_proxy_shadowsocks_2022_config_proto = out.File
- file_proxy_shadowsocks_2022_config_proto_goTypes = nil
- file_proxy_shadowsocks_2022_config_proto_depIdxs = nil
- }
|