blob: c239ae178f5f15e9f5d94b5ef243b480078763ba [file] [log] [blame]
// Copyright 2019 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package games provides access to the Google Play Game Services API.
//
// See https://developers.google.com/games/services/
//
// Usage example:
//
// import "google.golang.org/api/games/v1"
// ...
// gamesService, err := games.New(oauthHttpClient)
package games // import "google.golang.org/api/games/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "games:v1"
const apiName = "games"
const apiVersion = "v1"
const basePath = "https://www.googleapis.com/games/v1/"
// OAuth2 scopes used by this API.
const (
// View and manage its own configuration data in your Google Drive
DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdata"
// Share your Google+ profile information and view and manage your game
// activity
GamesScope = "https://www.googleapis.com/auth/games"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.AchievementDefinitions = NewAchievementDefinitionsService(s)
s.Achievements = NewAchievementsService(s)
s.Applications = NewApplicationsService(s)
s.Events = NewEventsService(s)
s.Leaderboards = NewLeaderboardsService(s)
s.Metagame = NewMetagameService(s)
s.Players = NewPlayersService(s)
s.Pushtokens = NewPushtokensService(s)
s.QuestMilestones = NewQuestMilestonesService(s)
s.Quests = NewQuestsService(s)
s.Revisions = NewRevisionsService(s)
s.Rooms = NewRoomsService(s)
s.Scores = NewScoresService(s)
s.Snapshots = NewSnapshotsService(s)
s.TurnBasedMatches = NewTurnBasedMatchesService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
AchievementDefinitions *AchievementDefinitionsService
Achievements *AchievementsService
Applications *ApplicationsService
Events *EventsService
Leaderboards *LeaderboardsService
Metagame *MetagameService
Players *PlayersService
Pushtokens *PushtokensService
QuestMilestones *QuestMilestonesService
Quests *QuestsService
Revisions *RevisionsService
Rooms *RoomsService
Scores *ScoresService
Snapshots *SnapshotsService
TurnBasedMatches *TurnBasedMatchesService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewAchievementDefinitionsService(s *Service) *AchievementDefinitionsService {
rs := &AchievementDefinitionsService{s: s}
return rs
}
type AchievementDefinitionsService struct {
s *Service
}
func NewAchievementsService(s *Service) *AchievementsService {
rs := &AchievementsService{s: s}
return rs
}
type AchievementsService struct {
s *Service
}
func NewApplicationsService(s *Service) *ApplicationsService {
rs := &ApplicationsService{s: s}
return rs
}
type ApplicationsService struct {
s *Service
}
func NewEventsService(s *Service) *EventsService {
rs := &EventsService{s: s}
return rs
}
type EventsService struct {
s *Service
}
func NewLeaderboardsService(s *Service) *LeaderboardsService {
rs := &LeaderboardsService{s: s}
return rs
}
type LeaderboardsService struct {
s *Service
}
func NewMetagameService(s *Service) *MetagameService {
rs := &MetagameService{s: s}
return rs
}
type MetagameService struct {
s *Service
}
func NewPlayersService(s *Service) *PlayersService {
rs := &PlayersService{s: s}
return rs
}
type PlayersService struct {
s *Service
}
func NewPushtokensService(s *Service) *PushtokensService {
rs := &PushtokensService{s: s}
return rs
}
type PushtokensService struct {
s *Service
}
func NewQuestMilestonesService(s *Service) *QuestMilestonesService {
rs := &QuestMilestonesService{s: s}
return rs
}
type QuestMilestonesService struct {
s *Service
}
func NewQuestsService(s *Service) *QuestsService {
rs := &QuestsService{s: s}
return rs
}
type QuestsService struct {
s *Service
}
func NewRevisionsService(s *Service) *RevisionsService {
rs := &RevisionsService{s: s}
return rs
}
type RevisionsService struct {
s *Service
}
func NewRoomsService(s *Service) *RoomsService {
rs := &RoomsService{s: s}
return rs
}
type RoomsService struct {
s *Service
}
func NewScoresService(s *Service) *ScoresService {
rs := &ScoresService{s: s}
return rs
}
type ScoresService struct {
s *Service
}
func NewSnapshotsService(s *Service) *SnapshotsService {
rs := &SnapshotsService{s: s}
return rs
}
type SnapshotsService struct {
s *Service
}
func NewTurnBasedMatchesService(s *Service) *TurnBasedMatchesService {
rs := &TurnBasedMatchesService{s: s}
return rs
}
type TurnBasedMatchesService struct {
s *Service
}
// AchievementDefinition: This is a JSON template for an achievement
// definition object.
type AchievementDefinition struct {
// AchievementType: The type of the achievement.
// Possible values are:
// - "STANDARD" - Achievement is either locked or unlocked.
// - "INCREMENTAL" - Achievement is incremental.
AchievementType string `json:"achievementType,omitempty"`
// Description: The description of the achievement.
Description string `json:"description,omitempty"`
// ExperiencePoints: Experience points which will be earned when
// unlocking this achievement.
ExperiencePoints int64 `json:"experiencePoints,omitempty,string"`
// FormattedTotalSteps: The total steps for an incremental achievement
// as a string.
FormattedTotalSteps string `json:"formattedTotalSteps,omitempty"`
// Id: The ID of the achievement.
Id string `json:"id,omitempty"`
// InitialState: The initial state of the achievement.
// Possible values are:
// - "HIDDEN" - Achievement is hidden.
// - "REVEALED" - Achievement is revealed.
// - "UNLOCKED" - Achievement is unlocked.
InitialState string `json:"initialState,omitempty"`
// IsRevealedIconUrlDefault: Indicates whether the revealed icon image
// being returned is a default image, or is provided by the game.
IsRevealedIconUrlDefault bool `json:"isRevealedIconUrlDefault,omitempty"`
// IsUnlockedIconUrlDefault: Indicates whether the unlocked icon image
// being returned is a default image, or is game-provided.
IsUnlockedIconUrlDefault bool `json:"isUnlockedIconUrlDefault,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementDefinition.
Kind string `json:"kind,omitempty"`
// Name: The name of the achievement.
Name string `json:"name,omitempty"`
// RevealedIconUrl: The image URL for the revealed achievement icon.
RevealedIconUrl string `json:"revealedIconUrl,omitempty"`
// TotalSteps: The total steps for an incremental achievement.
TotalSteps int64 `json:"totalSteps,omitempty"`
// UnlockedIconUrl: The image URL for the unlocked achievement icon.
UnlockedIconUrl string `json:"unlockedIconUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "AchievementType") 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. "AchievementType") 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 (s *AchievementDefinition) MarshalJSON() ([]byte, error) {
type NoMethod AchievementDefinition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementDefinitionsListResponse: This is a JSON template for a
// list of achievement definition objects.
type AchievementDefinitionsListResponse struct {
// Items: The achievement definitions.
Items []*AchievementDefinition `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementDefinitionsListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *AchievementDefinitionsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementDefinitionsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementIncrementResponse: This is a JSON template for an
// achievement increment response
type AchievementIncrementResponse struct {
// CurrentSteps: The current steps recorded for this incremental
// achievement.
CurrentSteps int64 `json:"currentSteps,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementIncrementResponse.
Kind string `json:"kind,omitempty"`
// NewlyUnlocked: Whether the current steps for the achievement has
// reached the number of steps required to unlock.
NewlyUnlocked bool `json:"newlyUnlocked,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CurrentSteps") 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. "CurrentSteps") 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 (s *AchievementIncrementResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementIncrementResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementRevealResponse: This is a JSON template for an achievement
// reveal response
type AchievementRevealResponse struct {
// CurrentState: The current state of the achievement for which a reveal
// was attempted. This might be UNLOCKED if the achievement was already
// unlocked.
// Possible values are:
// - "REVEALED" - Achievement is revealed.
// - "UNLOCKED" - Achievement is unlocked.
CurrentState string `json:"currentState,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementRevealResponse.
Kind string `json:"kind,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:"-"`
}
func (s *AchievementRevealResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementRevealResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementSetStepsAtLeastResponse: This is a JSON template for an
// achievement set steps at least response.
type AchievementSetStepsAtLeastResponse struct {
// CurrentSteps: The current steps recorded for this incremental
// achievement.
CurrentSteps int64 `json:"currentSteps,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementSetStepsAtLeastResponse.
Kind string `json:"kind,omitempty"`
// NewlyUnlocked: Whether the the current steps for the achievement has
// reached the number of steps required to unlock.
NewlyUnlocked bool `json:"newlyUnlocked,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CurrentSteps") 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. "CurrentSteps") 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 (s *AchievementSetStepsAtLeastResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementSetStepsAtLeastResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementUnlockResponse: This is a JSON template for an achievement
// unlock response
type AchievementUnlockResponse struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementUnlockResponse.
Kind string `json:"kind,omitempty"`
// NewlyUnlocked: Whether this achievement was newly unlocked (that is,
// whether the unlock request for the achievement was the first for the
// player).
NewlyUnlocked bool `json:"newlyUnlocked,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:"-"`
}
func (s *AchievementUnlockResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementUnlockResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementUpdateMultipleRequest: This is a JSON template for a list
// of achievement update requests.
type AchievementUpdateMultipleRequest struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementUpdateMultipleRequest.
Kind string `json:"kind,omitempty"`
// Updates: The individual achievement update requests.
Updates []*AchievementUpdateRequest `json:"updates,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 (s *AchievementUpdateMultipleRequest) MarshalJSON() ([]byte, error) {
type NoMethod AchievementUpdateMultipleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementUpdateMultipleResponse: This is a JSON template for an
// achievement unlock response.
type AchievementUpdateMultipleResponse struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementUpdateListResponse.
Kind string `json:"kind,omitempty"`
// UpdatedAchievements: The updated state of the achievements.
UpdatedAchievements []*AchievementUpdateResponse `json:"updatedAchievements,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:"-"`
}
func (s *AchievementUpdateMultipleResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementUpdateMultipleResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementUpdateRequest: This is a JSON template for a request to
// update an achievement.
type AchievementUpdateRequest struct {
// AchievementId: The achievement this update is being applied to.
AchievementId string `json:"achievementId,omitempty"`
// IncrementPayload: The payload if an update of type INCREMENT was
// requested for the achievement.
IncrementPayload *GamesAchievementIncrement `json:"incrementPayload,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementUpdateRequest.
Kind string `json:"kind,omitempty"`
// SetStepsAtLeastPayload: The payload if an update of type
// SET_STEPS_AT_LEAST was requested for the achievement.
SetStepsAtLeastPayload *GamesAchievementSetStepsAtLeast `json:"setStepsAtLeastPayload,omitempty"`
// UpdateType: The type of update being applied.
// Possible values are:
// - "REVEAL" - Achievement is revealed.
// - "UNLOCK" - Achievement is unlocked.
// - "INCREMENT" - Achievement is incremented.
// - "SET_STEPS_AT_LEAST" - Achievement progress is set to at least the
// passed value.
UpdateType string `json:"updateType,omitempty"`
// ForceSendFields is a list of field names (e.g. "AchievementId") 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. "AchievementId") 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 (s *AchievementUpdateRequest) MarshalJSON() ([]byte, error) {
type NoMethod AchievementUpdateRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AchievementUpdateResponse: This is a JSON template for an achievement
// update response.
type AchievementUpdateResponse struct {
// AchievementId: The achievement this update is was applied to.
AchievementId string `json:"achievementId,omitempty"`
// CurrentState: The current state of the achievement.
// Possible values are:
// - "HIDDEN" - Achievement is hidden.
// - "REVEALED" - Achievement is revealed.
// - "UNLOCKED" - Achievement is unlocked.
CurrentState string `json:"currentState,omitempty"`
// CurrentSteps: The current steps recorded for this achievement if it
// is incremental.
CurrentSteps int64 `json:"currentSteps,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#achievementUpdateResponse.
Kind string `json:"kind,omitempty"`
// NewlyUnlocked: Whether this achievement was newly unlocked (that is,
// whether the unlock request for the achievement was the first for the
// player).
NewlyUnlocked bool `json:"newlyUnlocked,omitempty"`
// UpdateOccurred: Whether the requested updates actually affected the
// achievement.
UpdateOccurred bool `json:"updateOccurred,omitempty"`
// ForceSendFields is a list of field names (e.g. "AchievementId") 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. "AchievementId") 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 (s *AchievementUpdateResponse) MarshalJSON() ([]byte, error) {
type NoMethod AchievementUpdateResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AggregateStats: This is a JSON template for aggregate stats.
type AggregateStats struct {
// Count: The number of messages sent between a pair of peers.
Count int64 `json:"count,omitempty,string"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#aggregateStats.
Kind string `json:"kind,omitempty"`
// Max: The maximum amount.
Max int64 `json:"max,omitempty,string"`
// Min: The minimum amount.
Min int64 `json:"min,omitempty,string"`
// Sum: The total number of bytes sent for messages between a pair of
// peers.
Sum int64 `json:"sum,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 (s *AggregateStats) MarshalJSON() ([]byte, error) {
type NoMethod AggregateStats
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AnonymousPlayer: This is a JSON template for an anonymous player
type AnonymousPlayer struct {
// AvatarImageUrl: The base URL for the image to display for the
// anonymous player.
AvatarImageUrl string `json:"avatarImageUrl,omitempty"`
// DisplayName: The name to display for the anonymous player.
DisplayName string `json:"displayName,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#anonymousPlayer.
Kind string `json:"kind,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:"-"`
}
func (s *AnonymousPlayer) MarshalJSON() ([]byte, error) {
type NoMethod AnonymousPlayer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Application: This is a JSON template for the Application resource.
type Application struct {
// AchievementCount: The number of achievements visible to the currently
// authenticated player.
AchievementCount int64 `json:"achievement_count,omitempty"`
// Assets: The assets of the application.
Assets []*ImageAsset `json:"assets,omitempty"`
// Author: The author of the application.
Author string `json:"author,omitempty"`
// Category: The category of the application.
Category *ApplicationCategory `json:"category,omitempty"`
// Description: The description of the application.
Description string `json:"description,omitempty"`
// EnabledFeatures: A list of features that have been enabled for the
// application.
// Possible values are:
// - "SNAPSHOTS" - Snapshots has been enabled
EnabledFeatures []string `json:"enabledFeatures,omitempty"`
// Id: The ID of the application.
Id string `json:"id,omitempty"`
// Instances: The instances of the application.
Instances []*Instance `json:"instances,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#application.
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestamp: The last updated timestamp of the application.
LastUpdatedTimestamp int64 `json:"lastUpdatedTimestamp,omitempty,string"`
// LeaderboardCount: The number of leaderboards visible to the currently
// authenticated player.
LeaderboardCount int64 `json:"leaderboard_count,omitempty"`
// Name: The name of the application.
Name string `json:"name,omitempty"`
// ThemeColor: A hint to the client UI for what color to use as an
// app-themed color. The color is given as an RGB triplet (e.g.
// "E0E0E0").
ThemeColor string `json:"themeColor,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AchievementCount") 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. "AchievementCount") 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 (s *Application) MarshalJSON() ([]byte, error) {
type NoMethod Application
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ApplicationCategory: This is a JSON template for an application
// category object.
type ApplicationCategory struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#applicationCategory.
Kind string `json:"kind,omitempty"`
// Primary: The primary category.
Primary string `json:"primary,omitempty"`
// Secondary: The secondary category.
Secondary string `json:"secondary,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 (s *ApplicationCategory) MarshalJSON() ([]byte, error) {
type NoMethod ApplicationCategory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ApplicationVerifyResponse: This is a JSON template for a third party
// application verification response resource.
type ApplicationVerifyResponse struct {
// AlternatePlayerId: An alternate ID that was once used for the player
// that was issued the auth token used in this request. (This field is
// not normally populated.)
AlternatePlayerId string `json:"alternate_player_id,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#applicationVerifyResponse.
Kind string `json:"kind,omitempty"`
// PlayerId: The ID of the player that was issued the auth token used in
// this request.
PlayerId string `json:"player_id,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AlternatePlayerId")
// 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. "AlternatePlayerId") 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 (s *ApplicationVerifyResponse) MarshalJSON() ([]byte, error) {
type NoMethod ApplicationVerifyResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Category: This is a JSON template for data related to individual game
// categories.
type Category struct {
// Category: The category name.
Category string `json:"category,omitempty"`
// ExperiencePoints: Experience points earned in this category.
ExperiencePoints int64 `json:"experiencePoints,omitempty,string"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#category.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Category") 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. "Category") 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 (s *Category) MarshalJSON() ([]byte, error) {
type NoMethod Category
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CategoryListResponse: This is a JSON template for a list of category
// data objects.
type CategoryListResponse struct {
// Items: The list of categories with usage data.
Items []*Category `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#categoryListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *CategoryListResponse) MarshalJSON() ([]byte, error) {
type NoMethod CategoryListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventBatchRecordFailure: This is a JSON template for a batch update
// failure resource.
type EventBatchRecordFailure struct {
// FailureCause: The cause for the update failure.
// Possible values are:
// - "TOO_LARGE": A batch request was issued with more events than are
// allowed in a single batch.
// - "TIME_PERIOD_EXPIRED": A batch was sent with data too far in the
// past to record.
// - "TIME_PERIOD_SHORT": A batch was sent with a time range that was
// too short.
// - "TIME_PERIOD_LONG": A batch was sent with a time range that was too
// long.
// - "ALREADY_UPDATED": An attempt was made to record a batch of data
// which was already seen.
// - "RECORD_RATE_HIGH": An attempt was made to record data faster than
// the server will apply updates.
FailureCause string `json:"failureCause,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventBatchRecordFailure.
Kind string `json:"kind,omitempty"`
// Range: The time range which was rejected; empty for a request-wide
// failure.
Range *EventPeriodRange `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "FailureCause") 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. "FailureCause") 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 (s *EventBatchRecordFailure) MarshalJSON() ([]byte, error) {
type NoMethod EventBatchRecordFailure
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventChild: This is a JSON template for an event child relationship
// resource.
type EventChild struct {
// ChildId: The ID of the child event.
ChildId string `json:"childId,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventChild.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChildId") 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. "ChildId") 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 (s *EventChild) MarshalJSON() ([]byte, error) {
type NoMethod EventChild
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventDefinition: This is a JSON template for an event definition
// resource.
type EventDefinition struct {
// ChildEvents: A list of events that are a child of this event.
ChildEvents []*EventChild `json:"childEvents,omitempty"`
// Description: Description of what this event represents.
Description string `json:"description,omitempty"`
// DisplayName: The name to display for the event.
DisplayName string `json:"displayName,omitempty"`
// Id: The ID of the event.
Id string `json:"id,omitempty"`
// ImageUrl: The base URL for the image that represents the event.
ImageUrl string `json:"imageUrl,omitempty"`
// IsDefaultImageUrl: Indicates whether the icon image being returned is
// a default image, or is game-provided.
IsDefaultImageUrl bool `json:"isDefaultImageUrl,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventDefinition.
Kind string `json:"kind,omitempty"`
// Visibility: The visibility of event being tracked in this
// definition.
// Possible values are:
// - "REVEALED": This event should be visible to all users.
// - "HIDDEN": This event should only be shown to users that have
// recorded this event at least once.
Visibility string `json:"visibility,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChildEvents") 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. "ChildEvents") 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 (s *EventDefinition) MarshalJSON() ([]byte, error) {
type NoMethod EventDefinition
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventDefinitionListResponse: This is a JSON template for a
// ListDefinitions response.
type EventDefinitionListResponse struct {
// Items: The event definitions.
Items []*EventDefinition `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventDefinitionListResponse.
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:"-"`
}
func (s *EventDefinitionListResponse) MarshalJSON() ([]byte, error) {
type NoMethod EventDefinitionListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventPeriodRange: This is a JSON template for an event period time
// range.
type EventPeriodRange struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventPeriodRange.
Kind string `json:"kind,omitempty"`
// PeriodEndMillis: The time when this update period ends, in millis,
// since 1970 UTC (Unix Epoch).
PeriodEndMillis int64 `json:"periodEndMillis,omitempty,string"`
// PeriodStartMillis: The time when this update period begins, in
// millis, since 1970 UTC (Unix Epoch).
PeriodStartMillis int64 `json:"periodStartMillis,omitempty,string"`
// 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 (s *EventPeriodRange) MarshalJSON() ([]byte, error) {
type NoMethod EventPeriodRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventPeriodUpdate: This is a JSON template for an event period update
// resource.
type EventPeriodUpdate struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventPeriodUpdate.
Kind string `json:"kind,omitempty"`
// TimePeriod: The time period being covered by this update.
TimePeriod *EventPeriodRange `json:"timePeriod,omitempty"`
// Updates: The updates being made for this time period.
Updates []*EventUpdateRequest `json:"updates,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 (s *EventPeriodUpdate) MarshalJSON() ([]byte, error) {
type NoMethod EventPeriodUpdate
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventRecordFailure: This is a JSON template for an event update
// failure resource.
type EventRecordFailure struct {
// EventId: The ID of the event that was not updated.
EventId string `json:"eventId,omitempty"`
// FailureCause: The cause for the update failure.
// Possible values are:
// - "NOT_FOUND" - An attempt was made to set an event that was not
// defined.
// - "INVALID_UPDATE_VALUE" - An attempt was made to increment an event
// by a non-positive value.
FailureCause string `json:"failureCause,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventRecordFailure.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventId") 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. "EventId") 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 (s *EventRecordFailure) MarshalJSON() ([]byte, error) {
type NoMethod EventRecordFailure
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventRecordRequest: This is a JSON template for an event period
// update resource.
type EventRecordRequest struct {
// CurrentTimeMillis: The current time when this update was sent, in
// milliseconds, since 1970 UTC (Unix Epoch).
CurrentTimeMillis int64 `json:"currentTimeMillis,omitempty,string"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventRecordRequest.
Kind string `json:"kind,omitempty"`
// RequestId: The request ID used to identify this attempt to record
// events.
RequestId int64 `json:"requestId,omitempty,string"`
// TimePeriods: A list of the time period updates being made in this
// request.
TimePeriods []*EventPeriodUpdate `json:"timePeriods,omitempty"`
// ForceSendFields is a list of field names (e.g. "CurrentTimeMillis")
// 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. "CurrentTimeMillis") 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 (s *EventRecordRequest) MarshalJSON() ([]byte, error) {
type NoMethod EventRecordRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventUpdateRequest: This is a JSON template for an event period
// update resource.
type EventUpdateRequest struct {
// DefinitionId: The ID of the event being modified in this update.
DefinitionId string `json:"definitionId,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventUpdateRequest.
Kind string `json:"kind,omitempty"`
// UpdateCount: The number of times this event occurred in this time
// period.
UpdateCount int64 `json:"updateCount,omitempty,string"`
// 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:"-"`
}
func (s *EventUpdateRequest) MarshalJSON() ([]byte, error) {
type NoMethod EventUpdateRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EventUpdateResponse: This is a JSON template for an event period
// update resource.
type EventUpdateResponse struct {
// BatchFailures: Any batch-wide failures which occurred applying
// updates.
BatchFailures []*EventBatchRecordFailure `json:"batchFailures,omitempty"`
// EventFailures: Any failures updating a particular event.
EventFailures []*EventRecordFailure `json:"eventFailures,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#eventUpdateResponse.
Kind string `json:"kind,omitempty"`
// PlayerEvents: The current status of any updated events
PlayerEvents []*PlayerEvent `json:"playerEvents,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BatchFailures") 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. "BatchFailures") 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 (s *EventUpdateResponse) MarshalJSON() ([]byte, error) {
type NoMethod EventUpdateResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GamesAchievementIncrement: This is a JSON template for the payload to
// request to increment an achievement.
type GamesAchievementIncrement struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#GamesAchievementIncrement.
Kind string `json:"kind,omitempty"`
// RequestId: The requestId associated with an increment to an
// achievement.
RequestId int64 `json:"requestId,omitempty,string"`
// Steps: The number of steps to be incremented.
Steps int64 `json:"steps,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 (s *GamesAchievementIncrement) MarshalJSON() ([]byte, error) {
type NoMethod GamesAchievementIncrement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GamesAchievementSetStepsAtLeast: This is a JSON template for the
// payload to request to increment an achievement.
type GamesAchievementSetStepsAtLeast struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#GamesAchievementSetStepsAtLeast.
Kind string `json:"kind,omitempty"`
// Steps: The minimum number of steps for the achievement to be set to.
Steps int64 `json:"steps,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 (s *GamesAchievementSetStepsAtLeast) MarshalJSON() ([]byte, error) {
type NoMethod GamesAchievementSetStepsAtLeast
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ImageAsset: This is a JSON template for an image asset object.
type ImageAsset struct {
// Height: The height of the asset.
Height int64 `json:"height,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#imageAsset.
Kind string `json:"kind,omitempty"`
// Name: The name of the asset.
Name string `json:"name,omitempty"`
// Url: The URL of the asset.
Url string `json:"url,omitempty"`
// Width: The width of the asset.
Width int64 `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Height") 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. "Height") 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 (s *ImageAsset) MarshalJSON() ([]byte, error) {
type NoMethod ImageAsset
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Instance: This is a JSON template for the Instance resource.
type Instance struct {
// AcquisitionUri: URI which shows where a user can acquire this
// instance.
AcquisitionUri string `json:"acquisitionUri,omitempty"`
// AndroidInstance: Platform dependent details for Android.
AndroidInstance *InstanceAndroidDetails `json:"androidInstance,omitempty"`
// IosInstance: Platform dependent details for iOS.
IosInstance *InstanceIosDetails `json:"iosInstance,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#instance.
Kind string `json:"kind,omitempty"`
// Name: Localized display name.
Name string `json:"name,omitempty"`
// PlatformType: The platform type.
// Possible values are:
// - "ANDROID" - Instance is for Android.
// - "IOS" - Instance is for iOS
// - "WEB_APP" - Instance is for Web App.
PlatformType string `json:"platformType,omitempty"`
// RealtimePlay: Flag to show if this game instance supports realtime
// play.
RealtimePlay bool `json:"realtimePlay,omitempty"`
// TurnBasedPlay: Flag to show if this game instance supports turn based
// play.
TurnBasedPlay bool `json:"turnBasedPlay,omitempty"`
// WebInstance: Platform dependent details for Web.
WebInstance *InstanceWebDetails `json:"webInstance,omitempty"`
// ForceSendFields is a list of field names (e.g. "AcquisitionUri") 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. "AcquisitionUri") 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 (s *Instance) MarshalJSON() ([]byte, error) {
type NoMethod Instance
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceAndroidDetails: This is a JSON template for the Android
// instance details resource.
type InstanceAndroidDetails struct {
// EnablePiracyCheck: Flag indicating whether the anti-piracy check is
// enabled.
EnablePiracyCheck bool `json:"enablePiracyCheck,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#instanceAndroidDetails.
Kind string `json:"kind,omitempty"`
// PackageName: Android package name which maps to Google Play URL.
PackageName string `json:"packageName,omitempty"`
// Preferred: Indicates that this instance is the default for new
// installations.
Preferred bool `json:"preferred,omitempty"`
// ForceSendFields is a list of field names (e.g. "EnablePiracyCheck")
// 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. "EnablePiracyCheck") 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 (s *InstanceAndroidDetails) MarshalJSON() ([]byte, error) {
type NoMethod InstanceAndroidDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceIosDetails: This is a JSON template for the iOS details
// resource.
type InstanceIosDetails struct {
// BundleIdentifier: Bundle identifier.
BundleIdentifier string `json:"bundleIdentifier,omitempty"`
// ItunesAppId: iTunes App ID.
ItunesAppId string `json:"itunesAppId,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#instanceIosDetails.
Kind string `json:"kind,omitempty"`
// PreferredForIpad: Indicates that this instance is the default for new
// installations on iPad devices.
PreferredForIpad bool `json:"preferredForIpad,omitempty"`
// PreferredForIphone: Indicates that this instance is the default for
// new installations on iPhone devices.
PreferredForIphone bool `json:"preferredForIphone,omitempty"`
// SupportIpad: Flag to indicate if this instance supports iPad.
SupportIpad bool `json:"supportIpad,omitempty"`
// SupportIphone: Flag to indicate if this instance supports iPhone.
SupportIphone bool `json:"supportIphone,omitempty"`
// ForceSendFields is a list of field names (e.g. "BundleIdentifier") 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. "BundleIdentifier") 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 (s *InstanceIosDetails) MarshalJSON() ([]byte, error) {
type NoMethod InstanceIosDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstanceWebDetails: This is a JSON template for the Web details
// resource.
type InstanceWebDetails struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#instanceWebDetails.
Kind string `json:"kind,omitempty"`
// LaunchUrl: Launch URL for the game.
LaunchUrl string `json:"launchUrl,omitempty"`
// Preferred: Indicates that this instance is the default for new
// installations.
Preferred bool `json:"preferred,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 (s *InstanceWebDetails) MarshalJSON() ([]byte, error) {
type NoMethod InstanceWebDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Leaderboard: This is a JSON template for the Leaderboard resource.
type Leaderboard struct {
// IconUrl: The icon for the leaderboard.
IconUrl string `json:"iconUrl,omitempty"`
// Id: The leaderboard ID.
Id string `json:"id,omitempty"`
// IsIconUrlDefault: Indicates whether the icon image being returned is
// a default image, or is game-provided.
IsIconUrlDefault bool `json:"isIconUrlDefault,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#leaderboard.
Kind string `json:"kind,omitempty"`
// Name: The name of the leaderboard.
Name string `json:"name,omitempty"`
// Order: How scores are ordered.
// Possible values are:
// - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in
// descending order.
// - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted
// in ascending order.
Order string `json:"order,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "IconUrl") 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. "IconUrl") 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 (s *Leaderboard) MarshalJSON() ([]byte, error) {
type NoMethod Leaderboard
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LeaderboardEntry: This is a JSON template for the Leaderboard Entry
// resource.
type LeaderboardEntry struct {
// FormattedScore: The localized string for the numerical value of this
// score.
FormattedScore string `json:"formattedScore,omitempty"`
// FormattedScoreRank: The localized string for the rank of this score
// for this leaderboard.
FormattedScoreRank string `json:"formattedScoreRank,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#leaderboardEntry.
Kind string `json:"kind,omitempty"`
// Player: The player who holds this score.
Player *Player `json:"player,omitempty"`
// ScoreRank: The rank of this score for this leaderboard.
ScoreRank int64 `json:"scoreRank,omitempty,string"`
// ScoreTag: Additional information about the score. Values must contain
// no more than 64 URI-safe characters as defined by section 2.3 of RFC
// 3986.
ScoreTag string `json:"scoreTag,omitempty"`
// ScoreValue: The numerical value of this score.
ScoreValue int64 `json:"scoreValue,omitempty,string"`
// TimeSpan: The time span of this high score.
// Possible values are:
// - "ALL_TIME" - The score is an all-time high score.
// - "WEEKLY" - The score is a weekly high score.
// - "DAILY" - The score is a daily high score.
TimeSpan string `json:"timeSpan,omitempty"`
// WriteTimestampMillis: The timestamp at which this score was recorded,
// in milliseconds since the epoch in UTC.
WriteTimestampMillis int64 `json:"writeTimestampMillis,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "FormattedScore") 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. "FormattedScore") 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 (s *LeaderboardEntry) MarshalJSON() ([]byte, error) {
type NoMethod LeaderboardEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LeaderboardListResponse: This is a JSON template for a list of
// leaderboard objects.
type LeaderboardListResponse struct {
// Items: The leaderboards.
Items []*Leaderboard `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#leaderboardListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *LeaderboardListResponse) MarshalJSON() ([]byte, error) {
type NoMethod LeaderboardListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LeaderboardScoreRank: This is a JSON template for a score rank in a
// leaderboard.
type LeaderboardScoreRank struct {
// FormattedNumScores: The number of scores in the leaderboard as a
// string.
FormattedNumScores string `json:"formattedNumScores,omitempty"`
// FormattedRank: The rank in the leaderboard as a string.
FormattedRank string `json:"formattedRank,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#leaderboardScoreRank.
Kind string `json:"kind,omitempty"`
// NumScores: The number of scores in the leaderboard.
NumScores int64 `json:"numScores,omitempty,string"`
// Rank: The rank in the leaderboard.
Rank int64 `json:"rank,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "FormattedNumScores")
// 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. "FormattedNumScores") 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 (s *LeaderboardScoreRank) MarshalJSON() ([]byte, error) {
type NoMethod LeaderboardScoreRank
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LeaderboardScores: This is a JSON template for a ListScores response.
type LeaderboardScores struct {
// Items: The scores in the leaderboard.
Items []*LeaderboardEntry `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#leaderboardScores.
Kind string `json:"kind,omitempty"`
// NextPageToken: The pagination token for the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// NumScores: The total number of scores in the leaderboard.
NumScores int64 `json:"numScores,omitempty,string"`
// PlayerScore: The score of the requesting player on the leaderboard.
// The player's score may appear both here and in the list of scores
// above. If you are viewing a public leaderboard and the player is not
// sharing their gameplay information publicly, the scoreRank and
// formattedScoreRank values will not be present.
PlayerScore *LeaderboardEntry `json:"playerScore,omitempty"`
// PrevPageToken: The pagination token for the previous page of results.
PrevPageToken string `json:"prevPageToken,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:"-"`
}
func (s *LeaderboardScores) MarshalJSON() ([]byte, error) {
type NoMethod LeaderboardScores
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MetagameConfig: This is a JSON template for the metagame config
// resource
type MetagameConfig struct {
// CurrentVersion: Current version of the metagame configuration data.
// When this data is updated, the version number will be increased by
// one.
CurrentVersion int64 `json:"currentVersion,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#metagameConfig.
Kind string `json:"kind,omitempty"`
// PlayerLevels: The list of player levels.
PlayerLevels []*PlayerLevel `json:"playerLevels,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CurrentVersion") 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. "CurrentVersion") 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 (s *MetagameConfig) MarshalJSON() ([]byte, error) {
type NoMethod MetagameConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NetworkDiagnostics: This is a JSON template for network diagnostics
// reported for a client.
type NetworkDiagnostics struct {
// AndroidNetworkSubtype: The Android network subtype.
AndroidNetworkSubtype int64 `json:"androidNetworkSubtype,omitempty"`
// AndroidNetworkType: The Android network type.
AndroidNetworkType int64 `json:"androidNetworkType,omitempty"`
// IosNetworkType: iOS network type as defined in Reachability.h.
IosNetworkType int64 `json:"iosNetworkType,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#networkDiagnostics.
Kind string `json:"kind,omitempty"`
// NetworkOperatorCode: The MCC+MNC code for the client's network
// connection. On Android:
// http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() On iOS, see:
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
NetworkOperatorCode string `json:"networkOperatorCode,omitempty"`
// NetworkOperatorName: The name of the carrier of the client's network
// connection. On Android:
// http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() On iOS:
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName
NetworkOperatorName string `json:"networkOperatorName,omitempty"`
// RegistrationLatencyMillis: The amount of time in milliseconds it took
// for the client to establish a connection with the XMPP server.
RegistrationLatencyMillis int64 `json:"registrationLatencyMillis,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AndroidNetworkSubtype") 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. "AndroidNetworkSubtype") 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 (s *NetworkDiagnostics) MarshalJSON() ([]byte, error) {
type NoMethod NetworkDiagnostics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ParticipantResult: This is a JSON template for a result for a match
// participant.
type ParticipantResult struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#participantResult.
Kind string `json:"kind,omitempty"`
// ParticipantId: The ID of the participant.
ParticipantId string `json:"participantId,omitempty"`
// Placing: The placement or ranking of the participant in the match
// results; a number from one to the number of participants in the
// match. Multiple participants may have the same placing value in case
// of a type.
Placing int64 `json:"placing,omitempty"`
// Result: The result of the participant for this match.
// Possible values are:
// - "MATCH_RESULT_WIN" - The participant won the match.
// - "MATCH_RESULT_LOSS" - The participant lost the match.
// - "MATCH_RESULT_TIE" - The participant tied the match.
// - "MATCH_RESULT_NONE" - There was no winner for the match (nobody
// wins or loses this kind of game.)
// - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left
// during the match.
// - "MATCH_RESULT_DISAGREED" - Different clients reported different
// results for this participant.
Result string `json:"result,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 (s *ParticipantResult) MarshalJSON() ([]byte, error) {
type NoMethod ParticipantResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PeerChannelDiagnostics: This is a JSON template for peer channel
// diagnostics.
type PeerChannelDiagnostics struct {
// BytesReceived: Number of bytes received.
BytesReceived *AggregateStats `json:"bytesReceived,omitempty"`
// BytesSent: Number of bytes sent.
BytesSent *AggregateStats `json:"bytesSent,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#peerChannelDiagnostics.
Kind string `json:"kind,omitempty"`
// NumMessagesLost: Number of messages lost.
NumMessagesLost int64 `json:"numMessagesLost,omitempty"`
// NumMessagesReceived: Number of messages received.
NumMessagesReceived int64 `json:"numMessagesReceived,omitempty"`
// NumMessagesSent: Number of messages sent.
NumMessagesSent int64 `json:"numMessagesSent,omitempty"`
// NumSendFailures: Number of send failures.
NumSendFailures int64 `json:"numSendFailures,omitempty"`
// RoundtripLatencyMillis: Roundtrip latency stats in milliseconds.
RoundtripLatencyMillis *AggregateStats `json:"roundtripLatencyMillis,omitempty"`
// ForceSendFields is a list of field names (e.g. "BytesReceived") 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. "BytesReceived") 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 (s *PeerChannelDiagnostics) MarshalJSON() ([]byte, error) {
type NoMethod PeerChannelDiagnostics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PeerSessionDiagnostics: This is a JSON template for peer session
// diagnostics.
type PeerSessionDiagnostics struct {
// ConnectedTimestampMillis: Connected time in milliseconds.
ConnectedTimestampMillis int64 `json:"connectedTimestampMillis,omitempty,string"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#peerSessionDiagnostics.
Kind string `json:"kind,omitempty"`
// ParticipantId: The participant ID of the peer.
ParticipantId string `json:"participantId,omitempty"`
// ReliableChannel: Reliable channel diagnostics.
ReliableChannel *PeerChannelDiagnostics `json:"reliableChannel,omitempty"`
// UnreliableChannel: Unreliable channel diagnostics.
UnreliableChannel *PeerChannelDiagnostics `json:"unreliableChannel,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ConnectedTimestampMillis") 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. "ConnectedTimestampMillis")
// 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 (s *PeerSessionDiagnostics) MarshalJSON() ([]byte, error) {
type NoMethod PeerSessionDiagnostics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Played: This is a JSON template for metadata about a player playing a
// game with the currently authenticated user.
type Played struct {
// AutoMatched: True if the player was auto-matched with the currently
// authenticated user.
AutoMatched bool `json:"autoMatched,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#played.
Kind string `json:"kind,omitempty"`
// TimeMillis: The last time the player played the game in milliseconds
// since the epoch in UTC.
TimeMillis int64 `json:"timeMillis,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AutoMatched") 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. "AutoMatched") 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 (s *Played) MarshalJSON() ([]byte, error) {
type NoMethod Played
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Player: This is a JSON template for a Player resource.
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 *PlayerExperienceInfo `json:"experienceInfo,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#player.
Kind string `json:"kind,omitempty"`
// LastPlayedWith: Details about the last time this player played a
// multiplayer game with the currently authenticated player. Populated
// for PLAYED_WITH player collection members.
LastPlayedWith *Played `json:"lastPlayedWith,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"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// 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:"-"`
}
func (s *Player) MarshalJSON() ([]byte, error) {
type NoMethod Player
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerName: An object representation of the individual components of
// the player's name. For some players, these fields may not be present.
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:"-"`
}
func (s *PlayerName) MarshalJSON() ([]byte, error) {
type NoMethod PlayerName
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerAchievement: This is a JSON template for an achievement object.
type PlayerAchievement struct {
// AchievementState: The state of the achievement.
// Possible values are:
// - "HIDDEN" - Achievement is hidden.
// - "REVEALED" - Achievement is revealed.
// - "UNLOCKED" - Achievement is unlocked.
AchievementState string `json:"achievementState,omitempty"`
// CurrentSteps: The current steps for an incremental achievement.
CurrentSteps int64 `json:"currentSteps,omitempty"`
// ExperiencePoints: Experience points earned for the achievement. This
// field is absent for achievements that have not yet been unlocked and
// 0 for achievements that have been unlocked by testers but that are
// unpublished.
ExperiencePoints int64 `json:"experiencePoints,omitempty,string"`
// FormattedCurrentStepsString: The current steps for an incremental
// achievement as a string.
FormattedCurrentStepsString string `json:"formattedCurrentStepsString,omitempty"`
// Id: The ID of the achievement.
Id string `json:"id,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerAchievement.
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestamp: The timestamp of the last modification to this
// achievement's state.
LastUpdatedTimestamp int64 `json:"lastUpdatedTimestamp,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AchievementState") 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. "AchievementState") 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 (s *PlayerAchievement) MarshalJSON() ([]byte, error) {
type NoMethod PlayerAchievement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerAchievementListResponse: This is a JSON template for a list of
// achievement objects.
type PlayerAchievementListResponse struct {
// Items: The achievements.
Items []*PlayerAchievement `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerAchievementListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *PlayerAchievementListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerAchievementListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerEvent: This is a JSON template for an event status resource.
type PlayerEvent struct {
// DefinitionId: The ID of the event definition.
DefinitionId string `json:"definitionId,omitempty"`
// FormattedNumEvents: The current number of times this event has
// occurred, as a string. The formatting of this string depends on the
// configuration of your event in the Play Games Developer Console.
FormattedNumEvents string `json:"formattedNumEvents,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerEvent.
Kind string `json:"kind,omitempty"`
// NumEvents: The current number of times this event has occurred.
NumEvents int64 `json:"numEvents,omitempty,string"`
// PlayerId: The ID of the player.
PlayerId string `json:"playerId,omitempty"`
// 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:"-"`
}
func (s *PlayerEvent) MarshalJSON() ([]byte, error) {
type NoMethod PlayerEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerEventListResponse: This is a JSON template for a ListByPlayer
// response.
type PlayerEventListResponse struct {
// Items: The player events.
Items []*PlayerEvent `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerEventListResponse.
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:"-"`
}
func (s *PlayerEventListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerEventListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerExperienceInfo: This is a JSON template for 1P/3P metadata
// about the player's experience.
type PlayerExperienceInfo 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 *PlayerLevel `json:"currentLevel,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerExperienceInfo.
Kind string `json:"kind,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 *PlayerLevel `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:"-"`
}
func (s *PlayerExperienceInfo) MarshalJSON() ([]byte, error) {
type NoMethod PlayerExperienceInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerLeaderboardScore: This is a JSON template for a player
// leaderboard score object.
type PlayerLeaderboardScore struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerLeaderboardScore.
Kind string `json:"kind,omitempty"`
// LeaderboardId: The ID of the leaderboard this score is in.
LeaderboardId string `json:"leaderboard_id,omitempty"`
// PublicRank: The public rank of the score in this leaderboard. This
// object will not be present if the user is not sharing their scores
// publicly.
PublicRank *LeaderboardScoreRank `json:"publicRank,omitempty"`
// ScoreString: The formatted value of this score.
ScoreString string `json:"scoreString,omitempty"`
// ScoreTag: Additional information about the score. Values must contain
// no more than 64 URI-safe characters as defined by section 2.3 of RFC
// 3986.
ScoreTag string `json:"scoreTag,omitempty"`
// ScoreValue: The numerical value of this score.
ScoreValue int64 `json:"scoreValue,omitempty,string"`
// SocialRank: The social rank of the score in this leaderboard.
SocialRank *LeaderboardScoreRank `json:"socialRank,omitempty"`
// TimeSpan: The time span of this score.
// Possible values are:
// - "ALL_TIME" - The score is an all-time score.
// - "WEEKLY" - The score is a weekly score.
// - "DAILY" - The score is a daily score.
TimeSpan string `json:"timeSpan,omitempty"`
// WriteTimestamp: The timestamp at which this score was recorded, in
// milliseconds since the epoch in UTC.
WriteTimestamp int64 `json:"writeTimestamp,omitempty,string"`
// 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 (s *PlayerLeaderboardScore) MarshalJSON() ([]byte, error) {
type NoMethod PlayerLeaderboardScore
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerLeaderboardScoreListResponse: This is a JSON template for a
// list of player leaderboard scores.
type PlayerLeaderboardScoreListResponse struct {
// Items: The leaderboard scores.
Items []*PlayerLeaderboardScore `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerLeaderboardScoreListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: The pagination token for the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// Player: The Player resources for the owner of this score.
Player *Player `json:"player,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:"-"`
}
func (s *PlayerLeaderboardScoreListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerLeaderboardScoreListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerLevel: This is a JSON template for 1P/3P metadata about a
// user's level.
type PlayerLevel struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerLevel.
Kind string `json:"kind,omitempty"`
// 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. "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 (s *PlayerLevel) MarshalJSON() ([]byte, error) {
type NoMethod PlayerLevel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerListResponse: This is a JSON template for a third party player
// list response.
type PlayerListResponse struct {
// Items: The players.
Items []*Player `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *PlayerListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerScore: This is a JSON template for a player score.
type PlayerScore struct {
// FormattedScore: The formatted score for this player score.
FormattedScore string `json:"formattedScore,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerScore.
Kind string `json:"kind,omitempty"`
// Score: The numerical value for this player score.
Score int64 `json:"score,omitempty,string"`
// ScoreTag: Additional information about this score. Values will
// contain no more than 64 URI-safe characters as defined by section 2.3
// of RFC 3986.
ScoreTag string `json:"scoreTag,omitempty"`
// TimeSpan: The time span for this player score.
// Possible values are:
// - "ALL_TIME" - The score is an all-time score.
// - "WEEKLY" - The score is a weekly score.
// - "DAILY" - The score is a daily score.
TimeSpan string `json:"timeSpan,omitempty"`
// ForceSendFields is a list of field names (e.g. "FormattedScore") 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. "FormattedScore") 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 (s *PlayerScore) MarshalJSON() ([]byte, error) {
type NoMethod PlayerScore
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerScoreListResponse: This is a JSON template for a list of score
// submission statuses.
type PlayerScoreListResponse struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerScoreListResponse.
Kind string `json:"kind,omitempty"`
// SubmittedScores: The score submissions statuses.
SubmittedScores []*PlayerScoreResponse `json:"submittedScores,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:"-"`
}
func (s *PlayerScoreListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerScoreListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerScoreResponse: This is a JSON template for a list of
// leaderboard entry resources.
type PlayerScoreResponse struct {
// BeatenScoreTimeSpans: The time spans where the submitted score is
// better than the existing score for that time span.
// Possible values are:
// - "ALL_TIME" - The score is an all-time score.
// - "WEEKLY" - The score is a weekly score.
// - "DAILY" - The score is a daily score.
BeatenScoreTimeSpans []string `json:"beatenScoreTimeSpans,omitempty"`
// FormattedScore: The formatted value of the submitted score.
FormattedScore string `json:"formattedScore,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerScoreResponse.
Kind string `json:"kind,omitempty"`
// LeaderboardId: The leaderboard ID that this score was submitted to.
LeaderboardId string `json:"leaderboardId,omitempty"`
// ScoreTag: Additional information about this score. Values will
// contain no more than 64 URI-safe characters as defined by section 2.3
// of RFC 3986.
ScoreTag string `json:"scoreTag,omitempty"`
// UnbeatenScores: The scores in time spans that have not been beaten.
// As an example, the submitted score may be better than the player's
// DAILY score, but not better than the player's scores for the WEEKLY
// or ALL_TIME time spans.
UnbeatenScores []*PlayerScore `json:"unbeatenScores,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "BeatenScoreTimeSpans") 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. "BeatenScoreTimeSpans") 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 (s *PlayerScoreResponse) MarshalJSON() ([]byte, error) {
type NoMethod PlayerScoreResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PlayerScoreSubmissionList: This is a JSON template for a list of
// score submission requests
type PlayerScoreSubmissionList struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#playerScoreSubmissionList.
Kind string `json:"kind,omitempty"`
// Scores: The score submissions.
Scores []*ScoreSubmission `json:"scores,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 (s *PlayerScoreSubmissionList) MarshalJSON() ([]byte, error) {
type NoMethod PlayerScoreSubmissionList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProfileSettings: This is a JSON template for profile settings
type ProfileSettings struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#profileSettings.
Kind string `json:"kind,omitempty"`
// ProfileVisible: The player's current profile visibility. This field
// is visible to both 1P and 3P APIs.
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:"-"`
}
func (s *ProfileSettings) MarshalJSON() ([]byte, error) {
type NoMethod ProfileSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PushToken: This is a JSON template for a push token resource.
type PushToken struct {
// ClientRevision: The revision of the client SDK used by your
// application, in the same format that's used by revisions.check. Used
// to send backward compatible messages. Format:
// [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE
// are:
// - IOS - Push token is for iOS
ClientRevision string `json:"clientRevision,omitempty"`
// Id: Unique identifier for this push token.
Id *PushTokenId `json:"id,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#pushToken.
Kind string `json:"kind,omitempty"`
// Language: The preferred language for notifications that are sent
// using this token.
Language string `json:"language,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClientRevision") 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. "ClientRevision") 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 (s *PushToken) MarshalJSON() ([]byte, error) {
type NoMethod PushToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PushTokenId: This is a JSON template for a push token ID resource.
type PushTokenId struct {
// Ios: A push token ID for iOS devices.
Ios *PushTokenIdIos `json:"ios,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#pushTokenId.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Ios") 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. "Ios") 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 (s *PushTokenId) MarshalJSON() ([]byte, error) {
type NoMethod PushTokenId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PushTokenIdIos: A push token ID for iOS devices.
type PushTokenIdIos struct {
// ApnsDeviceToken: Device token supplied by an iOS system call to
// register for remote notifications. Encode this field as web-safe
// base64.
ApnsDeviceToken string `json:"apns_device_token,omitempty"`
// ApnsEnvironment: Indicates whether this token should be used for the
// production or sandbox APNS server.
ApnsEnvironment string `json:"apns_environment,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApnsDeviceToken") 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. "ApnsDeviceToken") 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 (s *PushTokenIdIos) MarshalJSON() ([]byte, error) {
type NoMethod PushTokenIdIos
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Quest: This is a JSON template for a Quest resource.
type Quest struct {
// AcceptedTimestampMillis: The timestamp at which the user accepted the
// quest in milliseconds since the epoch in UTC. Only present if the
// player has accepted the quest.
AcceptedTimestampMillis int64 `json:"acceptedTimestampMillis,omitempty,string"`
// ApplicationId: The ID of the application this quest is part of.
ApplicationId string `json:"applicationId,omitempty"`
// BannerUrl: The banner image URL for the quest.
BannerUrl string `json:"bannerUrl,omitempty"`
// Description: The description of the quest.
Description string `json:"description,omitempty"`
// EndTimestampMillis: The timestamp at which the quest ceases to be
// active in milliseconds since the epoch in UTC.
EndTimestampMillis int64 `json:"endTimestampMillis,omitempty,string"`
// IconUrl: The icon image URL for the quest.
IconUrl string `json:"iconUrl,omitempty"`
// Id: The ID of the quest.
Id string `json:"id,omitempty"`
// IsDefaultBannerUrl: Indicates whether the banner image being returned
// is a default image, or is game-provided.
IsDefaultBannerUrl bool `json:"isDefaultBannerUrl,omitempty"`
// IsDefaultIconUrl: Indicates whether the icon image being returned is
// a default image, or is game-provided.
IsDefaultIconUrl bool `json:"isDefaultIconUrl,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#quest.
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestampMillis: The timestamp at which the quest was last
// updated by the user in milliseconds since the epoch in UTC. Only
// present if the player has accepted the quest.
LastUpdatedTimestampMillis int64 `json:"lastUpdatedTimestampMillis,omitempty,string"`
// Milestones: The quest milestones.
Milestones []*QuestMilestone `json:"milestones,omitempty"`
// Name: The name of the quest.
Name string `json:"name,omitempty"`
// NotifyTimestampMillis: The timestamp at which the user should be
// notified that the quest will end soon in milliseconds since the epoch
// in UTC.
NotifyTimestampMillis int64 `json:"notifyTimestampMillis,omitempty,string"`
// StartTimestampMillis: The timestamp at which the quest becomes active
// in milliseconds since the epoch in UTC.
StartTimestampMillis int64 `json:"startTimestampMillis,omitempty,string"`
// State: The state of the quest.
// Possible values are:
// - "UPCOMING": The quest is upcoming. The user can see the quest, but
// cannot accept it until it is open.
// - "OPEN": The quest is currently open and may be accepted at this
// time.
// - "ACCEPTED": The user is currently participating in this quest.
// - "COMPLETED": The user has completed the quest.
// - "FAILED": The quest was attempted but was not completed before the
// deadline expired.
// - "EXPIRED": The quest has expired and was not accepted.
// - "DELETED": The quest should be deleted from the local database.
State string `json:"state,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "AcceptedTimestampMillis") 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. "AcceptedTimestampMillis")
// 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 (s *Quest) MarshalJSON() ([]byte, error) {
type NoMethod Quest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// QuestContribution: This is a JSON template for a Quest Criterion
// Contribution resource.
type QuestContribution struct {
// FormattedValue: The formatted value of the contribution as a string.
// Format depends on the configuration for the associated event
// definition in the Play Games Developer Console.
FormattedValue string `json:"formattedValue,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#questContribution.
Kind string `json:"kind,omitempty"`
// Value: The value of the contribution.
Value int64 `json:"value,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "FormattedValue") 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. "FormattedValue") 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 (s *QuestContribution) MarshalJSON() ([]byte, error) {
type NoMethod QuestContribution
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// QuestCriterion: This is a JSON template for a Quest Criterion
// resource.
type QuestCriterion struct {
// CompletionContribution: The total number of times the associated
// event must be incremented for the player to complete this quest.
CompletionContribution *QuestContribution `json:"completionContribution,omitempty"`
// CurrentContribution: The number of increments the player has made
// toward the completion count event increments required to complete the
// quest. This value will not exceed the completion contribution.
// There will be no currentContribution until the player has accepted
// the quest.
CurrentContribution *QuestContribution `json:"currentContribution,omitempty"`
// EventId: The ID of the event the criterion corresponds to.
EventId string `json:"eventId,omitempty"`
// InitialPlayerProgress: The value of the event associated with this
// quest at the time that the quest was accepted. This value may change
// if event increments that took place before the start of quest are
// uploaded after the quest starts.
// There will be no initialPlayerProgress until the player has accepted
// the quest.
InitialPlayerProgress *QuestContribution `json:"initialPlayerProgress,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#questCriterion.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "CompletionContribution") 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. "CompletionContribution")
// 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 (s *QuestCriterion) MarshalJSON() ([]byte, error) {
type NoMethod QuestCriterion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// QuestListResponse: This is a JSON template for a list of quest
// objects.
type QuestListResponse struct {
// Items: The quests.
Items []*Quest `json:"items,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#questListResponse.
Kind string `json:"kind,omitempty"`
// NextPageToken: Token corresponding to 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:"-"`
}
func (s *QuestListResponse) MarshalJSON() ([]byte, error) {
type NoMethod QuestListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// QuestMilestone: This is a JSON template for a Quest Milestone
// resource.
type QuestMilestone struct {
// CompletionRewardData: The completion reward data of the milestone,
// represented as a Base64-encoded string. This is a developer-specified
// binary blob with size between 0 and 2 KB before encoding.
CompletionRewardData string `json:"completionRewardData,omitempty"`
// Criteria: The criteria of the milestone.
Criteria []*QuestCriterion `json:"criteria,omitempty"`
// Id: The milestone ID.
Id string `json:"id,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#questMilestone.
Kind string `json:"kind,omitempty"`
// State: The current state of the milestone.
// Possible values are:
// - "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not
// yet been claimed.
// - "CLAIMED" - The milestone is complete and has been claimed.
// - "NOT_COMPLETED" - The milestone has not yet been completed.
// - "NOT_STARTED" - The milestone is for a quest that has not yet been
// accepted.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "CompletionRewardData") 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. "CompletionRewardData") 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 (s *QuestMilestone) MarshalJSON() ([]byte, error) {
type NoMethod QuestMilestone
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RevisionCheckResponse: This is a JSON template for the result of
// checking a revision.
type RevisionCheckResponse struct {
// ApiVersion: The version of the API this client revision should use
// when calling API methods.
ApiVersion string `json:"apiVersion,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#revisionCheckResponse.
Kind string `json:"kind,omitempty"`
// RevisionStatus: The result of the revision check.
// Possible values are:
// - "OK" - The revision being used is current.
// - "DEPRECATED" - There is currently a newer version available, but
// the revision being used still works.
// - "INVALID" - The revision being used is not supported in any
// released version.
RevisionStatus string `json:"revisionStatus,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 (s *RevisionCheckResponse) MarshalJSON() ([]byte, error) {
type NoMethod RevisionCheckResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Room: This is a JSON template for a room resource object.
type Room struct {
// ApplicationId: The ID of the application being played.
ApplicationId string `json:"applicationId,omitempty"`
// AutoMatchingCriteria: Criteria for auto-matching players into this
// room.
AutoMatchingCriteria *RoomAutoMatchingCriteria `json:"autoMatchingCriteria,omitempty"`
// AutoMatchingStatus: Auto-matching status for this room. Not set if
// the room is not currently in the auto-matching queue.
AutoMatchingStatus *RoomAutoMatchStatus `json:"autoMatchingStatus,omitempty"`
// CreationDetails: Details about the room creation.
CreationDetails *RoomModification `json:"creationDetails,omitempty"`
// Description: This short description is generated by our servers and
// worded relative to the player requesting the room. It is intended to
// be displayed when the room is shown in a list (that is, an invitation
// to a room.)
Description string `json:"description,omitempty"`
// InviterId: The ID of the participant that invited the user to the
// room. Not set if the user was not invited to the room.
InviterId string `json:"inviterId,omitempty"`
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#room.
Kind string `json:"kind,omitempty"`
// LastUpdateDetails: Details about the last update to the room.
LastUpdateDetails *RoomModification `json:"lastUpdateDetails,omitempty"`
// Participants: The participants involved in the room, along with their
// statuses. Includes participants who have left or declined
// invitations.
Participants []*RoomParticipant `json:"participants,omitempty"`
// RoomId: Globally unique ID for a room.
RoomId string `json:"roomId,omitempty"`
// RoomStatusVersion: The version of the room status: an increasing
// counter, used by the client to ignore out-of-order updates to room
// status.
RoomStatusVersion int64 `json:"roomStatusVersion,omitempty"`
// Status: The status of the room.
// Possible values are:
// - "ROOM_INVITING" - One or more players have been invited and not
// responded.
// - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by
// auto-matching.
// - "ROOM_CONNECTING" - Players have joined and are connecting to each
// other (either before or after auto-matching).
// - "ROOM_ACTIVE" - All players have joined and connected to each
// other.
// - "ROOM_DELETED" - The room should no longer be shown on the client.
// Returned in sync calls when a player joins a room (as a tombstone),
// or for rooms where all joined participants have left.
Status string `json:"status,omitempty"`
// Variant: The variant / mode of the application being played; can be
// any integer value, or left blank.
Variant int64 `json:"variant,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ApplicationId") 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. "ApplicationId") 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 (s *Room) MarshalJSON() ([]byte, error) {
type NoMethod Room
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RoomAutoMatchStatus: This is a JSON template for status of room
// automatching that is in progress.
type RoomAutoMatchStatus struct {
// Kind: Uniquely identifies the type of this resource. Value is always
// the fixed string games#roomAutoMatchStatus.
Kind string `json:"kind,omitempty"`
// WaitEstimateSeconds: An estimate for the amount of time (in seconds)
// that auto-matching is expected to take to complete.
WaitEstimateSeconds int64 `json:"waitEstimateSeconds,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 (s *RoomAutoMatchStatus) MarshalJSON() ([]byte, error) {
type NoMethod RoomAutoMatchStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RoomAutoMatchingCriteria: This is a JSON template for a room
// auto-match criteria object.
type RoomAutoMatchingCriteria struct {
// ExclusiveBitmask: A bitmask indicating when auto-matches are valid.