api: google.golang.org/api/gamesmanagement/v1management Index | Files

package gamesmanagement

import "google.golang.org/api/gamesmanagement/v1management"

Package gamesmanagement provides access to the Google Play Game Management.

For product documentation, see: https://developers.google.com/games/

Creating a client

Usage example:

import "google.golang.org/api/gamesmanagement/v1management"
...
ctx := context.Background()
gamesmanagementService, err := gamesmanagement.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

gamesmanagementService, err := gamesmanagement.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
gamesmanagementService, err := gamesmanagement.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

gamesmanagement-gen.go

Constants

const (
    // Create, edit, and delete your Google Play Games activity
    GamesScope = "https://www.googleapis.com/auth/games"
)

OAuth2 scopes used by this API.

type AchievementResetAllResponse Uses

type AchievementResetAllResponse struct {
    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#achievementResetAllResponse`.
    Kind string `json:"kind,omitempty"`

    // Results: The achievement reset results.
    Results []*AchievementResetResponse `json:"results,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AchievementResetAllResponse: Achievement reset all response.

func (*AchievementResetAllResponse) MarshalJSON Uses

func (s *AchievementResetAllResponse) MarshalJSON() ([]byte, error)

type AchievementResetMultipleForAllRequest Uses

type AchievementResetMultipleForAllRequest struct {
    // AchievementIds: The IDs of achievements to reset.
    AchievementIds []string `json:"achievement_ids,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#achievementResetMultipleForAllRequest`.
    Kind string `json:"kind,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AchievementIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AchievementIds") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*AchievementResetMultipleForAllRequest) MarshalJSON Uses

func (s *AchievementResetMultipleForAllRequest) MarshalJSON() ([]byte, error)

type AchievementResetResponse Uses

type AchievementResetResponse struct {
    // CurrentState: The current state of the achievement.  This is the same
    // as the initial
    // state of the achievement. <br/>Possible values are:
    // <ul>
    // <li>"HIDDEN"- Achievement is hidden.</li>
    // <li>"REVEALED" - Achievement is revealed.</li>
    // <li>"UNLOCKED" - Achievement is unlocked.</li> </ul>
    CurrentState string `json:"currentState,omitempty"`

    // DefinitionId: The ID of an achievement for which player state has
    // been updated.
    DefinitionId string `json:"definitionId,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#achievementResetResponse`.
    Kind string `json:"kind,omitempty"`

    // UpdateOccurred: Flag to indicate if the requested update actually
    // occurred.
    UpdateOccurred bool `json:"updateOccurred,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CurrentState") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CurrentState") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AchievementResetResponse: An achievement reset response.

func (*AchievementResetResponse) MarshalJSON Uses

func (s *AchievementResetResponse) MarshalJSON() ([]byte, error)

type AchievementsResetAllCall Uses

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

func (*AchievementsResetAllCall) Context Uses

func (c *AchievementsResetAllCall) Context(ctx context.Context) *AchievementsResetAllCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AchievementsResetAllCall) Do Uses

func (c *AchievementsResetAllCall) Do(opts ...googleapi.CallOption) (*AchievementResetAllResponse, error)

Do executes the "gamesManagement.achievements.resetAll" call. Exactly one of *AchievementResetAllResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementResetAllResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AchievementsResetAllCall) Fields Uses

func (c *AchievementsResetAllCall) Fields(s ...googleapi.Field) *AchievementsResetAllCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementsResetAllCall) Header Uses

func (c *AchievementsResetAllCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementsResetAllForAllPlayersCall Uses

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

func (*AchievementsResetAllForAllPlayersCall) Context Uses

func (c *AchievementsResetAllForAllPlayersCall) Context(ctx context.Context) *AchievementsResetAllForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AchievementsResetAllForAllPlayersCall) Do Uses

func (c *AchievementsResetAllForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.achievements.resetAllForAllPlayers" call.

func (*AchievementsResetAllForAllPlayersCall) Fields Uses

func (c *AchievementsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetAllForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementsResetAllForAllPlayersCall) Header Uses

func (c *AchievementsResetAllForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementsResetCall Uses

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

func (*AchievementsResetCall) Context Uses

func (c *AchievementsResetCall) Context(ctx context.Context) *AchievementsResetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AchievementsResetCall) Do Uses

func (c *AchievementsResetCall) Do(opts ...googleapi.CallOption) (*AchievementResetResponse, error)

Do executes the "gamesManagement.achievements.reset" call. Exactly one of *AchievementResetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AchievementResetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AchievementsResetCall) Fields Uses

func (c *AchievementsResetCall) Fields(s ...googleapi.Field) *AchievementsResetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementsResetCall) Header Uses

func (c *AchievementsResetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementsResetForAllPlayersCall Uses

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

func (*AchievementsResetForAllPlayersCall) Context Uses

func (c *AchievementsResetForAllPlayersCall) Context(ctx context.Context) *AchievementsResetForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AchievementsResetForAllPlayersCall) Do Uses

func (c *AchievementsResetForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.achievements.resetForAllPlayers" call.

func (*AchievementsResetForAllPlayersCall) Fields Uses

func (c *AchievementsResetForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementsResetForAllPlayersCall) Header Uses

func (c *AchievementsResetForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementsResetMultipleForAllPlayersCall Uses

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

func (*AchievementsResetMultipleForAllPlayersCall) Context Uses

func (c *AchievementsResetMultipleForAllPlayersCall) Context(ctx context.Context) *AchievementsResetMultipleForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AchievementsResetMultipleForAllPlayersCall) Do Uses

func (c *AchievementsResetMultipleForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.achievements.resetMultipleForAllPlayers" call.

func (*AchievementsResetMultipleForAllPlayersCall) Fields Uses

func (c *AchievementsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *AchievementsResetMultipleForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AchievementsResetMultipleForAllPlayersCall) Header Uses

func (c *AchievementsResetMultipleForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AchievementsService Uses

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

func NewAchievementsService Uses

func NewAchievementsService(s *Service) *AchievementsService

func (*AchievementsService) Reset Uses

func (r *AchievementsService) Reset(achievementId string) *AchievementsResetCall

Reset: Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

func (*AchievementsService) ResetAll Uses

func (r *AchievementsService) ResetAll() *AchievementsResetAllCall

ResetAll: Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.

func (*AchievementsService) ResetAllForAllPlayers Uses

func (r *AchievementsService) ResetAllForAllPlayers() *AchievementsResetAllForAllPlayersCall

ResetAllForAllPlayers: Resets all draft achievements for all players. This method is only available to user accounts for your developer console.

func (*AchievementsService) ResetForAllPlayers Uses

func (r *AchievementsService) ResetForAllPlayers(achievementId string) *AchievementsResetForAllPlayersCall

ResetForAllPlayers: Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset.

func (*AchievementsService) ResetMultipleForAllPlayers Uses

func (r *AchievementsService) ResetMultipleForAllPlayers(achievementresetmultipleforallrequest *AchievementResetMultipleForAllRequest) *AchievementsResetMultipleForAllPlayersCall

ResetMultipleForAllPlayers: Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset.

type ApplicationsListHiddenCall Uses

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

func (*ApplicationsListHiddenCall) Context Uses

func (c *ApplicationsListHiddenCall) Context(ctx context.Context) *ApplicationsListHiddenCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ApplicationsListHiddenCall) Do Uses

func (c *ApplicationsListHiddenCall) Do(opts ...googleapi.CallOption) (*HiddenPlayerList, error)

Do executes the "gamesManagement.applications.listHidden" call. Exactly one of *HiddenPlayerList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HiddenPlayerList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ApplicationsListHiddenCall) Fields Uses

func (c *ApplicationsListHiddenCall) Fields(s ...googleapi.Field) *ApplicationsListHiddenCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ApplicationsListHiddenCall) Header Uses

func (c *ApplicationsListHiddenCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ApplicationsListHiddenCall) IfNoneMatch Uses

func (c *ApplicationsListHiddenCall) IfNoneMatch(entityTag string) *ApplicationsListHiddenCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ApplicationsListHiddenCall) MaxResults Uses

func (c *ApplicationsListHiddenCall) MaxResults(maxResults int64) *ApplicationsListHiddenCall

MaxResults sets the optional parameter "maxResults": The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified `maxResults`.

func (*ApplicationsListHiddenCall) PageToken Uses

func (c *ApplicationsListHiddenCall) PageToken(pageToken string) *ApplicationsListHiddenCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*ApplicationsListHiddenCall) Pages Uses

func (c *ApplicationsListHiddenCall) Pages(ctx context.Context, f func(*HiddenPlayerList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ApplicationsService Uses

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

func NewApplicationsService Uses

func NewApplicationsService(s *Service) *ApplicationsService

func (*ApplicationsService) ListHidden Uses

func (r *ApplicationsService) ListHidden(applicationId string) *ApplicationsListHiddenCall

ListHidden: Get the list of players hidden from the given application. This method is only available to user accounts for your developer console.

type EventsResetAllCall Uses

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

func (*EventsResetAllCall) Context Uses

func (c *EventsResetAllCall) Context(ctx context.Context) *EventsResetAllCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EventsResetAllCall) Do Uses

func (c *EventsResetAllCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.events.resetAll" call.

func (*EventsResetAllCall) Fields Uses

func (c *EventsResetAllCall) Fields(s ...googleapi.Field) *EventsResetAllCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EventsResetAllCall) Header Uses

func (c *EventsResetAllCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EventsResetAllForAllPlayersCall Uses

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

func (*EventsResetAllForAllPlayersCall) Context Uses

func (c *EventsResetAllForAllPlayersCall) Context(ctx context.Context) *EventsResetAllForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EventsResetAllForAllPlayersCall) Do Uses

func (c *EventsResetAllForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.events.resetAllForAllPlayers" call.

func (*EventsResetAllForAllPlayersCall) Fields Uses

func (c *EventsResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetAllForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EventsResetAllForAllPlayersCall) Header Uses

func (c *EventsResetAllForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EventsResetCall Uses

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

func (*EventsResetCall) Context Uses

func (c *EventsResetCall) Context(ctx context.Context) *EventsResetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EventsResetCall) Do Uses

func (c *EventsResetCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.events.reset" call.

func (*EventsResetCall) Fields Uses

func (c *EventsResetCall) Fields(s ...googleapi.Field) *EventsResetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EventsResetCall) Header Uses

func (c *EventsResetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EventsResetForAllPlayersCall Uses

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

func (*EventsResetForAllPlayersCall) Context Uses

func (c *EventsResetForAllPlayersCall) Context(ctx context.Context) *EventsResetForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EventsResetForAllPlayersCall) Do Uses

func (c *EventsResetForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.events.resetForAllPlayers" call.

func (*EventsResetForAllPlayersCall) Fields Uses

func (c *EventsResetForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EventsResetForAllPlayersCall) Header Uses

func (c *EventsResetForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EventsResetMultipleForAllPlayersCall Uses

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

func (*EventsResetMultipleForAllPlayersCall) Context Uses

func (c *EventsResetMultipleForAllPlayersCall) Context(ctx context.Context) *EventsResetMultipleForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*EventsResetMultipleForAllPlayersCall) Do Uses

func (c *EventsResetMultipleForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.events.resetMultipleForAllPlayers" call.

func (*EventsResetMultipleForAllPlayersCall) Fields Uses

func (c *EventsResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *EventsResetMultipleForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*EventsResetMultipleForAllPlayersCall) Header Uses

func (c *EventsResetMultipleForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EventsResetMultipleForAllRequest Uses

type EventsResetMultipleForAllRequest struct {
    // EventIds: The IDs of events to reset.
    EventIds []string `json:"event_ids,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#eventsResetMultipleForAllRequest`.
    Kind string `json:"kind,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EventIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EventIds") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

EventsResetMultipleForAllRequest: Multiple events reset all request.

func (*EventsResetMultipleForAllRequest) MarshalJSON Uses

func (s *EventsResetMultipleForAllRequest) MarshalJSON() ([]byte, error)

type EventsService Uses

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

func NewEventsService Uses

func NewEventsService(s *Service) *EventsService

func (*EventsService) Reset Uses

func (r *EventsService) Reset(eventId string) *EventsResetCall

Reset: Resets all player progress on the event with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

func (*EventsService) ResetAll Uses

func (r *EventsService) ResetAll() *EventsResetAllCall

ResetAll: Resets all player progress on all events for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

func (*EventsService) ResetAllForAllPlayers Uses

func (r *EventsService) ResetAllForAllPlayers() *EventsResetAllForAllPlayersCall

ResetAllForAllPlayers: Resets all draft events for all players. This method is only available to user accounts for your developer console.

func (*EventsService) ResetForAllPlayers Uses

func (r *EventsService) ResetForAllPlayers(eventId string) *EventsResetForAllPlayersCall

ResetForAllPlayers: Resets the event with the given ID for all players. This method is only available to user accounts for your developer console. Only draft events can be reset.

func (*EventsService) ResetMultipleForAllPlayers Uses

func (r *EventsService) ResetMultipleForAllPlayers(eventsresetmultipleforallrequest *EventsResetMultipleForAllRequest) *EventsResetMultipleForAllPlayersCall

ResetMultipleForAllPlayers: Resets events with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft events may be reset.

type GamesPlayerExperienceInfoResource Uses

type GamesPlayerExperienceInfoResource struct {
    // CurrentExperiencePoints: The current number of experience points for
    // the player.
    CurrentExperiencePoints int64 `json:"currentExperiencePoints,omitempty,string"`

    // CurrentLevel: The current level of the player.
    CurrentLevel *GamesPlayerLevelResource `json:"currentLevel,omitempty"`

    // LastLevelUpTimestampMillis: The timestamp when the player was leveled
    // up, in millis since Unix epoch
    // UTC.
    LastLevelUpTimestampMillis int64 `json:"lastLevelUpTimestampMillis,omitempty,string"`

    // NextLevel: The next level of the player. If the current level is the
    // maximum level,
    // this should be same as the current level.
    NextLevel *GamesPlayerLevelResource `json:"nextLevel,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "CurrentExperiencePoints") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CurrentExperiencePoints")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

GamesPlayerExperienceInfoResource: 1P/3P metadata about the player's experience.

func (*GamesPlayerExperienceInfoResource) MarshalJSON Uses

func (s *GamesPlayerExperienceInfoResource) MarshalJSON() ([]byte, error)

type GamesPlayerLevelResource Uses

type GamesPlayerLevelResource struct {
    // Level: The level for the user.
    Level int64 `json:"level,omitempty"`

    // MaxExperiencePoints: The maximum experience points for this level.
    MaxExperiencePoints int64 `json:"maxExperiencePoints,omitempty,string"`

    // MinExperiencePoints: The minimum experience points for this level.
    MinExperiencePoints int64 `json:"minExperiencePoints,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Level") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Level") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

GamesPlayerLevelResource: 1P/3P metadata about a user's level.

func (*GamesPlayerLevelResource) MarshalJSON Uses

func (s *GamesPlayerLevelResource) MarshalJSON() ([]byte, error)

type HiddenPlayer Uses

type HiddenPlayer struct {
    // HiddenTimeMillis: Output only. The time this player was hidden.
    HiddenTimeMillis int64 `json:"hiddenTimeMillis,omitempty,string"`

    // Kind: Output only. Uniquely identifies the type of this resource.
    // Value is always the fixed
    // string `gamesManagement#hiddenPlayer`.
    Kind string `json:"kind,omitempty"`

    // Player: Output only. The player information.
    Player *Player `json:"player,omitempty"`

    // ForceSendFields is a list of field names (e.g. "HiddenTimeMillis") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HiddenTimeMillis") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

HiddenPlayer: The HiddenPlayer resource.

func (*HiddenPlayer) MarshalJSON Uses

func (s *HiddenPlayer) MarshalJSON() ([]byte, error)

type HiddenPlayerList Uses

type HiddenPlayerList struct {
    // Items: The players.
    Items []*HiddenPlayer `json:"items,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#hiddenPlayerList`.
    Kind string `json:"kind,omitempty"`

    // NextPageToken: The pagination token for the next page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

HiddenPlayerList: A list of hidden players.

func (*HiddenPlayerList) MarshalJSON Uses

func (s *HiddenPlayerList) MarshalJSON() ([]byte, error)

type Player Uses

type Player struct {
    // AvatarImageUrl: The base URL for the image that represents the
    // player.
    AvatarImageUrl string `json:"avatarImageUrl,omitempty"`

    // BannerUrlLandscape: The url to the landscape mode player banner
    // image.
    BannerUrlLandscape string `json:"bannerUrlLandscape,omitempty"`

    // BannerUrlPortrait: The url to the portrait mode player banner image.
    BannerUrlPortrait string `json:"bannerUrlPortrait,omitempty"`

    // DisplayName: The name to display for the player.
    DisplayName string `json:"displayName,omitempty"`

    // ExperienceInfo: An object to represent Play Game experience
    // information for the player.
    ExperienceInfo *GamesPlayerExperienceInfoResource `json:"experienceInfo,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#player`.
    Kind string `json:"kind,omitempty"`

    // Name: An object representation of the individual components of the
    // player's name.
    // For some players, these fields may not be present.
    Name *PlayerName `json:"name,omitempty"`

    // OriginalPlayerId: The player ID that was used for this player the
    // first time they signed into
    // the game in question. This is only populated for calls to player.get
    // for
    // the requesting player, only if the player ID has subsequently
    // changed, and
    // only to clients that support remapping player IDs.
    OriginalPlayerId string `json:"originalPlayerId,omitempty"`

    // PlayerId: The ID of the player.
    PlayerId string `json:"playerId,omitempty"`

    // ProfileSettings: The player's profile settings. Controls whether or
    // not the player's profile
    // is visible to other players.
    ProfileSettings *ProfileSettings `json:"profileSettings,omitempty"`

    // Title: The player's title rewarded for their game activities.
    Title string `json:"title,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AvatarImageUrl") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AvatarImageUrl") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Player: A Player resource.

func (*Player) MarshalJSON Uses

func (s *Player) MarshalJSON() ([]byte, error)

type PlayerName Uses

type PlayerName struct {
    // FamilyName: The family name of this player. In some places, this is
    // known as the last
    // name.
    FamilyName string `json:"familyName,omitempty"`

    // GivenName: The given name of this player. In some places, this is
    // known as the first
    // name.
    GivenName string `json:"givenName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FamilyName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FamilyName") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PlayerName: An object representation of the individual components of the player's name. For some players, these fields may not be present.

func (*PlayerName) MarshalJSON Uses

func (s *PlayerName) MarshalJSON() ([]byte, error)

type PlayerScoreResetAllResponse Uses

type PlayerScoreResetAllResponse struct {
    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#playerScoreResetAllResponse`.
    Kind string `json:"kind,omitempty"`

    // Results: The leaderboard reset results.
    Results []*PlayerScoreResetResponse `json:"results,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PlayerScoreResetAllResponse: A list of leaderboard reset resources.

func (*PlayerScoreResetAllResponse) MarshalJSON Uses

func (s *PlayerScoreResetAllResponse) MarshalJSON() ([]byte, error)

type PlayerScoreResetResponse Uses

type PlayerScoreResetResponse struct {
    // DefinitionId: The ID of an leaderboard for which player state has
    // been updated.
    DefinitionId string `json:"definitionId,omitempty"`

    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#playerScoreResetResponse`.
    Kind string `json:"kind,omitempty"`

    // ResetScoreTimeSpans: The time spans of the updated score.
    // <br/>Possible values are: <ul>
    // <li>"ALL_TIME" - The score is an all-time
    // score.</li>
    // <li>"WEEKLY" - The score is a weekly score.</li>
    // <li>"DAILY" - The score is a daily score.</li> </ul>
    ResetScoreTimeSpans []string `json:"resetScoreTimeSpans,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "DefinitionId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DefinitionId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PlayerScoreResetResponse: A list of reset leaderboard entry resources.

func (*PlayerScoreResetResponse) MarshalJSON Uses

func (s *PlayerScoreResetResponse) MarshalJSON() ([]byte, error)

type PlayersHideCall Uses

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

func (*PlayersHideCall) Context Uses

func (c *PlayersHideCall) Context(ctx context.Context) *PlayersHideCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PlayersHideCall) Do Uses

func (c *PlayersHideCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.players.hide" call.

func (*PlayersHideCall) Fields Uses

func (c *PlayersHideCall) Fields(s ...googleapi.Field) *PlayersHideCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PlayersHideCall) Header Uses

func (c *PlayersHideCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type PlayersService Uses

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

func NewPlayersService Uses

func NewPlayersService(s *Service) *PlayersService

func (*PlayersService) Hide Uses

func (r *PlayersService) Hide(applicationId string, playerId string) *PlayersHideCall

Hide: Hide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.

func (*PlayersService) Unhide Uses

func (r *PlayersService) Unhide(applicationId string, playerId string) *PlayersUnhideCall

Unhide: Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.

type PlayersUnhideCall Uses

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

func (*PlayersUnhideCall) Context Uses

func (c *PlayersUnhideCall) Context(ctx context.Context) *PlayersUnhideCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PlayersUnhideCall) Do Uses

func (c *PlayersUnhideCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.players.unhide" call.

func (*PlayersUnhideCall) Fields Uses

func (c *PlayersUnhideCall) Fields(s ...googleapi.Field) *PlayersUnhideCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PlayersUnhideCall) Header Uses

func (c *PlayersUnhideCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ProfileSettings Uses

type ProfileSettings struct {
    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#profileSettings`.
    Kind string `json:"kind,omitempty"`

    ProfileVisible bool `json:"profileVisible,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ProfileSettings: Profile settings

func (*ProfileSettings) MarshalJSON Uses

func (s *ProfileSettings) MarshalJSON() ([]byte, error)

type ScoresResetAllCall Uses

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

func (*ScoresResetAllCall) Context Uses

func (c *ScoresResetAllCall) Context(ctx context.Context) *ScoresResetAllCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ScoresResetAllCall) Do Uses

func (c *ScoresResetAllCall) Do(opts ...googleapi.CallOption) (*PlayerScoreResetAllResponse, error)

Do executes the "gamesManagement.scores.resetAll" call. Exactly one of *PlayerScoreResetAllResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PlayerScoreResetAllResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ScoresResetAllCall) Fields Uses

func (c *ScoresResetAllCall) Fields(s ...googleapi.Field) *ScoresResetAllCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ScoresResetAllCall) Header Uses

func (c *ScoresResetAllCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ScoresResetAllForAllPlayersCall Uses

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

func (*ScoresResetAllForAllPlayersCall) Context Uses

func (c *ScoresResetAllForAllPlayersCall) Context(ctx context.Context) *ScoresResetAllForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ScoresResetAllForAllPlayersCall) Do Uses

func (c *ScoresResetAllForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.scores.resetAllForAllPlayers" call.

func (*ScoresResetAllForAllPlayersCall) Fields Uses

func (c *ScoresResetAllForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetAllForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ScoresResetAllForAllPlayersCall) Header Uses

func (c *ScoresResetAllForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ScoresResetCall Uses

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

func (*ScoresResetCall) Context Uses

func (c *ScoresResetCall) Context(ctx context.Context) *ScoresResetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ScoresResetCall) Do Uses

func (c *ScoresResetCall) Do(opts ...googleapi.CallOption) (*PlayerScoreResetResponse, error)

Do executes the "gamesManagement.scores.reset" call. Exactly one of *PlayerScoreResetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PlayerScoreResetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ScoresResetCall) Fields Uses

func (c *ScoresResetCall) Fields(s ...googleapi.Field) *ScoresResetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ScoresResetCall) Header Uses

func (c *ScoresResetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ScoresResetForAllPlayersCall Uses

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

func (*ScoresResetForAllPlayersCall) Context Uses

func (c *ScoresResetForAllPlayersCall) Context(ctx context.Context) *ScoresResetForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ScoresResetForAllPlayersCall) Do Uses

func (c *ScoresResetForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.scores.resetForAllPlayers" call.

func (*ScoresResetForAllPlayersCall) Fields Uses

func (c *ScoresResetForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ScoresResetForAllPlayersCall) Header Uses

func (c *ScoresResetForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ScoresResetMultipleForAllPlayersCall Uses

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

func (*ScoresResetMultipleForAllPlayersCall) Context Uses

func (c *ScoresResetMultipleForAllPlayersCall) Context(ctx context.Context) *ScoresResetMultipleForAllPlayersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ScoresResetMultipleForAllPlayersCall) Do Uses

func (c *ScoresResetMultipleForAllPlayersCall) Do(opts ...googleapi.CallOption) error

Do executes the "gamesManagement.scores.resetMultipleForAllPlayers" call.

func (*ScoresResetMultipleForAllPlayersCall) Fields Uses

func (c *ScoresResetMultipleForAllPlayersCall) Fields(s ...googleapi.Field) *ScoresResetMultipleForAllPlayersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ScoresResetMultipleForAllPlayersCall) Header Uses

func (c *ScoresResetMultipleForAllPlayersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ScoresResetMultipleForAllRequest Uses

type ScoresResetMultipleForAllRequest struct {
    // Kind: Uniquely identifies the type of this resource. Value is always
    // the fixed
    // string `gamesManagement#scoresResetMultipleForAllRequest`.
    Kind string `json:"kind,omitempty"`

    // LeaderboardIds: The IDs of leaderboards to reset.
    LeaderboardIds []string `json:"leaderboard_ids,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ScoresResetMultipleForAllRequest) MarshalJSON Uses

func (s *ScoresResetMultipleForAllRequest) MarshalJSON() ([]byte, error)

type ScoresService Uses

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

func NewScoresService Uses

func NewScoresService(s *Service) *ScoresService

func (*ScoresService) Reset Uses

func (r *ScoresService) Reset(leaderboardId string) *ScoresResetCall

Reset: Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.

func (*ScoresService) ResetAll Uses

func (r *ScoresService) ResetAll() *ScoresResetAllCall

ResetAll: Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application.

func (*ScoresService) ResetAllForAllPlayers Uses

func (r *ScoresService) ResetAllForAllPlayers() *ScoresResetAllForAllPlayersCall

ResetAllForAllPlayers: Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.

func (*ScoresService) ResetForAllPlayers Uses

func (r *ScoresService) ResetForAllPlayers(leaderboardId string) *ScoresResetForAllPlayersCall

ResetForAllPlayers: Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset.

func (*ScoresService) ResetMultipleForAllPlayers Uses

func (r *ScoresService) ResetMultipleForAllPlayers(scoresresetmultipleforallrequest *ScoresResetMultipleForAllRequest) *ScoresResetMultipleForAllPlayersCall

ResetMultipleForAllPlayers: Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Achievements *AchievementsService

    Applications *ApplicationsService

    Events *EventsService

    Players *PlayersService

    Scores *ScoresService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService Uses

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

Package gamesmanagement imports 15 packages (graph). Updated 2020-07-10. Refresh now. Tools for package owners.