api

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

api/api.proto

It has these top-level messages:

Account
AccountCustom
AccountDevice
AccountEmail
AccountFacebook
AccountGameCenter
AccountGoogle
AccountSteam
AddFriendsRequest
AddGroupUsersRequest
AuthenticateCustomRequest
AuthenticateDeviceRequest
AuthenticateEmailRequest
AuthenticateFacebookRequest
AuthenticateGameCenterRequest
AuthenticateGoogleRequest
AuthenticateSteamRequest
BlockFriendsRequest
ChannelMessage
ChannelMessageList
CreateGroupRequest
DeleteFriendsRequest
DeleteGroupRequest
DeleteLeaderboardRecordRequest
DeleteNotificationsRequest
DeleteStorageObjectId
DeleteStorageObjectsRequest
Friend
Friends
GetUsersRequest
Group
GroupList
GroupUserList
ImportFacebookFriendsRequest
JoinGroupRequest
KickGroupUsersRequest
LeaderboardRecord
LeaderboardRecordList
LeaveGroupRequest
LinkFacebookRequest
ListChannelMessagesRequest
ListGroupsRequest
ListGroupUsersRequest
ListLeaderboardRecordsRequest
ListMatchesRequest
ListNotificationsRequest
ListStorageObjectsRequest
ListUserGroupsRequest
Match
MatchList
Notification
NotificationList
PromoteGroupUsersRequest
ReadStorageObjectId
ReadStorageObjectsRequest
Rpc
Session
StorageObject
StorageObjectAck
StorageObjectAcks
StorageObjects
StorageObjectList
UpdateAccountRequest
UpdateGroupRequest
User
UserGroupList
Users
WriteLeaderboardRecordRequest
WriteStorageObject
WriteStorageObjectsRequest

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Friend_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "FRIEND",
	2: "INVITE_SENT",
	3: "INVITE_RECEIVED",
	4: "BLOCKED",
}
View Source
var Friend_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"FRIEND":            1,
	"INVITE_SENT":       2,
	"INVITE_RECEIVED":   3,
	"BLOCKED":           4,
}
View Source
var GroupUserList_GroupUser_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "SUPERADMIN",
	2: "ADMIN",
	3: "MEMBER",
	4: "JOIN_REQUEST",
}
View Source
var GroupUserList_GroupUser_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"SUPERADMIN":        1,
	"ADMIN":             2,
	"MEMBER":            3,
	"JOIN_REQUEST":      4,
}
View Source
var UserGroupList_UserGroup_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "SUPERADMIN",
	2: "ADMIN",
	3: "MEMBER",
	4: "JOIN_REQUEST",
}
View Source
var UserGroupList_UserGroup_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"SUPERADMIN":        1,
	"ADMIN":             2,
	"MEMBER":            3,
	"JOIN_REQUEST":      4,
}

Functions

func RegisterNakamaHandler

func RegisterNakamaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNakamaHandler registers the http handlers for service Nakama to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNakamaHandlerClient

func RegisterNakamaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NakamaClient) error

RegisterNakamaHandler registers the http handlers for service Nakama to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NakamaClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NakamaClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NakamaClient" to call the correct interceptors.

func RegisterNakamaHandlerFromEndpoint

func RegisterNakamaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNakamaHandlerFromEndpoint is same as RegisterNakamaHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNakamaServer

func RegisterNakamaServer(s *grpc.Server, srv NakamaServer)

Types

type Account

type Account struct {
	// The user object.
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	// The user's wallet data.
	Wallet string `protobuf:"bytes,2,opt,name=wallet" json:"wallet,omitempty"`
	// The email address of the user.
	Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	// The devices which belong to the user's account.
	Devices []*AccountDevice `protobuf:"bytes,4,rep,name=devices" json:"devices,omitempty"`
	// The custom id in the user's account.
	CustomId string `protobuf:"bytes,5,opt,name=custom_id,json=customId" json:"custom_id,omitempty"`
	// The UNIX time when the user's email was verified.
	VerifyTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=verify_time,json=verifyTime" json:"verify_time,omitempty"`
}

A user with additional account details. Always the current user.

func (*Account) Descriptor

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

func (*Account) GetCustomId

func (m *Account) GetCustomId() string

func (*Account) GetDevices

func (m *Account) GetDevices() []*AccountDevice

func (*Account) GetEmail

func (m *Account) GetEmail() string

func (*Account) GetUser

func (m *Account) GetUser() *User

func (*Account) GetVerifyTime

func (m *Account) GetVerifyTime() *google_protobuf2.Timestamp

func (*Account) GetWallet

func (m *Account) GetWallet() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

type AccountCustom

type AccountCustom struct {
	// A custom identifier.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

Send a custom ID to the server. Used with authenticate/link/unlink.

func (*AccountCustom) Descriptor

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

func (*AccountCustom) GetId

func (m *AccountCustom) GetId() string

func (*AccountCustom) ProtoMessage

func (*AccountCustom) ProtoMessage()

func (*AccountCustom) Reset

func (m *AccountCustom) Reset()

func (*AccountCustom) String

func (m *AccountCustom) String() string

type AccountDevice

type AccountDevice struct {
	// A device identifier. Should be obtained by a platform-specific device API.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

Send a device to the server. Used with authenticate/link/unlink and user.

func (*AccountDevice) Descriptor

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

func (*AccountDevice) GetId

func (m *AccountDevice) GetId() string

func (*AccountDevice) ProtoMessage

func (*AccountDevice) ProtoMessage()

func (*AccountDevice) Reset

func (m *AccountDevice) Reset()

func (*AccountDevice) String

func (m *AccountDevice) String() string

type AccountEmail

type AccountEmail struct {
	// A valid RFC-5322 email address.
	Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
	// A password for the user account.
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

Send an email with password to the server. Used with authenticate/link/unlink.

func (*AccountEmail) Descriptor

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

func (*AccountEmail) GetEmail

func (m *AccountEmail) GetEmail() string

func (*AccountEmail) GetPassword

func (m *AccountEmail) GetPassword() string

func (*AccountEmail) ProtoMessage

func (*AccountEmail) ProtoMessage()

func (*AccountEmail) Reset

func (m *AccountEmail) Reset()

func (*AccountEmail) String

func (m *AccountEmail) String() string

type AccountFacebook

type AccountFacebook struct {
	// The OAuth token received from Facebook to access their profile API.
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

Send a Facebook token to the server. Used with authenticate/link/unlink.

func (*AccountFacebook) Descriptor

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

func (*AccountFacebook) GetToken

func (m *AccountFacebook) GetToken() string

func (*AccountFacebook) ProtoMessage

func (*AccountFacebook) ProtoMessage()

func (*AccountFacebook) Reset

func (m *AccountFacebook) Reset()

func (*AccountFacebook) String

func (m *AccountFacebook) String() string

type AccountGameCenter

type AccountGameCenter struct {
	// Player ID (generated by GameCenter).
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId" json:"player_id,omitempty"`
	// Bundle ID (generated by GameCenter).
	BundleId string `protobuf:"bytes,2,opt,name=bundle_id,json=bundleId" json:"bundle_id,omitempty"`
	// Time since UNIX epoch when the signature was created.
	TimestampSeconds int64 `protobuf:"varint,3,opt,name=timestamp_seconds,json=timestampSeconds" json:"timestamp_seconds,omitempty"`
	// A random "NSString" used to compute the hash and keep it randomized.
	Salt string `protobuf:"bytes,4,opt,name=salt" json:"salt,omitempty"`
	// The verification signature data generated.
	Signature string `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
	// The URL for the public encryption key.
	PublicKeyUrl string `protobuf:"bytes,6,opt,name=public_key_url,json=publicKeyUrl" json:"public_key_url,omitempty"`
}

Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.

func (*AccountGameCenter) Descriptor

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

func (*AccountGameCenter) GetBundleId

func (m *AccountGameCenter) GetBundleId() string

func (*AccountGameCenter) GetPlayerId

func (m *AccountGameCenter) GetPlayerId() string

func (*AccountGameCenter) GetPublicKeyUrl

func (m *AccountGameCenter) GetPublicKeyUrl() string

func (*AccountGameCenter) GetSalt

func (m *AccountGameCenter) GetSalt() string

func (*AccountGameCenter) GetSignature

func (m *AccountGameCenter) GetSignature() string

func (*AccountGameCenter) GetTimestampSeconds

func (m *AccountGameCenter) GetTimestampSeconds() int64

func (*AccountGameCenter) ProtoMessage

func (*AccountGameCenter) ProtoMessage()

func (*AccountGameCenter) Reset

func (m *AccountGameCenter) Reset()

func (*AccountGameCenter) String

func (m *AccountGameCenter) String() string

type AccountGoogle

type AccountGoogle struct {
	// The OAuth token received from Google to access their profile API.
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

Send a Google token to the server. Used with authenticate/link/unlink.

func (*AccountGoogle) Descriptor

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

func (*AccountGoogle) GetToken

func (m *AccountGoogle) GetToken() string

func (*AccountGoogle) ProtoMessage

func (*AccountGoogle) ProtoMessage()

func (*AccountGoogle) Reset

func (m *AccountGoogle) Reset()

func (*AccountGoogle) String

func (m *AccountGoogle) String() string

type AccountSteam

type AccountSteam struct {
	// The account token received from Steam to access their profile API.
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

Send a Steam token to the server. Used with authenticate/link/unlink.

func (*AccountSteam) Descriptor

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

func (*AccountSteam) GetToken

func (m *AccountSteam) GetToken() string

func (*AccountSteam) ProtoMessage

func (*AccountSteam) ProtoMessage()

func (*AccountSteam) Reset

func (m *AccountSteam) Reset()

func (*AccountSteam) String

func (m *AccountSteam) String() string

type AddFriendsRequest

type AddFriendsRequest struct {
	// The account id of a user.
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
	// The account username of a user.
	Usernames []string `protobuf:"bytes,2,rep,name=usernames" json:"usernames,omitempty"`
}

Add one or more friends to the current user.

func (*AddFriendsRequest) Descriptor

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

func (*AddFriendsRequest) GetIds

func (m *AddFriendsRequest) GetIds() []string

func (*AddFriendsRequest) GetUsernames

func (m *AddFriendsRequest) GetUsernames() []string

func (*AddFriendsRequest) ProtoMessage

func (*AddFriendsRequest) ProtoMessage()

func (*AddFriendsRequest) Reset

func (m *AddFriendsRequest) Reset()

func (*AddFriendsRequest) String

func (m *AddFriendsRequest) String() string

type AddGroupUsersRequest

type AddGroupUsersRequest struct {
	// The group to add users to.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	// The users to add.
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
}

Add users to a group.

func (*AddGroupUsersRequest) Descriptor

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

func (*AddGroupUsersRequest) GetGroupId

func (m *AddGroupUsersRequest) GetGroupId() string

func (*AddGroupUsersRequest) GetUserIds

func (m *AddGroupUsersRequest) GetUserIds() []string

func (*AddGroupUsersRequest) ProtoMessage

func (*AddGroupUsersRequest) ProtoMessage()

func (*AddGroupUsersRequest) Reset

func (m *AddGroupUsersRequest) Reset()

func (*AddGroupUsersRequest) String

func (m *AddGroupUsersRequest) String() string

type AuthenticateCustomRequest

type AuthenticateCustomRequest struct {
	// The custom account details.
	Account *AccountCustom `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with a custom ID.

func (*AuthenticateCustomRequest) Descriptor

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

func (*AuthenticateCustomRequest) GetAccount

func (m *AuthenticateCustomRequest) GetAccount() *AccountCustom

func (*AuthenticateCustomRequest) GetCreate

func (*AuthenticateCustomRequest) GetUsername

func (m *AuthenticateCustomRequest) GetUsername() string

func (*AuthenticateCustomRequest) ProtoMessage

func (*AuthenticateCustomRequest) ProtoMessage()

func (*AuthenticateCustomRequest) Reset

func (m *AuthenticateCustomRequest) Reset()

func (*AuthenticateCustomRequest) String

func (m *AuthenticateCustomRequest) String() string

type AuthenticateDeviceRequest

type AuthenticateDeviceRequest struct {
	// The device account details.
	Account *AccountDevice `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with a device ID.

func (*AuthenticateDeviceRequest) Descriptor

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

func (*AuthenticateDeviceRequest) GetAccount

func (m *AuthenticateDeviceRequest) GetAccount() *AccountDevice

func (*AuthenticateDeviceRequest) GetCreate

func (*AuthenticateDeviceRequest) GetUsername

func (m *AuthenticateDeviceRequest) GetUsername() string

func (*AuthenticateDeviceRequest) ProtoMessage

func (*AuthenticateDeviceRequest) ProtoMessage()

func (*AuthenticateDeviceRequest) Reset

func (m *AuthenticateDeviceRequest) Reset()

func (*AuthenticateDeviceRequest) String

func (m *AuthenticateDeviceRequest) String() string

type AuthenticateEmailRequest

type AuthenticateEmailRequest struct {
	// The email account details.
	Account *AccountEmail `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with email+password.

func (*AuthenticateEmailRequest) Descriptor

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

func (*AuthenticateEmailRequest) GetAccount

func (m *AuthenticateEmailRequest) GetAccount() *AccountEmail

func (*AuthenticateEmailRequest) GetCreate

func (*AuthenticateEmailRequest) GetUsername

func (m *AuthenticateEmailRequest) GetUsername() string

func (*AuthenticateEmailRequest) ProtoMessage

func (*AuthenticateEmailRequest) ProtoMessage()

func (*AuthenticateEmailRequest) Reset

func (m *AuthenticateEmailRequest) Reset()

func (*AuthenticateEmailRequest) String

func (m *AuthenticateEmailRequest) String() string

type AuthenticateFacebookRequest

type AuthenticateFacebookRequest struct {
	// The Facebook account details.
	Account *AccountFacebook `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
	// Import Facebook friends for the user.
	Import *google_protobuf3.BoolValue `protobuf:"bytes,4,opt,name=import" json:"import,omitempty"`
}

Authenticate against the server with Facebook.

func (*AuthenticateFacebookRequest) Descriptor

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

func (*AuthenticateFacebookRequest) GetAccount

func (*AuthenticateFacebookRequest) GetCreate

func (*AuthenticateFacebookRequest) GetImport

func (*AuthenticateFacebookRequest) GetUsername

func (m *AuthenticateFacebookRequest) GetUsername() string

func (*AuthenticateFacebookRequest) ProtoMessage

func (*AuthenticateFacebookRequest) ProtoMessage()

func (*AuthenticateFacebookRequest) Reset

func (m *AuthenticateFacebookRequest) Reset()

func (*AuthenticateFacebookRequest) String

func (m *AuthenticateFacebookRequest) String() string

type AuthenticateGameCenterRequest

type AuthenticateGameCenterRequest struct {
	// The Game Center account details.
	Account *AccountGameCenter `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with Apple's Game Center.

func (*AuthenticateGameCenterRequest) Descriptor

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

func (*AuthenticateGameCenterRequest) GetAccount

func (*AuthenticateGameCenterRequest) GetCreate

func (*AuthenticateGameCenterRequest) GetUsername

func (m *AuthenticateGameCenterRequest) GetUsername() string

func (*AuthenticateGameCenterRequest) ProtoMessage

func (*AuthenticateGameCenterRequest) ProtoMessage()

func (*AuthenticateGameCenterRequest) Reset

func (m *AuthenticateGameCenterRequest) Reset()

func (*AuthenticateGameCenterRequest) String

type AuthenticateGoogleRequest

type AuthenticateGoogleRequest struct {
	// The Google account details.
	Account *AccountGoogle `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with Google.

func (*AuthenticateGoogleRequest) Descriptor

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

func (*AuthenticateGoogleRequest) GetAccount

func (m *AuthenticateGoogleRequest) GetAccount() *AccountGoogle

func (*AuthenticateGoogleRequest) GetCreate

func (*AuthenticateGoogleRequest) GetUsername

func (m *AuthenticateGoogleRequest) GetUsername() string

func (*AuthenticateGoogleRequest) ProtoMessage

func (*AuthenticateGoogleRequest) ProtoMessage()

func (*AuthenticateGoogleRequest) Reset

func (m *AuthenticateGoogleRequest) Reset()

func (*AuthenticateGoogleRequest) String

func (m *AuthenticateGoogleRequest) String() string

type AuthenticateSteamRequest

type AuthenticateSteamRequest struct {
	// The Steam account details.
	Account *AccountSteam `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Register the account if the user does not already exist.
	Create *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=create" json:"create,omitempty"`
	// Set the username on the account at register. Must be unique.
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
}

Authenticate against the server with Steam.

func (*AuthenticateSteamRequest) Descriptor

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

func (*AuthenticateSteamRequest) GetAccount

func (m *AuthenticateSteamRequest) GetAccount() *AccountSteam

func (*AuthenticateSteamRequest) GetCreate

func (*AuthenticateSteamRequest) GetUsername

func (m *AuthenticateSteamRequest) GetUsername() string

func (*AuthenticateSteamRequest) ProtoMessage

func (*AuthenticateSteamRequest) ProtoMessage()

func (*AuthenticateSteamRequest) Reset

func (m *AuthenticateSteamRequest) Reset()

func (*AuthenticateSteamRequest) String

func (m *AuthenticateSteamRequest) String() string

type BlockFriendsRequest

type BlockFriendsRequest struct {
	// The account id of a user.
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
	// The account username of a user.
	Usernames []string `protobuf:"bytes,2,rep,name=usernames" json:"usernames,omitempty"`
}

Block one or more friends for the current user.

func (*BlockFriendsRequest) Descriptor

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

func (*BlockFriendsRequest) GetIds

func (m *BlockFriendsRequest) GetIds() []string

func (*BlockFriendsRequest) GetUsernames

func (m *BlockFriendsRequest) GetUsernames() []string

func (*BlockFriendsRequest) ProtoMessage

func (*BlockFriendsRequest) ProtoMessage()

func (*BlockFriendsRequest) Reset

func (m *BlockFriendsRequest) Reset()

func (*BlockFriendsRequest) String

func (m *BlockFriendsRequest) String() string

type ChannelMessage

type ChannelMessage struct {
	// The channel this message belongs to.
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"`
	// The unique ID of this message.
	MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId" json:"message_id,omitempty"`
	// The code representing a message type or category.
	Code *google_protobuf3.Int32Value `protobuf:"bytes,3,opt,name=code" json:"code,omitempty"`
	// Message sender, usually a user ID.
	SenderId string `protobuf:"bytes,4,opt,name=sender_id,json=senderId" json:"sender_id,omitempty"`
	// The username of the message sender, if any.
	Username string `protobuf:"bytes,5,opt,name=username" json:"username,omitempty"`
	// The content payload.
	Content string `protobuf:"bytes,6,opt,name=content" json:"content,omitempty"`
	// The UNIX time when the message was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The UNIX time when the message was last updated.
	UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
	// True if the message was persisted to the channel's history, false otherwise.
	Persistent *google_protobuf3.BoolValue `protobuf:"bytes,9,opt,name=persistent" json:"persistent,omitempty"`
}

A message sent on a channel.

func (*ChannelMessage) Descriptor

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

func (*ChannelMessage) GetChannelId

func (m *ChannelMessage) GetChannelId() string

func (*ChannelMessage) GetCode

func (*ChannelMessage) GetContent

func (m *ChannelMessage) GetContent() string

func (*ChannelMessage) GetCreateTime

func (m *ChannelMessage) GetCreateTime() *google_protobuf2.Timestamp

func (*ChannelMessage) GetMessageId

func (m *ChannelMessage) GetMessageId() string

func (*ChannelMessage) GetPersistent

func (m *ChannelMessage) GetPersistent() *google_protobuf3.BoolValue

func (*ChannelMessage) GetSenderId

func (m *ChannelMessage) GetSenderId() string

func (*ChannelMessage) GetUpdateTime

func (m *ChannelMessage) GetUpdateTime() *google_protobuf2.Timestamp

func (*ChannelMessage) GetUsername

func (m *ChannelMessage) GetUsername() string

func (*ChannelMessage) ProtoMessage

func (*ChannelMessage) ProtoMessage()

func (*ChannelMessage) Reset

func (m *ChannelMessage) Reset()

func (*ChannelMessage) String

func (m *ChannelMessage) String() string

type ChannelMessageList

type ChannelMessageList struct {
	// A list of messages.
	Messages []*ChannelMessage `protobuf:"bytes,1,rep,name=messages" json:"messages,omitempty"`
	// The cursor to send when retireving the next page, if any.
	NextCursor string `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
	// The cursor to send when retrieving the previous page, if any.
	PrevCursor string `protobuf:"bytes,3,opt,name=prev_cursor,json=prevCursor" json:"prev_cursor,omitempty"`
}

A list of channel messages, usually a result of a list operation.

func (*ChannelMessageList) Descriptor

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

func (*ChannelMessageList) GetMessages

func (m *ChannelMessageList) GetMessages() []*ChannelMessage

func (*ChannelMessageList) GetNextCursor

func (m *ChannelMessageList) GetNextCursor() string

func (*ChannelMessageList) GetPrevCursor

func (m *ChannelMessageList) GetPrevCursor() string

func (*ChannelMessageList) ProtoMessage

func (*ChannelMessageList) ProtoMessage()

func (*ChannelMessageList) Reset

func (m *ChannelMessageList) Reset()

func (*ChannelMessageList) String

func (m *ChannelMessageList) String() string

type CreateGroupRequest

type CreateGroupRequest struct {
	// A unique name for the group.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// A description for the group.
	Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	// The language expected to be a tag which follows the BCP-47 spec.
	LangTag string `protobuf:"bytes,3,opt,name=lang_tag,json=langTag" json:"lang_tag,omitempty"`
	// A URL for an avatar image.
	AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	// Mark a group as open or not where only admins can accept members.
	Open bool `protobuf:"varint,5,opt,name=open" json:"open,omitempty"`
}

Create a group with the current user as owner.

func (*CreateGroupRequest) Descriptor

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

func (*CreateGroupRequest) GetAvatarUrl

func (m *CreateGroupRequest) GetAvatarUrl() string

func (*CreateGroupRequest) GetDescription

func (m *CreateGroupRequest) GetDescription() string

func (*CreateGroupRequest) GetLangTag

func (m *CreateGroupRequest) GetLangTag() string

func (*CreateGroupRequest) GetName

func (m *CreateGroupRequest) GetName() string

func (*CreateGroupRequest) GetOpen

func (m *CreateGroupRequest) GetOpen() bool

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) Reset

func (m *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (m *CreateGroupRequest) String() string

type DeleteFriendsRequest

type DeleteFriendsRequest struct {
	// The account id of a user.
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
	// The account username of a user.
	Usernames []string `protobuf:"bytes,2,rep,name=usernames" json:"usernames,omitempty"`
}

Delete one or more friends for the current user.

func (*DeleteFriendsRequest) Descriptor

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

func (*DeleteFriendsRequest) GetIds

func (m *DeleteFriendsRequest) GetIds() []string

func (*DeleteFriendsRequest) GetUsernames

func (m *DeleteFriendsRequest) GetUsernames() []string

func (*DeleteFriendsRequest) ProtoMessage

func (*DeleteFriendsRequest) ProtoMessage()

func (*DeleteFriendsRequest) Reset

func (m *DeleteFriendsRequest) Reset()

func (*DeleteFriendsRequest) String

func (m *DeleteFriendsRequest) String() string

type DeleteGroupRequest

type DeleteGroupRequest struct {
	// The id of a group.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
}

Delete a group the user has access to.

func (*DeleteGroupRequest) Descriptor

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

func (*DeleteGroupRequest) GetGroupId

func (m *DeleteGroupRequest) GetGroupId() string

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) Reset

func (m *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (m *DeleteGroupRequest) String() string

type DeleteLeaderboardRecordRequest

type DeleteLeaderboardRecordRequest struct {
	// The leaderboard ID to delete from.
	LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId" json:"leaderboard_id,omitempty"`
}

Delete a leaderboard record.

func (*DeleteLeaderboardRecordRequest) Descriptor

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

func (*DeleteLeaderboardRecordRequest) GetLeaderboardId

func (m *DeleteLeaderboardRecordRequest) GetLeaderboardId() string

func (*DeleteLeaderboardRecordRequest) ProtoMessage

func (*DeleteLeaderboardRecordRequest) ProtoMessage()

func (*DeleteLeaderboardRecordRequest) Reset

func (m *DeleteLeaderboardRecordRequest) Reset()

func (*DeleteLeaderboardRecordRequest) String

type DeleteNotificationsRequest

type DeleteNotificationsRequest struct {
	// The id of notifications.
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
}

Delete one or more notifications for the current user.

func (*DeleteNotificationsRequest) Descriptor

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

func (*DeleteNotificationsRequest) GetIds

func (m *DeleteNotificationsRequest) GetIds() []string

func (*DeleteNotificationsRequest) ProtoMessage

func (*DeleteNotificationsRequest) ProtoMessage()

func (*DeleteNotificationsRequest) Reset

func (m *DeleteNotificationsRequest) Reset()

func (*DeleteNotificationsRequest) String

func (m *DeleteNotificationsRequest) String() string

type DeleteStorageObjectId

type DeleteStorageObjectId struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	// The version hash of the object.
	Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
}

Storage objects to delete.

func (*DeleteStorageObjectId) Descriptor

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

func (*DeleteStorageObjectId) GetCollection

func (m *DeleteStorageObjectId) GetCollection() string

func (*DeleteStorageObjectId) GetKey

func (m *DeleteStorageObjectId) GetKey() string

func (*DeleteStorageObjectId) GetVersion

func (m *DeleteStorageObjectId) GetVersion() string

func (*DeleteStorageObjectId) ProtoMessage

func (*DeleteStorageObjectId) ProtoMessage()

func (*DeleteStorageObjectId) Reset

func (m *DeleteStorageObjectId) Reset()

func (*DeleteStorageObjectId) String

func (m *DeleteStorageObjectId) String() string

type DeleteStorageObjectsRequest

type DeleteStorageObjectsRequest struct {
	// Batch of storage objects.
	ObjectIds []*DeleteStorageObjectId `protobuf:"bytes,1,rep,name=object_ids,json=objectIds" json:"object_ids,omitempty"`
}

Batch delete storage objects.

func (*DeleteStorageObjectsRequest) Descriptor

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

func (*DeleteStorageObjectsRequest) GetObjectIds

func (*DeleteStorageObjectsRequest) ProtoMessage

func (*DeleteStorageObjectsRequest) ProtoMessage()

func (*DeleteStorageObjectsRequest) Reset

func (m *DeleteStorageObjectsRequest) Reset()

func (*DeleteStorageObjectsRequest) String

func (m *DeleteStorageObjectsRequest) String() string

type Friend

type Friend struct {
	// The user object.
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	// The friend status.
	State int32 `protobuf:"varint,2,opt,name=state" json:"state,omitempty"`
}

A friend of a user.

func (*Friend) Descriptor

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

func (*Friend) GetState

func (m *Friend) GetState() int32

func (*Friend) GetUser

func (m *Friend) GetUser() *User

func (*Friend) ProtoMessage

func (*Friend) ProtoMessage()

func (*Friend) Reset

func (m *Friend) Reset()

func (*Friend) String

func (m *Friend) String() string

type Friend_State

type Friend_State int32

The friendship status.

const (
	// Default case. Assumed as FRIEND state.
	Friend_STATE_UNSPECIFIED Friend_State = 0
	// The user is a friend of the current user.
	Friend_FRIEND Friend_State = 1
	// The user has sent an invite to the current user.
	Friend_INVITE_SENT Friend_State = 2
	// The current user has sent an invite to this user.
	Friend_INVITE_RECEIVED Friend_State = 3
	// The current user has blocked this user.
	Friend_BLOCKED Friend_State = 4
)

func (Friend_State) EnumDescriptor

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

func (Friend_State) String

func (x Friend_State) String() string

type Friends

type Friends struct {
	// The Friend objects.
	Friends []*Friend `protobuf:"bytes,1,rep,name=friends" json:"friends,omitempty"`
}

A collection of zero or more friends of the user.

func (*Friends) Descriptor

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

func (*Friends) GetFriends

func (m *Friends) GetFriends() []*Friend

func (*Friends) ProtoMessage

func (*Friends) ProtoMessage()

func (*Friends) Reset

func (m *Friends) Reset()

func (*Friends) String

func (m *Friends) String() string

type GetUsersRequest

type GetUsersRequest struct {
	// The account id of a user.
	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
	// The account username of a user.
	Usernames []string `protobuf:"bytes,2,rep,name=usernames" json:"usernames,omitempty"`
	// The Facebook ID of a user.
	FacebookIds []string `protobuf:"bytes,3,rep,name=facebook_ids,json=facebookIds" json:"facebook_ids,omitempty"`
}

Fetch a batch of zero or more users from the server.

func (*GetUsersRequest) Descriptor

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

func (*GetUsersRequest) GetFacebookIds

func (m *GetUsersRequest) GetFacebookIds() []string

func (*GetUsersRequest) GetIds

func (m *GetUsersRequest) GetIds() []string

func (*GetUsersRequest) GetUsernames

func (m *GetUsersRequest) GetUsernames() []string

func (*GetUsersRequest) ProtoMessage

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) Reset

func (m *GetUsersRequest) Reset()

func (*GetUsersRequest) String

func (m *GetUsersRequest) String() string

type Group

type Group struct {
	// The id of a group.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The id of the user who created the group.
	CreatorId string `protobuf:"bytes,2,opt,name=creator_id,json=creatorId" json:"creator_id,omitempty"`
	// The unique name of the group.
	Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	// A description for the group.
	Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The language expected to be a tag which follows the BCP-47 spec.
	LangTag string `protobuf:"bytes,5,opt,name=lang_tag,json=langTag" json:"lang_tag,omitempty"`
	// Additional information stored as a JSON object.
	Metadata string `protobuf:"bytes,6,opt,name=metadata" json:"metadata,omitempty"`
	// A URL for an avatar image.
	AvatarUrl string `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	// Anyone can join open groups, otherwise only admins can accept members.
	Open *google_protobuf3.BoolValue `protobuf:"bytes,8,opt,name=open" json:"open,omitempty"`
	// The current count of all members in the group.
	EdgeCount int32 `protobuf:"varint,9,opt,name=edge_count,json=edgeCount" json:"edge_count,omitempty"`
	// The maximum number of members allowed.
	MaxCount int32 `protobuf:"varint,10,opt,name=max_count,json=maxCount" json:"max_count,omitempty"`
	// The UNIX time when the group was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The UNIX time when the group was last updated.
	UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
}

A group in the server.

func (*Group) Descriptor

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

func (*Group) GetAvatarUrl

func (m *Group) GetAvatarUrl() string

func (*Group) GetCreateTime

func (m *Group) GetCreateTime() *google_protobuf2.Timestamp

func (*Group) GetCreatorId

func (m *Group) GetCreatorId() string

func (*Group) GetDescription

func (m *Group) GetDescription() string

func (*Group) GetEdgeCount

func (m *Group) GetEdgeCount() int32

func (*Group) GetId

func (m *Group) GetId() string

func (*Group) GetLangTag

func (m *Group) GetLangTag() string

func (*Group) GetMaxCount

func (m *Group) GetMaxCount() int32

func (*Group) GetMetadata

func (m *Group) GetMetadata() string

func (*Group) GetName

func (m *Group) GetName() string

func (*Group) GetOpen

func (m *Group) GetOpen() *google_protobuf3.BoolValue

func (*Group) GetUpdateTime

func (m *Group) GetUpdateTime() *google_protobuf2.Timestamp

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) String

func (m *Group) String() string

type GroupList

type GroupList struct {
	// One or more groups.
	Groups []*Group `protobuf:"bytes,1,rep,name=groups" json:"groups,omitempty"`
	// A cursor used to get the next page.
	Cursor string `protobuf:"bytes,2,opt,name=cursor" json:"cursor,omitempty"`
}

One or more groups returned from a listing operation.

func (*GroupList) Descriptor

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

func (*GroupList) GetCursor

func (m *GroupList) GetCursor() string

func (*GroupList) GetGroups

func (m *GroupList) GetGroups() []*Group

func (*GroupList) ProtoMessage

func (*GroupList) ProtoMessage()

func (*GroupList) Reset

func (m *GroupList) Reset()

func (*GroupList) String

func (m *GroupList) String() string

type GroupUserList

type GroupUserList struct {
	// User-role pairs for a group.
	GroupUsers []*GroupUserList_GroupUser `protobuf:"bytes,1,rep,name=group_users,json=groupUsers" json:"group_users,omitempty"`
}

A list of users belonging to a group, along with their role.

func (*GroupUserList) Descriptor

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

func (*GroupUserList) GetGroupUsers

func (m *GroupUserList) GetGroupUsers() []*GroupUserList_GroupUser

func (*GroupUserList) ProtoMessage

func (*GroupUserList) ProtoMessage()

func (*GroupUserList) Reset

func (m *GroupUserList) Reset()

func (*GroupUserList) String

func (m *GroupUserList) String() string

type GroupUserList_GroupUser

type GroupUserList_GroupUser struct {
	// User.
	User *User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	// Their relationship to the group.
	State int32 `protobuf:"varint,2,opt,name=state" json:"state,omitempty"`
}

A single user-role pair.

func (*GroupUserList_GroupUser) Descriptor

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

func (*GroupUserList_GroupUser) GetState

func (m *GroupUserList_GroupUser) GetState() int32

func (*GroupUserList_GroupUser) GetUser

func (m *GroupUserList_GroupUser) GetUser() *User

func (*GroupUserList_GroupUser) ProtoMessage

func (*GroupUserList_GroupUser) ProtoMessage()

func (*GroupUserList_GroupUser) Reset

func (m *GroupUserList_GroupUser) Reset()

func (*GroupUserList_GroupUser) String

func (m *GroupUserList_GroupUser) String() string

type GroupUserList_GroupUser_State

type GroupUserList_GroupUser_State int32

The group role status.

const (
	// Default case. Assumed as SUPERADMIN state.
	GroupUserList_GroupUser_STATE_UNSPECIFIED GroupUserList_GroupUser_State = 0
	// The user is a superadmin with full control of the group.
	GroupUserList_GroupUser_SUPERADMIN GroupUserList_GroupUser_State = 1
	// The user is an admin with additional privileges.
	GroupUserList_GroupUser_ADMIN GroupUserList_GroupUser_State = 2
	// The user is a regular member.
	GroupUserList_GroupUser_MEMBER GroupUserList_GroupUser_State = 3
	// The user has requested to join the group
	GroupUserList_GroupUser_JOIN_REQUEST GroupUserList_GroupUser_State = 4
)

func (GroupUserList_GroupUser_State) EnumDescriptor

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

func (GroupUserList_GroupUser_State) String

type ImportFacebookFriendsRequest

type ImportFacebookFriendsRequest struct {
	// The Facebook account details.
	Account *AccountFacebook `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Reset the current user's friends list.
	Reset_ *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=reset" json:"reset,omitempty"`
}

Import Facebook friends into the current user's account.

func (*ImportFacebookFriendsRequest) Descriptor

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

func (*ImportFacebookFriendsRequest) GetAccount

func (*ImportFacebookFriendsRequest) GetReset_

func (*ImportFacebookFriendsRequest) ProtoMessage

func (*ImportFacebookFriendsRequest) ProtoMessage()

func (*ImportFacebookFriendsRequest) Reset

func (m *ImportFacebookFriendsRequest) Reset()

func (*ImportFacebookFriendsRequest) String

type JoinGroupRequest

type JoinGroupRequest struct {
	// The group ID to join.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
}

Immediately join an open group, or request to join a closed one.

func (*JoinGroupRequest) Descriptor

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

func (*JoinGroupRequest) GetGroupId

func (m *JoinGroupRequest) GetGroupId() string

func (*JoinGroupRequest) ProtoMessage

func (*JoinGroupRequest) ProtoMessage()

func (*JoinGroupRequest) Reset

func (m *JoinGroupRequest) Reset()

func (*JoinGroupRequest) String

func (m *JoinGroupRequest) String() string

type KickGroupUsersRequest

type KickGroupUsersRequest struct {
	// The group ID to kick from.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	// The users to kick.
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
}

Kick a set of users from a group.

func (*KickGroupUsersRequest) Descriptor

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

func (*KickGroupUsersRequest) GetGroupId

func (m *KickGroupUsersRequest) GetGroupId() string

func (*KickGroupUsersRequest) GetUserIds

func (m *KickGroupUsersRequest) GetUserIds() []string

func (*KickGroupUsersRequest) ProtoMessage

func (*KickGroupUsersRequest) ProtoMessage()

func (*KickGroupUsersRequest) Reset

func (m *KickGroupUsersRequest) Reset()

func (*KickGroupUsersRequest) String

func (m *KickGroupUsersRequest) String() string

type LeaderboardRecord

type LeaderboardRecord struct {
	// The ID of the leaderboard this score belongs to.
	LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId" json:"leaderboard_id,omitempty"`
	// The ID of the score owner, usually a user or group.
	OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId" json:"owner_id,omitempty"`
	// The username of the score owner, if the owner is a user.
	Username *google_protobuf3.StringValue `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
	// The score value.
	Score int64 `protobuf:"varint,4,opt,name=score" json:"score,omitempty"`
	// An optional subscore value.
	Subscore int64 `protobuf:"varint,5,opt,name=subscore" json:"subscore,omitempty"`
	// The number of submissions to this score record.
	NumScore int32 `protobuf:"varint,6,opt,name=num_score,json=numScore" json:"num_score,omitempty"`
	// Metadata.
	Metadata string `protobuf:"bytes,7,opt,name=metadata" json:"metadata,omitempty"`
	// The UNIX time when the leaderboard record was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The UNIX time when the leaderboard record was updated.
	UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
	// The UNIX time when the leaderboard record expires.
	ExpiryTime *google_protobuf2.Timestamp `protobuf:"bytes,10,opt,name=expiry_time,json=expiryTime" json:"expiry_time,omitempty"`
	// The rank of this record.
	Rank int64 `protobuf:"varint,11,opt,name=rank" json:"rank,omitempty"`
}

Represents a complete leaderboard record with all scores and associated metadata.

func (*LeaderboardRecord) Descriptor

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

func (*LeaderboardRecord) GetCreateTime

func (m *LeaderboardRecord) GetCreateTime() *google_protobuf2.Timestamp

func (*LeaderboardRecord) GetExpiryTime

func (m *LeaderboardRecord) GetExpiryTime() *google_protobuf2.Timestamp

func (*LeaderboardRecord) GetLeaderboardId

func (m *LeaderboardRecord) GetLeaderboardId() string

func (*LeaderboardRecord) GetMetadata

func (m *LeaderboardRecord) GetMetadata() string

func (*LeaderboardRecord) GetNumScore

func (m *LeaderboardRecord) GetNumScore() int32

func (*LeaderboardRecord) GetOwnerId

func (m *LeaderboardRecord) GetOwnerId() string

func (*LeaderboardRecord) GetRank

func (m *LeaderboardRecord) GetRank() int64

func (*LeaderboardRecord) GetScore

func (m *LeaderboardRecord) GetScore() int64

func (*LeaderboardRecord) GetSubscore

func (m *LeaderboardRecord) GetSubscore() int64

func (*LeaderboardRecord) GetUpdateTime

func (m *LeaderboardRecord) GetUpdateTime() *google_protobuf2.Timestamp

func (*LeaderboardRecord) GetUsername

func (*LeaderboardRecord) ProtoMessage

func (*LeaderboardRecord) ProtoMessage()

func (*LeaderboardRecord) Reset

func (m *LeaderboardRecord) Reset()

func (*LeaderboardRecord) String

func (m *LeaderboardRecord) String() string

type LeaderboardRecordList

type LeaderboardRecordList struct {
	// A list of leaderboard records.
	Records []*LeaderboardRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
	// A batched set of leaderobard records belonging to specified owners.
	OwnerRecords []*LeaderboardRecord `protobuf:"bytes,2,rep,name=owner_records,json=ownerRecords" json:"owner_records,omitempty"`
	// The cursor to send when retireving the next page, if any.
	NextCursor string `protobuf:"bytes,3,opt,name=next_cursor,json=nextCursor" json:"next_cursor,omitempty"`
	// The cursor to send when retrieving the previous page, if any.
	PrevCursor string `protobuf:"bytes,4,opt,name=prev_cursor,json=prevCursor" json:"prev_cursor,omitempty"`
}

A set of leaderboard records, may be part of a leaderboard records page or a batch of individual records.

func (*LeaderboardRecordList) Descriptor

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

func (*LeaderboardRecordList) GetNextCursor

func (m *LeaderboardRecordList) GetNextCursor() string

func (*LeaderboardRecordList) GetOwnerRecords

func (m *LeaderboardRecordList) GetOwnerRecords() []*LeaderboardRecord

func (*LeaderboardRecordList) GetPrevCursor

func (m *LeaderboardRecordList) GetPrevCursor() string

func (*LeaderboardRecordList) GetRecords

func (m *LeaderboardRecordList) GetRecords() []*LeaderboardRecord

func (*LeaderboardRecordList) ProtoMessage

func (*LeaderboardRecordList) ProtoMessage()

func (*LeaderboardRecordList) Reset

func (m *LeaderboardRecordList) Reset()

func (*LeaderboardRecordList) String

func (m *LeaderboardRecordList) String() string

type LeaveGroupRequest

type LeaveGroupRequest struct {
	// The group ID to leave.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
}

Leave a group.

func (*LeaveGroupRequest) Descriptor

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

func (*LeaveGroupRequest) GetGroupId

func (m *LeaveGroupRequest) GetGroupId() string

func (*LeaveGroupRequest) ProtoMessage

func (*LeaveGroupRequest) ProtoMessage()

func (*LeaveGroupRequest) Reset

func (m *LeaveGroupRequest) Reset()

func (*LeaveGroupRequest) String

func (m *LeaveGroupRequest) String() string

type LinkFacebookRequest

type LinkFacebookRequest struct {
	// The Facebook account details.
	Account *AccountFacebook `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	// Import Facebook friends for the user.
	Import *google_protobuf3.BoolValue `protobuf:"bytes,4,opt,name=import" json:"import,omitempty"`
}

Link Facebook to the current user's account.

func (*LinkFacebookRequest) Descriptor

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

func (*LinkFacebookRequest) GetAccount

func (m *LinkFacebookRequest) GetAccount() *AccountFacebook

func (*LinkFacebookRequest) GetImport

func (*LinkFacebookRequest) ProtoMessage

func (*LinkFacebookRequest) ProtoMessage()

func (*LinkFacebookRequest) Reset

func (m *LinkFacebookRequest) Reset()

func (*LinkFacebookRequest) String

func (m *LinkFacebookRequest) String() string

type ListChannelMessagesRequest

type ListChannelMessagesRequest struct {
	// The channel ID to list from.
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"`
	// Max number of records to return. Between 1 and 100.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,2,opt,name=limit" json:"limit,omitempty"`
	// True if listing should be older messages to newer, false if reverse.
	Forward *google_protobuf3.BoolValue `protobuf:"bytes,3,opt,name=forward" json:"forward,omitempty"`
	// A pagination cursor, if any.
	Cursor string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
}

List a channel's message history.

func (*ListChannelMessagesRequest) Descriptor

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

func (*ListChannelMessagesRequest) GetChannelId

func (m *ListChannelMessagesRequest) GetChannelId() string

func (*ListChannelMessagesRequest) GetCursor

func (m *ListChannelMessagesRequest) GetCursor() string

func (*ListChannelMessagesRequest) GetForward

func (*ListChannelMessagesRequest) GetLimit

func (*ListChannelMessagesRequest) ProtoMessage

func (*ListChannelMessagesRequest) ProtoMessage()

func (*ListChannelMessagesRequest) Reset

func (m *ListChannelMessagesRequest) Reset()

func (*ListChannelMessagesRequest) String

func (m *ListChannelMessagesRequest) String() string

type ListGroupUsersRequest

type ListGroupUsersRequest struct {
	// The group ID to list from.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
}

List all users that are part of a group.

func (*ListGroupUsersRequest) Descriptor

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

func (*ListGroupUsersRequest) GetGroupId

func (m *ListGroupUsersRequest) GetGroupId() string

func (*ListGroupUsersRequest) ProtoMessage

func (*ListGroupUsersRequest) ProtoMessage()

func (*ListGroupUsersRequest) Reset

func (m *ListGroupUsersRequest) Reset()

func (*ListGroupUsersRequest) String

func (m *ListGroupUsersRequest) String() string

type ListGroupsRequest

type ListGroupsRequest struct {
	// List groups that contain this value in their names.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Optional pagination cursor.
	Cursor string `protobuf:"bytes,2,opt,name=cursor" json:"cursor,omitempty"`
	// Max number of groups to return. Between 1 and 100.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,3,opt,name=limit" json:"limit,omitempty"`
}

List groups based on given filters.

func (*ListGroupsRequest) Descriptor

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

func (*ListGroupsRequest) GetCursor

func (m *ListGroupsRequest) GetCursor() string

func (*ListGroupsRequest) GetLimit

func (*ListGroupsRequest) GetName

func (m *ListGroupsRequest) GetName() string

func (*ListGroupsRequest) ProtoMessage

func (*ListGroupsRequest) ProtoMessage()

func (*ListGroupsRequest) Reset

func (m *ListGroupsRequest) Reset()

func (*ListGroupsRequest) String

func (m *ListGroupsRequest) String() string

type ListLeaderboardRecordsRequest

type ListLeaderboardRecordsRequest struct {
	// The ID of the leaderboard to list for.
	LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId" json:"leaderboard_id,omitempty"`
	// One or more owners to retrieve records for.
	OwnerIds []string `protobuf:"bytes,2,rep,name=owner_ids,json=ownerIds" json:"owner_ids,omitempty"`
	// Max number of records to return. Between 1 and 100.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,3,opt,name=limit" json:"limit,omitempty"`
	// A next or previous page cursor.
	Cursor string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
}

List leaderboard records from a given leaderboard.

func (*ListLeaderboardRecordsRequest) Descriptor

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

func (*ListLeaderboardRecordsRequest) GetCursor

func (m *ListLeaderboardRecordsRequest) GetCursor() string

func (*ListLeaderboardRecordsRequest) GetLeaderboardId

func (m *ListLeaderboardRecordsRequest) GetLeaderboardId() string

func (*ListLeaderboardRecordsRequest) GetLimit

func (*ListLeaderboardRecordsRequest) GetOwnerIds

func (m *ListLeaderboardRecordsRequest) GetOwnerIds() []string

func (*ListLeaderboardRecordsRequest) ProtoMessage

func (*ListLeaderboardRecordsRequest) ProtoMessage()

func (*ListLeaderboardRecordsRequest) Reset

func (m *ListLeaderboardRecordsRequest) Reset()

func (*ListLeaderboardRecordsRequest) String

type ListMatchesRequest

type ListMatchesRequest struct {
	// Limit the number of returned matches.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,1,opt,name=limit" json:"limit,omitempty"`
	// Authoritative or relayed matches.
	Authoritative *google_protobuf3.BoolValue `protobuf:"bytes,2,opt,name=authoritative" json:"authoritative,omitempty"`
	// Label filter.
	Label *google_protobuf3.StringValue `protobuf:"bytes,3,opt,name=label" json:"label,omitempty"`
	// Minimum user count.
	MinSize *google_protobuf3.Int32Value `protobuf:"bytes,4,opt,name=min_size,json=minSize" json:"min_size,omitempty"`
	// Maximum user count.
	MaxSize *google_protobuf3.Int32Value `protobuf:"bytes,5,opt,name=max_size,json=maxSize" json:"max_size,omitempty"`
}

List realtime matches.

func (*ListMatchesRequest) Descriptor

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

func (*ListMatchesRequest) GetAuthoritative

func (m *ListMatchesRequest) GetAuthoritative() *google_protobuf3.BoolValue

func (*ListMatchesRequest) GetLabel

func (*ListMatchesRequest) GetLimit

func (*ListMatchesRequest) GetMaxSize

func (*ListMatchesRequest) GetMinSize

func (*ListMatchesRequest) ProtoMessage

func (*ListMatchesRequest) ProtoMessage()

func (*ListMatchesRequest) Reset

func (m *ListMatchesRequest) Reset()

func (*ListMatchesRequest) String

func (m *ListMatchesRequest) String() string

type ListNotificationsRequest

type ListNotificationsRequest struct {
	// The number of notifications to get. Between 1 and 100.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,1,opt,name=limit" json:"limit,omitempty"`
	// A cursor to page through notifications. May be cached by clients to get from point in time forwards.
	CacheableCursor string `protobuf:"bytes,2,opt,name=cacheable_cursor,json=cacheableCursor" json:"cacheable_cursor,omitempty"`
}

Get a list of unexpired notifications.

func (*ListNotificationsRequest) Descriptor

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

func (*ListNotificationsRequest) GetCacheableCursor

func (m *ListNotificationsRequest) GetCacheableCursor() string

func (*ListNotificationsRequest) GetLimit

func (*ListNotificationsRequest) ProtoMessage

func (*ListNotificationsRequest) ProtoMessage()

func (*ListNotificationsRequest) Reset

func (m *ListNotificationsRequest) Reset()

func (*ListNotificationsRequest) String

func (m *ListNotificationsRequest) String() string

type ListStorageObjectsRequest

type ListStorageObjectsRequest struct {
	// ID of the user.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	// The collection which stores the object.
	Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
	// The number of storage objects to list. Between 1 and 100.
	Limit *google_protobuf3.Int32Value `protobuf:"bytes,3,opt,name=limit" json:"limit,omitempty"`
	// The cursor to page through results from.
	Cursor string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"`
}

List publicly readable storage objects in a given collection.

func (*ListStorageObjectsRequest) Descriptor

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

func (*ListStorageObjectsRequest) GetCollection

func (m *ListStorageObjectsRequest) GetCollection() string

func (*ListStorageObjectsRequest) GetCursor

func (m *ListStorageObjectsRequest) GetCursor() string

func (*ListStorageObjectsRequest) GetLimit

func (*ListStorageObjectsRequest) GetUserId

func (m *ListStorageObjectsRequest) GetUserId() string

func (*ListStorageObjectsRequest) ProtoMessage

func (*ListStorageObjectsRequest) ProtoMessage()

func (*ListStorageObjectsRequest) Reset

func (m *ListStorageObjectsRequest) Reset()

func (*ListStorageObjectsRequest) String

func (m *ListStorageObjectsRequest) String() string

type ListUserGroupsRequest

type ListUserGroupsRequest struct {
	// ID of the user.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
}

List the groups a user is part of, and their relationship to each.

func (*ListUserGroupsRequest) Descriptor

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

func (*ListUserGroupsRequest) GetUserId

func (m *ListUserGroupsRequest) GetUserId() string

func (*ListUserGroupsRequest) ProtoMessage

func (*ListUserGroupsRequest) ProtoMessage()

func (*ListUserGroupsRequest) Reset

func (m *ListUserGroupsRequest) Reset()

func (*ListUserGroupsRequest) String

func (m *ListUserGroupsRequest) String() string

type Match

type Match struct {
	// The ID of the match, can be used to join.
	MatchId string `protobuf:"bytes,1,opt,name=match_id,json=matchId" json:"match_id,omitempty"`
	// True if it's an server-managed authoritative match, false otherwise.
	Authoritative bool `protobuf:"varint,2,opt,name=authoritative" json:"authoritative,omitempty"`
	// Match label, if any.
	Label *google_protobuf3.StringValue `protobuf:"bytes,3,opt,name=label" json:"label,omitempty"`
	// Current number of users in the match.
	Size int32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
}

Represents a realtime match.

func (*Match) Descriptor

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

func (*Match) GetAuthoritative

func (m *Match) GetAuthoritative() bool

func (*Match) GetLabel

func (m *Match) GetLabel() *google_protobuf3.StringValue

func (*Match) GetMatchId

func (m *Match) GetMatchId() string

func (*Match) GetSize

func (m *Match) GetSize() int32

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) Reset

func (m *Match) Reset()

func (*Match) String

func (m *Match) String() string

type MatchList

type MatchList struct {
	// A number of matches corresponding to a list operation.
	Matches []*Match `protobuf:"bytes,1,rep,name=matches" json:"matches,omitempty"`
}

A list of realtime matches.

func (*MatchList) Descriptor

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

func (*MatchList) GetMatches

func (m *MatchList) GetMatches() []*Match

func (*MatchList) ProtoMessage

func (*MatchList) ProtoMessage()

func (*MatchList) Reset

func (m *MatchList) Reset()

func (*MatchList) String

func (m *MatchList) String() string

type NakamaClient

type NakamaClient interface {
	// Add friends by ID or username to a user's account.
	AddFriends(ctx context.Context, in *AddFriendsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add users to a group.
	AddGroupUsers(ctx context.Context, in *AddGroupUsersRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Authenticate a user with a custom id against the server.
	AuthenticateCustom(ctx context.Context, in *AuthenticateCustomRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with a device id against the server.
	AuthenticateDevice(ctx context.Context, in *AuthenticateDeviceRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with an email+password against the server.
	AuthenticateEmail(ctx context.Context, in *AuthenticateEmailRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with a Facebook OAuth token against the server.
	AuthenticateFacebook(ctx context.Context, in *AuthenticateFacebookRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with Apple's GameCenter against the server.
	AuthenticateGameCenter(ctx context.Context, in *AuthenticateGameCenterRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateGoogle(ctx context.Context, in *AuthenticateGoogleRequest, opts ...grpc.CallOption) (*Session, error)
	// Authenticate a user with Steam against the server.
	AuthenticateSteam(ctx context.Context, in *AuthenticateSteamRequest, opts ...grpc.CallOption) (*Session, error)
	// Block one or more users by ID or username.
	BlockFriends(ctx context.Context, in *BlockFriendsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Create a new group with the current user as the owner.
	CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*Group, error)
	// Delete one or more users by ID or username.
	DeleteFriends(ctx context.Context, in *DeleteFriendsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Delete one or more groups by ID.
	DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Delete a leaderboard record.
	DeleteLeaderboardRecord(ctx context.Context, in *DeleteLeaderboardRecordRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Delete one or more notifications for the current user.
	DeleteNotifications(ctx context.Context, in *DeleteNotificationsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Delete one or more objects by ID or username.
	DeleteStorageObjects(ctx context.Context, in *DeleteStorageObjectsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Fetch the current user's account.
	GetAccount(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*Account, error)
	// Fetch zero or more users by ID and/or username.
	GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*Users, error)
	// A healthcheck which load balancers can use to check the service.
	Healthcheck(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Import Facebook friends and add them to a user's account.
	ImportFacebookFriends(ctx context.Context, in *ImportFacebookFriendsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Immediately join an open group, or request to join a closed one.
	JoinGroup(ctx context.Context, in *JoinGroupRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Kick a set of users from a group.
	KickGroupUsers(ctx context.Context, in *KickGroupUsersRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Leave a group the user is a member of.
	LeaveGroup(ctx context.Context, in *LeaveGroupRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add a custom ID to the social profiles on the current user's account.
	LinkCustom(ctx context.Context, in *AccountCustom, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add a device ID to the social profiles on the current user's account.
	LinkDevice(ctx context.Context, in *AccountDevice, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add an email+password to the social profiles on the current user's account.
	LinkEmail(ctx context.Context, in *AccountEmail, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add Facebook to the social profiles on the current user's account.
	LinkFacebook(ctx context.Context, in *LinkFacebookRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add Apple's GameCenter to the social profiles on the current user's account.
	LinkGameCenter(ctx context.Context, in *AccountGameCenter, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add Google to the social profiles on the current user's account.
	LinkGoogle(ctx context.Context, in *AccountGoogle, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Add Steam to the social profiles on the current user's account.
	LinkSteam(ctx context.Context, in *AccountSteam, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// List a channel's message history.
	ListChannelMessages(ctx context.Context, in *ListChannelMessagesRequest, opts ...grpc.CallOption) (*ChannelMessageList, error)
	// List all friends for the current user.
	ListFriends(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*Friends, error)
	// List groups based on given filters.
	ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*GroupList, error)
	// List all users that are part of a group.
	ListGroupUsers(ctx context.Context, in *ListGroupUsersRequest, opts ...grpc.CallOption) (*GroupUserList, error)
	// List leaderboard records
	ListLeaderboardRecords(ctx context.Context, in *ListLeaderboardRecordsRequest, opts ...grpc.CallOption) (*LeaderboardRecordList, error)
	// Fetch list of running matches.
	ListMatches(ctx context.Context, in *ListMatchesRequest, opts ...grpc.CallOption) (*MatchList, error)
	// Fetch list of notifications.
	ListNotifications(ctx context.Context, in *ListNotificationsRequest, opts ...grpc.CallOption) (*NotificationList, error)
	// List publicly readable storage objects in a given collection.
	ListStorageObjects(ctx context.Context, in *ListStorageObjectsRequest, opts ...grpc.CallOption) (*StorageObjectList, error)
	// List groups the current user belongs to.
	ListUserGroups(ctx context.Context, in *ListUserGroupsRequest, opts ...grpc.CallOption) (*UserGroupList, error)
	// Promote a set of users in a group to the next role up.
	PromoteGroupUsers(ctx context.Context, in *PromoteGroupUsersRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Get storage objects.
	ReadStorageObjects(ctx context.Context, in *ReadStorageObjectsRequest, opts ...grpc.CallOption) (*StorageObjects, error)
	// Execute a Lua function on the server.
	RpcFunc(ctx context.Context, in *Rpc, opts ...grpc.CallOption) (*Rpc, error)
	// Remove the custom ID from the social profiles on the current user's account.
	UnlinkCustom(ctx context.Context, in *AccountCustom, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove the device ID from the social profiles on the current user's account.
	UnlinkDevice(ctx context.Context, in *AccountDevice, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove the email+password from the social profiles on the current user's account.
	UnlinkEmail(ctx context.Context, in *AccountEmail, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove Facebook from the social profiles on the current user's account.
	UnlinkFacebook(ctx context.Context, in *AccountFacebook, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove Apple's GameCenter from the social profiles on the current user's account.
	UnlinkGameCenter(ctx context.Context, in *AccountGameCenter, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove Google from the social profiles on the current user's account.
	UnlinkGoogle(ctx context.Context, in *AccountGoogle, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Remove Steam from the social profiles on the current user's account.
	UnlinkSteam(ctx context.Context, in *AccountSteam, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Update fields in the current user's account.
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Update fields in a given group.
	UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Write a record to a leaderboard.
	WriteLeaderboardRecord(ctx context.Context, in *WriteLeaderboardRecordRequest, opts ...grpc.CallOption) (*LeaderboardRecord, error)
	// Write objects into the storage engine.
	WriteStorageObjects(ctx context.Context, in *WriteStorageObjectsRequest, opts ...grpc.CallOption) (*StorageObjectAcks, error)
}

func NewNakamaClient

func NewNakamaClient(cc *grpc.ClientConn) NakamaClient

type NakamaServer

type NakamaServer interface {
	// Add friends by ID or username to a user's account.
	AddFriends(context.Context, *AddFriendsRequest) (*google_protobuf1.Empty, error)
	// Add users to a group.
	AddGroupUsers(context.Context, *AddGroupUsersRequest) (*google_protobuf1.Empty, error)
	// Authenticate a user with a custom id against the server.
	AuthenticateCustom(context.Context, *AuthenticateCustomRequest) (*Session, error)
	// Authenticate a user with a device id against the server.
	AuthenticateDevice(context.Context, *AuthenticateDeviceRequest) (*Session, error)
	// Authenticate a user with an email+password against the server.
	AuthenticateEmail(context.Context, *AuthenticateEmailRequest) (*Session, error)
	// Authenticate a user with a Facebook OAuth token against the server.
	AuthenticateFacebook(context.Context, *AuthenticateFacebookRequest) (*Session, error)
	// Authenticate a user with Apple's GameCenter against the server.
	AuthenticateGameCenter(context.Context, *AuthenticateGameCenterRequest) (*Session, error)
	// Authenticate a user with Google against the server.
	AuthenticateGoogle(context.Context, *AuthenticateGoogleRequest) (*Session, error)
	// Authenticate a user with Steam against the server.
	AuthenticateSteam(context.Context, *AuthenticateSteamRequest) (*Session, error)
	// Block one or more users by ID or username.
	BlockFriends(context.Context, *BlockFriendsRequest) (*google_protobuf1.Empty, error)
	// Create a new group with the current user as the owner.
	CreateGroup(context.Context, *CreateGroupRequest) (*Group, error)
	// Delete one or more users by ID or username.
	DeleteFriends(context.Context, *DeleteFriendsRequest) (*google_protobuf1.Empty, error)
	// Delete one or more groups by ID.
	DeleteGroup(context.Context, *DeleteGroupRequest) (*google_protobuf1.Empty, error)
	// Delete a leaderboard record.
	DeleteLeaderboardRecord(context.Context, *DeleteLeaderboardRecordRequest) (*google_protobuf1.Empty, error)
	// Delete one or more notifications for the current user.
	DeleteNotifications(context.Context, *DeleteNotificationsRequest) (*google_protobuf1.Empty, error)
	// Delete one or more objects by ID or username.
	DeleteStorageObjects(context.Context, *DeleteStorageObjectsRequest) (*google_protobuf1.Empty, error)
	// Fetch the current user's account.
	GetAccount(context.Context, *google_protobuf1.Empty) (*Account, error)
	// Fetch zero or more users by ID and/or username.
	GetUsers(context.Context, *GetUsersRequest) (*Users, error)
	// A healthcheck which load balancers can use to check the service.
	Healthcheck(context.Context, *google_protobuf1.Empty) (*google_protobuf1.Empty, error)
	// Import Facebook friends and add them to a user's account.
	ImportFacebookFriends(context.Context, *ImportFacebookFriendsRequest) (*google_protobuf1.Empty, error)
	// Immediately join an open group, or request to join a closed one.
	JoinGroup(context.Context, *JoinGroupRequest) (*google_protobuf1.Empty, error)
	// Kick a set of users from a group.
	KickGroupUsers(context.Context, *KickGroupUsersRequest) (*google_protobuf1.Empty, error)
	// Leave a group the user is a member of.
	LeaveGroup(context.Context, *LeaveGroupRequest) (*google_protobuf1.Empty, error)
	// Add a custom ID to the social profiles on the current user's account.
	LinkCustom(context.Context, *AccountCustom) (*google_protobuf1.Empty, error)
	// Add a device ID to the social profiles on the current user's account.
	LinkDevice(context.Context, *AccountDevice) (*google_protobuf1.Empty, error)
	// Add an email+password to the social profiles on the current user's account.
	LinkEmail(context.Context, *AccountEmail) (*google_protobuf1.Empty, error)
	// Add Facebook to the social profiles on the current user's account.
	LinkFacebook(context.Context, *LinkFacebookRequest) (*google_protobuf1.Empty, error)
	// Add Apple's GameCenter to the social profiles on the current user's account.
	LinkGameCenter(context.Context, *AccountGameCenter) (*google_protobuf1.Empty, error)
	// Add Google to the social profiles on the current user's account.
	LinkGoogle(context.Context, *AccountGoogle) (*google_protobuf1.Empty, error)
	// Add Steam to the social profiles on the current user's account.
	LinkSteam(context.Context, *AccountSteam) (*google_protobuf1.Empty, error)
	// List a channel's message history.
	ListChannelMessages(context.Context, *ListChannelMessagesRequest) (*ChannelMessageList, error)
	// List all friends for the current user.
	ListFriends(context.Context, *google_protobuf1.Empty) (*Friends, error)
	// List groups based on given filters.
	ListGroups(context.Context, *ListGroupsRequest) (*GroupList, error)
	// List all users that are part of a group.
	ListGroupUsers(context.Context, *ListGroupUsersRequest) (*GroupUserList, error)
	// List leaderboard records
	ListLeaderboardRecords(context.Context, *ListLeaderboardRecordsRequest) (*LeaderboardRecordList, error)
	// Fetch list of running matches.
	ListMatches(context.Context, *ListMatchesRequest) (*MatchList, error)
	// Fetch list of notifications.
	ListNotifications(context.Context, *ListNotificationsRequest) (*NotificationList, error)
	// List publicly readable storage objects in a given collection.
	ListStorageObjects(context.Context, *ListStorageObjectsRequest) (*StorageObjectList, error)
	// List groups the current user belongs to.
	ListUserGroups(context.Context, *ListUserGroupsRequest) (*UserGroupList, error)
	// Promote a set of users in a group to the next role up.
	PromoteGroupUsers(context.Context, *PromoteGroupUsersRequest) (*google_protobuf1.Empty, error)
	// Get storage objects.
	ReadStorageObjects(context.Context, *ReadStorageObjectsRequest) (*StorageObjects, error)
	// Execute a Lua function on the server.
	RpcFunc(context.Context, *Rpc) (*Rpc, error)
	// Remove the custom ID from the social profiles on the current user's account.
	UnlinkCustom(context.Context, *AccountCustom) (*google_protobuf1.Empty, error)
	// Remove the device ID from the social profiles on the current user's account.
	UnlinkDevice(context.Context, *AccountDevice) (*google_protobuf1.Empty, error)
	// Remove the email+password from the social profiles on the current user's account.
	UnlinkEmail(context.Context, *AccountEmail) (*google_protobuf1.Empty, error)
	// Remove Facebook from the social profiles on the current user's account.
	UnlinkFacebook(context.Context, *AccountFacebook) (*google_protobuf1.Empty, error)
	// Remove Apple's GameCenter from the social profiles on the current user's account.
	UnlinkGameCenter(context.Context, *AccountGameCenter) (*google_protobuf1.Empty, error)
	// Remove Google from the social profiles on the current user's account.
	UnlinkGoogle(context.Context, *AccountGoogle) (*google_protobuf1.Empty, error)
	// Remove Steam from the social profiles on the current user's account.
	UnlinkSteam(context.Context, *AccountSteam) (*google_protobuf1.Empty, error)
	// Update fields in the current user's account.
	UpdateAccount(context.Context, *UpdateAccountRequest) (*google_protobuf1.Empty, error)
	// Update fields in a given group.
	UpdateGroup(context.Context, *UpdateGroupRequest) (*google_protobuf1.Empty, error)
	// Write a record to a leaderboard.
	WriteLeaderboardRecord(context.Context, *WriteLeaderboardRecordRequest) (*LeaderboardRecord, error)
	// Write objects into the storage engine.
	WriteStorageObjects(context.Context, *WriteStorageObjectsRequest) (*StorageObjectAcks, error)
}

type Notification

type Notification struct {
	// ID of the Notification.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// Subject of the notification.
	Subject string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"`
	// Content of the notification in JSON.
	Content string `protobuf:"bytes,3,opt,name=content" json:"content,omitempty"`
	// Category code for this notification.
	Code int32 `protobuf:"varint,4,opt,name=code" json:"code,omitempty"`
	// ID of the sender, if a user. Otherwise 'null'.
	SenderId string `protobuf:"bytes,5,opt,name=sender_id,json=senderId" json:"sender_id,omitempty"`
	// The UNIX time when the notification was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// True if this notification was persisted to the database.
	Persistent bool `protobuf:"varint,7,opt,name=persistent" json:"persistent,omitempty"`
}

A notification in the server.

func (*Notification) Descriptor

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

func (*Notification) GetCode

func (m *Notification) GetCode() int32

func (*Notification) GetContent

func (m *Notification) GetContent() string

func (*Notification) GetCreateTime

func (m *Notification) GetCreateTime() *google_protobuf2.Timestamp

func (*Notification) GetId

func (m *Notification) GetId() string

func (*Notification) GetPersistent

func (m *Notification) GetPersistent() bool

func (*Notification) GetSenderId

func (m *Notification) GetSenderId() string

func (*Notification) GetSubject

func (m *Notification) GetSubject() string

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) Reset

func (m *Notification) Reset()

func (*Notification) String

func (m *Notification) String() string

type NotificationList

type NotificationList struct {
	// Collection of notifications.
	Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications" json:"notifications,omitempty"`
	// Use this cursor to paginate notifications. Cache this to catch up to new notifications.
	CacheableCursor string `protobuf:"bytes,2,opt,name=cacheable_cursor,json=cacheableCursor" json:"cacheable_cursor,omitempty"`
}

A collection of zero or more notifications.

func (*NotificationList) Descriptor

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

func (*NotificationList) GetCacheableCursor

func (m *NotificationList) GetCacheableCursor() string

func (*NotificationList) GetNotifications

func (m *NotificationList) GetNotifications() []*Notification

func (*NotificationList) ProtoMessage

func (*NotificationList) ProtoMessage()

func (*NotificationList) Reset

func (m *NotificationList) Reset()

func (*NotificationList) String

func (m *NotificationList) String() string

type PromoteGroupUsersRequest

type PromoteGroupUsersRequest struct {
	// The group ID to promote in.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	// The users to promote.
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
}

Promote a set of users in a group to the next role up.

func (*PromoteGroupUsersRequest) Descriptor

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

func (*PromoteGroupUsersRequest) GetGroupId

func (m *PromoteGroupUsersRequest) GetGroupId() string

func (*PromoteGroupUsersRequest) GetUserIds

func (m *PromoteGroupUsersRequest) GetUserIds() []string

func (*PromoteGroupUsersRequest) ProtoMessage

func (*PromoteGroupUsersRequest) ProtoMessage()

func (*PromoteGroupUsersRequest) Reset

func (m *PromoteGroupUsersRequest) Reset()

func (*PromoteGroupUsersRequest) String

func (m *PromoteGroupUsersRequest) String() string

type ReadStorageObjectId

type ReadStorageObjectId struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	// The user owner of the object.
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"`
}

Storage objects to get.

func (*ReadStorageObjectId) Descriptor

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

func (*ReadStorageObjectId) GetCollection

func (m *ReadStorageObjectId) GetCollection() string

func (*ReadStorageObjectId) GetKey

func (m *ReadStorageObjectId) GetKey() string

func (*ReadStorageObjectId) GetUserId

func (m *ReadStorageObjectId) GetUserId() string

func (*ReadStorageObjectId) ProtoMessage

func (*ReadStorageObjectId) ProtoMessage()

func (*ReadStorageObjectId) Reset

func (m *ReadStorageObjectId) Reset()

func (*ReadStorageObjectId) String

func (m *ReadStorageObjectId) String() string

type ReadStorageObjectsRequest

type ReadStorageObjectsRequest struct {
	// Batch of storage objects.
	ObjectIds []*ReadStorageObjectId `protobuf:"bytes,1,rep,name=object_ids,json=objectIds" json:"object_ids,omitempty"`
}

Batch get storage objects.

func (*ReadStorageObjectsRequest) Descriptor

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

func (*ReadStorageObjectsRequest) GetObjectIds

func (m *ReadStorageObjectsRequest) GetObjectIds() []*ReadStorageObjectId

func (*ReadStorageObjectsRequest) ProtoMessage

func (*ReadStorageObjectsRequest) ProtoMessage()

func (*ReadStorageObjectsRequest) Reset

func (m *ReadStorageObjectsRequest) Reset()

func (*ReadStorageObjectsRequest) String

func (m *ReadStorageObjectsRequest) String() string

type Rpc

type Rpc struct {
	// The identifier of the function.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The payload of the function which must be a JSON object.
	Payload string `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
	// The authentication key used when executed as a non-client HTTP request.
	HttpKey string `protobuf:"bytes,3,opt,name=http_key,json=httpKey" json:"http_key,omitempty"`
}

Execute an Lua function on the server.

func (*Rpc) Descriptor

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

func (*Rpc) GetHttpKey

func (m *Rpc) GetHttpKey() string

func (*Rpc) GetId

func (m *Rpc) GetId() string

func (*Rpc) GetPayload

func (m *Rpc) GetPayload() string

func (*Rpc) ProtoMessage

func (*Rpc) ProtoMessage()

func (*Rpc) Reset

func (m *Rpc) Reset()

func (*Rpc) String

func (m *Rpc) String() string

type Session

type Session struct {
	// True if the corresponding account was just created, false otherwise.
	Created bool `protobuf:"varint,1,opt,name=created" json:"created,omitempty"`
	// Authentication credentials.
	Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
	// rUDP specific authentication credentials.
	UdpToken string `protobuf:"bytes,3,opt,name=udp_token,json=udpToken" json:"udp_token,omitempty"`
}

A user's session used to authenticate messages.

func (*Session) Descriptor

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

func (*Session) GetCreated

func (m *Session) GetCreated() bool

func (*Session) GetToken

func (m *Session) GetToken() string

func (*Session) GetUdpToken

func (m *Session) GetUdpToken() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

type StorageObject

type StorageObject struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	// The user owner of the object.
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	// The value of the object.
	Value string `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
	// The version hash of the object.
	Version string `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"`
	// The read access permissions for the object.
	PermissionRead int32 `protobuf:"varint,6,opt,name=permission_read,json=permissionRead" json:"permission_read,omitempty"`
	// The write access permissions for the object.
	PermissionWrite int32 `protobuf:"varint,7,opt,name=permission_write,json=permissionWrite" json:"permission_write,omitempty"`
	// The UNIX time when the object was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The UNIX time when the object was last updated.
	UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
}

An object within the storage engine.

func (*StorageObject) Descriptor

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

func (*StorageObject) GetCollection

func (m *StorageObject) GetCollection() string

func (*StorageObject) GetCreateTime

func (m *StorageObject) GetCreateTime() *google_protobuf2.Timestamp

func (*StorageObject) GetKey

func (m *StorageObject) GetKey() string

func (*StorageObject) GetPermissionRead

func (m *StorageObject) GetPermissionRead() int32

func (*StorageObject) GetPermissionWrite

func (m *StorageObject) GetPermissionWrite() int32

func (*StorageObject) GetUpdateTime

func (m *StorageObject) GetUpdateTime() *google_protobuf2.Timestamp

func (*StorageObject) GetUserId

func (m *StorageObject) GetUserId() string

func (*StorageObject) GetValue

func (m *StorageObject) GetValue() string

func (*StorageObject) GetVersion

func (m *StorageObject) GetVersion() string

func (*StorageObject) ProtoMessage

func (*StorageObject) ProtoMessage()

func (*StorageObject) Reset

func (m *StorageObject) Reset()

func (*StorageObject) String

func (m *StorageObject) String() string

type StorageObjectAck

type StorageObjectAck struct {
	// The collection which stores the object.
	Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
	// The key of the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	// The version hash of the object.
	Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
	// The owner of the object.
	UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId" json:"user_id,omitempty"`
}

A storage acknowledgement.

func (*StorageObjectAck) Descriptor

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

func (*StorageObjectAck) GetCollection

func (m *StorageObjectAck) GetCollection() string

func (*StorageObjectAck) GetKey

func (m *StorageObjectAck) GetKey() string

func (*StorageObjectAck) GetUserId

func (m *StorageObjectAck) GetUserId() string

func (*StorageObjectAck) GetVersion

func (m *StorageObjectAck) GetVersion() string

func (*StorageObjectAck) ProtoMessage

func (*StorageObjectAck) ProtoMessage()

func (*StorageObjectAck) Reset

func (m *StorageObjectAck) Reset()

func (*StorageObjectAck) String

func (m *StorageObjectAck) String() string

type StorageObjectAcks

type StorageObjectAcks struct {
	// Batch of storage write acknowledgements.
	Acks []*StorageObjectAck `protobuf:"bytes,1,rep,name=acks" json:"acks,omitempty"`
}

Batch of acknowledgements for the storage object write.

func (*StorageObjectAcks) Descriptor

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

func (*StorageObjectAcks) GetAcks

func (m *StorageObjectAcks) GetAcks() []*StorageObjectAck

func (*StorageObjectAcks) ProtoMessage

func (*StorageObjectAcks) ProtoMessage()

func (*StorageObjectAcks) Reset

func (m *StorageObjectAcks) Reset()

func (*StorageObjectAcks) String

func (m *StorageObjectAcks) String() string

type StorageObjectList

type StorageObjectList struct {
	// The list of storage objects.
	Objects []*StorageObject `protobuf:"bytes,1,rep,name=objects" json:"objects,omitempty"`
	// The cursor associated with the query a page of results.
	Cursor string `protobuf:"bytes,2,opt,name=cursor" json:"cursor,omitempty"`
}

List of storage objects.

func (*StorageObjectList) Descriptor

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

func (*StorageObjectList) GetCursor

func (m *StorageObjectList) GetCursor() string

func (*StorageObjectList) GetObjects

func (m *StorageObjectList) GetObjects() []*StorageObject

func (*StorageObjectList) ProtoMessage

func (*StorageObjectList) ProtoMessage()

func (*StorageObjectList) Reset

func (m *StorageObjectList) Reset()

func (*StorageObjectList) String

func (m *StorageObjectList) String() string

type StorageObjects

type StorageObjects struct {
	// The batch of storage objects.
	Objects []*StorageObject `protobuf:"bytes,1,rep,name=objects" json:"objects,omitempty"`
}

Batch of storage objects.

func (*StorageObjects) Descriptor

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

func (*StorageObjects) GetObjects

func (m *StorageObjects) GetObjects() []*StorageObject

func (*StorageObjects) ProtoMessage

func (*StorageObjects) ProtoMessage()

func (*StorageObjects) Reset

func (m *StorageObjects) Reset()

func (*StorageObjects) String

func (m *StorageObjects) String() string

type UpdateAccountRequest

type UpdateAccountRequest struct {
	// The username of the user's account.
	Username *google_protobuf3.StringValue `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
	// The display name of the user.
	DisplayName *google_protobuf3.StringValue `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// A URL for an avatar image.
	AvatarUrl *google_protobuf3.StringValue `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	// The language expected to be a tag which follows the BCP-47 spec.
	LangTag *google_protobuf3.StringValue `protobuf:"bytes,4,opt,name=lang_tag,json=langTag" json:"lang_tag,omitempty"`
	// The location set by the user.
	Location *google_protobuf3.StringValue `protobuf:"bytes,5,opt,name=location" json:"location,omitempty"`
	// The timezone set by the user.
	Timezone *google_protobuf3.StringValue `protobuf:"bytes,6,opt,name=timezone" json:"timezone,omitempty"`
}

Update a user's account details.

func (*UpdateAccountRequest) Descriptor

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

func (*UpdateAccountRequest) GetAvatarUrl

func (*UpdateAccountRequest) GetDisplayName

func (m *UpdateAccountRequest) GetDisplayName() *google_protobuf3.StringValue

func (*UpdateAccountRequest) GetLangTag

func (*UpdateAccountRequest) GetLocation

func (*UpdateAccountRequest) GetTimezone

func (*UpdateAccountRequest) GetUsername

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) Reset

func (m *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (m *UpdateAccountRequest) String() string

type UpdateGroupRequest

type UpdateGroupRequest struct {
	// The ID of the group to update.
	GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
	// Name.
	Name *google_protobuf3.StringValue `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// Description string.
	Description *google_protobuf3.StringValue `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	// Lang tag.
	LangTag *google_protobuf3.StringValue `protobuf:"bytes,4,opt,name=lang_tag,json=langTag" json:"lang_tag,omitempty"`
	// Avatar URL.
	AvatarUrl *google_protobuf3.StringValue `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	// Open is true if anyone should be allowed to join, or false if joins must be approved by a group admin.
	Open *google_protobuf3.BoolValue `protobuf:"bytes,6,opt,name=open" json:"open,omitempty"`
}

Update fields in a given group.

func (*UpdateGroupRequest) Descriptor

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

func (*UpdateGroupRequest) GetAvatarUrl

func (m *UpdateGroupRequest) GetAvatarUrl() *google_protobuf3.StringValue

func (*UpdateGroupRequest) GetDescription

func (m *UpdateGroupRequest) GetDescription() *google_protobuf3.StringValue

func (*UpdateGroupRequest) GetGroupId

func (m *UpdateGroupRequest) GetGroupId() string

func (*UpdateGroupRequest) GetLangTag

func (*UpdateGroupRequest) GetName

func (*UpdateGroupRequest) GetOpen

func (*UpdateGroupRequest) ProtoMessage

func (*UpdateGroupRequest) ProtoMessage()

func (*UpdateGroupRequest) Reset

func (m *UpdateGroupRequest) Reset()

func (*UpdateGroupRequest) String

func (m *UpdateGroupRequest) String() string

type User

type User struct {
	// The id of the user's account.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The username of the user's account.
	Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"`
	// The display name of the user.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// A URL for an avatar image.
	AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl" json:"avatar_url,omitempty"`
	// The language expected to be a tag which follows the BCP-47 spec.
	LangTag string `protobuf:"bytes,5,opt,name=lang_tag,json=langTag" json:"lang_tag,omitempty"`
	// The location set by the user.
	Location string `protobuf:"bytes,6,opt,name=location" json:"location,omitempty"`
	// The timezone set by the user.
	Timezone string `protobuf:"bytes,7,opt,name=timezone" json:"timezone,omitempty"`
	// Additional information stored as a JSON object.
	Metadata string `protobuf:"bytes,8,opt,name=metadata" json:"metadata,omitempty"`
	// The Facebook id in the user's account.
	FacebookId string `protobuf:"bytes,9,opt,name=facebook_id,json=facebookId" json:"facebook_id,omitempty"`
	// The Google id in the user's account.
	GoogleId string `protobuf:"bytes,10,opt,name=google_id,json=googleId" json:"google_id,omitempty"`
	// The Apple Game Center in of the user's account.
	GamecenterId string `protobuf:"bytes,11,opt,name=gamecenter_id,json=gamecenterId" json:"gamecenter_id,omitempty"`
	// The Steam id in the user's account.
	SteamId string `protobuf:"bytes,12,opt,name=steam_id,json=steamId" json:"steam_id,omitempty"`
	// Indicates whether the user is currently online.
	Online bool `protobuf:"varint,13,opt,name=online" json:"online,omitempty"`
	// Number of related edges to this user.
	EdgeCount int32 `protobuf:"varint,14,opt,name=edge_count,json=edgeCount" json:"edge_count,omitempty"`
	// The UNIX time when the user was created.
	CreateTime *google_protobuf2.Timestamp `protobuf:"bytes,15,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The UNIX time when the user was last updated.
	UpdateTime *google_protobuf2.Timestamp `protobuf:"bytes,16,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
}

A user in the server.

func (*User) Descriptor

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

func (*User) GetAvatarUrl

func (m *User) GetAvatarUrl() string

func (*User) GetCreateTime

func (m *User) GetCreateTime() *google_protobuf2.Timestamp

func (*User) GetDisplayName

func (m *User) GetDisplayName() string

func (*User) GetEdgeCount

func (m *User) GetEdgeCount() int32

func (*User) GetFacebookId

func (m *User) GetFacebookId() string

func (*User) GetGamecenterId

func (m *User) GetGamecenterId() string

func (*User) GetGoogleId

func (m *User) GetGoogleId() string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetLangTag

func (m *User) GetLangTag() string

func (*User) GetLocation

func (m *User) GetLocation() string

func (*User) GetMetadata

func (m *User) GetMetadata() string

func (*User) GetOnline

func (m *User) GetOnline() bool

func (*User) GetSteamId

func (m *User) GetSteamId() string

func (*User) GetTimezone

func (m *User) GetTimezone() string

func (*User) GetUpdateTime

func (m *User) GetUpdateTime() *google_protobuf2.Timestamp

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

type UserGroupList

type UserGroupList struct {
	// Group-role pairs for a user.
	UserGroups []*UserGroupList_UserGroup `protobuf:"bytes,1,rep,name=user_groups,json=userGroups" json:"user_groups,omitempty"`
}

A list of groups belonging to a user, along with the user's role in each group.

func (*UserGroupList) Descriptor

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

func (*UserGroupList) GetUserGroups

func (m *UserGroupList) GetUserGroups() []*UserGroupList_UserGroup

func (*UserGroupList) ProtoMessage

func (*UserGroupList) ProtoMessage()

func (*UserGroupList) Reset

func (m *UserGroupList) Reset()

func (*UserGroupList) String

func (m *UserGroupList) String() string

type UserGroupList_UserGroup

type UserGroupList_UserGroup struct {
	// Group.
	Group *Group `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"`
	// The user's relationship to the group.
	State int32 `protobuf:"varint,2,opt,name=state" json:"state,omitempty"`
}

A single group-role pair.

func (*UserGroupList_UserGroup) Descriptor

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

func (*UserGroupList_UserGroup) GetGroup

func (m *UserGroupList_UserGroup) GetGroup() *Group

func (*UserGroupList_UserGroup) GetState

func (m *UserGroupList_UserGroup) GetState() int32

func (*UserGroupList_UserGroup) ProtoMessage

func (*UserGroupList_UserGroup) ProtoMessage()

func (*UserGroupList_UserGroup) Reset

func (m *UserGroupList_UserGroup) Reset()

func (*UserGroupList_UserGroup) String

func (m *UserGroupList_UserGroup) String() string

type UserGroupList_UserGroup_State

type UserGroupList_UserGroup_State int32

The group role status.

const (
	// Default case. Assumed as SUPERADMIN state.
	UserGroupList_UserGroup_STATE_UNSPECIFIED UserGroupList_UserGroup_State = 0
	// The user is a superadmin with full control of the group.
	UserGroupList_UserGroup_SUPERADMIN UserGroupList_UserGroup_State = 1
	// The user is an admin with additional privileges.
	UserGroupList_UserGroup_ADMIN UserGroupList_UserGroup_State = 2
	// The user is a regular member.
	UserGroupList_UserGroup_MEMBER UserGroupList_UserGroup_State = 3
	// The user has requested to join the group
	UserGroupList_UserGroup_JOIN_REQUEST UserGroupList_UserGroup_State = 4
)

func (UserGroupList_UserGroup_State) EnumDescriptor

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

func (UserGroupList_UserGroup_State) String

type Users

type Users struct {
	// The User objects.
	Users []*User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

A collection of zero or more users.

func (*Users) Descriptor

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

func (*Users) GetUsers

func (m *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) Reset

func (m *Users) Reset()

func (*Users) String

func (m *Users) String() string

type WriteLeaderboardRecordRequest

type WriteLeaderboardRecordRequest struct {
	// The ID of the leaderboard to write to.
	LeaderboardId string `protobuf:"bytes,1,opt,name=leaderboard_id,json=leaderboardId" json:"leaderboard_id,omitempty"`
	// Record data.
	Record *WriteLeaderboardRecordRequest_LeaderboardRecordWrite `protobuf:"bytes,2,opt,name=record" json:"record,omitempty"`
}

A request to submit a score to a leaderboard.

func (*WriteLeaderboardRecordRequest) Descriptor

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

func (*WriteLeaderboardRecordRequest) GetLeaderboardId

func (m *WriteLeaderboardRecordRequest) GetLeaderboardId() string

func (*WriteLeaderboardRecordRequest) GetRecord

func (*WriteLeaderboardRecordRequest) ProtoMessage

func (*WriteLeaderboardRecordRequest) ProtoMessage()

func (*WriteLeaderboardRecordRequest) Reset

func (m *WriteLeaderboardRecordRequest) Reset()

func (*WriteLeaderboardRecordRequest) String

type WriteLeaderboardRecordRequest_LeaderboardRecordWrite

type WriteLeaderboardRecordRequest_LeaderboardRecordWrite struct {
	// The score value to submit.
	Score int64 `protobuf:"varint,1,opt,name=score" json:"score,omitempty"`
	// An optional secondary value.
	Subscore int64 `protobuf:"varint,2,opt,name=subscore" json:"subscore,omitempty"`
	// Optional record metadata.
	Metadata string `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"`
}

Record values to write.

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) Descriptor

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) GetMetadata

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) GetScore

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) GetSubscore

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) ProtoMessage

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) Reset

func (*WriteLeaderboardRecordRequest_LeaderboardRecordWrite) String

type WriteStorageObject

type WriteStorageObject struct {
	// The collection to store the object.
	Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
	// The key for the object within the collection.
	Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	// The value of the object.
	Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	// The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
	Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
	// The read access permissions for the object.
	PermissionRead *google_protobuf3.Int32Value `protobuf:"bytes,5,opt,name=permission_read,json=permissionRead" json:"permission_read,omitempty"`
	// The write access permissions for the object.
	PermissionWrite *google_protobuf3.Int32Value `protobuf:"bytes,6,opt,name=permission_write,json=permissionWrite" json:"permission_write,omitempty"`
}

The object to store.

func (*WriteStorageObject) Descriptor

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

func (*WriteStorageObject) GetCollection

func (m *WriteStorageObject) GetCollection() string

func (*WriteStorageObject) GetKey

func (m *WriteStorageObject) GetKey() string

func (*WriteStorageObject) GetPermissionRead

func (m *WriteStorageObject) GetPermissionRead() *google_protobuf3.Int32Value

func (*WriteStorageObject) GetPermissionWrite

func (m *WriteStorageObject) GetPermissionWrite() *google_protobuf3.Int32Value

func (*WriteStorageObject) GetValue

func (m *WriteStorageObject) GetValue() string

func (*WriteStorageObject) GetVersion

func (m *WriteStorageObject) GetVersion() string

func (*WriteStorageObject) ProtoMessage

func (*WriteStorageObject) ProtoMessage()

func (*WriteStorageObject) Reset

func (m *WriteStorageObject) Reset()

func (*WriteStorageObject) String

func (m *WriteStorageObject) String() string

type WriteStorageObjectsRequest

type WriteStorageObjectsRequest struct {
	// The objects to store on the server.
	Objects []*WriteStorageObject `protobuf:"bytes,1,rep,name=objects" json:"objects,omitempty"`
}

Write objects to the storage engine.

func (*WriteStorageObjectsRequest) Descriptor

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

func (*WriteStorageObjectsRequest) GetObjects

func (*WriteStorageObjectsRequest) ProtoMessage

func (*WriteStorageObjectsRequest) ProtoMessage()

func (*WriteStorageObjectsRequest) Reset

func (m *WriteStorageObjectsRequest) Reset()

func (*WriteStorageObjectsRequest) String

func (m *WriteStorageObjectsRequest) String() string

Jump to

Keyboard shortcuts

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