user

package
v1.36.10-2023053109212... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AuthMethod_LoginType_case case_AuthMethod_Method = 1
View Source
const AuthMethod_Method_not_set_case case_AuthMethod_Method = 0
View Source
const AuthMethod_OauthProvider_case case_AuthMethod_Method = 2
View Source
const RegisterMethod_Method_not_set_case case_RegisterMethod_Method = 0
View Source
const RegisterMethod_OauthProvider_case case_RegisterMethod_Method = 3
View Source
const RegisterMethod_Signup_case case_RegisterMethod_Method = 2
View Source
const RegisterMethod_System_case case_RegisterMethod_Method = 1
View Source
const Update_AvatarColor_case case_Update_Field = 11
View Source
const Update_DeleteMetadataKey_case case_Update_Field = 10
View Source
const Update_Email_case case_Update_Field = 1
View Source
const Update_Field_not_set_case case_Update_Field = 0
View Source
const Update_IsEmailVerified_case case_Update_Field = 6
View Source
const Update_IsPhoneVerified_case case_Update_Field = 7
View Source
const Update_Password_case case_Update_Field = 4
View Source
const Update_PhoneNumber_case case_Update_Field = 3
View Source
const Update_Profile_case case_Update_Field = 5
View Source
const Update_ResetRessions_case case_Update_Field = 8
View Source
const Update_SetMetadata_case case_Update_Field = 9
View Source
const Update_Username_case case_Update_Field = 2

Variables

View Source
var (
	VerificationType_name = map[int32]string{
		0: "VERIFICATION_TYPE_UNSPECIFIED",
		1: "VERIFICATION_TYPE_EMAIL",
		2: "VERIFICATION_TYPE_TEXT",
		3: "VERIFICATION_TYPE_RESET_PASSWORD",
		4: "VERIFICATION_TYPE_MAGIC_CODE",
	}
	VerificationType_value = map[string]int32{
		"VERIFICATION_TYPE_UNSPECIFIED":    0,
		"VERIFICATION_TYPE_EMAIL":          1,
		"VERIFICATION_TYPE_TEXT":           2,
		"VERIFICATION_TYPE_RESET_PASSWORD": 3,
		"VERIFICATION_TYPE_MAGIC_CODE":     4,
	}
)

Enum value maps for VerificationType.

View Source
var (
	DeviceInfo_name = map[int32]string{
		0: "DEVICE_INFO_UNSPECIFIED",
		1: "DEVICE_INFO_IOS",
		2: "DEVICE_INFO_MACOS",
		3: "DEVICE_INFO_WINDOWS",
		4: "DEVICE_INFO_WEB",
		5: "DEVICE_INFO_LINUX",
		6: "DEVICE_INFO_ANDROID",
	}
	DeviceInfo_value = map[string]int32{
		"DEVICE_INFO_UNSPECIFIED": 0,
		"DEVICE_INFO_IOS":         1,
		"DEVICE_INFO_MACOS":       2,
		"DEVICE_INFO_WINDOWS":     3,
		"DEVICE_INFO_WEB":         4,
		"DEVICE_INFO_LINUX":       5,
		"DEVICE_INFO_ANDROID":     6,
	}
)

Enum value maps for DeviceInfo.

View Source
var (
	Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for Permissionship.

View Source
var (
	OauthProvider_name = map[int32]string{
		0: "OAUTH_PROVIDER_UNSPECIFIED",
		1: "OAUTH_PROVIDER_GOOGLE",
		2: "OAUTH_PROVIDER_GITHUB",
		3: "OAUTH_PROVIDER_FACEBOOK",
	}
	OauthProvider_value = map[string]int32{
		"OAUTH_PROVIDER_UNSPECIFIED": 0,
		"OAUTH_PROVIDER_GOOGLE":      1,
		"OAUTH_PROVIDER_GITHUB":      2,
		"OAUTH_PROVIDER_FACEBOOK":    3,
	}
)

Enum value maps for OauthProvider.

View Source
var File_nuntio_management_model_user_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod struct {

	// Types that are valid to be assigned to Method:
	//
	//	*AuthMethod_LoginType
	//	*AuthMethod_OauthProvider
	Method isAuthMethod_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*AuthMethod) ClearLoginType

func (x *AuthMethod) ClearLoginType()

func (*AuthMethod) ClearMethod

func (x *AuthMethod) ClearMethod()

func (*AuthMethod) ClearOauthProvider

func (x *AuthMethod) ClearOauthProvider()

func (*AuthMethod) GetLoginType

func (x *AuthMethod) GetLoginType() auth.LoginType

func (*AuthMethod) GetMethod

func (x *AuthMethod) GetMethod() isAuthMethod_Method

func (*AuthMethod) GetOauthProvider

func (x *AuthMethod) GetOauthProvider() OauthProvider

func (*AuthMethod) HasLoginType

func (x *AuthMethod) HasLoginType() bool

func (*AuthMethod) HasMethod

func (x *AuthMethod) HasMethod() bool

func (*AuthMethod) HasOauthProvider

func (x *AuthMethod) HasOauthProvider() bool

func (*AuthMethod) ProtoMessage

func (*AuthMethod) ProtoMessage()

func (*AuthMethod) ProtoReflect

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

func (*AuthMethod) Reset

func (x *AuthMethod) Reset()

func (*AuthMethod) SetLoginType

func (x *AuthMethod) SetLoginType(v auth.LoginType)

func (*AuthMethod) SetOauthProvider

func (x *AuthMethod) SetOauthProvider(v OauthProvider)

func (*AuthMethod) String

func (x *AuthMethod) String() string

func (*AuthMethod) WhichMethod

func (x *AuthMethod) WhichMethod() case_AuthMethod_Method

type AuthMethod_LoginType

type AuthMethod_LoginType struct {
	LoginType auth.LoginType `protobuf:"varint,1,opt,name=login_type,json=loginType,proto3,enum=nuntio.sdk.model.auth.LoginType,oneof"`
}

type AuthMethod_OauthProvider

type AuthMethod_OauthProvider struct {
	OauthProvider OauthProvider `protobuf:"varint,2,opt,name=oauth_provider,json=oauthProvider,proto3,enum=nuntio.management.model.user.OauthProvider,oneof"`
}

type AuthMethod_builder

type AuthMethod_builder struct {

	// Fields of oneof Method:
	LoginType     *auth.LoginType
	OauthProvider *OauthProvider
	// contains filtered or unexported fields
}

func (AuthMethod_builder) Build

func (b0 AuthMethod_builder) Build() *AuthMethod

type Contact

type Contact struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FromUserId string                 `protobuf:"bytes,2,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"`
	ToUserId   string                 `protobuf:"bytes,3,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	From       *User                  `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
	To         *User                  `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	Accepted   bool                   `protobuf:"varint,6,opt,name=accepted,proto3" json:"accepted,omitempty"`
	AcceptedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"`
	SentAt     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Contact) ClearAcceptedAt

func (x *Contact) ClearAcceptedAt()

func (*Contact) ClearFrom

func (x *Contact) ClearFrom()

func (*Contact) ClearSentAt

func (x *Contact) ClearSentAt()

func (*Contact) ClearTo

func (x *Contact) ClearTo()

func (*Contact) GetAccepted

func (x *Contact) GetAccepted() bool

func (*Contact) GetAcceptedAt

func (x *Contact) GetAcceptedAt() *timestamppb.Timestamp

func (*Contact) GetFrom

func (x *Contact) GetFrom() *User

func (*Contact) GetFromUserId

func (x *Contact) GetFromUserId() string

func (*Contact) GetId

func (x *Contact) GetId() string

func (*Contact) GetSentAt

func (x *Contact) GetSentAt() *timestamppb.Timestamp

func (*Contact) GetTo

func (x *Contact) GetTo() *User

func (*Contact) GetToUserId

func (x *Contact) GetToUserId() string

func (*Contact) HasAcceptedAt

func (x *Contact) HasAcceptedAt() bool

func (*Contact) HasFrom

func (x *Contact) HasFrom() bool

func (*Contact) HasSentAt

func (x *Contact) HasSentAt() bool

func (*Contact) HasTo

func (x *Contact) HasTo() bool

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

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

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) SetAccepted

func (x *Contact) SetAccepted(v bool)

func (*Contact) SetAcceptedAt

func (x *Contact) SetAcceptedAt(v *timestamppb.Timestamp)

func (*Contact) SetFrom

func (x *Contact) SetFrom(v *User)

func (*Contact) SetFromUserId

func (x *Contact) SetFromUserId(v string)

func (*Contact) SetId

func (x *Contact) SetId(v string)

func (*Contact) SetSentAt

func (x *Contact) SetSentAt(v *timestamppb.Timestamp)

func (*Contact) SetTo

func (x *Contact) SetTo(v *User)

func (*Contact) SetToUserId

func (x *Contact) SetToUserId(v string)

func (*Contact) String

func (x *Contact) String() string

type Contact_builder

type Contact_builder struct {
	Id         string
	FromUserId string
	ToUserId   string
	From       *User
	To         *User
	Accepted   bool
	AcceptedAt *timestamppb.Timestamp
	SentAt     *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (Contact_builder) Build

func (b0 Contact_builder) Build() *Contact

type DeviceInfo

type DeviceInfo int32
const (
	DeviceInfo_DEVICE_INFO_UNSPECIFIED DeviceInfo = 0
	DeviceInfo_DEVICE_INFO_IOS         DeviceInfo = 1
	DeviceInfo_DEVICE_INFO_MACOS       DeviceInfo = 2
	DeviceInfo_DEVICE_INFO_WINDOWS     DeviceInfo = 3
	DeviceInfo_DEVICE_INFO_WEB         DeviceInfo = 4
	DeviceInfo_DEVICE_INFO_LINUX       DeviceInfo = 5
	DeviceInfo_DEVICE_INFO_ANDROID     DeviceInfo = 6
)

func (DeviceInfo) Descriptor

func (DeviceInfo) Descriptor() protoreflect.EnumDescriptor

func (DeviceInfo) Enum

func (x DeviceInfo) Enum() *DeviceInfo

func (DeviceInfo) Number

func (x DeviceInfo) Number() protoreflect.EnumNumber

func (DeviceInfo) String

func (x DeviceInfo) String() string

func (DeviceInfo) Type

type Entry

type Entry struct {
	UserId       *model.UUID            `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Identifier   string                 `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Image        *common.Image          `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	AvatarColor  common.AvatarColor     `` /* 143-byte string literal not displayed */
	RegisterInfo *RegisterInfo          `protobuf:"bytes,5,opt,name=register_info,json=registerInfo,proto3" json:"register_info,omitempty"`
	Verified     bool                   `protobuf:"varint,6,opt,name=verified,proto3" json:"verified,omitempty"`
	Groups       []*group.Entry         `protobuf:"bytes,7,rep,name=groups,proto3" json:"groups,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Wrapper entry for returning a collection of users.

func (*Entry) ClearCreatedAt

func (x *Entry) ClearCreatedAt()

func (*Entry) ClearImage

func (x *Entry) ClearImage()

func (*Entry) ClearRegisterInfo

func (x *Entry) ClearRegisterInfo()

func (*Entry) ClearUserId

func (x *Entry) ClearUserId()

func (*Entry) GetAvatarColor

func (x *Entry) GetAvatarColor() common.AvatarColor

func (*Entry) GetCreatedAt

func (x *Entry) GetCreatedAt() *timestamppb.Timestamp

func (*Entry) GetGroups

func (x *Entry) GetGroups() []*group.Entry

func (*Entry) GetIdentifier

func (x *Entry) GetIdentifier() string

func (*Entry) GetImage

func (x *Entry) GetImage() *common.Image

func (*Entry) GetRegisterInfo

func (x *Entry) GetRegisterInfo() *RegisterInfo

func (*Entry) GetUserId

func (x *Entry) GetUserId() *model.UUID

func (*Entry) GetVerified

func (x *Entry) GetVerified() bool

func (*Entry) HasCreatedAt

func (x *Entry) HasCreatedAt() bool

func (*Entry) HasImage

func (x *Entry) HasImage() bool

func (*Entry) HasRegisterInfo

func (x *Entry) HasRegisterInfo() bool

func (*Entry) HasUserId

func (x *Entry) HasUserId() bool

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) SetAvatarColor

func (x *Entry) SetAvatarColor(v common.AvatarColor)

func (*Entry) SetCreatedAt

func (x *Entry) SetCreatedAt(v *timestamppb.Timestamp)

func (*Entry) SetGroups

func (x *Entry) SetGroups(v []*group.Entry)

func (*Entry) SetIdentifier

func (x *Entry) SetIdentifier(v string)

func (*Entry) SetImage

func (x *Entry) SetImage(v *common.Image)

func (*Entry) SetRegisterInfo

func (x *Entry) SetRegisterInfo(v *RegisterInfo)

func (*Entry) SetUserId

func (x *Entry) SetUserId(v *model.UUID)

func (*Entry) SetVerified

func (x *Entry) SetVerified(v bool)

func (*Entry) String

func (x *Entry) String() string

type Entry_builder

type Entry_builder struct {
	UserId       *model.UUID
	Identifier   string
	Image        *common.Image
	AvatarColor  common.AvatarColor
	RegisterInfo *RegisterInfo
	Verified     bool
	Groups       []*group.Entry
	CreatedAt    *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (Entry_builder) Build

func (b0 Entry_builder) Build() *Entry

type File

type File struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Url         string                 `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	ContentType string                 `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Path        string                 `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
	Duration    *durationpb.Duration   `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"`
	Size        int64                  `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
	Data        []byte                 `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*File) ClearCreatedAt

func (x *File) ClearCreatedAt()

func (*File) ClearDuration

func (x *File) ClearDuration()

func (*File) GetContentType

func (x *File) GetContentType() string

func (*File) GetCreatedAt

func (x *File) GetCreatedAt() *timestamppb.Timestamp

func (*File) GetData

func (x *File) GetData() []byte

func (*File) GetDuration

func (x *File) GetDuration() *durationpb.Duration

func (*File) GetName

func (x *File) GetName() string

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetUrl

func (x *File) GetUrl() string

func (*File) HasCreatedAt

func (x *File) HasCreatedAt() bool

func (*File) HasDuration

func (x *File) HasDuration() bool

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) SetContentType

func (x *File) SetContentType(v string)

func (*File) SetCreatedAt

func (x *File) SetCreatedAt(v *timestamppb.Timestamp)

func (*File) SetData

func (x *File) SetData(v []byte)

func (*File) SetDuration

func (x *File) SetDuration(v *durationpb.Duration)

func (*File) SetName

func (x *File) SetName(v string)

func (*File) SetPath

func (x *File) SetPath(v string)

func (*File) SetSize

func (x *File) SetSize(v int64)

func (*File) SetUrl

func (x *File) SetUrl(v string)

func (*File) String

func (x *File) String() string

type File_builder

type File_builder struct {
	Name        string
	CreatedAt   *timestamppb.Timestamp
	Url         string
	ContentType string
	Path        string
	Duration    *durationpb.Duration
	Size        int64
	Data        []byte
	// contains filtered or unexported fields
}

func (File_builder) Build

func (b0 File_builder) Build() *File

type Folder

type Folder struct {
	Path    string    `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Files   []*File   `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	Folders []*Folder `protobuf:"bytes,3,rep,name=folders,proto3" json:"folders,omitempty"`
	Name    string    `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Folder) GetFiles

func (x *Folder) GetFiles() []*File

func (*Folder) GetFolders

func (x *Folder) GetFolders() []*Folder

func (*Folder) GetName

func (x *Folder) GetName() string

func (*Folder) GetPath

func (x *Folder) GetPath() string

func (*Folder) ProtoMessage

func (*Folder) ProtoMessage()

func (*Folder) ProtoReflect

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

func (*Folder) Reset

func (x *Folder) Reset()

func (*Folder) SetFiles

func (x *Folder) SetFiles(v []*File)

func (*Folder) SetFolders

func (x *Folder) SetFolders(v []*Folder)

func (*Folder) SetName

func (x *Folder) SetName(v string)

func (*Folder) SetPath

func (x *Folder) SetPath(v string)

func (*Folder) String

func (x *Folder) String() string

type Folder_builder

type Folder_builder struct {
	Path    string
	Files   []*File
	Folders []*Folder
	Name    string
	// contains filtered or unexported fields
}

func (Folder_builder) Build

func (b0 Folder_builder) Build() *Folder

type MemberEntry

type MemberEntry struct {
	User     *Entry                 `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	JoinedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
	// contains filtered or unexported fields
}

func (*MemberEntry) ClearJoinedAt

func (x *MemberEntry) ClearJoinedAt()

func (*MemberEntry) ClearUser

func (x *MemberEntry) ClearUser()

func (*MemberEntry) GetJoinedAt

func (x *MemberEntry) GetJoinedAt() *timestamppb.Timestamp

func (*MemberEntry) GetUser

func (x *MemberEntry) GetUser() *Entry

func (*MemberEntry) HasJoinedAt

func (x *MemberEntry) HasJoinedAt() bool

func (*MemberEntry) HasUser

func (x *MemberEntry) HasUser() bool

func (*MemberEntry) ProtoMessage

func (*MemberEntry) ProtoMessage()

func (*MemberEntry) ProtoReflect

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

func (*MemberEntry) Reset

func (x *MemberEntry) Reset()

func (*MemberEntry) SetJoinedAt

func (x *MemberEntry) SetJoinedAt(v *timestamppb.Timestamp)

func (*MemberEntry) SetUser

func (x *MemberEntry) SetUser(v *Entry)

func (*MemberEntry) String

func (x *MemberEntry) String() string

type MemberEntry_builder

type MemberEntry_builder struct {
	User     *Entry
	JoinedAt *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (MemberEntry_builder) Build

func (b0 MemberEntry_builder) Build() *MemberEntry
type Oauth2ProviderLink struct {
	Provider  OauthProvider          `protobuf:"varint,1,opt,name=provider,proto3,enum=nuntio.management.model.user.OauthProvider" json:"provider,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Issuer    string                 `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Subject   string                 `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*Oauth2ProviderLink) ClearCreatedAt

func (x *Oauth2ProviderLink) ClearCreatedAt()

func (*Oauth2ProviderLink) GetCreatedAt

func (x *Oauth2ProviderLink) GetCreatedAt() *timestamppb.Timestamp

func (*Oauth2ProviderLink) GetIssuer

func (x *Oauth2ProviderLink) GetIssuer() string

func (*Oauth2ProviderLink) GetProvider

func (x *Oauth2ProviderLink) GetProvider() OauthProvider

func (*Oauth2ProviderLink) GetSubject

func (x *Oauth2ProviderLink) GetSubject() string

func (*Oauth2ProviderLink) HasCreatedAt

func (x *Oauth2ProviderLink) HasCreatedAt() bool

func (*Oauth2ProviderLink) ProtoMessage

func (*Oauth2ProviderLink) ProtoMessage()

func (*Oauth2ProviderLink) ProtoReflect

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

func (*Oauth2ProviderLink) Reset

func (x *Oauth2ProviderLink) Reset()

func (*Oauth2ProviderLink) SetCreatedAt

func (x *Oauth2ProviderLink) SetCreatedAt(v *timestamppb.Timestamp)

func (*Oauth2ProviderLink) SetIssuer

func (x *Oauth2ProviderLink) SetIssuer(v string)

func (*Oauth2ProviderLink) SetProvider

func (x *Oauth2ProviderLink) SetProvider(v OauthProvider)

func (*Oauth2ProviderLink) SetSubject

func (x *Oauth2ProviderLink) SetSubject(v string)

func (*Oauth2ProviderLink) String

func (x *Oauth2ProviderLink) String() string
type Oauth2ProviderLink_builder struct {
	Provider  OauthProvider
	CreatedAt *timestamppb.Timestamp
	Issuer    string
	Subject   string
	// contains filtered or unexported fields
}

type OauthProvider

type OauthProvider int32
const (
	OauthProvider_OAUTH_PROVIDER_UNSPECIFIED OauthProvider = 0
	OauthProvider_OAUTH_PROVIDER_GOOGLE      OauthProvider = 1
	OauthProvider_OAUTH_PROVIDER_GITHUB      OauthProvider = 2
	OauthProvider_OAUTH_PROVIDER_FACEBOOK    OauthProvider = 3
)

func (OauthProvider) Descriptor

func (OauthProvider) Enum

func (x OauthProvider) Enum() *OauthProvider

func (OauthProvider) Number

func (OauthProvider) String

func (x OauthProvider) String() string

func (OauthProvider) Type

type OauthProviderSettings

type OauthProviderSettings struct {
	Provider      OauthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=nuntio.management.model.user.OauthProvider" json:"provider,omitempty"`
	ClientId      string        `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret  string        `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	ProviderUrl   string        `protobuf:"bytes,4,opt,name=provider_url,json=providerUrl,proto3" json:"provider_url,omitempty"`
	Issuer        string        `protobuf:"bytes,5,opt,name=issuer,proto3" json:"issuer,omitempty"`
	AllowLogin    bool          `protobuf:"varint,6,opt,name=allow_login,json=allowLogin,proto3" json:"allow_login,omitempty"`
	AllowRegister bool          `protobuf:"varint,7,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"`
	// contains filtered or unexported fields
}

func (*OauthProviderSettings) GetAllowLogin

func (x *OauthProviderSettings) GetAllowLogin() bool

func (*OauthProviderSettings) GetAllowRegister

func (x *OauthProviderSettings) GetAllowRegister() bool

func (*OauthProviderSettings) GetClientId

func (x *OauthProviderSettings) GetClientId() string

func (*OauthProviderSettings) GetClientSecret

func (x *OauthProviderSettings) GetClientSecret() string

func (*OauthProviderSettings) GetIssuer

func (x *OauthProviderSettings) GetIssuer() string

func (*OauthProviderSettings) GetProvider

func (x *OauthProviderSettings) GetProvider() OauthProvider

func (*OauthProviderSettings) GetProviderUrl

func (x *OauthProviderSettings) GetProviderUrl() string

func (*OauthProviderSettings) ProtoMessage

func (*OauthProviderSettings) ProtoMessage()

func (*OauthProviderSettings) ProtoReflect

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

func (*OauthProviderSettings) Reset

func (x *OauthProviderSettings) Reset()

func (*OauthProviderSettings) SetAllowLogin

func (x *OauthProviderSettings) SetAllowLogin(v bool)

func (*OauthProviderSettings) SetAllowRegister

func (x *OauthProviderSettings) SetAllowRegister(v bool)

func (*OauthProviderSettings) SetClientId

func (x *OauthProviderSettings) SetClientId(v string)

func (*OauthProviderSettings) SetClientSecret

func (x *OauthProviderSettings) SetClientSecret(v string)

func (*OauthProviderSettings) SetIssuer

func (x *OauthProviderSettings) SetIssuer(v string)

func (*OauthProviderSettings) SetProvider

func (x *OauthProviderSettings) SetProvider(v OauthProvider)

func (*OauthProviderSettings) SetProviderUrl

func (x *OauthProviderSettings) SetProviderUrl(v string)

func (*OauthProviderSettings) String

func (x *OauthProviderSettings) String() string

type OauthProviderSettings_builder

type OauthProviderSettings_builder struct {
	Provider      OauthProvider
	ClientId      string
	ClientSecret  string
	ProviderUrl   string
	Issuer        string
	AllowLogin    bool
	AllowRegister bool
	// contains filtered or unexported fields
}

func (OauthProviderSettings_builder) Build

type OauthSettings

type OauthSettings struct {
	CallbackUrls []string               `protobuf:"bytes,1,rep,name=callback_urls,json=callbackUrls,proto3" json:"callback_urls,omitempty"`
	Google       *OauthProviderSettings `protobuf:"bytes,2,opt,name=google,proto3" json:"google,omitempty"`
	Github       *OauthProviderSettings `protobuf:"bytes,3,opt,name=github,proto3" json:"github,omitempty"`
	Facebook     *OauthProviderSettings `protobuf:"bytes,4,opt,name=facebook,proto3" json:"facebook,omitempty"`
	// contains filtered or unexported fields
}

func (*OauthSettings) ClearFacebook

func (x *OauthSettings) ClearFacebook()

func (*OauthSettings) ClearGithub

func (x *OauthSettings) ClearGithub()

func (*OauthSettings) ClearGoogle

func (x *OauthSettings) ClearGoogle()

func (*OauthSettings) GetCallbackUrls

func (x *OauthSettings) GetCallbackUrls() []string

func (*OauthSettings) GetFacebook

func (x *OauthSettings) GetFacebook() *OauthProviderSettings

func (*OauthSettings) GetGithub

func (x *OauthSettings) GetGithub() *OauthProviderSettings

func (*OauthSettings) GetGoogle

func (x *OauthSettings) GetGoogle() *OauthProviderSettings

func (*OauthSettings) HasFacebook

func (x *OauthSettings) HasFacebook() bool

func (*OauthSettings) HasGithub

func (x *OauthSettings) HasGithub() bool

func (*OauthSettings) HasGoogle

func (x *OauthSettings) HasGoogle() bool

func (*OauthSettings) ProtoMessage

func (*OauthSettings) ProtoMessage()

func (*OauthSettings) ProtoReflect

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

func (*OauthSettings) Reset

func (x *OauthSettings) Reset()

func (*OauthSettings) SetCallbackUrls

func (x *OauthSettings) SetCallbackUrls(v []string)

func (*OauthSettings) SetFacebook

func (x *OauthSettings) SetFacebook(v *OauthProviderSettings)

func (*OauthSettings) SetGithub

func (x *OauthSettings) SetGithub(v *OauthProviderSettings)

func (*OauthSettings) SetGoogle

func (x *OauthSettings) SetGoogle(v *OauthProviderSettings)

func (*OauthSettings) String

func (x *OauthSettings) String() string

type OauthSettings_builder

type OauthSettings_builder struct {
	CallbackUrls []string
	Google       *OauthProviderSettings
	Github       *OauthProviderSettings
	Facebook     *OauthProviderSettings
	// contains filtered or unexported fields
}

func (OauthSettings_builder) Build

type Object

type Object struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Object) GetId

func (x *Object) GetId() string

func (*Object) GetType

func (x *Object) GetType() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) SetId

func (x *Object) SetId(v string)

func (*Object) SetType

func (x *Object) SetType(v string)

func (*Object) String

func (x *Object) String() string

type Object_builder

type Object_builder struct {
	Id   string
	Type string
	// contains filtered or unexported fields
}

func (Object_builder) Build

func (b0 Object_builder) Build() *Object

type Permissionship

type Permissionship int32
const (
	Permissionship_PERMISSIONSHIP_UNSPECIFIED            Permissionship = 0
	Permissionship_PERMISSIONSHIP_NO_PERMISSION          Permissionship = 1
	Permissionship_PERMISSIONSHIP_HAS_PERMISSION         Permissionship = 2
	Permissionship_PERMISSIONSHIP_CONDITIONAL_PERMISSION Permissionship = 3
)

func (Permissionship) Descriptor

func (Permissionship) Enum

func (x Permissionship) Enum() *Permissionship

func (Permissionship) Number

func (Permissionship) String

func (x Permissionship) String() string

func (Permissionship) Type

type Profile

type Profile struct {
	ProfileImage      *common.Image      `protobuf:"bytes,1,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"`
	AvatarColor       common.AvatarColor `` /* 143-byte string literal not displayed */
	FirstName         string             `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName          string             `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	PreferredLanguage string             `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
	Country           string             `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) ClearProfileImage

func (x *Profile) ClearProfileImage()

func (*Profile) GetAvatarColor

func (x *Profile) GetAvatarColor() common.AvatarColor

func (*Profile) GetCountry

func (x *Profile) GetCountry() string

func (*Profile) GetFirstName

func (x *Profile) GetFirstName() string

func (*Profile) GetLastName

func (x *Profile) GetLastName() string

func (*Profile) GetPreferredLanguage

func (x *Profile) GetPreferredLanguage() string

func (*Profile) GetProfileImage

func (x *Profile) GetProfileImage() *common.Image

func (*Profile) HasProfileImage

func (x *Profile) HasProfileImage() bool

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) SetAvatarColor

func (x *Profile) SetAvatarColor(v common.AvatarColor)

func (*Profile) SetCountry

func (x *Profile) SetCountry(v string)

func (*Profile) SetFirstName

func (x *Profile) SetFirstName(v string)

func (*Profile) SetLastName

func (x *Profile) SetLastName(v string)

func (*Profile) SetPreferredLanguage

func (x *Profile) SetPreferredLanguage(v string)

func (*Profile) SetProfileImage

func (x *Profile) SetProfileImage(v *common.Image)

func (*Profile) String

func (x *Profile) String() string

type Profile_builder

type Profile_builder struct {
	ProfileImage      *common.Image
	AvatarColor       common.AvatarColor
	FirstName         string
	LastName          string
	PreferredLanguage string
	Country           string
	// contains filtered or unexported fields
}

func (Profile_builder) Build

func (b0 Profile_builder) Build() *Profile

type RegisterInfo

type RegisterInfo struct {
	CreaterId *model.UUID     `protobuf:"bytes,1,opt,name=creater_id,json=createrId,proto3" json:"creater_id,omitempty"`
	Method    *RegisterMethod `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterInfo) ClearCreaterId

func (x *RegisterInfo) ClearCreaterId()

func (*RegisterInfo) ClearMethod

func (x *RegisterInfo) ClearMethod()

func (*RegisterInfo) GetCreaterId

func (x *RegisterInfo) GetCreaterId() *model.UUID

func (*RegisterInfo) GetMethod

func (x *RegisterInfo) GetMethod() *RegisterMethod

func (*RegisterInfo) HasCreaterId

func (x *RegisterInfo) HasCreaterId() bool

func (*RegisterInfo) HasMethod

func (x *RegisterInfo) HasMethod() bool

func (*RegisterInfo) ProtoMessage

func (*RegisterInfo) ProtoMessage()

func (*RegisterInfo) ProtoReflect

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

func (*RegisterInfo) Reset

func (x *RegisterInfo) Reset()

func (*RegisterInfo) SetCreaterId

func (x *RegisterInfo) SetCreaterId(v *model.UUID)

func (*RegisterInfo) SetMethod

func (x *RegisterInfo) SetMethod(v *RegisterMethod)

func (*RegisterInfo) String

func (x *RegisterInfo) String() string

type RegisterInfo_builder

type RegisterInfo_builder struct {
	CreaterId *model.UUID
	Method    *RegisterMethod
	// contains filtered or unexported fields
}

func (RegisterInfo_builder) Build

func (b0 RegisterInfo_builder) Build() *RegisterInfo

type RegisterMethod

type RegisterMethod struct {

	// Types that are valid to be assigned to Method:
	//
	//	*RegisterMethod_System_
	//	*RegisterMethod_Signup_
	//	*RegisterMethod_OauthProvider
	Method isRegisterMethod_Method `protobuf_oneof:"method"`
	// contains filtered or unexported fields
}

func (*RegisterMethod) ClearMethod

func (x *RegisterMethod) ClearMethod()

func (*RegisterMethod) ClearOauthProvider

func (x *RegisterMethod) ClearOauthProvider()

func (*RegisterMethod) ClearSignup

func (x *RegisterMethod) ClearSignup()

func (*RegisterMethod) ClearSystem

func (x *RegisterMethod) ClearSystem()

func (*RegisterMethod) GetMethod

func (x *RegisterMethod) GetMethod() isRegisterMethod_Method

func (*RegisterMethod) GetOauthProvider

func (x *RegisterMethod) GetOauthProvider() OauthProvider

func (*RegisterMethod) GetSignup

func (x *RegisterMethod) GetSignup() *RegisterMethod_Signup

func (*RegisterMethod) GetSystem

func (x *RegisterMethod) GetSystem() *RegisterMethod_System

func (*RegisterMethod) HasMethod

func (x *RegisterMethod) HasMethod() bool

func (*RegisterMethod) HasOauthProvider

func (x *RegisterMethod) HasOauthProvider() bool

func (*RegisterMethod) HasSignup

func (x *RegisterMethod) HasSignup() bool

func (*RegisterMethod) HasSystem

func (x *RegisterMethod) HasSystem() bool

func (*RegisterMethod) ProtoMessage

func (*RegisterMethod) ProtoMessage()

func (*RegisterMethod) ProtoReflect

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

func (*RegisterMethod) Reset

func (x *RegisterMethod) Reset()

func (*RegisterMethod) SetOauthProvider

func (x *RegisterMethod) SetOauthProvider(v OauthProvider)

func (*RegisterMethod) SetSignup

func (x *RegisterMethod) SetSignup(v *RegisterMethod_Signup)

func (*RegisterMethod) SetSystem

func (x *RegisterMethod) SetSystem(v *RegisterMethod_System)

func (*RegisterMethod) String

func (x *RegisterMethod) String() string

func (*RegisterMethod) WhichMethod

func (x *RegisterMethod) WhichMethod() case_RegisterMethod_Method

type RegisterMethod_OauthProvider

type RegisterMethod_OauthProvider struct {
	OauthProvider OauthProvider `protobuf:"varint,3,opt,name=oauth_provider,json=oauthProvider,proto3,enum=nuntio.management.model.user.OauthProvider,oneof"`
}

type RegisterMethod_Signup

type RegisterMethod_Signup struct {
	LoginType auth.LoginType `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RegisterMethod_Signup) GetLoginType

func (x *RegisterMethod_Signup) GetLoginType() auth.LoginType

func (*RegisterMethod_Signup) ProtoMessage

func (*RegisterMethod_Signup) ProtoMessage()

func (*RegisterMethod_Signup) ProtoReflect

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

func (*RegisterMethod_Signup) Reset

func (x *RegisterMethod_Signup) Reset()

func (*RegisterMethod_Signup) SetLoginType

func (x *RegisterMethod_Signup) SetLoginType(v auth.LoginType)

func (*RegisterMethod_Signup) String

func (x *RegisterMethod_Signup) String() string

type RegisterMethod_Signup_

type RegisterMethod_Signup_ struct {
	Signup *RegisterMethod_Signup `protobuf:"bytes,2,opt,name=signup,proto3,oneof"`
}

type RegisterMethod_Signup_builder

type RegisterMethod_Signup_builder struct {
	LoginType auth.LoginType
	// contains filtered or unexported fields
}

func (RegisterMethod_Signup_builder) Build

type RegisterMethod_System

type RegisterMethod_System struct {
	// contains filtered or unexported fields
}

func (*RegisterMethod_System) ProtoMessage

func (*RegisterMethod_System) ProtoMessage()

func (*RegisterMethod_System) ProtoReflect

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

func (*RegisterMethod_System) Reset

func (x *RegisterMethod_System) Reset()

func (*RegisterMethod_System) String

func (x *RegisterMethod_System) String() string

type RegisterMethod_System_

type RegisterMethod_System_ struct {
	System *RegisterMethod_System `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}

type RegisterMethod_System_builder

type RegisterMethod_System_builder struct {
	// contains filtered or unexported fields
}

func (RegisterMethod_System_builder) Build

type RegisterMethod_builder

type RegisterMethod_builder struct {

	// Fields of oneof Method:
	System        *RegisterMethod_System
	Signup        *RegisterMethod_Signup
	OauthProvider *OauthProvider
	// contains filtered or unexported fields
}

func (RegisterMethod_builder) Build

type Session

type Session struct {
	AuthMethod    *AuthMethod            `protobuf:"bytes,1,opt,name=auth_method,json=authMethod,proto3" json:"auth_method,omitempty"`
	IsInvalidated bool                   `protobuf:"varint,2,opt,name=is_invalidated,json=isInvalidated,proto3" json:"is_invalidated,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	InvalidatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=invalidated_at,json=invalidatedAt,proto3" json:"invalidated_at,omitempty"`
	ExpiresAt     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	RenewedAt     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=renewed_at,json=renewedAt,proto3" json:"renewed_at,omitempty"`
	Country       string                 `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"`
	PostalCode    int32                  `protobuf:"varint,8,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	Device        DeviceInfo             `protobuf:"varint,9,opt,name=device,proto3,enum=nuntio.management.model.user.DeviceInfo" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) ClearAuthMethod

func (x *Session) ClearAuthMethod()

func (*Session) ClearCreatedAt

func (x *Session) ClearCreatedAt()

func (*Session) ClearExpiresAt

func (x *Session) ClearExpiresAt()

func (*Session) ClearInvalidatedAt

func (x *Session) ClearInvalidatedAt()

func (*Session) ClearRenewedAt

func (x *Session) ClearRenewedAt()

func (*Session) GetAuthMethod

func (x *Session) GetAuthMethod() *AuthMethod

func (*Session) GetCountry

func (x *Session) GetCountry() string

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() *timestamppb.Timestamp

func (*Session) GetDevice

func (x *Session) GetDevice() DeviceInfo

func (*Session) GetExpiresAt

func (x *Session) GetExpiresAt() *timestamppb.Timestamp

func (*Session) GetInvalidatedAt

func (x *Session) GetInvalidatedAt() *timestamppb.Timestamp

func (*Session) GetIsInvalidated

func (x *Session) GetIsInvalidated() bool

func (*Session) GetPostalCode

func (x *Session) GetPostalCode() int32

func (*Session) GetRenewedAt

func (x *Session) GetRenewedAt() *timestamppb.Timestamp

func (*Session) HasAuthMethod

func (x *Session) HasAuthMethod() bool

func (*Session) HasCreatedAt

func (x *Session) HasCreatedAt() bool

func (*Session) HasExpiresAt

func (x *Session) HasExpiresAt() bool

func (*Session) HasInvalidatedAt

func (x *Session) HasInvalidatedAt() bool

func (*Session) HasRenewedAt

func (x *Session) HasRenewedAt() bool

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) SetAuthMethod

func (x *Session) SetAuthMethod(v *AuthMethod)

func (*Session) SetCountry

func (x *Session) SetCountry(v string)

func (*Session) SetCreatedAt

func (x *Session) SetCreatedAt(v *timestamppb.Timestamp)

func (*Session) SetDevice

func (x *Session) SetDevice(v DeviceInfo)

func (*Session) SetExpiresAt

func (x *Session) SetExpiresAt(v *timestamppb.Timestamp)

func (*Session) SetInvalidatedAt

func (x *Session) SetInvalidatedAt(v *timestamppb.Timestamp)

func (*Session) SetIsInvalidated

func (x *Session) SetIsInvalidated(v bool)

func (*Session) SetPostalCode

func (x *Session) SetPostalCode(v int32)

func (*Session) SetRenewedAt

func (x *Session) SetRenewedAt(v *timestamppb.Timestamp)

func (*Session) String

func (x *Session) String() string

type SessionEntry

type SessionEntry struct {
	SessionId *model.UUID `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Session   *Session    `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionEntry) ClearSession

func (x *SessionEntry) ClearSession()

func (*SessionEntry) ClearSessionId

func (x *SessionEntry) ClearSessionId()

func (*SessionEntry) GetSession

func (x *SessionEntry) GetSession() *Session

func (*SessionEntry) GetSessionId

func (x *SessionEntry) GetSessionId() *model.UUID

func (*SessionEntry) HasSession

func (x *SessionEntry) HasSession() bool

func (*SessionEntry) HasSessionId

func (x *SessionEntry) HasSessionId() bool

func (*SessionEntry) ProtoMessage

func (*SessionEntry) ProtoMessage()

func (*SessionEntry) ProtoReflect

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

func (*SessionEntry) Reset

func (x *SessionEntry) Reset()

func (*SessionEntry) SetSession

func (x *SessionEntry) SetSession(v *Session)

func (*SessionEntry) SetSessionId

func (x *SessionEntry) SetSessionId(v *model.UUID)

func (*SessionEntry) String

func (x *SessionEntry) String() string

type SessionEntry_builder

type SessionEntry_builder struct {
	SessionId *model.UUID
	Session   *Session
	// contains filtered or unexported fields
}

func (SessionEntry_builder) Build

func (b0 SessionEntry_builder) Build() *SessionEntry

type Session_builder

type Session_builder struct {
	AuthMethod    *AuthMethod
	IsInvalidated bool
	CreatedAt     *timestamppb.Timestamp
	InvalidatedAt *timestamppb.Timestamp
	ExpiresAt     *timestamppb.Timestamp
	RenewedAt     *timestamppb.Timestamp
	Country       string
	PostalCode    int32
	Device        DeviceInfo
	// contains filtered or unexported fields
}

func (Session_builder) Build

func (b0 Session_builder) Build() *Session

type Settings

type Settings struct {
	AllowRegister           bool                  `protobuf:"varint,1,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"`
	IsVerifiedEmailRequired bool                  `` /* 135-byte string literal not displayed */
	IsVerifiedPhoneRequired bool                  `` /* 135-byte string literal not displayed */
	AccessTokenTtl          *durationpb.Duration  `protobuf:"bytes,4,opt,name=access_token_ttl,json=accessTokenTtl,proto3" json:"access_token_ttl,omitempty"`
	RefreshTokenTtl         *durationpb.Duration  `protobuf:"bytes,5,opt,name=refresh_token_ttl,json=refreshTokenTtl,proto3" json:"refresh_token_ttl,omitempty"`
	VerificationCodeTtl     *durationpb.Duration  `protobuf:"bytes,6,opt,name=verification_code_ttl,json=verificationCodeTtl,proto3" json:"verification_code_ttl,omitempty"`
	PasswordHashing         *common.HashingConfig `protobuf:"bytes,7,opt,name=password_hashing,json=passwordHashing,proto3" json:"password_hashing,omitempty"`
	LoginMechanisms         []auth.LoginType      `` /* 151-byte string literal not displayed */
	OauthSettings           *OauthSettings        `protobuf:"bytes,9,opt,name=oauth_settings,json=oauthSettings,proto3" json:"oauth_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*Settings) ClearAccessTokenTtl

func (x *Settings) ClearAccessTokenTtl()

func (*Settings) ClearOauthSettings

func (x *Settings) ClearOauthSettings()

func (*Settings) ClearPasswordHashing

func (x *Settings) ClearPasswordHashing()

func (*Settings) ClearRefreshTokenTtl

func (x *Settings) ClearRefreshTokenTtl()

func (*Settings) ClearVerificationCodeTtl

func (x *Settings) ClearVerificationCodeTtl()

func (*Settings) GetAccessTokenTtl

func (x *Settings) GetAccessTokenTtl() *durationpb.Duration

func (*Settings) GetAllowRegister

func (x *Settings) GetAllowRegister() bool

func (*Settings) GetIsVerifiedEmailRequired

func (x *Settings) GetIsVerifiedEmailRequired() bool

func (*Settings) GetIsVerifiedPhoneRequired

func (x *Settings) GetIsVerifiedPhoneRequired() bool

func (*Settings) GetLoginMechanisms

func (x *Settings) GetLoginMechanisms() []auth.LoginType

func (*Settings) GetOauthSettings

func (x *Settings) GetOauthSettings() *OauthSettings

func (*Settings) GetPasswordHashing

func (x *Settings) GetPasswordHashing() *common.HashingConfig

func (*Settings) GetRefreshTokenTtl

func (x *Settings) GetRefreshTokenTtl() *durationpb.Duration

func (*Settings) GetVerificationCodeTtl

func (x *Settings) GetVerificationCodeTtl() *durationpb.Duration

func (*Settings) HasAccessTokenTtl

func (x *Settings) HasAccessTokenTtl() bool

func (*Settings) HasOauthSettings

func (x *Settings) HasOauthSettings() bool

func (*Settings) HasPasswordHashing

func (x *Settings) HasPasswordHashing() bool

func (*Settings) HasRefreshTokenTtl

func (x *Settings) HasRefreshTokenTtl() bool

func (*Settings) HasVerificationCodeTtl

func (x *Settings) HasVerificationCodeTtl() bool

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

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

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) SetAccessTokenTtl

func (x *Settings) SetAccessTokenTtl(v *durationpb.Duration)

func (*Settings) SetAllowRegister

func (x *Settings) SetAllowRegister(v bool)

func (*Settings) SetIsVerifiedEmailRequired

func (x *Settings) SetIsVerifiedEmailRequired(v bool)

func (*Settings) SetIsVerifiedPhoneRequired

func (x *Settings) SetIsVerifiedPhoneRequired(v bool)

func (*Settings) SetLoginMechanisms

func (x *Settings) SetLoginMechanisms(v []auth.LoginType)

func (*Settings) SetOauthSettings

func (x *Settings) SetOauthSettings(v *OauthSettings)

func (*Settings) SetPasswordHashing

func (x *Settings) SetPasswordHashing(v *common.HashingConfig)

func (*Settings) SetRefreshTokenTtl

func (x *Settings) SetRefreshTokenTtl(v *durationpb.Duration)

func (*Settings) SetVerificationCodeTtl

func (x *Settings) SetVerificationCodeTtl(v *durationpb.Duration)

func (*Settings) String

func (x *Settings) String() string

type Settings_builder

type Settings_builder struct {
	AllowRegister           bool
	IsVerifiedEmailRequired bool
	IsVerifiedPhoneRequired bool
	AccessTokenTtl          *durationpb.Duration
	RefreshTokenTtl         *durationpb.Duration
	VerificationCodeTtl     *durationpb.Duration
	PasswordHashing         *common.HashingConfig
	LoginMechanisms         []auth.LoginType
	OauthSettings           *OauthSettings
	// contains filtered or unexported fields
}

func (Settings_builder) Build

func (b0 Settings_builder) Build() *Settings

type Update

type Update struct {

	// Types that are valid to be assigned to Field:
	//
	//	*Update_Email
	//	*Update_Username
	//	*Update_PhoneNumber
	//	*Update_Password
	//	*Update_Profile
	//	*Update_IsEmailVerified
	//	*Update_IsPhoneVerified
	//	*Update_ResetRessions_
	//	*Update_SetMetadata
	//	*Update_DeleteMetadataKey
	//	*Update_AvatarColor
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Update) ClearAvatarColor

func (x *Update) ClearAvatarColor()

func (*Update) ClearDeleteMetadataKey

func (x *Update) ClearDeleteMetadataKey()

func (*Update) ClearEmail

func (x *Update) ClearEmail()

func (*Update) ClearField

func (x *Update) ClearField()

func (*Update) ClearIsEmailVerified

func (x *Update) ClearIsEmailVerified()

func (*Update) ClearIsPhoneVerified

func (x *Update) ClearIsPhoneVerified()

func (*Update) ClearPassword

func (x *Update) ClearPassword()

func (*Update) ClearPhoneNumber

func (x *Update) ClearPhoneNumber()

func (*Update) ClearProfile

func (x *Update) ClearProfile()

func (*Update) ClearResetRessions

func (x *Update) ClearResetRessions()

func (*Update) ClearSetMetadata

func (x *Update) ClearSetMetadata()

func (*Update) ClearUsername

func (x *Update) ClearUsername()

func (*Update) GetAvatarColor

func (x *Update) GetAvatarColor() common.AvatarColor

func (*Update) GetDeleteMetadataKey

func (x *Update) GetDeleteMetadataKey() string

func (*Update) GetEmail

func (x *Update) GetEmail() string

func (*Update) GetField

func (x *Update) GetField() isUpdate_Field

func (*Update) GetIsEmailVerified

func (x *Update) GetIsEmailVerified() bool

func (*Update) GetIsPhoneVerified

func (x *Update) GetIsPhoneVerified() bool

func (*Update) GetPassword

func (x *Update) GetPassword() string

func (*Update) GetPhoneNumber

func (x *Update) GetPhoneNumber() string

func (*Update) GetProfile

func (x *Update) GetProfile() *Profile

func (*Update) GetResetRessions

func (x *Update) GetResetRessions() *Update_ResetRessions

func (*Update) GetSetMetadata

func (x *Update) GetSetMetadata() *model.Metadata

func (*Update) GetUsername

func (x *Update) GetUsername() string

func (*Update) HasAvatarColor

func (x *Update) HasAvatarColor() bool

func (*Update) HasDeleteMetadataKey

func (x *Update) HasDeleteMetadataKey() bool

func (*Update) HasEmail

func (x *Update) HasEmail() bool

func (*Update) HasField

func (x *Update) HasField() bool

func (*Update) HasIsEmailVerified

func (x *Update) HasIsEmailVerified() bool

func (*Update) HasIsPhoneVerified

func (x *Update) HasIsPhoneVerified() bool

func (*Update) HasPassword

func (x *Update) HasPassword() bool

func (*Update) HasPhoneNumber

func (x *Update) HasPhoneNumber() bool

func (*Update) HasProfile

func (x *Update) HasProfile() bool

func (*Update) HasResetRessions

func (x *Update) HasResetRessions() bool

func (*Update) HasSetMetadata

func (x *Update) HasSetMetadata() bool

func (*Update) HasUsername

func (x *Update) HasUsername() bool

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) SetAvatarColor

func (x *Update) SetAvatarColor(v common.AvatarColor)

func (*Update) SetDeleteMetadataKey

func (x *Update) SetDeleteMetadataKey(v string)

func (*Update) SetEmail

func (x *Update) SetEmail(v string)

func (*Update) SetIsEmailVerified

func (x *Update) SetIsEmailVerified(v bool)

func (*Update) SetIsPhoneVerified

func (x *Update) SetIsPhoneVerified(v bool)

func (*Update) SetPassword

func (x *Update) SetPassword(v string)

func (*Update) SetPhoneNumber

func (x *Update) SetPhoneNumber(v string)

func (*Update) SetProfile

func (x *Update) SetProfile(v *Profile)

func (*Update) SetResetRessions

func (x *Update) SetResetRessions(v *Update_ResetRessions)

func (*Update) SetSetMetadata

func (x *Update) SetSetMetadata(v *model.Metadata)

func (*Update) SetUsername

func (x *Update) SetUsername(v string)

func (*Update) String

func (x *Update) String() string

func (*Update) WhichField

func (x *Update) WhichField() case_Update_Field

type Update_AvatarColor

type Update_AvatarColor struct {
	AvatarColor common.AvatarColor `protobuf:"varint,11,opt,name=avatar_color,json=avatarColor,proto3,enum=nuntio.management.model.common.AvatarColor,oneof"`
}

type Update_DeleteMetadataKey

type Update_DeleteMetadataKey struct {
	DeleteMetadataKey string `protobuf:"bytes,10,opt,name=delete_metadata_key,json=deleteMetadataKey,proto3,oneof"`
}

type Update_Email

type Update_Email struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3,oneof"`
}

type Update_IsEmailVerified

type Update_IsEmailVerified struct {
	IsEmailVerified bool `protobuf:"varint,6,opt,name=is_email_verified,json=isEmailVerified,proto3,oneof"`
}

type Update_IsPhoneVerified

type Update_IsPhoneVerified struct {
	IsPhoneVerified bool `protobuf:"varint,7,opt,name=is_phone_verified,json=isPhoneVerified,proto3,oneof"`
}

type Update_Password

type Update_Password struct {
	Password string `protobuf:"bytes,4,opt,name=password,proto3,oneof"`
}

type Update_PhoneNumber

type Update_PhoneNumber struct {
	PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}

type Update_Profile

type Update_Profile struct {
	Profile *Profile `protobuf:"bytes,5,opt,name=profile,proto3,oneof"`
}

type Update_ResetRessions

type Update_ResetRessions struct {
	// contains filtered or unexported fields
}

func (*Update_ResetRessions) ProtoMessage

func (*Update_ResetRessions) ProtoMessage()

func (*Update_ResetRessions) ProtoReflect

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

func (*Update_ResetRessions) Reset

func (x *Update_ResetRessions) Reset()

func (*Update_ResetRessions) String

func (x *Update_ResetRessions) String() string

type Update_ResetRessions_

type Update_ResetRessions_ struct {
	ResetRessions *Update_ResetRessions `protobuf:"bytes,8,opt,name=reset_ressions,json=resetRessions,proto3,oneof"`
}

type Update_ResetRessions_builder

type Update_ResetRessions_builder struct {
	// contains filtered or unexported fields
}

func (Update_ResetRessions_builder) Build

type Update_SetMetadata

type Update_SetMetadata struct {
	SetMetadata *model.Metadata `protobuf:"bytes,9,opt,name=set_metadata,json=setMetadata,proto3,oneof"`
}

type Update_Username

type Update_Username struct {
	Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}

type Update_builder

type Update_builder struct {

	// Fields of oneof Field:
	Email             *string
	Username          *string
	PhoneNumber       *string
	Password          *string
	Profile           *Profile
	IsEmailVerified   *bool
	IsPhoneVerified   *bool
	ResetRessions     *Update_ResetRessions
	SetMetadata       *model.Metadata
	DeleteMetadataKey *string
	AvatarColor       *common.AvatarColor
	// contains filtered or unexported fields
}

func (Update_builder) Build

func (b0 Update_builder) Build() *Update

type User

type User struct {
	UserInfo         *auth.UserInfo         `protobuf:"bytes,1,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	Profile          *Profile               `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	UpdatedAt        *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	RegisterInfo     *RegisterInfo          `protobuf:"bytes,4,opt,name=register_info,json=registerInfo,proto3" json:"register_info,omitempty"`
	IsPhoneVerified  bool                   `protobuf:"varint,5,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"`
	IsEmailVerified  bool                   `protobuf:"varint,6,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"`
	NewSessionsSince *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=new_sessions_since,json=newSessionsSince,proto3" json:"new_sessions_since,omitempty"`
	Metadata         map[string][]byte      `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*User) ClearNewSessionsSince

func (x *User) ClearNewSessionsSince()

func (*User) ClearProfile

func (x *User) ClearProfile()

func (*User) ClearRegisterInfo

func (x *User) ClearRegisterInfo()

func (*User) ClearUpdatedAt

func (x *User) ClearUpdatedAt()

func (*User) ClearUserInfo

func (x *User) ClearUserInfo()

func (*User) GetIsEmailVerified

func (x *User) GetIsEmailVerified() bool

func (*User) GetIsPhoneVerified

func (x *User) GetIsPhoneVerified() bool

func (*User) GetMetadata

func (x *User) GetMetadata() map[string][]byte

func (*User) GetNewSessionsSince

func (x *User) GetNewSessionsSince() *timestamppb.Timestamp

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) GetRegisterInfo

func (x *User) GetRegisterInfo() *RegisterInfo

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) GetUserInfo

func (x *User) GetUserInfo() *auth.UserInfo

func (*User) HasNewSessionsSince

func (x *User) HasNewSessionsSince() bool

func (*User) HasProfile

func (x *User) HasProfile() bool

func (*User) HasRegisterInfo

func (x *User) HasRegisterInfo() bool

func (*User) HasUpdatedAt

func (x *User) HasUpdatedAt() bool

func (*User) HasUserInfo

func (x *User) HasUserInfo() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) SetIsEmailVerified

func (x *User) SetIsEmailVerified(v bool)

func (*User) SetIsPhoneVerified

func (x *User) SetIsPhoneVerified(v bool)

func (*User) SetMetadata

func (x *User) SetMetadata(v map[string][]byte)

func (*User) SetNewSessionsSince

func (x *User) SetNewSessionsSince(v *timestamppb.Timestamp)

func (*User) SetProfile

func (x *User) SetProfile(v *Profile)

func (*User) SetRegisterInfo

func (x *User) SetRegisterInfo(v *RegisterInfo)

func (*User) SetUpdatedAt

func (x *User) SetUpdatedAt(v *timestamppb.Timestamp)

func (*User) SetUserInfo

func (x *User) SetUserInfo(v *auth.UserInfo)

func (*User) String

func (x *User) String() string

type User_builder

type User_builder struct {
	UserInfo         *auth.UserInfo
	Profile          *Profile
	UpdatedAt        *timestamppb.Timestamp
	RegisterInfo     *RegisterInfo
	IsPhoneVerified  bool
	IsEmailVerified  bool
	NewSessionsSince *timestamppb.Timestamp
	Metadata         map[string][]byte
	// contains filtered or unexported fields
}

func (User_builder) Build

func (b0 User_builder) Build() *User

type VerificationCode

type VerificationCode struct {
	Code        *common.HashingInstance `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	SentAt      *timestamppb.Timestamp  `protobuf:"bytes,2,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
	ExpiresAt   *timestamppb.Timestamp  `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Attempts    int32                   `protobuf:"varint,4,opt,name=attempts,proto3" json:"attempts,omitempty"`
	LastAttempt *timestamppb.Timestamp  `protobuf:"bytes,5,opt,name=last_attempt,json=lastAttempt,proto3" json:"last_attempt,omitempty"`
	Type        VerificationType        `protobuf:"varint,6,opt,name=type,proto3,enum=nuntio.management.model.user.VerificationType" json:"type,omitempty"`
	UserId      *model.UUID             `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VerificationCode) ClearCode

func (x *VerificationCode) ClearCode()

func (*VerificationCode) ClearExpiresAt

func (x *VerificationCode) ClearExpiresAt()

func (*VerificationCode) ClearLastAttempt

func (x *VerificationCode) ClearLastAttempt()

func (*VerificationCode) ClearSentAt

func (x *VerificationCode) ClearSentAt()

func (*VerificationCode) ClearUserId

func (x *VerificationCode) ClearUserId()

func (*VerificationCode) GetAttempts

func (x *VerificationCode) GetAttempts() int32

func (*VerificationCode) GetCode

func (x *VerificationCode) GetCode() *common.HashingInstance

func (*VerificationCode) GetExpiresAt

func (x *VerificationCode) GetExpiresAt() *timestamppb.Timestamp

func (*VerificationCode) GetLastAttempt

func (x *VerificationCode) GetLastAttempt() *timestamppb.Timestamp

func (*VerificationCode) GetSentAt

func (x *VerificationCode) GetSentAt() *timestamppb.Timestamp

func (*VerificationCode) GetType

func (x *VerificationCode) GetType() VerificationType

func (*VerificationCode) GetUserId

func (x *VerificationCode) GetUserId() *model.UUID

func (*VerificationCode) HasCode

func (x *VerificationCode) HasCode() bool

func (*VerificationCode) HasExpiresAt

func (x *VerificationCode) HasExpiresAt() bool

func (*VerificationCode) HasLastAttempt

func (x *VerificationCode) HasLastAttempt() bool

func (*VerificationCode) HasSentAt

func (x *VerificationCode) HasSentAt() bool

func (*VerificationCode) HasUserId

func (x *VerificationCode) HasUserId() bool

func (*VerificationCode) ProtoMessage

func (*VerificationCode) ProtoMessage()

func (*VerificationCode) ProtoReflect

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

func (*VerificationCode) Reset

func (x *VerificationCode) Reset()

func (*VerificationCode) SetAttempts

func (x *VerificationCode) SetAttempts(v int32)

func (*VerificationCode) SetCode

func (x *VerificationCode) SetCode(v *common.HashingInstance)

func (*VerificationCode) SetExpiresAt

func (x *VerificationCode) SetExpiresAt(v *timestamppb.Timestamp)

func (*VerificationCode) SetLastAttempt

func (x *VerificationCode) SetLastAttempt(v *timestamppb.Timestamp)

func (*VerificationCode) SetSentAt

func (x *VerificationCode) SetSentAt(v *timestamppb.Timestamp)

func (*VerificationCode) SetType

func (x *VerificationCode) SetType(v VerificationType)

func (*VerificationCode) SetUserId

func (x *VerificationCode) SetUserId(v *model.UUID)

func (*VerificationCode) String

func (x *VerificationCode) String() string

type VerificationCode_builder

type VerificationCode_builder struct {
	Code        *common.HashingInstance
	SentAt      *timestamppb.Timestamp
	ExpiresAt   *timestamppb.Timestamp
	Attempts    int32
	LastAttempt *timestamppb.Timestamp
	Type        VerificationType
	UserId      *model.UUID
	// contains filtered or unexported fields
}

func (VerificationCode_builder) Build

type VerificationType

type VerificationType int32
const (
	VerificationType_VERIFICATION_TYPE_UNSPECIFIED    VerificationType = 0
	VerificationType_VERIFICATION_TYPE_EMAIL          VerificationType = 1
	VerificationType_VERIFICATION_TYPE_TEXT           VerificationType = 2
	VerificationType_VERIFICATION_TYPE_RESET_PASSWORD VerificationType = 3
	VerificationType_VERIFICATION_TYPE_MAGIC_CODE     VerificationType = 4
)

func (VerificationType) Descriptor

func (VerificationType) Enum

func (VerificationType) Number

func (VerificationType) String

func (x VerificationType) String() string

func (VerificationType) Type

Source Files

  • user.pb.go

Jump to

Keyboard shortcuts

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