mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-08 08:40:01 +00:00
https://github.com/XTLS/Xray-core/pull/7090#issuecomment-5989883544 https://github.com/XTLS/Xray-core/pull/7090#issuecomment-5988755551 https://github.com/XTLS/Xray-core/pull/7089#issuecomment-5987266008
286 lines
9.4 KiB
Go
286 lines
9.4 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/xdns/config.proto
|
|
|
|
package xdns
|
|
|
|
import (
|
|
_ "github.com/xtls/xray-core/common/serial"
|
|
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 DomainProto struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
LenLimit int32 `protobuf:"varint,2,opt,name=len_limit,json=lenLimit,proto3" json:"len_limit,omitempty"`
|
|
LabelLimit int32 `protobuf:"varint,3,opt,name=label_limit,json=labelLimit,proto3" json:"label_limit,omitempty"`
|
|
Types []int32 `protobuf:"varint,4,rep,packed,name=types,proto3" json:"types,omitempty"`
|
|
Edns0 int32 `protobuf:"varint,5,opt,name=edns0,proto3" json:"edns0,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DomainProto) Reset() {
|
|
*x = DomainProto{}
|
|
mi := &file_transport_internet_finalmask_xdns_config_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DomainProto) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DomainProto) ProtoMessage() {}
|
|
|
|
func (x *DomainProto) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_finalmask_xdns_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 DomainProto.ProtoReflect.Descriptor instead.
|
|
func (*DomainProto) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_xdns_config_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DomainProto) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DomainProto) GetLenLimit() int32 {
|
|
if x != nil {
|
|
return x.LenLimit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DomainProto) GetLabelLimit() int32 {
|
|
if x != nil {
|
|
return x.LabelLimit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DomainProto) GetTypes() []int32 {
|
|
if x != nil {
|
|
return x.Types
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DomainProto) GetEdns0() int32 {
|
|
if x != nil {
|
|
return x.Edns0
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ResolverProto struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResolverProto) Reset() {
|
|
*x = ResolverProto{}
|
|
mi := &file_transport_internet_finalmask_xdns_config_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResolverProto) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolverProto) ProtoMessage() {}
|
|
|
|
func (x *ResolverProto) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_finalmask_xdns_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 ResolverProto.ProtoReflect.Descriptor instead.
|
|
func (*ResolverProto) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_xdns_config_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ResolverProto) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResolverProto) GetAddr() string {
|
|
if x != nil {
|
|
return x.Addr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Config struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Domains []*DomainProto `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"`
|
|
Resolvers []*ResolverProto `protobuf:"bytes,2,rep,name=resolvers,proto3" json:"resolvers,omitempty"`
|
|
ExtraPoll int32 `protobuf:"varint,3,opt,name=extra_poll,json=extraPoll,proto3" json:"extra_poll,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Config) Reset() {
|
|
*x = Config{}
|
|
mi := &file_transport_internet_finalmask_xdns_config_proto_msgTypes[2]
|
|
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_xdns_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 Config.ProtoReflect.Descriptor instead.
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_xdns_config_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Config) GetDomains() []*DomainProto {
|
|
if x != nil {
|
|
return x.Domains
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetResolvers() []*ResolverProto {
|
|
if x != nil {
|
|
return x.Resolvers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetExtraPoll() int32 {
|
|
if x != nil {
|
|
return x.ExtraPoll
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_transport_internet_finalmask_xdns_config_proto protoreflect.FileDescriptor
|
|
|
|
const file_transport_internet_finalmask_xdns_config_proto_rawDesc = "" +
|
|
"\n" +
|
|
".transport/internet/finalmask/xdns/config.proto\x12&xray.transport.internet.finalmask.xdns\x1a!common/serial/typed_message.proto\"\x8b\x01\n" +
|
|
"\vDomainProto\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n" +
|
|
"\tlen_limit\x18\x02 \x01(\x05R\blenLimit\x12\x1f\n" +
|
|
"\vlabel_limit\x18\x03 \x01(\x05R\n" +
|
|
"labelLimit\x12\x14\n" +
|
|
"\x05types\x18\x04 \x03(\x05R\x05types\x12\x14\n" +
|
|
"\x05edns0\x18\x05 \x01(\x05R\x05edns0\"7\n" +
|
|
"\rResolverProto\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04addr\x18\x02 \x01(\tR\x04addr\"\xcb\x01\n" +
|
|
"\x06Config\x12M\n" +
|
|
"\adomains\x18\x01 \x03(\v23.xray.transport.internet.finalmask.xdns.DomainProtoR\adomains\x12S\n" +
|
|
"\tresolvers\x18\x02 \x03(\v25.xray.transport.internet.finalmask.xdns.ResolverProtoR\tresolvers\x12\x1d\n" +
|
|
"\n" +
|
|
"extra_poll\x18\x03 \x01(\x05R\textraPollB\x94\x01\n" +
|
|
"*com.xray.transport.internet.finalmask.xdnsP\x01Z;github.com/xtls/xray-core/transport/internet/finalmask/xdns\xaa\x02&Xray.Transport.Internet.Finalmask.Xdnsb\x06proto3"
|
|
|
|
var (
|
|
file_transport_internet_finalmask_xdns_config_proto_rawDescOnce sync.Once
|
|
file_transport_internet_finalmask_xdns_config_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_transport_internet_finalmask_xdns_config_proto_rawDescGZIP() []byte {
|
|
file_transport_internet_finalmask_xdns_config_proto_rawDescOnce.Do(func() {
|
|
file_transport_internet_finalmask_xdns_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_finalmask_xdns_config_proto_rawDesc), len(file_transport_internet_finalmask_xdns_config_proto_rawDesc)))
|
|
})
|
|
return file_transport_internet_finalmask_xdns_config_proto_rawDescData
|
|
}
|
|
|
|
var file_transport_internet_finalmask_xdns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_transport_internet_finalmask_xdns_config_proto_goTypes = []any{
|
|
(*DomainProto)(nil), // 0: xray.transport.internet.finalmask.xdns.DomainProto
|
|
(*ResolverProto)(nil), // 1: xray.transport.internet.finalmask.xdns.ResolverProto
|
|
(*Config)(nil), // 2: xray.transport.internet.finalmask.xdns.Config
|
|
}
|
|
var file_transport_internet_finalmask_xdns_config_proto_depIdxs = []int32{
|
|
0, // 0: xray.transport.internet.finalmask.xdns.Config.domains:type_name -> xray.transport.internet.finalmask.xdns.DomainProto
|
|
1, // 1: xray.transport.internet.finalmask.xdns.Config.resolvers:type_name -> xray.transport.internet.finalmask.xdns.ResolverProto
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_transport_internet_finalmask_xdns_config_proto_init() }
|
|
func file_transport_internet_finalmask_xdns_config_proto_init() {
|
|
if File_transport_internet_finalmask_xdns_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_xdns_config_proto_rawDesc), len(file_transport_internet_finalmask_xdns_config_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_transport_internet_finalmask_xdns_config_proto_goTypes,
|
|
DependencyIndexes: file_transport_internet_finalmask_xdns_config_proto_depIdxs,
|
|
MessageInfos: file_transport_internet_finalmask_xdns_config_proto_msgTypes,
|
|
}.Build()
|
|
File_transport_internet_finalmask_xdns_config_proto = out.File
|
|
file_transport_internet_finalmask_xdns_config_proto_goTypes = nil
|
|
file_transport_internet_finalmask_xdns_config_proto_depIdxs = nil
|
|
}
|