mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-09-15 22:10:26 +00:00
https://github.com/XTLS/Xray-core/pull/6327#issuecomment-5592421364 --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
191 lines
6.8 KiB
Go
191 lines
6.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.5
|
|
// source: transport/internet/finalmask/udphop/config.proto
|
|
|
|
package udphop
|
|
|
|
import (
|
|
internet "github.com/xtls/xray-core/transport/internet"
|
|
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 Config struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Sockopt *internet.SocketConfig `protobuf:"bytes,1,opt,name=sockopt,proto3" json:"sockopt,omitempty"`
|
|
Local bool `protobuf:"varint,2,opt,name=local,proto3" json:"local,omitempty"`
|
|
Remote bool `protobuf:"varint,3,opt,name=remote,proto3" json:"remote,omitempty"`
|
|
RemoteOnce bool `protobuf:"varint,4,opt,name=remote_once,json=remoteOnce,proto3" json:"remote_once,omitempty"`
|
|
IntervalMin int64 `protobuf:"varint,5,opt,name=interval_min,json=intervalMin,proto3" json:"interval_min,omitempty"`
|
|
IntervalMax int64 `protobuf:"varint,6,opt,name=interval_max,json=intervalMax,proto3" json:"interval_max,omitempty"`
|
|
RemotePorts []uint32 `protobuf:"varint,7,rep,packed,name=remote_ports,json=remotePorts,proto3" json:"remote_ports,omitempty"`
|
|
RemoteIPs []string `protobuf:"bytes,8,rep,name=remoteIPs,proto3" json:"remoteIPs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Config) Reset() {
|
|
*x = Config{}
|
|
mi := &file_transport_internet_finalmask_udphop_config_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Config) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Config) ProtoMessage() {}
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_finalmask_udphop_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 Config.ProtoReflect.Descriptor instead.
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_udphop_config_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Config) GetSockopt() *internet.SocketConfig {
|
|
if x != nil {
|
|
return x.Sockopt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetLocal() bool {
|
|
if x != nil {
|
|
return x.Local
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Config) GetRemote() bool {
|
|
if x != nil {
|
|
return x.Remote
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Config) GetRemoteOnce() bool {
|
|
if x != nil {
|
|
return x.RemoteOnce
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Config) GetIntervalMin() int64 {
|
|
if x != nil {
|
|
return x.IntervalMin
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetIntervalMax() int64 {
|
|
if x != nil {
|
|
return x.IntervalMax
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Config) GetRemotePorts() []uint32 {
|
|
if x != nil {
|
|
return x.RemotePorts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetRemoteIPs() []string {
|
|
if x != nil {
|
|
return x.RemoteIPs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_transport_internet_finalmask_udphop_config_proto protoreflect.FileDescriptor
|
|
|
|
const file_transport_internet_finalmask_udphop_config_proto_rawDesc = "" +
|
|
"\n" +
|
|
"0transport/internet/finalmask/udphop/config.proto\x12(xray.transport.internet.finalmask.udphop\x1a\x1ftransport/internet/config.proto\"\x9f\x02\n" +
|
|
"\x06Config\x12?\n" +
|
|
"\asockopt\x18\x01 \x01(\v2%.xray.transport.internet.SocketConfigR\asockopt\x12\x14\n" +
|
|
"\x05local\x18\x02 \x01(\bR\x05local\x12\x16\n" +
|
|
"\x06remote\x18\x03 \x01(\bR\x06remote\x12\x1f\n" +
|
|
"\vremote_once\x18\x04 \x01(\bR\n" +
|
|
"remoteOnce\x12!\n" +
|
|
"\finterval_min\x18\x05 \x01(\x03R\vintervalMin\x12!\n" +
|
|
"\finterval_max\x18\x06 \x01(\x03R\vintervalMax\x12!\n" +
|
|
"\fremote_ports\x18\a \x03(\rR\vremotePorts\x12\x1c\n" +
|
|
"\tremoteIPs\x18\b \x03(\tR\tremoteIPsB\x9a\x01\n" +
|
|
",com.xray.transport.internet.finalmask.udphopP\x01Z=github.com/xtls/xray-core/transport/internet/finalmask/udphop\xaa\x02(Xray.Transport.Internet.Finalmask.Udphopb\x06proto3"
|
|
|
|
var (
|
|
file_transport_internet_finalmask_udphop_config_proto_rawDescOnce sync.Once
|
|
file_transport_internet_finalmask_udphop_config_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_transport_internet_finalmask_udphop_config_proto_rawDescGZIP() []byte {
|
|
file_transport_internet_finalmask_udphop_config_proto_rawDescOnce.Do(func() {
|
|
file_transport_internet_finalmask_udphop_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_finalmask_udphop_config_proto_rawDesc), len(file_transport_internet_finalmask_udphop_config_proto_rawDesc)))
|
|
})
|
|
return file_transport_internet_finalmask_udphop_config_proto_rawDescData
|
|
}
|
|
|
|
var file_transport_internet_finalmask_udphop_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_transport_internet_finalmask_udphop_config_proto_goTypes = []any{
|
|
(*Config)(nil), // 0: xray.transport.internet.finalmask.udphop.Config
|
|
(*internet.SocketConfig)(nil), // 1: xray.transport.internet.SocketConfig
|
|
}
|
|
var file_transport_internet_finalmask_udphop_config_proto_depIdxs = []int32{
|
|
1, // 0: xray.transport.internet.finalmask.udphop.Config.sockopt:type_name -> xray.transport.internet.SocketConfig
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_transport_internet_finalmask_udphop_config_proto_init() }
|
|
func file_transport_internet_finalmask_udphop_config_proto_init() {
|
|
if File_transport_internet_finalmask_udphop_config_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_finalmask_udphop_config_proto_rawDesc), len(file_transport_internet_finalmask_udphop_config_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_transport_internet_finalmask_udphop_config_proto_goTypes,
|
|
DependencyIndexes: file_transport_internet_finalmask_udphop_config_proto_depIdxs,
|
|
MessageInfos: file_transport_internet_finalmask_udphop_config_proto_msgTypes,
|
|
}.Build()
|
|
File_transport_internet_finalmask_udphop_config_proto = out.File
|
|
file_transport_internet_finalmask_udphop_config_proto_goTypes = nil
|
|
file_transport_internet_finalmask_udphop_config_proto_depIdxs = nil
|
|
}
|