profilev1

package
v0.0.0-...-a9cc36f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	AccountKind_name = map[int32]string{
		0: "ACCOUNT_KIND_FULL_UNSPECIFIED",
		1: "ACCOUNT_KIND_BOT",
		2: "ACCOUNT_KIND_GUEST",
	}
	AccountKind_value = map[string]int32{
		"ACCOUNT_KIND_FULL_UNSPECIFIED": 0,
		"ACCOUNT_KIND_BOT":              1,
		"ACCOUNT_KIND_GUEST":            2,
	}
)

Enum value maps for AccountKind.

View Source
var (
	UserStatus_Kind_name = map[int32]string{
		0: "KIND_OFFLINE_UNSPECIFIED",
		1: "KIND_ONLINE",
		2: "KIND_IDLE",
		3: "KIND_DO_NOT_DISTURB",
	}
	UserStatus_Kind_value = map[string]int32{
		"KIND_OFFLINE_UNSPECIFIED": 0,
		"KIND_ONLINE":              1,
		"KIND_IDLE":                2,
		"KIND_DO_NOT_DISTURB":      3,
	}
)

Enum value maps for UserStatus_Kind.

View Source
var (
	UserStatus_Platform_name = map[int32]string{
		0: "PLATFORM_DESKTOP_UNSPECIFIED",
		1: "PLATFORM_MOBILE",
	}
	UserStatus_Platform_value = map[string]int32{
		"PLATFORM_DESKTOP_UNSPECIFIED": 0,
		"PLATFORM_MOBILE":              1,
	}
)

Enum value maps for UserStatus_Platform.

View Source
var File_profile_v1_appdata_proto protoreflect.FileDescriptor
View Source
var File_profile_v1_profile_proto protoreflect.FileDescriptor
View Source
var File_profile_v1_stream_proto protoreflect.FileDescriptor
View Source
var File_profile_v1_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountKind

type AccountKind int32

The possible kinds of an account.

const (
	// The account is a full-fledged account controlled by a human.
	AccountKind_ACCOUNT_KIND_FULL_UNSPECIFIED AccountKind = 0
	// The account is an account controlled by a bot.
	AccountKind_ACCOUNT_KIND_BOT AccountKind = 1
	// The account is a guest account controlled by a human.
	AccountKind_ACCOUNT_KIND_GUEST AccountKind = 2
)

func (AccountKind) Descriptor

func (AccountKind) Enum

func (x AccountKind) Enum() *AccountKind

func (AccountKind) EnumDescriptor deprecated

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

Deprecated: Use AccountKind.Descriptor instead.

func (AccountKind) Number

func (x AccountKind) Number() protoreflect.EnumNumber

func (AccountKind) String

func (x AccountKind) String() string

func (AccountKind) Type

type AppDataOverrides

type AppDataOverrides struct {

	// The list of overrides.
	Overrides []*ProfileOverride `protobuf:"bytes,1,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// contains filtered or unexported fields
}

The message used for the 'h.overrides' app ID of appdata.

func (*AppDataOverrides) Descriptor deprecated

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

Deprecated: Use AppDataOverrides.ProtoReflect.Descriptor instead.

func (*AppDataOverrides) GetOverrides

func (x *AppDataOverrides) GetOverrides() []*ProfileOverride

func (*AppDataOverrides) MarshalToSizedBufferVT

func (m *AppDataOverrides) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AppDataOverrides) MarshalToVT

func (m *AppDataOverrides) MarshalToVT(dAtA []byte) (int, error)

func (*AppDataOverrides) MarshalVT

func (m *AppDataOverrides) MarshalVT() (dAtA []byte, err error)

func (*AppDataOverrides) ProtoMessage

func (*AppDataOverrides) ProtoMessage()

func (*AppDataOverrides) ProtoReflect

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

func (*AppDataOverrides) Reset

func (x *AppDataOverrides) Reset()

func (*AppDataOverrides) SizeVT

func (m *AppDataOverrides) SizeVT() (n int)

func (*AppDataOverrides) String

func (x *AppDataOverrides) String() string

func (*AppDataOverrides) UnmarshalVT

func (m *AppDataOverrides) UnmarshalVT(dAtA []byte) error

type GetAppDataRequest

type GetAppDataRequest struct {

	// The app id.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

Used in `GetAppData` endpoint.

func (*GetAppDataRequest) Descriptor deprecated

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

Deprecated: Use GetAppDataRequest.ProtoReflect.Descriptor instead.

func (*GetAppDataRequest) GetAppId

func (x *GetAppDataRequest) GetAppId() string

func (*GetAppDataRequest) MarshalToSizedBufferVT

func (m *GetAppDataRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetAppDataRequest) MarshalToVT

func (m *GetAppDataRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetAppDataRequest) MarshalVT

func (m *GetAppDataRequest) MarshalVT() (dAtA []byte, err error)

func (*GetAppDataRequest) ProtoMessage

func (*GetAppDataRequest) ProtoMessage()

func (*GetAppDataRequest) ProtoReflect

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

func (*GetAppDataRequest) Reset

func (x *GetAppDataRequest) Reset()

func (*GetAppDataRequest) SizeVT

func (m *GetAppDataRequest) SizeVT() (n int)

func (*GetAppDataRequest) String

func (x *GetAppDataRequest) String() string

func (*GetAppDataRequest) UnmarshalVT

func (m *GetAppDataRequest) UnmarshalVT(dAtA []byte) error

type GetAppDataResponse

type GetAppDataResponse struct {

	// The app data.
	AppData []byte `protobuf:"bytes,1,opt,name=app_data,json=appData,proto3" json:"app_data,omitempty"`
	// contains filtered or unexported fields
}

Used in `GetAppData` endpoint.

func (*GetAppDataResponse) Descriptor deprecated

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

Deprecated: Use GetAppDataResponse.ProtoReflect.Descriptor instead.

func (*GetAppDataResponse) GetAppData

func (x *GetAppDataResponse) GetAppData() []byte

func (*GetAppDataResponse) MarshalToSizedBufferVT

func (m *GetAppDataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetAppDataResponse) MarshalToVT

func (m *GetAppDataResponse) MarshalToVT(dAtA []byte) (int, error)

func (*GetAppDataResponse) MarshalVT

func (m *GetAppDataResponse) MarshalVT() (dAtA []byte, err error)

func (*GetAppDataResponse) ProtoMessage

func (*GetAppDataResponse) ProtoMessage()

func (*GetAppDataResponse) ProtoReflect

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

func (*GetAppDataResponse) Reset

func (x *GetAppDataResponse) Reset()

func (*GetAppDataResponse) SizeVT

func (m *GetAppDataResponse) SizeVT() (n int)

func (*GetAppDataResponse) String

func (x *GetAppDataResponse) String() string

func (*GetAppDataResponse) UnmarshalVT

func (m *GetAppDataResponse) UnmarshalVT(dAtA []byte) error

type GetProfileRequest

type GetProfileRequest struct {

	// The ID(s) of the user(s) to get.
	UserId []uint64 `protobuf:"varint,1,rep,packed,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Used in `GetProfile` endpoint.

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetUserId

func (x *GetProfileRequest) GetUserId() []uint64

func (*GetProfileRequest) MarshalToSizedBufferVT

func (m *GetProfileRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetProfileRequest) MarshalToVT

func (m *GetProfileRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetProfileRequest) MarshalVT

func (m *GetProfileRequest) MarshalVT() (dAtA []byte, err error)

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) SizeVT

func (m *GetProfileRequest) SizeVT() (n int)

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

func (*GetProfileRequest) UnmarshalVT

func (m *GetProfileRequest) UnmarshalVT(dAtA []byte) error

type GetProfileResponse

type GetProfileResponse struct {

	// The users' profile(s).
	Profile map[uint64]*Profile `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used in `GetProfile` endpoint.

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetProfile

func (x *GetProfileResponse) GetProfile() map[uint64]*Profile

func (*GetProfileResponse) MarshalToSizedBufferVT

func (m *GetProfileResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetProfileResponse) MarshalToVT

func (m *GetProfileResponse) MarshalToVT(dAtA []byte) (int, error)

func (*GetProfileResponse) MarshalVT

func (m *GetProfileResponse) MarshalVT() (dAtA []byte, err error)

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) SizeVT

func (m *GetProfileResponse) SizeVT() (n int)

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

func (*GetProfileResponse) UnmarshalVT

func (m *GetProfileResponse) UnmarshalVT(dAtA []byte) error

type OverrideTag

type OverrideTag struct {

	// The portion of the tag before the messge.
	Before string `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	// The portion of the tag after the messge.
	After string `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

A tag for an override. This is used as a standard shorthand for sending a message with an override. If a message starts with before and ends with after, clients should send a message with the override the tag belongs to, stripping the tag indicators.

func (*OverrideTag) Descriptor deprecated

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

Deprecated: Use OverrideTag.ProtoReflect.Descriptor instead.

func (*OverrideTag) GetAfter

func (x *OverrideTag) GetAfter() string

func (*OverrideTag) GetBefore

func (x *OverrideTag) GetBefore() string

func (*OverrideTag) MarshalToSizedBufferVT

func (m *OverrideTag) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*OverrideTag) MarshalToVT

func (m *OverrideTag) MarshalToVT(dAtA []byte) (int, error)

func (*OverrideTag) MarshalVT

func (m *OverrideTag) MarshalVT() (dAtA []byte, err error)

func (*OverrideTag) ProtoMessage

func (*OverrideTag) ProtoMessage()

func (*OverrideTag) ProtoReflect

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

func (*OverrideTag) Reset

func (x *OverrideTag) Reset()

func (*OverrideTag) SizeVT

func (m *OverrideTag) SizeVT() (n int)

func (*OverrideTag) String

func (x *OverrideTag) String() string

func (*OverrideTag) UnmarshalVT

func (m *OverrideTag) UnmarshalVT(dAtA []byte) error

type Profile

type Profile struct {

	// The name of the user.
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// The user's avatar. This must be a file ID.
	UserAvatar *string `protobuf:"bytes,2,opt,name=user_avatar,json=userAvatar,proto3,oneof" json:"user_avatar,omitempty"`
	// The status of the user.
	UserStatus *UserStatus `protobuf:"bytes,3,opt,name=user_status,json=userStatus,proto3" json:"user_status,omitempty"`
	// What kind of account the user is, e.g. full, guest, bot.
	AccountKind AccountKind `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Data for a single profile, without the user's ID.

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAccountKind

func (x *Profile) GetAccountKind() AccountKind

func (*Profile) GetUserAvatar

func (x *Profile) GetUserAvatar() string

func (*Profile) GetUserName

func (x *Profile) GetUserName() string

func (*Profile) GetUserStatus

func (x *Profile) GetUserStatus() *UserStatus

func (*Profile) MarshalToSizedBufferVT

func (m *Profile) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Profile) MarshalToVT

func (m *Profile) MarshalToVT(dAtA []byte) (int, error)

func (*Profile) MarshalVT

func (m *Profile) MarshalVT() (dAtA []byte, err error)

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) SizeVT

func (m *Profile) SizeVT() (n int)

func (*Profile) String

func (x *Profile) String() string

func (*Profile) UnmarshalVT

func (m *Profile) UnmarshalVT(dAtA []byte) error

type ProfileOverride

type ProfileOverride struct {

	// The username for this override.
	Username *string `protobuf:"bytes,1,opt,name=username,proto3,oneof" json:"username,omitempty"`
	// The avatar for this override.
	//
	// This can be a file ID or an external image URL.
	Avatar *string `protobuf:"bytes,2,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	// The tags for this override.
	Tags []*OverrideTag `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// The reason this override is used.
	//
	// Types that are assignable to Reason:
	//	*ProfileOverride_UserDefined
	//	*ProfileOverride_SystemPlurality
	Reason isProfileOverride_Reason `protobuf_oneof:"reason"`
	// contains filtered or unexported fields
}

An individual override.

func (*ProfileOverride) Descriptor deprecated

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

Deprecated: Use ProfileOverride.ProtoReflect.Descriptor instead.

func (*ProfileOverride) GetAvatar

func (x *ProfileOverride) GetAvatar() string

func (*ProfileOverride) GetReason

func (m *ProfileOverride) GetReason() isProfileOverride_Reason

func (*ProfileOverride) GetSystemPlurality

func (x *ProfileOverride) GetSystemPlurality() *v1.Empty

func (*ProfileOverride) GetTags

func (x *ProfileOverride) GetTags() []*OverrideTag

func (*ProfileOverride) GetUserDefined

func (x *ProfileOverride) GetUserDefined() string

func (*ProfileOverride) GetUsername

func (x *ProfileOverride) GetUsername() string

func (*ProfileOverride) MarshalToSizedBufferVT

func (m *ProfileOverride) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProfileOverride) MarshalToVT

func (m *ProfileOverride) MarshalToVT(dAtA []byte) (int, error)

func (*ProfileOverride) MarshalVT

func (m *ProfileOverride) MarshalVT() (dAtA []byte, err error)

func (*ProfileOverride) ProtoMessage

func (*ProfileOverride) ProtoMessage()

func (*ProfileOverride) ProtoReflect

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

func (*ProfileOverride) Reset

func (x *ProfileOverride) Reset()

func (*ProfileOverride) SizeVT

func (m *ProfileOverride) SizeVT() (n int)

func (*ProfileOverride) String

func (x *ProfileOverride) String() string

func (*ProfileOverride) UnmarshalVT

func (m *ProfileOverride) UnmarshalVT(dAtA []byte) error

type ProfileOverride_SystemPlurality

type ProfileOverride_SystemPlurality struct {
	// Plurality, not system as in computer.
	SystemPlurality *v1.Empty `protobuf:"bytes,5,opt,name=system_plurality,json=systemPlurality,proto3,oneof"`
}

func (*ProfileOverride_SystemPlurality) MarshalToSizedBufferVT

func (m *ProfileOverride_SystemPlurality) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProfileOverride_SystemPlurality) MarshalToVT

func (m *ProfileOverride_SystemPlurality) MarshalToVT(dAtA []byte) (int, error)

func (*ProfileOverride_SystemPlurality) SizeVT

func (m *ProfileOverride_SystemPlurality) SizeVT() (n int)

type ProfileOverride_UserDefined

type ProfileOverride_UserDefined struct {
	// A custom reason in case the builtin ones don't fit.
	UserDefined string `protobuf:"bytes,4,opt,name=user_defined,json=userDefined,proto3,oneof"`
}

func (*ProfileOverride_UserDefined) MarshalToSizedBufferVT

func (m *ProfileOverride_UserDefined) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProfileOverride_UserDefined) MarshalToVT

func (m *ProfileOverride_UserDefined) MarshalToVT(dAtA []byte) (int, error)

func (*ProfileOverride_UserDefined) SizeVT

func (m *ProfileOverride_UserDefined) SizeVT() (n int)

type ProfileService

type ProfileService[T context.Context] interface {
	GetProfile(T, *GetProfileRequest) (*GetProfileResponse, error)
	UpdateProfile(T, *UpdateProfileRequest) (*UpdateProfileResponse, error)
	UpdateStatus(T, *UpdateStatusRequest) (*UpdateStatusResponse, error)
	GetAppData(T, *GetAppDataRequest) (*GetAppDataResponse, error)
	SetAppData(T, *SetAppDataRequest) (*SetAppDataResponse, error)
}

type ProfileServiceHandler

type ProfileServiceHandler[T context.Context] struct {
	Impl ProfileService[T]
}

func (*ProfileServiceHandler[T]) Routes

func (h *ProfileServiceHandler[T]) Routes() map[string]goserver.UnaryMethodData[T]

func (*ProfileServiceHandler[T]) StreamRoutes

func (h *ProfileServiceHandler[T]) StreamRoutes() map[string]goserver.StreamMethodData[T]

type ProfileUpdated

type ProfileUpdated struct {

	// User ID of the user that had it's profile updated.
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// New username for this user.
	NewUsername *string `protobuf:"bytes,2,opt,name=new_username,json=newUsername,proto3,oneof" json:"new_username,omitempty"`
	// New avatar for this user.
	NewAvatar *string `protobuf:"bytes,3,opt,name=new_avatar,json=newAvatar,proto3,oneof" json:"new_avatar,omitempty"`
	// contains filtered or unexported fields
}

Event sent when a user's profile is updated.

Servers should sent this event only to users that can "see" (eg. they are in the same guild) the user this event was triggered by.

func (*ProfileUpdated) Descriptor deprecated

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

Deprecated: Use ProfileUpdated.ProtoReflect.Descriptor instead.

func (*ProfileUpdated) GetNewAvatar

func (x *ProfileUpdated) GetNewAvatar() string

func (*ProfileUpdated) GetNewUsername

func (x *ProfileUpdated) GetNewUsername() string

func (*ProfileUpdated) GetUserId

func (x *ProfileUpdated) GetUserId() uint64

func (*ProfileUpdated) MarshalToSizedBufferVT

func (m *ProfileUpdated) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProfileUpdated) MarshalToVT

func (m *ProfileUpdated) MarshalToVT(dAtA []byte) (int, error)

func (*ProfileUpdated) MarshalVT

func (m *ProfileUpdated) MarshalVT() (dAtA []byte, err error)

func (*ProfileUpdated) ProtoMessage

func (*ProfileUpdated) ProtoMessage()

func (*ProfileUpdated) ProtoReflect

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

func (*ProfileUpdated) Reset

func (x *ProfileUpdated) Reset()

func (*ProfileUpdated) SizeVT

func (m *ProfileUpdated) SizeVT() (n int)

func (*ProfileUpdated) String

func (x *ProfileUpdated) String() string

func (*ProfileUpdated) UnmarshalVT

func (m *ProfileUpdated) UnmarshalVT(dAtA []byte) error

type SetAppDataRequest

type SetAppDataRequest struct {

	// The app id.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// The app data.
	AppData []byte `protobuf:"bytes,2,opt,name=app_data,json=appData,proto3" json:"app_data,omitempty"`
	// contains filtered or unexported fields
}

Used in `SetAppData` endpoint.

func (*SetAppDataRequest) Descriptor deprecated

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

Deprecated: Use SetAppDataRequest.ProtoReflect.Descriptor instead.

func (*SetAppDataRequest) GetAppData

func (x *SetAppDataRequest) GetAppData() []byte

func (*SetAppDataRequest) GetAppId

func (x *SetAppDataRequest) GetAppId() string

func (*SetAppDataRequest) MarshalToSizedBufferVT

func (m *SetAppDataRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SetAppDataRequest) MarshalToVT

func (m *SetAppDataRequest) MarshalToVT(dAtA []byte) (int, error)

func (*SetAppDataRequest) MarshalVT

func (m *SetAppDataRequest) MarshalVT() (dAtA []byte, err error)

func (*SetAppDataRequest) ProtoMessage

func (*SetAppDataRequest) ProtoMessage()

func (*SetAppDataRequest) ProtoReflect

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

func (*SetAppDataRequest) Reset

func (x *SetAppDataRequest) Reset()

func (*SetAppDataRequest) SizeVT

func (m *SetAppDataRequest) SizeVT() (n int)

func (*SetAppDataRequest) String

func (x *SetAppDataRequest) String() string

func (*SetAppDataRequest) UnmarshalVT

func (m *SetAppDataRequest) UnmarshalVT(dAtA []byte) error

type SetAppDataResponse

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

Used in `SetAppData` endpoint.

func (*SetAppDataResponse) Descriptor deprecated

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

Deprecated: Use SetAppDataResponse.ProtoReflect.Descriptor instead.

func (*SetAppDataResponse) MarshalToSizedBufferVT

func (m *SetAppDataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SetAppDataResponse) MarshalToVT

func (m *SetAppDataResponse) MarshalToVT(dAtA []byte) (int, error)

func (*SetAppDataResponse) MarshalVT

func (m *SetAppDataResponse) MarshalVT() (dAtA []byte, err error)

func (*SetAppDataResponse) ProtoMessage

func (*SetAppDataResponse) ProtoMessage()

func (*SetAppDataResponse) ProtoReflect

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

func (*SetAppDataResponse) Reset

func (x *SetAppDataResponse) Reset()

func (*SetAppDataResponse) SizeVT

func (m *SetAppDataResponse) SizeVT() (n int)

func (*SetAppDataResponse) String

func (x *SetAppDataResponse) String() string

func (*SetAppDataResponse) UnmarshalVT

func (m *SetAppDataResponse) UnmarshalVT(dAtA []byte) error

type StatusUpdated

type StatusUpdated struct {

	// User ID of the user that had it's status updated.
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// New status for this user.
	NewStatus *UserStatus `protobuf:"bytes,2,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"`
	// contains filtered or unexported fields
}

Event sent when a user's status is updated.

Servers should sent this event only to users that can "see" (eg. they are in the same guild) the user this event was triggered by.

func (*StatusUpdated) Descriptor deprecated

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

Deprecated: Use StatusUpdated.ProtoReflect.Descriptor instead.

func (*StatusUpdated) GetNewStatus

func (x *StatusUpdated) GetNewStatus() *UserStatus

func (*StatusUpdated) GetUserId

func (x *StatusUpdated) GetUserId() uint64

func (*StatusUpdated) MarshalToSizedBufferVT

func (m *StatusUpdated) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StatusUpdated) MarshalToVT

func (m *StatusUpdated) MarshalToVT(dAtA []byte) (int, error)

func (*StatusUpdated) MarshalVT

func (m *StatusUpdated) MarshalVT() (dAtA []byte, err error)

func (*StatusUpdated) ProtoMessage

func (*StatusUpdated) ProtoMessage()

func (*StatusUpdated) ProtoReflect

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

func (*StatusUpdated) Reset

func (x *StatusUpdated) Reset()

func (*StatusUpdated) SizeVT

func (m *StatusUpdated) SizeVT() (n int)

func (*StatusUpdated) String

func (x *StatusUpdated) String() string

func (*StatusUpdated) UnmarshalVT

func (m *StatusUpdated) UnmarshalVT(dAtA []byte) error

type StreamEvent

type StreamEvent struct {

	// The event type.
	//
	// Types that are assignable to Event:
	//	*StreamEvent_ProfileUpdated
	//	*StreamEvent_StatusUpdated
	Event isStreamEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

Describes an emote service event.

func (*StreamEvent) Descriptor deprecated

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

Deprecated: Use StreamEvent.ProtoReflect.Descriptor instead.

func (*StreamEvent) GetEvent

func (m *StreamEvent) GetEvent() isStreamEvent_Event

func (*StreamEvent) GetProfileUpdated

func (x *StreamEvent) GetProfileUpdated() *ProfileUpdated

func (*StreamEvent) GetStatusUpdated

func (x *StreamEvent) GetStatusUpdated() *StatusUpdated

func (*StreamEvent) MarshalToSizedBufferVT

func (m *StreamEvent) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StreamEvent) MarshalToVT

func (m *StreamEvent) MarshalToVT(dAtA []byte) (int, error)

func (*StreamEvent) MarshalVT

func (m *StreamEvent) MarshalVT() (dAtA []byte, err error)

func (*StreamEvent) ProtoMessage

func (*StreamEvent) ProtoMessage()

func (*StreamEvent) ProtoReflect

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

func (*StreamEvent) Reset

func (x *StreamEvent) Reset()

func (*StreamEvent) SizeVT

func (m *StreamEvent) SizeVT() (n int)

func (*StreamEvent) String

func (x *StreamEvent) String() string

func (*StreamEvent) UnmarshalVT

func (m *StreamEvent) UnmarshalVT(dAtA []byte) error

type StreamEvent_ProfileUpdated

type StreamEvent_ProfileUpdated struct {
	// Send the profile updated event.
	ProfileUpdated *ProfileUpdated `protobuf:"bytes,1,opt,name=profile_updated,json=profileUpdated,proto3,oneof"`
}

func (*StreamEvent_ProfileUpdated) MarshalToSizedBufferVT

func (m *StreamEvent_ProfileUpdated) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StreamEvent_ProfileUpdated) MarshalToVT

func (m *StreamEvent_ProfileUpdated) MarshalToVT(dAtA []byte) (int, error)

func (*StreamEvent_ProfileUpdated) SizeVT

func (m *StreamEvent_ProfileUpdated) SizeVT() (n int)

type StreamEvent_StatusUpdated

type StreamEvent_StatusUpdated struct {
	// Send the status updated event.
	StatusUpdated *StatusUpdated `protobuf:"bytes,2,opt,name=status_updated,json=statusUpdated,proto3,oneof"`
}

func (*StreamEvent_StatusUpdated) MarshalToSizedBufferVT

func (m *StreamEvent_StatusUpdated) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StreamEvent_StatusUpdated) MarshalToVT

func (m *StreamEvent_StatusUpdated) MarshalToVT(dAtA []byte) (int, error)

func (*StreamEvent_StatusUpdated) SizeVT

func (m *StreamEvent_StatusUpdated) SizeVT() (n int)

type UpdateProfileRequest

type UpdateProfileRequest struct {

	// New name of the user.
	NewUserName *string `protobuf:"bytes,1,opt,name=new_user_name,json=newUserName,proto3,oneof" json:"new_user_name,omitempty"`
	// New user avatar. The avatar will be removed if the string is empty.
	// This must be a local file ID.
	NewUserAvatar *string `protobuf:"bytes,2,opt,name=new_user_avatar,json=newUserAvatar,proto3,oneof" json:"new_user_avatar,omitempty"`
	// contains filtered or unexported fields
}

Used in `UpdateProfile` endpoint.

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetNewUserAvatar

func (x *UpdateProfileRequest) GetNewUserAvatar() string

func (*UpdateProfileRequest) GetNewUserName

func (x *UpdateProfileRequest) GetNewUserName() string

func (*UpdateProfileRequest) MarshalToSizedBufferVT

func (m *UpdateProfileRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateProfileRequest) MarshalToVT

func (m *UpdateProfileRequest) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateProfileRequest) MarshalVT

func (m *UpdateProfileRequest) MarshalVT() (dAtA []byte, err error)

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) SizeVT

func (m *UpdateProfileRequest) SizeVT() (n int)

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

func (*UpdateProfileRequest) UnmarshalVT

func (m *UpdateProfileRequest) UnmarshalVT(dAtA []byte) error

type UpdateProfileResponse

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

Used in `UpdateProfile` endpoint.

func (*UpdateProfileResponse) Descriptor deprecated

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

Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.

func (*UpdateProfileResponse) MarshalToSizedBufferVT

func (m *UpdateProfileResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateProfileResponse) MarshalToVT

func (m *UpdateProfileResponse) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateProfileResponse) MarshalVT

func (m *UpdateProfileResponse) MarshalVT() (dAtA []byte, err error)

func (*UpdateProfileResponse) ProtoMessage

func (*UpdateProfileResponse) ProtoMessage()

func (*UpdateProfileResponse) ProtoReflect

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

func (*UpdateProfileResponse) Reset

func (x *UpdateProfileResponse) Reset()

func (*UpdateProfileResponse) SizeVT

func (m *UpdateProfileResponse) SizeVT() (n int)

func (*UpdateProfileResponse) String

func (x *UpdateProfileResponse) String() string

func (*UpdateProfileResponse) UnmarshalVT

func (m *UpdateProfileResponse) UnmarshalVT(dAtA []byte) error

type UpdateStatusRequest

type UpdateStatusRequest struct {

	// The new user status to use.
	NewStatus *UserStatus `protobuf:"bytes,1,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"`
	// contains filtered or unexported fields
}

Used in `UpdateStatus` endpoint.

func (*UpdateStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateStatusRequest) GetNewStatus

func (x *UpdateStatusRequest) GetNewStatus() *UserStatus

func (*UpdateStatusRequest) MarshalToSizedBufferVT

func (m *UpdateStatusRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateStatusRequest) MarshalToVT

func (m *UpdateStatusRequest) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateStatusRequest) MarshalVT

func (m *UpdateStatusRequest) MarshalVT() (dAtA []byte, err error)

func (*UpdateStatusRequest) ProtoMessage

func (*UpdateStatusRequest) ProtoMessage()

func (*UpdateStatusRequest) ProtoReflect

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

func (*UpdateStatusRequest) Reset

func (x *UpdateStatusRequest) Reset()

func (*UpdateStatusRequest) SizeVT

func (m *UpdateStatusRequest) SizeVT() (n int)

func (*UpdateStatusRequest) String

func (x *UpdateStatusRequest) String() string

func (*UpdateStatusRequest) UnmarshalVT

func (m *UpdateStatusRequest) UnmarshalVT(dAtA []byte) error

type UpdateStatusResponse

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

Used in `UpdateStatus` endpoint.

func (*UpdateStatusResponse) Descriptor deprecated

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

Deprecated: Use UpdateStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateStatusResponse) MarshalToSizedBufferVT

func (m *UpdateStatusResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateStatusResponse) MarshalToVT

func (m *UpdateStatusResponse) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateStatusResponse) MarshalVT

func (m *UpdateStatusResponse) MarshalVT() (dAtA []byte, err error)

func (*UpdateStatusResponse) ProtoMessage

func (*UpdateStatusResponse) ProtoMessage()

func (*UpdateStatusResponse) ProtoReflect

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

func (*UpdateStatusResponse) Reset

func (x *UpdateStatusResponse) Reset()

func (*UpdateStatusResponse) SizeVT

func (m *UpdateStatusResponse) SizeVT() (n int)

func (*UpdateStatusResponse) String

func (x *UpdateStatusResponse) String() string

func (*UpdateStatusResponse) UnmarshalVT

func (m *UpdateStatusResponse) UnmarshalVT(dAtA []byte) error

type UserStatus

type UserStatus struct {

	// The kind of the status.
	Kind UserStatus_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=protocol.profile.v1.UserStatus_Kind" json:"kind,omitempty"`
	// The message for the status. This is independent of the
	// activities being performed by the user.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// The activities this user is performing, if any.
	//
	// The first activity in this list has the most priority.
	Activities []*UserStatus_Activity `protobuf:"bytes,3,rep,name=activities,proto3" json:"activities,omitempty"`
	// The platform the user is on.
	Platform UserStatus_Platform `protobuf:"varint,4,opt,name=platform,proto3,enum=protocol.profile.v1.UserStatus_Platform" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

The status information for a user.

func (*UserStatus) Descriptor deprecated

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

Deprecated: Use UserStatus.ProtoReflect.Descriptor instead.

func (*UserStatus) GetActivities

func (x *UserStatus) GetActivities() []*UserStatus_Activity

func (*UserStatus) GetKind

func (x *UserStatus) GetKind() UserStatus_Kind

func (*UserStatus) GetMessage

func (x *UserStatus) GetMessage() string

func (*UserStatus) GetPlatform

func (x *UserStatus) GetPlatform() UserStatus_Platform

func (*UserStatus) MarshalToSizedBufferVT

func (m *UserStatus) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UserStatus) MarshalToVT

func (m *UserStatus) MarshalToVT(dAtA []byte) (int, error)

func (*UserStatus) MarshalVT

func (m *UserStatus) MarshalVT() (dAtA []byte, err error)

func (*UserStatus) ProtoMessage

func (*UserStatus) ProtoMessage()

func (*UserStatus) ProtoReflect

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

func (*UserStatus) Reset

func (x *UserStatus) Reset()

func (*UserStatus) SizeVT

func (m *UserStatus) SizeVT() (n int)

func (*UserStatus) String

func (x *UserStatus) String() string

func (*UserStatus) UnmarshalVT

func (m *UserStatus) UnmarshalVT(dAtA []byte) error

type UserStatus_Action

type UserStatus_Action struct {

	// URL to open when this action is clicked.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Name of this action. This must be provided if
	// an icon isn't provided.
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Icon for this action.
	// This must be a file ID that points to an image.
	//
	// This must be provided if a name isn't provided.
	Icon *string `protobuf:"bytes,3,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
	// contains filtered or unexported fields
}

Information about an action the user can use in the context of an activity.

func (*UserStatus_Action) Descriptor deprecated

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

Deprecated: Use UserStatus_Action.ProtoReflect.Descriptor instead.

func (*UserStatus_Action) GetIcon

func (x *UserStatus_Action) GetIcon() string

func (*UserStatus_Action) GetName

func (x *UserStatus_Action) GetName() string

func (*UserStatus_Action) GetUrl

func (x *UserStatus_Action) GetUrl() string

func (*UserStatus_Action) MarshalToSizedBufferVT

func (m *UserStatus_Action) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UserStatus_Action) MarshalToVT

func (m *UserStatus_Action) MarshalToVT(dAtA []byte) (int, error)

func (*UserStatus_Action) MarshalVT

func (m *UserStatus_Action) MarshalVT() (dAtA []byte, err error)

func (*UserStatus_Action) ProtoMessage

func (*UserStatus_Action) ProtoMessage()

func (*UserStatus_Action) ProtoReflect

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

func (*UserStatus_Action) Reset

func (x *UserStatus_Action) Reset()

func (*UserStatus_Action) SizeVT

func (m *UserStatus_Action) SizeVT() (n int)

func (*UserStatus_Action) String

func (x *UserStatus_Action) String() string

func (*UserStatus_Action) UnmarshalVT

func (m *UserStatus_Action) UnmarshalVT(dAtA []byte) error

type UserStatus_Activity

type UserStatus_Activity struct {

	// When the user started performing this
	// activity, in seconds since UNIX epoch.
	Started uint64 `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"`
	// Title of this activity.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Details about this activity.
	Details *string `protobuf:"bytes,3,opt,name=details,proto3,oneof" json:"details,omitempty"`
	// An image that relates to the activity.
	// This must be a file ID that points to an image.
	Image *string `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"`
	// A color that relates to the activity.
	Color *uint32 `protobuf:"varint,5,opt,name=color,proto3,oneof" json:"color,omitempty"`
	// Actions for this activity.
	Actions []*UserStatus_Action `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

Information about an activity the user is performing.

func (*UserStatus_Activity) Descriptor deprecated

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

Deprecated: Use UserStatus_Activity.ProtoReflect.Descriptor instead.

func (*UserStatus_Activity) GetActions

func (x *UserStatus_Activity) GetActions() []*UserStatus_Action

func (*UserStatus_Activity) GetColor

func (x *UserStatus_Activity) GetColor() uint32

func (*UserStatus_Activity) GetDetails

func (x *UserStatus_Activity) GetDetails() string

func (*UserStatus_Activity) GetImage

func (x *UserStatus_Activity) GetImage() string

func (*UserStatus_Activity) GetStarted

func (x *UserStatus_Activity) GetStarted() uint64

func (*UserStatus_Activity) GetTitle

func (x *UserStatus_Activity) GetTitle() string

func (*UserStatus_Activity) MarshalToSizedBufferVT

func (m *UserStatus_Activity) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UserStatus_Activity) MarshalToVT

func (m *UserStatus_Activity) MarshalToVT(dAtA []byte) (int, error)

func (*UserStatus_Activity) MarshalVT

func (m *UserStatus_Activity) MarshalVT() (dAtA []byte, err error)

func (*UserStatus_Activity) ProtoMessage

func (*UserStatus_Activity) ProtoMessage()

func (*UserStatus_Activity) ProtoReflect

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

func (*UserStatus_Activity) Reset

func (x *UserStatus_Activity) Reset()

func (*UserStatus_Activity) SizeVT

func (m *UserStatus_Activity) SizeVT() (n int)

func (*UserStatus_Activity) String

func (x *UserStatus_Activity) String() string

func (*UserStatus_Activity) UnmarshalVT

func (m *UserStatus_Activity) UnmarshalVT(dAtA []byte) error

type UserStatus_Kind

type UserStatus_Kind int32

The possible status kinds a user can have.

const (
	// The user is offline (not connected to the server).
	UserStatus_KIND_OFFLINE_UNSPECIFIED UserStatus_Kind = 0
	// The user is online.
	UserStatus_KIND_ONLINE UserStatus_Kind = 1
	// The user is away.
	UserStatus_KIND_IDLE UserStatus_Kind = 2
	// The user does not want to be disturbed.
	UserStatus_KIND_DO_NOT_DISTURB UserStatus_Kind = 3
)

func (UserStatus_Kind) Descriptor

func (UserStatus_Kind) Enum

func (x UserStatus_Kind) Enum() *UserStatus_Kind

func (UserStatus_Kind) EnumDescriptor deprecated

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

Deprecated: Use UserStatus_Kind.Descriptor instead.

func (UserStatus_Kind) Number

func (UserStatus_Kind) String

func (x UserStatus_Kind) String() string

func (UserStatus_Kind) Type

type UserStatus_Platform

type UserStatus_Platform int32

The possible platforms a user can be on.

const (
	// The user is on a desktop platform.
	UserStatus_PLATFORM_DESKTOP_UNSPECIFIED UserStatus_Platform = 0
	// The user is on a mobile platform.
	UserStatus_PLATFORM_MOBILE UserStatus_Platform = 1
)

func (UserStatus_Platform) Descriptor

func (UserStatus_Platform) Enum

func (UserStatus_Platform) EnumDescriptor deprecated

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

Deprecated: Use UserStatus_Platform.Descriptor instead.

func (UserStatus_Platform) Number

func (UserStatus_Platform) String

func (x UserStatus_Platform) String() string

func (UserStatus_Platform) Type

Jump to

Keyboard shortcuts

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