v3

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoginError_name = map[int32]string{
		0: "UNKNOWN_ERROR",
		1: "INVALID_CREDENTIALS",
		2: "BAD_REQUEST",
		3: "UNSUPPORTED_LOGIN_PROTOCOL",
		4: "TIMEOUT",
		5: "UNKNOWN_IDENTIFIER",
		6: "TOO_MANY_ATTEMPTS",
		7: "INVALID_PHONENUMBER",
		8: "TRY_AGAIN_LATER",
	}
	LoginError_value = map[string]int32{
		"UNKNOWN_ERROR":              0,
		"INVALID_CREDENTIALS":        1,
		"BAD_REQUEST":                2,
		"UNSUPPORTED_LOGIN_PROTOCOL": 3,
		"TIMEOUT":                    4,
		"UNKNOWN_IDENTIFIER":         5,
		"TOO_MANY_ATTEMPTS":          6,
		"INVALID_PHONENUMBER":        7,
		"TRY_AGAIN_LATER":            8,
	}
)

Enum value maps for LoginError.

View Source
var (
	LoginResponse_Warnings_name = map[int32]string{
		0: "UNKNOWN_WARNING",
		1: "DEPRECATED_PROTOCOL_VERSION",
	}
	LoginResponse_Warnings_value = map[string]int32{
		"UNKNOWN_WARNING":             0,
		"DEPRECATED_PROTOCOL_VERSION": 1,
	}
)

Enum value maps for LoginResponse_Warnings.

View Source
var (
	UserInfo_Gender_name = map[int32]string{
		0: "UNKNOWN",
		1: "MALE",
		2: "FEMALE",
		3: "NEUTRAL",
	}
	UserInfo_Gender_value = map[string]int32{
		"UNKNOWN": 0,
		"MALE":    1,
		"FEMALE":  2,
		"NEUTRAL": 3,
	}
)

Enum value maps for UserInfo_Gender.

View Source
var File_login5_client_info_proto protoreflect.FileDescriptor
View Source
var File_login5_proto protoreflect.FileDescriptor
View Source
var File_login5_user_info_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Challenge

type Challenge struct {

	// Types that are assignable to Challenge:
	//
	//	*Challenge_Hashcash
	//	*Challenge_Code
	Challenge isChallenge_Challenge `protobuf_oneof:"challenge"`
	// contains filtered or unexported fields
}

func (*Challenge) Descriptor deprecated

func (*Challenge) Descriptor() ([]byte, []int)

Deprecated: Use Challenge.ProtoReflect.Descriptor instead.

func (*Challenge) GetChallenge

func (m *Challenge) GetChallenge() isChallenge_Challenge

func (*Challenge) GetCode

func (x *Challenge) GetCode() *challenges.CodeChallenge

func (*Challenge) GetHashcash

func (x *Challenge) GetHashcash() *challenges.HashcashChallenge

func (*Challenge) ProtoMessage

func (*Challenge) ProtoMessage()

func (*Challenge) ProtoReflect

func (x *Challenge) ProtoReflect() protoreflect.Message

func (*Challenge) Reset

func (x *Challenge) Reset()

func (*Challenge) String

func (x *Challenge) String() string

type ChallengeSolution

type ChallengeSolution struct {

	// Types that are assignable to Solution:
	//
	//	*ChallengeSolution_Hashcash
	//	*ChallengeSolution_Code
	Solution isChallengeSolution_Solution `protobuf_oneof:"solution"`
	// contains filtered or unexported fields
}

func (*ChallengeSolution) Descriptor deprecated

func (*ChallengeSolution) Descriptor() ([]byte, []int)

Deprecated: Use ChallengeSolution.ProtoReflect.Descriptor instead.

func (*ChallengeSolution) GetCode

func (*ChallengeSolution) GetHashcash

func (x *ChallengeSolution) GetHashcash() *challenges.HashcashSolution

func (*ChallengeSolution) GetSolution

func (m *ChallengeSolution) GetSolution() isChallengeSolution_Solution

func (*ChallengeSolution) ProtoMessage

func (*ChallengeSolution) ProtoMessage()

func (*ChallengeSolution) ProtoReflect

func (x *ChallengeSolution) ProtoReflect() protoreflect.Message

func (*ChallengeSolution) Reset

func (x *ChallengeSolution) Reset()

func (*ChallengeSolution) String

func (x *ChallengeSolution) String() string

type ChallengeSolution_Code

type ChallengeSolution_Code struct {
	Code *challenges.CodeSolution `protobuf:"bytes,2,opt,name=code,proto3,oneof"`
}

type ChallengeSolution_Hashcash

type ChallengeSolution_Hashcash struct {
	Hashcash *challenges.HashcashSolution `protobuf:"bytes,1,opt,name=hashcash,proto3,oneof"`
}

type ChallengeSolutions

type ChallengeSolutions struct {
	Solutions []*ChallengeSolution `protobuf:"bytes,1,rep,name=solutions,proto3" json:"solutions,omitempty"`
	// contains filtered or unexported fields
}

func (*ChallengeSolutions) Descriptor deprecated

func (*ChallengeSolutions) Descriptor() ([]byte, []int)

Deprecated: Use ChallengeSolutions.ProtoReflect.Descriptor instead.

func (*ChallengeSolutions) GetSolutions

func (x *ChallengeSolutions) GetSolutions() []*ChallengeSolution

func (*ChallengeSolutions) ProtoMessage

func (*ChallengeSolutions) ProtoMessage()

func (*ChallengeSolutions) ProtoReflect

func (x *ChallengeSolutions) ProtoReflect() protoreflect.Message

func (*ChallengeSolutions) Reset

func (x *ChallengeSolutions) Reset()

func (*ChallengeSolutions) String

func (x *ChallengeSolutions) String() string

type Challenge_Code

type Challenge_Code struct {
	Code *challenges.CodeChallenge `protobuf:"bytes,2,opt,name=code,proto3,oneof"`
}

type Challenge_Hashcash

type Challenge_Hashcash struct {
	Hashcash *challenges.HashcashChallenge `protobuf:"bytes,1,opt,name=hashcash,proto3,oneof"`
}

type Challenges

type Challenges struct {
	Challenges []*Challenge `protobuf:"bytes,1,rep,name=challenges,proto3" json:"challenges,omitempty"`
	// contains filtered or unexported fields
}

func (*Challenges) Descriptor deprecated

func (*Challenges) Descriptor() ([]byte, []int)

Deprecated: Use Challenges.ProtoReflect.Descriptor instead.

func (*Challenges) GetChallenges

func (x *Challenges) GetChallenges() []*Challenge

func (*Challenges) ProtoMessage

func (*Challenges) ProtoMessage()

func (*Challenges) ProtoReflect

func (x *Challenges) ProtoReflect() protoreflect.Message

func (*Challenges) Reset

func (x *Challenges) Reset()

func (*Challenges) String

func (x *Challenges) String() string

type ClientInfo

type ClientInfo struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientInfo) Descriptor deprecated

func (*ClientInfo) Descriptor() ([]byte, []int)

Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.

func (*ClientInfo) GetClientId

func (x *ClientInfo) GetClientId() string

func (*ClientInfo) GetDeviceId

func (x *ClientInfo) GetDeviceId() string

func (*ClientInfo) ProtoMessage

func (*ClientInfo) ProtoMessage()

func (*ClientInfo) ProtoReflect

func (x *ClientInfo) ProtoReflect() protoreflect.Message

func (*ClientInfo) Reset

func (x *ClientInfo) Reset()

func (*ClientInfo) String

func (x *ClientInfo) String() string

type LoginError

type LoginError int32
const (
	LoginError_UNKNOWN_ERROR              LoginError = 0
	LoginError_INVALID_CREDENTIALS        LoginError = 1
	LoginError_BAD_REQUEST                LoginError = 2
	LoginError_UNSUPPORTED_LOGIN_PROTOCOL LoginError = 3
	LoginError_TIMEOUT                    LoginError = 4
	LoginError_UNKNOWN_IDENTIFIER         LoginError = 5
	LoginError_TOO_MANY_ATTEMPTS          LoginError = 6
	LoginError_INVALID_PHONENUMBER        LoginError = 7
	LoginError_TRY_AGAIN_LATER            LoginError = 8
)

func (LoginError) Descriptor

func (LoginError) Descriptor() protoreflect.EnumDescriptor

func (LoginError) Enum

func (x LoginError) Enum() *LoginError

func (LoginError) EnumDescriptor deprecated

func (LoginError) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoginError.Descriptor instead.

func (LoginError) Number

func (x LoginError) Number() protoreflect.EnumNumber

func (LoginError) String

func (x LoginError) String() string

func (LoginError) Type

type LoginOk

type LoginOk struct {
	Username             string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	AccessToken          string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	StoredCredential     []byte `protobuf:"bytes,3,opt,name=stored_credential,json=storedCredential,proto3" json:"stored_credential,omitempty"`
	AccessTokenExpiresIn int32  `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoginOk) Descriptor deprecated

func (*LoginOk) Descriptor() ([]byte, []int)

Deprecated: Use LoginOk.ProtoReflect.Descriptor instead.

func (*LoginOk) GetAccessToken

func (x *LoginOk) GetAccessToken() string

func (*LoginOk) GetAccessTokenExpiresIn

func (x *LoginOk) GetAccessTokenExpiresIn() int32

func (*LoginOk) GetStoredCredential

func (x *LoginOk) GetStoredCredential() []byte

func (*LoginOk) GetUsername

func (x *LoginOk) GetUsername() string

func (*LoginOk) ProtoMessage

func (*LoginOk) ProtoMessage()

func (*LoginOk) ProtoReflect

func (x *LoginOk) ProtoReflect() protoreflect.Message

func (*LoginOk) Reset

func (x *LoginOk) Reset()

func (*LoginOk) String

func (x *LoginOk) String() string

type LoginRequest

type LoginRequest struct {
	ClientInfo         *ClientInfo         `protobuf:"bytes,1,opt,name=client_info,json=clientInfo,proto3" json:"client_info,omitempty"`
	LoginContext       []byte              `protobuf:"bytes,2,opt,name=login_context,json=loginContext,proto3" json:"login_context,omitempty"`
	ChallengeSolutions *ChallengeSolutions `protobuf:"bytes,3,opt,name=challenge_solutions,json=challengeSolutions,proto3" json:"challenge_solutions,omitempty"`
	// Types that are assignable to LoginMethod:
	//
	//	*LoginRequest_StoredCredential
	//	*LoginRequest_Password
	//	*LoginRequest_FacebookAccessToken
	//	*LoginRequest_PhoneNumber
	//	*LoginRequest_OneTimeToken
	//	*LoginRequest_ParentChildCredential
	//	*LoginRequest_AppleSignInCredential
	//	*LoginRequest_SamsungSignInCredential
	//	*LoginRequest_GoogleSignInCredential
	LoginMethod isLoginRequest_LoginMethod `protobuf_oneof:"login_method"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetAppleSignInCredential

func (x *LoginRequest) GetAppleSignInCredential() *credentials.AppleSignInCredential

func (*LoginRequest) GetChallengeSolutions

func (x *LoginRequest) GetChallengeSolutions() *ChallengeSolutions

func (*LoginRequest) GetClientInfo

func (x *LoginRequest) GetClientInfo() *ClientInfo

func (*LoginRequest) GetFacebookAccessToken

func (x *LoginRequest) GetFacebookAccessToken() *credentials.FacebookAccessToken

func (*LoginRequest) GetGoogleSignInCredential

func (x *LoginRequest) GetGoogleSignInCredential() *credentials.GoogleSignInCredential

func (*LoginRequest) GetLoginContext

func (x *LoginRequest) GetLoginContext() []byte

func (*LoginRequest) GetLoginMethod

func (m *LoginRequest) GetLoginMethod() isLoginRequest_LoginMethod

func (*LoginRequest) GetOneTimeToken

func (x *LoginRequest) GetOneTimeToken() *credentials.OneTimeToken

func (*LoginRequest) GetParentChildCredential

func (x *LoginRequest) GetParentChildCredential() *credentials.ParentChildCredential

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() *credentials.Password

func (*LoginRequest) GetPhoneNumber

func (x *LoginRequest) GetPhoneNumber() *identifiers.PhoneNumber

func (*LoginRequest) GetSamsungSignInCredential

func (x *LoginRequest) GetSamsungSignInCredential() *credentials.SamsungSignInCredential

func (*LoginRequest) GetStoredCredential

func (x *LoginRequest) GetStoredCredential() *credentials.StoredCredential

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginRequest_AppleSignInCredential

type LoginRequest_AppleSignInCredential struct {
	AppleSignInCredential *credentials.AppleSignInCredential `protobuf:"bytes,106,opt,name=apple_sign_in_credential,json=appleSignInCredential,proto3,oneof"`
}

type LoginRequest_FacebookAccessToken

type LoginRequest_FacebookAccessToken struct {
	FacebookAccessToken *credentials.FacebookAccessToken `protobuf:"bytes,102,opt,name=facebook_access_token,json=facebookAccessToken,proto3,oneof"`
}

type LoginRequest_GoogleSignInCredential

type LoginRequest_GoogleSignInCredential struct {
	GoogleSignInCredential *credentials.GoogleSignInCredential `protobuf:"bytes,108,opt,name=google_sign_in_credential,json=googleSignInCredential,proto3,oneof"`
}

type LoginRequest_OneTimeToken

type LoginRequest_OneTimeToken struct {
	OneTimeToken *credentials.OneTimeToken `protobuf:"bytes,104,opt,name=one_time_token,json=oneTimeToken,proto3,oneof"`
}

type LoginRequest_ParentChildCredential

type LoginRequest_ParentChildCredential struct {
	ParentChildCredential *credentials.ParentChildCredential `protobuf:"bytes,105,opt,name=parent_child_credential,json=parentChildCredential,proto3,oneof"`
}

type LoginRequest_Password

type LoginRequest_Password struct {
	Password *credentials.Password `protobuf:"bytes,101,opt,name=password,proto3,oneof"`
}

type LoginRequest_PhoneNumber

type LoginRequest_PhoneNumber struct {
	PhoneNumber *identifiers.PhoneNumber `protobuf:"bytes,103,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}

type LoginRequest_SamsungSignInCredential

type LoginRequest_SamsungSignInCredential struct {
	SamsungSignInCredential *credentials.SamsungSignInCredential `protobuf:"bytes,107,opt,name=samsung_sign_in_credential,json=samsungSignInCredential,proto3,oneof"`
}

type LoginRequest_StoredCredential

type LoginRequest_StoredCredential struct {
	StoredCredential *credentials.StoredCredential `protobuf:"bytes,100,opt,name=stored_credential,json=storedCredential,proto3,oneof"`
}

type LoginResponse

type LoginResponse struct {
	Warnings        []LoginResponse_Warnings `protobuf:"varint,4,rep,packed,name=warnings,proto3,enum=spotify.login5.v3.LoginResponse_Warnings" json:"warnings,omitempty"`
	LoginContext    []byte                   `protobuf:"bytes,5,opt,name=login_context,json=loginContext,proto3" json:"login_context,omitempty"`
	IdentifierToken string                   `protobuf:"bytes,6,opt,name=identifier_token,json=identifierToken,proto3" json:"identifier_token,omitempty"`
	UserInfo        *UserInfo                `protobuf:"bytes,7,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// Types that are assignable to Response:
	//
	//	*LoginResponse_Ok
	//	*LoginResponse_Error
	//	*LoginResponse_Challenges
	Response isLoginResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetChallenges

func (x *LoginResponse) GetChallenges() *Challenges

func (*LoginResponse) GetError

func (x *LoginResponse) GetError() LoginError

func (*LoginResponse) GetIdentifierToken

func (x *LoginResponse) GetIdentifierToken() string

func (*LoginResponse) GetLoginContext

func (x *LoginResponse) GetLoginContext() []byte

func (*LoginResponse) GetOk

func (x *LoginResponse) GetOk() *LoginOk

func (*LoginResponse) GetResponse

func (m *LoginResponse) GetResponse() isLoginResponse_Response

func (*LoginResponse) GetUserInfo

func (x *LoginResponse) GetUserInfo() *UserInfo

func (*LoginResponse) GetWarnings

func (x *LoginResponse) GetWarnings() []LoginResponse_Warnings

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type LoginResponse_Challenges

type LoginResponse_Challenges struct {
	Challenges *Challenges `protobuf:"bytes,3,opt,name=challenges,proto3,oneof"`
}

type LoginResponse_Error

type LoginResponse_Error struct {
	Error LoginError `protobuf:"varint,2,opt,name=error,proto3,enum=spotify.login5.v3.LoginError,oneof"`
}

type LoginResponse_Ok

type LoginResponse_Ok struct {
	Ok *LoginOk `protobuf:"bytes,1,opt,name=ok,proto3,oneof"`
}

type LoginResponse_Warnings

type LoginResponse_Warnings int32
const (
	LoginResponse_UNKNOWN_WARNING             LoginResponse_Warnings = 0
	LoginResponse_DEPRECATED_PROTOCOL_VERSION LoginResponse_Warnings = 1
)

func (LoginResponse_Warnings) Descriptor

func (LoginResponse_Warnings) Enum

func (LoginResponse_Warnings) EnumDescriptor deprecated

func (LoginResponse_Warnings) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoginResponse_Warnings.Descriptor instead.

func (LoginResponse_Warnings) Number

func (LoginResponse_Warnings) String

func (x LoginResponse_Warnings) String() string

func (LoginResponse_Warnings) Type

type UserInfo

type UserInfo struct {
	Name                   string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email                  string          `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	EmailVerified          bool            `protobuf:"varint,3,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	Birthdate              string          `protobuf:"bytes,4,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
	Gender                 UserInfo_Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=spotify.login5.v3.UserInfo_Gender" json:"gender,omitempty"`
	PhoneNumber            string          `protobuf:"bytes,6,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	PhoneNumberVerified    bool            `protobuf:"varint,7,opt,name=phone_number_verified,json=phoneNumberVerified,proto3" json:"phone_number_verified,omitempty"`
	EmailAlreadyRegistered bool            `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetBirthdate

func (x *UserInfo) GetBirthdate() string

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetEmailAlreadyRegistered

func (x *UserInfo) GetEmailAlreadyRegistered() bool

func (*UserInfo) GetEmailVerified

func (x *UserInfo) GetEmailVerified() bool

func (*UserInfo) GetGender

func (x *UserInfo) GetGender() UserInfo_Gender

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetPhoneNumber

func (x *UserInfo) GetPhoneNumber() string

func (*UserInfo) GetPhoneNumberVerified

func (x *UserInfo) GetPhoneNumberVerified() bool

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type UserInfo_Gender

type UserInfo_Gender int32
const (
	UserInfo_UNKNOWN UserInfo_Gender = 0
	UserInfo_MALE    UserInfo_Gender = 1
	UserInfo_FEMALE  UserInfo_Gender = 2
	UserInfo_NEUTRAL UserInfo_Gender = 3
)

func (UserInfo_Gender) Descriptor

func (UserInfo_Gender) Enum

func (x UserInfo_Gender) Enum() *UserInfo_Gender

func (UserInfo_Gender) EnumDescriptor deprecated

func (UserInfo_Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserInfo_Gender.Descriptor instead.

func (UserInfo_Gender) Number

func (UserInfo_Gender) String

func (x UserInfo_Gender) String() string

func (UserInfo_Gender) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL