// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // 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 Yggdrasil struct { state protoimpl.MessageState `protogen:"open.v1"` // API root of a third-party Yggdrasil API server, for example // https://skin.example.com/api/yggdrasil. The client logs in to this API // and joins the session with the server's actual public key, while the // server verifies players through // sessionserver/session/minecraft/hasJoined. The API's // signaturePublickey is used to verify the signed textures property. Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` // Account used by the client to authenticate with the API. Usually an // email address, depending on the API implementation. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // Optional player name. Required when the account owns several players. Player string `protobuf:"bytes,4,opt,name=player,proto3" json:"player,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Yggdrasil) Reset() { *x = Yggdrasil{} mi := &file_transport_internet_finalmask_xmc_config_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Yggdrasil) String() string { return protoimpl.X.MessageStringOf(x) } func (*Yggdrasil) ProtoMessage() {} func (x *Yggdrasil) 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 Yggdrasil.ProtoReflect.Descriptor instead. func (*Yggdrasil) Descriptor() ([]byte, []int) { return file_transport_internet_finalmask_xmc_config_proto_rawDescGZIP(), []int{1} } func (x *Yggdrasil) GetApi() string { if x != nil { return x.Api } return "" } func (x *Yggdrasil) GetUsername() string { if x != nil { return x.Username } return "" } func (x *Yggdrasil) GetPassword() string { if x != nil { return x.Password } return "" } func (x *Yggdrasil) GetPlayer() string { if x != nil { return x.Player } return "" } type Config struct { state protoimpl.MessageState `protogen:"open.v1"` // Legacy mode only: seeds the derived RSA key pair and is the pre-shared // password checked during login. Ignored in Yggdrasil mode, where the RSA // key pair is generated randomly and players are authenticated through the // Yggdrasil API. 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"` // Padding turns. Empty uses the built-in preset, unless no_padding is set. // A configured list is the complete schedule and replaces the preset // entirely: the preset's Play-state join tail runs only with the preset. Paddings []*Padding `protobuf:"bytes,12,rep,name=paddings,proto3" json:"paddings,omitempty"` // Optional third-party Yggdrasil login. Field 13 keeps configurations // that already set 12 for paddings working unchanged. Yggdrasil *Yggdrasil `protobuf:"bytes,13,opt,name=yggdrasil,proto3" json:"yggdrasil,omitempty"` // Disables startup padding. The configuration sets this for an explicit // empty "paddings" array, which an unset repeated field cannot express. NoPadding bool `protobuf:"varint,14,opt,name=no_padding,json=noPadding,proto3" json:"no_padding,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Config) Reset() { *x = Config{} mi := &file_transport_internet_finalmask_xmc_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_xmc_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_xmc_config_proto_rawDescGZIP(), []int{2} } 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 } func (x *Config) GetPaddings() []*Padding { if x != nil { return x.Paddings } return nil } func (x *Config) GetYggdrasil() *Yggdrasil { if x != nil { return x.Yggdrasil } return nil } func (x *Config) GetNoPadding() bool { if x != nil { return x.NoPadding } return false } type Padding struct { state protoimpl.MessageState `protogen:"open.v1"` LengthMin int64 `protobuf:"varint,1,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"` LengthMax int64 `protobuf:"varint,2,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"` // 1 = client to server, 2 = server to client Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"` // Millisecond pause that leads into this turn: it sits between the previous // padding turn (or Login Acknowledged, for the first turn) and this turn's // bytes, so a captured gap is written on the turn that follows it. The side // that sends the turn waits for a uniformly selected value in // [delay_min, delay_max]; the peer spends exactly delay_min at the same // place, so only the sending side jitters: use delay_min == delay_max to // reproduce a captured gap. Nothing pauses after the last turn. Zero means // no pause. DelayMin int64 `protobuf:"varint,4,opt,name=delay_min,json=delayMin,proto3" json:"delay_min,omitempty"` DelayMax int64 `protobuf:"varint,5,opt,name=delay_max,json=delayMax,proto3" json:"delay_max,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Padding) Reset() { *x = Padding{} mi := &file_transport_internet_finalmask_xmc_config_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Padding) String() string { return protoimpl.X.MessageStringOf(x) } func (*Padding) ProtoMessage() {} func (x *Padding) ProtoReflect() protoreflect.Message { mi := &file_transport_internet_finalmask_xmc_config_proto_msgTypes[3] 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 Padding.ProtoReflect.Descriptor instead. func (*Padding) Descriptor() ([]byte, []int) { return file_transport_internet_finalmask_xmc_config_proto_rawDescGZIP(), []int{3} } func (x *Padding) GetLengthMin() int64 { if x != nil { return x.LengthMin } return 0 } func (x *Padding) GetLengthMax() int64 { if x != nil { return x.LengthMax } return 0 } func (x *Padding) GetDirection() int32 { if x != nil { return x.Direction } return 0 } func (x *Padding) GetDelayMin() int64 { if x != nil { return x.DelayMin } return 0 } func (x *Padding) GetDelayMax() int64 { if x != nil { return x.DelayMax } return 0 } 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\"m\n" + "\tYggdrasil\x12\x10\n" + "\x03api\x18\x01 \x01(\tR\x03api\x12\x1a\n" + "\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" + "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x16\n" + "\x06player\x18\x04 \x01(\tR\x06player\"\x9b\x03\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\bprofiles\x12J\n" + "\bpaddings\x18\f \x03(\v2..xray.transport.internet.finalmask.xmc.PaddingR\bpaddings\x12N\n" + "\tyggdrasil\x18\r \x01(\v20.xray.transport.internet.finalmask.xmc.YggdrasilR\tyggdrasil\x12\x1d\n" + "\n" + "no_padding\x18\x0e \x01(\bR\tnoPaddingJ\x04\b\x02\x10\x03\"\x9f\x01\n" + "\aPadding\x12\x1d\n" + "\n" + "length_min\x18\x01 \x01(\x03R\tlengthMin\x12\x1d\n" + "\n" + "length_max\x18\x02 \x01(\x03R\tlengthMax\x12\x1c\n" + "\tdirection\x18\x03 \x01(\x05R\tdirection\x12\x1b\n" + "\tdelay_min\x18\x04 \x01(\x03R\bdelayMin\x12\x1b\n" + "\tdelay_max\x18\x05 \x01(\x03R\bdelayMaxB\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, 4) var file_transport_internet_finalmask_xmc_config_proto_goTypes = []any{ (*Profile)(nil), // 0: xray.transport.internet.finalmask.xmc.Profile (*Yggdrasil)(nil), // 1: xray.transport.internet.finalmask.xmc.Yggdrasil (*Config)(nil), // 2: xray.transport.internet.finalmask.xmc.Config (*Padding)(nil), // 3: xray.transport.internet.finalmask.xmc.Padding } 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 3, // 1: xray.transport.internet.finalmask.xmc.Config.paddings:type_name -> xray.transport.internet.finalmask.xmc.Padding 1, // 2: xray.transport.internet.finalmask.xmc.Config.yggdrasil:type_name -> xray.transport.internet.finalmask.xmc.Yggdrasil 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] 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: 4, 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 }