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

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