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