mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-09-22 17:16:57 +00:00
https://github.com/XTLS/Xray-core/pull/6487#issuecomment-5092235757 --------- Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
239 lines
8.1 KiB
Go
239 lines
8.1 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/xmc/config.proto
|
|
|
|
package xmc
|
|
|
|
import (
|
|
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 Profile struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Resolve the UUID from https://api.mojang.com/users/profiles/minecraft/{username}.
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Uuid []byte `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
|
|
// Copy the signed textures property returned by
|
|
// https://sessionserver.mojang.com/session/minecraft/profile/{uuid}?unsigned=false.
|
|
TexturesValue string `protobuf:"bytes,3,opt,name=textures_value,json=texturesValue,proto3" json:"textures_value,omitempty"`
|
|
TexturesSignature string `protobuf:"bytes,4,opt,name=textures_signature,json=texturesSignature,proto3" json:"textures_signature,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Profile) Reset() {
|
|
*x = Profile{}
|
|
mi := &file_transport_internet_finalmask_xmc_config_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Profile) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Profile) ProtoMessage() {}
|
|
|
|
func (x *Profile) ProtoReflect() protoreflect.Message {
|
|
mi := &file_transport_internet_finalmask_xmc_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 Profile.ProtoReflect.Descriptor instead.
|
|
func (*Profile) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_xmc_config_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Profile) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Profile) GetUuid() []byte {
|
|
if x != nil {
|
|
return x.Uuid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Profile) GetTexturesValue() string {
|
|
if x != nil {
|
|
return x.TexturesValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Profile) GetTexturesSignature() string {
|
|
if x != nil {
|
|
return x.TexturesSignature
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Config struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
RsaPrivateKey []byte `protobuf:"bytes,8,opt,name=rsa_private_key,json=rsaPrivateKey,proto3" json:"rsa_private_key,omitempty"`
|
|
RsaPublicKey []byte `protobuf:"bytes,9,opt,name=rsa_public_key,json=rsaPublicKey,proto3" json:"rsa_public_key,omitempty"`
|
|
Hostname string `protobuf:"bytes,10,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
|
Profiles []*Profile `protobuf:"bytes,11,rep,name=profiles,proto3" json:"profiles,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Config) Reset() {
|
|
*x = Config{}
|
|
mi := &file_transport_internet_finalmask_xmc_config_proto_msgTypes[1]
|
|
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_xmc_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 Config.ProtoReflect.Descriptor instead.
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
return file_transport_internet_finalmask_xmc_config_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Config) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Config) GetRsaPrivateKey() []byte {
|
|
if x != nil {
|
|
return x.RsaPrivateKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetRsaPublicKey() []byte {
|
|
if x != nil {
|
|
return x.RsaPublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Config) GetHostname() string {
|
|
if x != nil {
|
|
return x.Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Config) GetProfiles() []*Profile {
|
|
if x != nil {
|
|
return x.Profiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_transport_internet_finalmask_xmc_config_proto protoreflect.FileDescriptor
|
|
|
|
const file_transport_internet_finalmask_xmc_config_proto_rawDesc = "" +
|
|
"\n" +
|
|
"-transport/internet/finalmask/xmc/config.proto\x12%xray.transport.internet.finalmask.xmc\"\x8f\x01\n" +
|
|
"\aProfile\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x12\n" +
|
|
"\x04uuid\x18\x02 \x01(\fR\x04uuid\x12%\n" +
|
|
"\x0etextures_value\x18\x03 \x01(\tR\rtexturesValue\x12-\n" +
|
|
"\x12textures_signature\x18\x04 \x01(\tR\x11texturesSignature\"\xe0\x01\n" +
|
|
"\x06Config\x12\x1a\n" +
|
|
"\bpassword\x18\x01 \x01(\tR\bpassword\x12&\n" +
|
|
"\x0frsa_private_key\x18\b \x01(\fR\rrsaPrivateKey\x12$\n" +
|
|
"\x0ersa_public_key\x18\t \x01(\fR\frsaPublicKey\x12\x1a\n" +
|
|
"\bhostname\x18\n" +
|
|
" \x01(\tR\bhostname\x12J\n" +
|
|
"\bprofiles\x18\v \x03(\v2..xray.transport.internet.finalmask.xmc.ProfileR\bprofilesJ\x04\b\x02\x10\x03B\x91\x01\n" +
|
|
")com.xray.transport.internet.finalmask.xmcP\x01Z:github.com/xtls/xray-core/transport/internet/finalmask/xmc\xaa\x02%Xray.Transport.Internet.Finalmask.XMCb\x06proto3"
|
|
|
|
var (
|
|
file_transport_internet_finalmask_xmc_config_proto_rawDescOnce sync.Once
|
|
file_transport_internet_finalmask_xmc_config_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_transport_internet_finalmask_xmc_config_proto_rawDescGZIP() []byte {
|
|
file_transport_internet_finalmask_xmc_config_proto_rawDescOnce.Do(func() {
|
|
file_transport_internet_finalmask_xmc_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_finalmask_xmc_config_proto_rawDesc), len(file_transport_internet_finalmask_xmc_config_proto_rawDesc)))
|
|
})
|
|
return file_transport_internet_finalmask_xmc_config_proto_rawDescData
|
|
}
|
|
|
|
var file_transport_internet_finalmask_xmc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_transport_internet_finalmask_xmc_config_proto_goTypes = []any{
|
|
(*Profile)(nil), // 0: xray.transport.internet.finalmask.xmc.Profile
|
|
(*Config)(nil), // 1: xray.transport.internet.finalmask.xmc.Config
|
|
}
|
|
var file_transport_internet_finalmask_xmc_config_proto_depIdxs = []int32{
|
|
0, // 0: xray.transport.internet.finalmask.xmc.Config.profiles:type_name -> xray.transport.internet.finalmask.xmc.Profile
|
|
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_xmc_config_proto_init() }
|
|
func file_transport_internet_finalmask_xmc_config_proto_init() {
|
|
if File_transport_internet_finalmask_xmc_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_xmc_config_proto_rawDesc), len(file_transport_internet_finalmask_xmc_config_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_transport_internet_finalmask_xmc_config_proto_goTypes,
|
|
DependencyIndexes: file_transport_internet_finalmask_xmc_config_proto_depIdxs,
|
|
MessageInfos: file_transport_internet_finalmask_xmc_config_proto_msgTypes,
|
|
}.Build()
|
|
File_transport_internet_finalmask_xmc_config_proto = out.File
|
|
file_transport_internet_finalmask_xmc_config_proto_goTypes = nil
|
|
file_transport_internet_finalmask_xmc_config_proto_depIdxs = nil
|
|
}
|