| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  | # Copyright 2015 Google Inc. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  | # you may not use this file except in compliance with the License. | 
					
						
							|  |  |  | # You may obtain a copy of the License at | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | #      http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  | # distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  | # See the License for the specific language governing permissions and | 
					
						
							|  |  |  | # limitations under the License. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require 'date' | 
					
						
							|  |  |  | require 'google/apis/core/base_service' | 
					
						
							|  |  |  | require 'google/apis/core/json_representation' | 
					
						
							|  |  |  | require 'google/apis/core/hashable' | 
					
						
							|  |  |  | require 'google/apis/errors' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module Google | 
					
						
							|  |  |  |   module Apis | 
					
						
							|  |  |  |     module GamesV1 | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement definition object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementDefinition | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achievementType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :achievement_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The description of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `description` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :description | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Experience points which will be earned when unlocking this achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `experiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :experience_points | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total steps for an incremental achievement as a string. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedTotalSteps` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_total_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The initial state of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `initialState` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :initial_state | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Indicates whether the revealed icon image being returned is a default image, | 
					
						
							|  |  |  |         # or is provided by the game. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `isRevealedIconUrlDefault` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :is_revealed_icon_url_default | 
					
						
							|  |  |  |         alias_method :is_revealed_icon_url_default?, :is_revealed_icon_url_default | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Indicates whether the unlocked icon image being returned is a default image, | 
					
						
							|  |  |  |         # or is game-provided. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `isUnlockedIconUrlDefault` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :is_unlocked_icon_url_default | 
					
						
							|  |  |  |         alias_method :is_unlocked_icon_url_default?, :is_unlocked_icon_url_default | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementDefinition`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The image URL for the revealed achievement icon. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `revealedIconUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :revealed_icon_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total steps for an incremental achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalSteps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The image URL for the unlocked achievement icon. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `unlockedIconUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :unlocked_icon_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @achievement_type = args[:achievement_type] if args.key?(:achievement_type) | 
					
						
							|  |  |  |           @description = args[:description] if args.key?(:description) | 
					
						
							|  |  |  |           @experience_points = args[:experience_points] if args.key?(:experience_points) | 
					
						
							|  |  |  |           @formatted_total_steps = args[:formatted_total_steps] if args.key?(:formatted_total_steps) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @initial_state = args[:initial_state] if args.key?(:initial_state) | 
					
						
							|  |  |  |           @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] if args.key?(:is_revealed_icon_url_default) | 
					
						
							|  |  |  |           @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] if args.key?(:is_unlocked_icon_url_default) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @revealed_icon_url = args[:revealed_icon_url] if args.key?(:revealed_icon_url) | 
					
						
							|  |  |  |           @total_steps = args[:total_steps] if args.key?(:total_steps) | 
					
						
							|  |  |  |           @unlocked_icon_url = args[:unlocked_icon_url] if args.key?(:unlocked_icon_url) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of achievement definition objects. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListAchievementDefinitionsResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The achievement definitions. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::AchievementDefinition>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementDefinitionsListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Token corresponding to the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement increment response | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementIncrementResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current steps recorded for this incremental achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentSteps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :current_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementIncrementResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Whether the current steps for the achievement has reached the number of steps | 
					
						
							|  |  |  |         # required to unlock. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `newlyUnlocked` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :newly_unlocked | 
					
						
							|  |  |  |         alias_method :newly_unlocked?, :newly_unlocked | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_steps = args[:current_steps] if args.key?(:current_steps) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement reveal response | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementRevealResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current state of the achievement for which a reveal was attempted. This | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # might be `UNLOCKED` if the achievement was already unlocked. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `currentState` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :current_state | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementRevealResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_state = args[:current_state] if args.key?(:current_state) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement set steps at least response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementSetStepsAtLeastResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current steps recorded for this incremental achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentSteps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :current_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementSetStepsAtLeastResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Whether the current steps for the achievement has reached the number of steps | 
					
						
							|  |  |  |         # required to unlock. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `newlyUnlocked` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :newly_unlocked | 
					
						
							|  |  |  |         alias_method :newly_unlocked?, :newly_unlocked | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_steps = args[:current_steps] if args.key?(:current_steps) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement unlock response | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementUnlockResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementUnlockResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether this achievement was newly unlocked (that is, whether the unlock | 
					
						
							|  |  |  |         # request for the achievement was the first for the player). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `newlyUnlocked` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :newly_unlocked | 
					
						
							|  |  |  |         alias_method :newly_unlocked?, :newly_unlocked | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of achievement update requests. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementUpdateMultipleRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementUpdateMultipleRequest`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The individual achievement update requests. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updates` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::UpdateAchievementRequest>] | 
					
						
							|  |  |  |         attr_accessor :updates | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @updates = args[:updates] if args.key?(:updates) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-24 00:38:50 +00:00
										 |  |  |       # Response message for UpdateMultipleAchievements rpc. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class AchievementUpdateMultipleResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementUpdateMultipleResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The updated state of the achievements. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updatedAchievements` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::UpdateAchievementResponse>] | 
					
						
							|  |  |  |         attr_accessor :updated_achievements | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @updated_achievements = args[:updated_achievements] if args.key?(:updated_achievements) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A request to update an achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class UpdateAchievementRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The achievement this update is being applied to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achievementId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :achievement_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The payload to request to increment an achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `incrementPayload` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::GamesAchievementIncrement] | 
					
						
							|  |  |  |         attr_accessor :increment_payload | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementUpdateRequest`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The payload to request to increment an achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `setStepsAtLeastPayload` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast] | 
					
						
							|  |  |  |         attr_accessor :set_steps_at_least_payload | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of update being applied. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updateType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :update_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @achievement_id = args[:achievement_id] if args.key?(:achievement_id) | 
					
						
							|  |  |  |           @increment_payload = args[:increment_payload] if args.key?(:increment_payload) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @set_steps_at_least_payload = args[:set_steps_at_least_payload] if args.key?(:set_steps_at_least_payload) | 
					
						
							|  |  |  |           @update_type = args[:update_type] if args.key?(:update_type) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An updated achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class UpdateAchievementResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The achievement this update is was applied to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achievementId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :achievement_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current state of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentState` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :current_state | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current steps recorded for this achievement if it is incremental. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentSteps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :current_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#achievementUpdateResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether this achievement was newly unlocked (that is, whether the unlock | 
					
						
							|  |  |  |         # request for the achievement was the first for the player). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `newlyUnlocked` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :newly_unlocked | 
					
						
							|  |  |  |         alias_method :newly_unlocked?, :newly_unlocked | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether the requested updates actually affected the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updateOccurred` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :update_occurred | 
					
						
							|  |  |  |         alias_method :update_occurred?, :update_occurred | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @achievement_id = args[:achievement_id] if args.key?(:achievement_id) | 
					
						
							|  |  |  |           @current_state = args[:current_state] if args.key?(:current_state) | 
					
						
							|  |  |  |           @current_steps = args[:current_steps] if args.key?(:current_steps) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) | 
					
						
							|  |  |  |           @update_occurred = args[:update_occurred] if args.key?(:update_occurred) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Application resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class Application | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of achievements visible to the currently authenticated player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achievement_count` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :achievement_count | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The assets of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `assets` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::ImageAsset>] | 
					
						
							|  |  |  |         attr_accessor :assets | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The author of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `author` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :author | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # An application category object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `category` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::ApplicationCategory] | 
					
						
							|  |  |  |         attr_accessor :category | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The description of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `description` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :description | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of features that have been enabled for the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `enabledFeatures` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :enabled_features | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The instances of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `instances` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::Instance>] | 
					
						
							|  |  |  |         attr_accessor :instances | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#application`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The last updated timestamp of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastUpdatedTimestamp` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :last_updated_timestamp | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of leaderboards visible to the currently authenticated player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `leaderboard_count` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :leaderboard_count | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name of the application. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # 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"). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `themeColor` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :theme_color | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @achievement_count = args[:achievement_count] if args.key?(:achievement_count) | 
					
						
							|  |  |  |           @assets = args[:assets] if args.key?(:assets) | 
					
						
							|  |  |  |           @author = args[:author] if args.key?(:author) | 
					
						
							|  |  |  |           @category = args[:category] if args.key?(:category) | 
					
						
							|  |  |  |           @description = args[:description] if args.key?(:description) | 
					
						
							|  |  |  |           @enabled_features = args[:enabled_features] if args.key?(:enabled_features) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @instances = args[:instances] if args.key?(:instances) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) | 
					
						
							|  |  |  |           @leaderboard_count = args[:leaderboard_count] if args.key?(:leaderboard_count) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @theme_color = args[:theme_color] if args.key?(:theme_color) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An application category object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ApplicationCategory | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#applicationCategory`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The primary category. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primary` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :primary | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The secondary category. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `secondary` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :secondary | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @primary = args[:primary] if args.key?(:primary) | 
					
						
							|  |  |  |           @secondary = args[:secondary] if args.key?(:secondary) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party application verification response resource. | 
					
						
							| 
									
										
										
										
											2015-12-14 22:27:57 +00:00
										 |  |  |       class ApplicationVerifyResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2016-03-11 22:41:20 +00:00
										 |  |  |         # 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.) | 
					
						
							|  |  |  |         # Corresponds to the JSON property `alternate_player_id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :alternate_player_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-14 22:27:57 +00:00
										 |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#applicationVerifyResponse`. | 
					
						
							| 
									
										
										
										
											2015-12-14 22:27:57 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the player that was issued the auth token used in this request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `player_id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :player_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-03-11 22:41:20 +00:00
										 |  |  |           @alternate_player_id = args[:alternate_player_id] if args.key?(:alternate_player_id) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @player_id = args[:player_id] if args.key?(:player_id) | 
					
						
							| 
									
										
										
										
											2015-12-14 22:27:57 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # Data related to individual game categories. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class Category | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The category name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `category` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :category | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Experience points earned in this category. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `experiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :experience_points | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#category`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @category = args[:category] if args.key?(:category) | 
					
						
							|  |  |  |           @experience_points = args[:experience_points] if args.key?(:experience_points) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party list metagame categories response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListCategoryResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of categories with usage data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::Category>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#categoryListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Token corresponding to the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A batch update failure resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventBatchRecordFailure | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The cause for the update failure. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `failureCause` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :failure_cause | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventBatchRecordFailure`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # An event period time range. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `range` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::EventPeriodRange] | 
					
						
							|  |  |  |         attr_accessor :range | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @failure_cause = args[:failure_cause] if args.key?(:failure_cause) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @range = args[:range] if args.key?(:range) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event child relationship resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventChild | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the child event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `childId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :child_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventChild`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @child_id = args[:child_id] if args.key?(:child_id) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event definition resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventDefinition | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of events that are a child of this event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `childEvents` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::EventChild>] | 
					
						
							|  |  |  |         attr_accessor :child_events | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Description of what this event represents. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `description` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :description | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name to display for the event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :display_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The base URL for the image that represents the event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `imageUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :image_url | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Indicates whether the icon image being returned is a default image, or is game- | 
					
						
							|  |  |  |         # provided. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `isDefaultImageUrl` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :is_default_image_url | 
					
						
							|  |  |  |         alias_method :is_default_image_url?, :is_default_image_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventDefinition`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The visibility of event being tracked in this definition. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `visibility` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :visibility | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @child_events = args[:child_events] if args.key?(:child_events) | 
					
						
							|  |  |  |           @description = args[:description] if args.key?(:description) | 
					
						
							|  |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @image_url = args[:image_url] if args.key?(:image_url) | 
					
						
							|  |  |  |           @is_default_image_url = args[:is_default_image_url] if args.key?(:is_default_image_url) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @visibility = args[:visibility] if args.key?(:visibility) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A ListDefinitions response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListEventDefinitionResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The event definitions. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::EventDefinition>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventDefinitionListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The pagination token for the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event period time range. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventPeriodRange | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventPeriodRange`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The time when this update period ends, in millis, since 1970 UTC (Unix Epoch). | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `periodEndMillis` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :period_end_millis | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The time when this update period begins, in millis, since 1970 UTC (Unix Epoch) | 
					
						
							|  |  |  |         # . | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `periodStartMillis` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :period_start_millis | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @period_end_millis = args[:period_end_millis] if args.key?(:period_end_millis) | 
					
						
							|  |  |  |           @period_start_millis = args[:period_start_millis] if args.key?(:period_start_millis) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event period update resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventPeriodUpdate | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventPeriodUpdate`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # An event period time range. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `timePeriod` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::EventPeriodRange] | 
					
						
							|  |  |  |         attr_accessor :time_period | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The updates being made for this time period. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updates` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::UpdateEventRequest>] | 
					
						
							|  |  |  |         attr_accessor :updates | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @time_period = args[:time_period] if args.key?(:time_period) | 
					
						
							|  |  |  |           @updates = args[:updates] if args.key?(:updates) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event update failure resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventRecordFailure | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the event that was not updated. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :event_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The cause for the update failure. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `failureCause` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :failure_cause | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventRecordFailure`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @event_id = args[:event_id] if args.key?(:event_id) | 
					
						
							|  |  |  |           @failure_cause = args[:failure_cause] if args.key?(:failure_cause) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event period update resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class EventRecordRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The current time when this update was sent, in milliseconds, since 1970 UTC ( | 
					
						
							|  |  |  |         # Unix Epoch). | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `currentTimeMillis` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :current_time_millis | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventRecordRequest`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The request ID used to identify this attempt to record events. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestId` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :request_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A list of the time period updates being made in this request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `timePeriods` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::EventPeriodUpdate>] | 
					
						
							|  |  |  |         attr_accessor :time_periods | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_time_millis = args[:current_time_millis] if args.key?(:current_time_millis) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @request_id = args[:request_id] if args.key?(:request_id) | 
					
						
							|  |  |  |           @time_periods = args[:time_periods] if args.key?(:time_periods) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event period update resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class UpdateEventRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the event being modified in this update. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `definitionId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :definition_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventUpdateRequest`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of times this event occurred in this time period. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `updateCount` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :update_count | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @definition_id = args[:definition_id] if args.key?(:definition_id) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @update_count = args[:update_count] if args.key?(:update_count) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event period update resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class UpdateEventResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Any batch-wide failures which occurred applying updates. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `batchFailures` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::EventBatchRecordFailure>] | 
					
						
							|  |  |  |         attr_accessor :batch_failures | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Any failures updating a particular event. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `eventFailures` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::EventRecordFailure>] | 
					
						
							|  |  |  |         attr_accessor :event_failures | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#eventUpdateResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current status of any updated events | 
					
						
							|  |  |  |         # Corresponds to the JSON property `playerEvents` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerEvent>] | 
					
						
							|  |  |  |         attr_accessor :player_events | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @batch_failures = args[:batch_failures] if args.key?(:batch_failures) | 
					
						
							|  |  |  |           @event_failures = args[:event_failures] if args.key?(:event_failures) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @player_events = args[:player_events] if args.key?(:player_events) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |       # The payload to request to increment an achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class GamesAchievementIncrement | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#GamesAchievementIncrement`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The requestId associated with an increment to an achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestId` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :request_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of steps to be incremented. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `steps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @request_id = args[:request_id] if args.key?(:request_id) | 
					
						
							|  |  |  |           @steps = args[:steps] if args.key?(:steps) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |       # The payload to request to increment an achievement. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class GamesAchievementSetStepsAtLeast | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#GamesAchievementSetStepsAtLeast`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The minimum number of steps for the achievement to be set to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `steps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @steps = args[:steps] if args.key?(:steps) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An image asset object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ImageAsset | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The height of the asset. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `height` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :height | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#imageAsset`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name of the asset. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The URL of the asset. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `url` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The width of the asset. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `width` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :width | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @height = args[:height] if args.key?(:height) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							|  |  |  |           @width = args[:width] if args.key?(:width) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Instance resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class Instance | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # URI which shows where a user can acquire this instance. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `acquisitionUri` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :acquisition_uri | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The Android instance details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `androidInstance` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::InstanceAndroidDetails] | 
					
						
							|  |  |  |         attr_accessor :android_instance | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The iOS details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `iosInstance` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::InstanceIosDetails] | 
					
						
							|  |  |  |         attr_accessor :ios_instance | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#instance`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Localized display name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The platform type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `platformType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :platform_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Flag to show if this game instance supports realtime play. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `realtimePlay` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :realtime_play | 
					
						
							|  |  |  |         alias_method :realtime_play?, :realtime_play | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Flag to show if this game instance supports turn based play. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `turnBasedPlay` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :turn_based_play | 
					
						
							|  |  |  |         alias_method :turn_based_play?, :turn_based_play | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The Web details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `webInstance` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::InstanceWebDetails] | 
					
						
							|  |  |  |         attr_accessor :web_instance | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @acquisition_uri = args[:acquisition_uri] if args.key?(:acquisition_uri) | 
					
						
							|  |  |  |           @android_instance = args[:android_instance] if args.key?(:android_instance) | 
					
						
							|  |  |  |           @ios_instance = args[:ios_instance] if args.key?(:ios_instance) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @platform_type = args[:platform_type] if args.key?(:platform_type) | 
					
						
							|  |  |  |           @realtime_play = args[:realtime_play] if args.key?(:realtime_play) | 
					
						
							|  |  |  |           @turn_based_play = args[:turn_based_play] if args.key?(:turn_based_play) | 
					
						
							|  |  |  |           @web_instance = args[:web_instance] if args.key?(:web_instance) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Android instance details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class InstanceAndroidDetails | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Flag indicating whether the anti-piracy check is enabled. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `enablePiracyCheck` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :enable_piracy_check | 
					
						
							|  |  |  |         alias_method :enable_piracy_check?, :enable_piracy_check | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#instanceAndroidDetails`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Android package name which maps to Google Play URL. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `packageName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :package_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Indicates that this instance is the default for new installations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `preferred` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :preferred | 
					
						
							|  |  |  |         alias_method :preferred?, :preferred | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @enable_piracy_check = args[:enable_piracy_check] if args.key?(:enable_piracy_check) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @package_name = args[:package_name] if args.key?(:package_name) | 
					
						
							|  |  |  |           @preferred = args[:preferred] if args.key?(:preferred) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The iOS details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class InstanceIosDetails | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Bundle identifier. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `bundleIdentifier` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :bundle_identifier | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # iTunes App ID. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `itunesAppId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :itunes_app_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#instanceIosDetails`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Indicates that this instance is the default for new installations on iPad | 
					
						
							|  |  |  |         # devices. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `preferredForIpad` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :preferred_for_ipad | 
					
						
							|  |  |  |         alias_method :preferred_for_ipad?, :preferred_for_ipad | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Indicates that this instance is the default for new installations on iPhone | 
					
						
							|  |  |  |         # devices. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `preferredForIphone` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :preferred_for_iphone | 
					
						
							|  |  |  |         alias_method :preferred_for_iphone?, :preferred_for_iphone | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Flag to indicate if this instance supports iPad. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `supportIpad` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :support_ipad | 
					
						
							|  |  |  |         alias_method :support_ipad?, :support_ipad | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Flag to indicate if this instance supports iPhone. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `supportIphone` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :support_iphone | 
					
						
							|  |  |  |         alias_method :support_iphone?, :support_iphone | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @bundle_identifier = args[:bundle_identifier] if args.key?(:bundle_identifier) | 
					
						
							|  |  |  |           @itunes_app_id = args[:itunes_app_id] if args.key?(:itunes_app_id) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @preferred_for_ipad = args[:preferred_for_ipad] if args.key?(:preferred_for_ipad) | 
					
						
							|  |  |  |           @preferred_for_iphone = args[:preferred_for_iphone] if args.key?(:preferred_for_iphone) | 
					
						
							|  |  |  |           @support_ipad = args[:support_ipad] if args.key?(:support_ipad) | 
					
						
							|  |  |  |           @support_iphone = args[:support_iphone] if args.key?(:support_iphone) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Web details resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class InstanceWebDetails | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#instanceWebDetails`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Launch URL for the game. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `launchUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :launch_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Indicates that this instance is the default for new installations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `preferred` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :preferred | 
					
						
							|  |  |  |         alias_method :preferred?, :preferred | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @launch_url = args[:launch_url] if args.key?(:launch_url) | 
					
						
							|  |  |  |           @preferred = args[:preferred] if args.key?(:preferred) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Leaderboard resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class Leaderboard | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The icon for the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `iconUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :icon_url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The leaderboard ID. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Indicates whether the icon image being returned is a default image, or is game- | 
					
						
							|  |  |  |         # provided. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `isIconUrlDefault` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :is_icon_url_default | 
					
						
							|  |  |  |         alias_method :is_icon_url_default?, :is_icon_url_default | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#leaderboard`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The name of the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # How scores are ordered. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `order` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :order | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @icon_url = args[:icon_url] if args.key?(:icon_url) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @is_icon_url_default = args[:is_icon_url_default] if args.key?(:is_icon_url_default) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @order = args[:order] if args.key?(:order) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The Leaderboard Entry resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class LeaderboardEntry | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The localized string for the numerical value of this score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedScore` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_score | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The localized string for the rank of this score for this leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedScoreRank` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_score_rank | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#leaderboardEntry`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A Player resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `player` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::Player] | 
					
						
							|  |  |  |         attr_accessor :player | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The rank of this score for this leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `scoreRank` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :score_rank | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Additional information about the score. Values must contain no more than 64 | 
					
						
							|  |  |  |         # URI-safe characters as defined by section 2.3 of RFC 3986. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `scoreTag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :score_tag | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The numerical value of this score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `scoreValue` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :score_value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The time span of this high score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `timeSpan` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :time_span | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The timestamp at which this score was recorded, in milliseconds since the | 
					
						
							|  |  |  |         # epoch in UTC. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `writeTimestampMillis` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :write_timestamp_millis | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @formatted_score = args[:formatted_score] if args.key?(:formatted_score) | 
					
						
							|  |  |  |           @formatted_score_rank = args[:formatted_score_rank] if args.key?(:formatted_score_rank) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @player = args[:player] if args.key?(:player) | 
					
						
							|  |  |  |           @score_rank = args[:score_rank] if args.key?(:score_rank) | 
					
						
							|  |  |  |           @score_tag = args[:score_tag] if args.key?(:score_tag) | 
					
						
							|  |  |  |           @score_value = args[:score_value] if args.key?(:score_value) | 
					
						
							|  |  |  |           @time_span = args[:time_span] if args.key?(:time_span) | 
					
						
							|  |  |  |           @write_timestamp_millis = args[:write_timestamp_millis] if args.key?(:write_timestamp_millis) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of leaderboard objects. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListLeaderboardResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The leaderboards. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::Leaderboard>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#leaderboardListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Token corresponding to the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A score rank in a leaderboard. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class LeaderboardScoreRank | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of scores in the leaderboard as a string. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedNumScores` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_num_scores | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The rank in the leaderboard as a string. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedRank` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_rank | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#leaderboardScoreRank`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The number of scores in the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `numScores` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :num_scores | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The rank in the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `rank` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :rank | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @formatted_num_scores = args[:formatted_num_scores] if args.key?(:formatted_num_scores) | 
					
						
							|  |  |  |           @formatted_rank = args[:formatted_rank] if args.key?(:formatted_rank) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @num_scores = args[:num_scores] if args.key?(:num_scores) | 
					
						
							|  |  |  |           @rank = args[:rank] if args.key?(:rank) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A ListScores response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class LeaderboardScores | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The scores in the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::LeaderboardEntry>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#leaderboardScores`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The pagination token for the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total number of scores in the leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `numScores` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :num_scores | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The Leaderboard Entry resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `playerScore` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::LeaderboardEntry] | 
					
						
							|  |  |  |         attr_accessor :player_score | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The pagination token for the previous page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `prevPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :prev_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @num_scores = args[:num_scores] if args.key?(:num_scores) | 
					
						
							|  |  |  |           @player_score = args[:player_score] if args.key?(:player_score) | 
					
						
							|  |  |  |           @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # The metagame config resource | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class MetagameConfig | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Current version of the metagame configuration data. When this data is updated, | 
					
						
							|  |  |  |         # the version number will be increased by one. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `currentVersion` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :current_version | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#metagameConfig`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of player levels. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `playerLevels` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerLevel>] | 
					
						
							|  |  |  |         attr_accessor :player_levels | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_version = args[:current_version] if args.key?(:current_version) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @player_levels = args[:player_levels] if args.key?(:player_levels) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A Player resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class Player | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The base URL for the image that represents the player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `avatarImageUrl` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :avatar_image_url | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-12-03 01:10:07 +00:00
										 |  |  |         # The url to the landscape mode player banner image. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `bannerUrlLandscape` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :banner_url_landscape | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The url to the portrait mode player banner image. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `bannerUrlPortrait` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :banner_url_portrait | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # The name to display for the player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :display_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # 1P/3P metadata about the player's experience. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `experienceInfo` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::PlayerExperienceInfo] | 
					
						
							|  |  |  |         attr_accessor :experience_info | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |         # The friend status of the given player, relative to the requester. This is | 
					
						
							|  |  |  |         # unset if the player is not sharing their friends list with the game. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `friendStatus` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :friend_status | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#player` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A representation of the individual components of the name. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `name` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::Player::Name] | 
					
						
							|  |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         # The player ID that was used for this player the first time they signed into | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # 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. | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         # Corresponds to the JSON property `originalPlayerId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :original_player_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # The ID of the player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `playerId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :player_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Profile settings | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |         # Corresponds to the JSON property `profileSettings` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::ProfileSettings] | 
					
						
							|  |  |  |         attr_accessor :profile_settings | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # The player's title rewarded for their game activities. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `title` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :title | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url) | 
					
						
							|  |  |  |           @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape) | 
					
						
							|  |  |  |           @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait) | 
					
						
							|  |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							|  |  |  |           @experience_info = args[:experience_info] if args.key?(:experience_info) | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |           @friend_status = args[:friend_status] if args.key?(:friend_status) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |           @original_player_id = args[:original_player_id] if args.key?(:original_player_id) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @player_id = args[:player_id] if args.key?(:player_id) | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |           @profile_settings = args[:profile_settings] if args.key?(:profile_settings) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @title = args[:title] if args.key?(:title) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A representation of the individual components of the name. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         class Name | 
					
						
							|  |  |  |           include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |           # The family name of this player. In some places, this is known as the last name. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |           # Corresponds to the JSON property `familyName` | 
					
						
							|  |  |  |           # @return [String] | 
					
						
							|  |  |  |           attr_accessor :family_name | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |           # The given name of this player. In some places, this is known as the first name. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |           # Corresponds to the JSON property `givenName` | 
					
						
							|  |  |  |           # @return [String] | 
					
						
							|  |  |  |           attr_accessor :given_name | 
					
						
							|  |  |  |          | 
					
						
							|  |  |  |           def initialize(**args) | 
					
						
							|  |  |  |              update!(**args) | 
					
						
							|  |  |  |           end | 
					
						
							|  |  |  |          | 
					
						
							|  |  |  |           # Update properties of this object | 
					
						
							|  |  |  |           def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |             @family_name = args[:family_name] if args.key?(:family_name) | 
					
						
							|  |  |  |             @given_name = args[:given_name] if args.key?(:given_name) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |           end | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An achievement object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerAchievement | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The state of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `achievementState` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :achievement_state | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current steps for an incremental achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentSteps` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :current_steps | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Experience points earned for the achievement. This field is absent for | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # achievements that have not yet been unlocked and 0 for achievements that have | 
					
						
							|  |  |  |         # been unlocked by testers but that are unpublished. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `experiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :experience_points | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current steps for an incremental achievement as a string. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedCurrentStepsString` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_current_steps_string | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the achievement. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerAchievement`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The timestamp of the last modification to this achievement's state. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastUpdatedTimestamp` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :last_updated_timestamp | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @achievement_state = args[:achievement_state] if args.key?(:achievement_state) | 
					
						
							|  |  |  |           @current_steps = args[:current_steps] if args.key?(:current_steps) | 
					
						
							|  |  |  |           @experience_points = args[:experience_points] if args.key?(:experience_points) | 
					
						
							|  |  |  |           @formatted_current_steps_string = args[:formatted_current_steps_string] if args.key?(:formatted_current_steps_string) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of achievement objects. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListPlayerAchievementResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The achievements. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerAchievement>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerAchievementListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Token corresponding to the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An event status resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerEvent | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the event definition. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `definitionId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :definition_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # 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. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedNumEvents` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_num_events | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerEvent`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current number of times this event has occurred. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `numEvents` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :num_events | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `playerId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :player_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @definition_id = args[:definition_id] if args.key?(:definition_id) | 
					
						
							|  |  |  |           @formatted_num_events = args[:formatted_num_events] if args.key?(:formatted_num_events) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @num_events = args[:num_events] if args.key?(:num_events) | 
					
						
							|  |  |  |           @player_id = args[:player_id] if args.key?(:player_id) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A ListByPlayer response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListPlayerEventResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The player events. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerEvent>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerEventListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The pagination token for the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # 1P/3P metadata about the player's experience. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerExperienceInfo | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The current number of experience points for the player. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `currentExperiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :current_experience_points | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # 1P/3P metadata about a user's level. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `currentLevel` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::PlayerLevel] | 
					
						
							|  |  |  |         attr_accessor :current_level | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerExperienceInfo`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The timestamp when the player was leveled up, in millis since Unix epoch UTC. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `lastLevelUpTimestampMillis` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :last_level_up_timestamp_millis | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # 1P/3P metadata about a user's level. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `nextLevel` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::PlayerLevel] | 
					
						
							|  |  |  |         attr_accessor :next_level | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points) | 
					
						
							|  |  |  |           @current_level = args[:current_level] if args.key?(:current_level) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis) | 
					
						
							|  |  |  |           @next_level = args[:next_level] if args.key?(:next_level) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A player leaderboard score object. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerLeaderboardScore | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # A score rank in a leaderboard. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `friendsRank` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::LeaderboardScoreRank] | 
					
						
							|  |  |  |         attr_accessor :friends_rank | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerLeaderboardScore`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The ID of the leaderboard this score is in. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `leaderboard_id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :leaderboard_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A score rank in a leaderboard. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `publicRank` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::LeaderboardScoreRank] | 
					
						
							|  |  |  |         attr_accessor :public_rank | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The formatted value of this score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `scoreString` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :score_string | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Additional information about the score. Values must contain no more than 64 | 
					
						
							|  |  |  |         # URI-safe characters as defined by section 2.3 of RFC 3986. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `scoreTag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :score_tag | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The numerical value of this score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `scoreValue` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :score_value | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A score rank in a leaderboard. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `socialRank` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::LeaderboardScoreRank] | 
					
						
							|  |  |  |         attr_accessor :social_rank | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The time span of this score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `timeSpan` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :time_span | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The timestamp at which this score was recorded, in milliseconds since the | 
					
						
							|  |  |  |         # epoch in UTC. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `writeTimestamp` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :write_timestamp | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |           @friends_rank = args[:friends_rank] if args.key?(:friends_rank) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) | 
					
						
							|  |  |  |           @public_rank = args[:public_rank] if args.key?(:public_rank) | 
					
						
							|  |  |  |           @score_string = args[:score_string] if args.key?(:score_string) | 
					
						
							|  |  |  |           @score_tag = args[:score_tag] if args.key?(:score_tag) | 
					
						
							|  |  |  |           @score_value = args[:score_value] if args.key?(:score_value) | 
					
						
							|  |  |  |           @social_rank = args[:social_rank] if args.key?(:social_rank) | 
					
						
							|  |  |  |           @time_span = args[:time_span] if args.key?(:time_span) | 
					
						
							|  |  |  |           @write_timestamp = args[:write_timestamp] if args.key?(:write_timestamp) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of player leaderboard scores. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListPlayerLeaderboardScoreResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The leaderboard scores. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerLeaderboardScore>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerLeaderboardScoreListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The pagination token for the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # A Player resource. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `player` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::Player] | 
					
						
							|  |  |  |         attr_accessor :player | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @player = args[:player] if args.key?(:player) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # 1P/3P metadata about a user's level. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerLevel | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerLevel`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The level for the user. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `level` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :level | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The maximum experience points for this level. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `maxExperiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :max_experience_points | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The minimum experience points for this level. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `minExperiencePoints` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :min_experience_points | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @level = args[:level] if args.key?(:level) | 
					
						
							|  |  |  |           @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points) | 
					
						
							|  |  |  |           @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party player list response. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListPlayerResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The players. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `items` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::Player>] | 
					
						
							|  |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Token corresponding to the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A player score. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerScore | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The formatted score for this player score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedScore` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_score | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerScore`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The numerical value for this player score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `score` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :score | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Additional information about this score. Values will contain no more than 64 | 
					
						
							|  |  |  |         # URI-safe characters as defined by section 2.3 of RFC 3986. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `scoreTag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :score_tag | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The time span for this player score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `timeSpan` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :time_span | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @formatted_score = args[:formatted_score] if args.key?(:formatted_score) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @score = args[:score] if args.key?(:score) | 
					
						
							|  |  |  |           @score_tag = args[:score_tag] if args.key?(:score_tag) | 
					
						
							|  |  |  |           @time_span = args[:time_span] if args.key?(:time_span) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of score submission statuses. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class ListPlayerScoreResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerScoreListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The score submissions statuses. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `submittedScores` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerScoreResponse>] | 
					
						
							|  |  |  |         attr_accessor :submitted_scores | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @submitted_scores = args[:submitted_scores] if args.key?(:submitted_scores) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of leaderboard entry resources. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerScoreResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The time spans where the submitted score is better than the existing score for | 
					
						
							|  |  |  |         # that time span. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `beatenScoreTimeSpans` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :beaten_score_time_spans | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The formatted value of the submitted score. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedScore` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_score | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerScoreResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The leaderboard ID that this score was submitted to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `leaderboardId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :leaderboard_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Additional information about this score. Values will contain no more than 64 | 
					
						
							|  |  |  |         # URI-safe characters as defined by section 2.3 of RFC 3986. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `scoreTag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :score_tag | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # 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. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `unbeatenScores` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::PlayerScore>] | 
					
						
							|  |  |  |         attr_accessor :unbeaten_scores | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @beaten_score_time_spans = args[:beaten_score_time_spans] if args.key?(:beaten_score_time_spans) | 
					
						
							|  |  |  |           @formatted_score = args[:formatted_score] if args.key?(:formatted_score) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) | 
					
						
							|  |  |  |           @score_tag = args[:score_tag] if args.key?(:score_tag) | 
					
						
							|  |  |  |           @unbeaten_scores = args[:unbeaten_scores] if args.key?(:unbeaten_scores) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A list of score submission requests. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |       class PlayerScoreSubmissionList | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#playerScoreSubmissionList`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The score submissions. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `scores` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::GamesV1::ScoreSubmission>] | 
					
						
							|  |  |  |         attr_accessor :scores | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @scores = args[:scores] if args.key?(:scores) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # Profile settings | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |       class ProfileSettings | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         #  | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |         # Corresponds to the JSON property `friendsListVisibility` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :friends_list_visibility | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#profileSettings`. | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Whether the player's profile is visible to the currently signed in player. | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |         # Corresponds to the JSON property `profileVisible` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :profile_visible | 
					
						
							|  |  |  |         alias_method :profile_visible?, :profile_visible | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |           @friends_list_visibility = args[:friends_list_visibility] if args.key?(:friends_list_visibility) | 
					
						
							| 
									
										
										
										
											2016-05-16 16:49:15 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @profile_visible = args[:profile_visible] if args.key?(:profile_visible) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party checking a revision response. | 
					
						
							|  |  |  |       class CheckRevisionResponse | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The version of the API this client revision should use when calling API | 
					
						
							|  |  |  |         # methods. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `apiVersion` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :api_version | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#revisionCheckResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The result of the revision check. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `revisionStatus` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :revision_status | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @api_version = args[:api_version] if args.key?(:api_version) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @revision_status = args[:revision_status] if args.key?(:revision_status) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A request to submit a score to leaderboards. | 
					
						
							|  |  |  |       class ScoreSubmission | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#scoreSubmission`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The leaderboard this score is being submitted to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `leaderboardId` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :leaderboard_id | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The new score being submitted. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `score` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :score | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Additional information about this score. Values will contain no more than 64 | 
					
						
							|  |  |  |         # URI-safe characters as defined by section 2.3 of RFC 3986. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `scoreTag` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :score_tag | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Signature Values will contain URI-safe characters as defined by section 2.3 of | 
					
						
							|  |  |  |         # RFC 3986. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `signature` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :signature | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) | 
					
						
							|  |  |  |           @score = args[:score] if args.key?(:score) | 
					
						
							|  |  |  |           @score_tag = args[:score_tag] if args.key?(:score_tag) | 
					
						
							|  |  |  |           @signature = args[:signature] if args.key?(:signature) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An snapshot object. | 
					
						
							|  |  |  |       class Snapshot | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # An image of a snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `coverImage` | 
					
						
							|  |  |  |         # @return [Google::Apis::GamesV1::SnapshotImage] | 
					
						
							|  |  |  |         attr_accessor :cover_image | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The description of this snapshot. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `description` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :description | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The ID of the file underlying this snapshot in the Drive API. Only present if | 
					
						
							|  |  |  |         # the snapshot is a view on a Drive file and the file is owned by the caller. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `driveId` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :drive_id | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The duration associated with this snapshot, in millis. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `durationMillis` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :duration_millis | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The ID of the snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :id | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#snapshot`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The timestamp (in millis since Unix epoch) of the last modification to this | 
					
						
							|  |  |  |         # snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `lastModifiedMillis` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :last_modified_millis | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The progress value (64-bit integer set by developer) associated with this | 
					
						
							|  |  |  |         # snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `progressValue` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :progress_value | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The title of this snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `title` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :title | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The type of this snapshot. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The unique name provided when the snapshot was created. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `uniqueName` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :unique_name | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @cover_image = args[:cover_image] if args.key?(:cover_image) | 
					
						
							|  |  |  |           @description = args[:description] if args.key?(:description) | 
					
						
							|  |  |  |           @drive_id = args[:drive_id] if args.key?(:drive_id) | 
					
						
							|  |  |  |           @duration_millis = args[:duration_millis] if args.key?(:duration_millis) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis) | 
					
						
							|  |  |  |           @progress_value = args[:progress_value] if args.key?(:progress_value) | 
					
						
							|  |  |  |           @title = args[:title] if args.key?(:title) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @unique_name = args[:unique_name] if args.key?(:unique_name) | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # An image of a snapshot. | 
					
						
							|  |  |  |       class SnapshotImage | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The height of the image. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `height` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :height | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#snapshotImage`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The MIME type of the image. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `mime_type` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :mime_type | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The URL of the image. This URL may be invalidated at any time and should not | 
					
						
							|  |  |  |         # be cached. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `url` | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :url | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The width of the image. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `width` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :width | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @height = args[:height] if args.key?(:height) | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @mime_type = args[:mime_type] if args.key?(:mime_type) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							|  |  |  |           @width = args[:width] if args.key?(:width) | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party list snapshots response. | 
					
						
							|  |  |  |       class ListSnapshotResponse | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The snapshots. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `items` | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # @return [Array<Google::Apis::GamesV1::Snapshot>] | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         attr_accessor :items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#snapshotListResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Token corresponding to the next page of results. If there are no more results, | 
					
						
							|  |  |  |         # the token is omitted. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @items = args[:items] if args.key?(:items) | 
					
						
							|  |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |       # A third party stats resource. | 
					
						
							|  |  |  |       class StatsResponse | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not | 
					
						
							|  |  |  |         # populated if there is not enough information. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `avg_session_length_minutes` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :avg_session_length_minutes | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The probability of the player not returning to play the game in the next day. | 
					
						
							|  |  |  |         # E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `churn_probability` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :churn_probability | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Number of days since the player last played this game. E.g., 0, 1, 5, 10, ... . | 
					
						
							|  |  |  |         # Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `days_since_last_played` | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :days_since_last_played | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The probability of the player going to spend beyond a threshold amount of | 
					
						
							|  |  |  |         # money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough | 
					
						
							|  |  |  |         # information. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `high_spender_probability` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :high_spender_probability | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Uniquely identifies the type of this resource. Value is always the fixed | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # string `games#statsResponse`. | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         # Corresponds to the JSON property `kind` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :kind | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, 10, | 
					
						
							|  |  |  |         # ... . Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `num_purchases` | 
					
						
							| 
									
										
										
										
											2020-07-02 00:38:31 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         attr_accessor :num_purchases | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The approximate number of sessions of the player within the last 28 days, | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # where a session begins when the player is connected to Play Games Services and | 
					
						
							|  |  |  |         # ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated if | 
					
						
							|  |  |  |         # there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `num_sessions` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :num_sessions | 
					
						
							| 
									
										
										
										
											2020-07-06 00:38:05 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The approximation of the sessions percentile of the player within the last 30 | 
					
						
							|  |  |  |         # days, where a session begins when the player is connected to Play Games | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not | 
					
						
							|  |  |  |         # populated if there is not enough information. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `num_sessions_percentile` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :num_sessions_percentile | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The approximate spend percentile of the player in this game. E.g., 0, 0.25, 0. | 
					
						
							|  |  |  |         # 5, 0.75. Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `spend_percentile` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :spend_percentile | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # The probability of the player going to spend the game in the next seven days. | 
					
						
							|  |  |  |         # E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `spend_probability` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :spend_probability | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # The predicted amount of money that the player going to spend in the next 28 | 
					
						
							| 
									
										
										
										
											2020-08-13 00:39:19 +00:00
										 |  |  |         # days. E.g., 1, 30, 60, ... . Not populated if there is not enough information. | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |         # Corresponds to the JSON property `total_spend_next_28_days` | 
					
						
							|  |  |  |         # @return [Float] | 
					
						
							|  |  |  |         attr_accessor :total_spend_next_28_days | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes) | 
					
						
							|  |  |  |           @churn_probability = args[:churn_probability] if args.key?(:churn_probability) | 
					
						
							|  |  |  |           @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played) | 
					
						
							|  |  |  |           @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability) | 
					
						
							| 
									
										
										
										
											2016-01-29 22:32:46 +00:00
										 |  |  |           @kind = args[:kind] if args.key?(:kind) | 
					
						
							| 
									
										
										
										
											2020-07-07 00:38:22 +00:00
										 |  |  |           @num_purchases = args[:num_purchases] if args.key?(:num_purchases) | 
					
						
							|  |  |  |           @num_sessions = args[:num_sessions] if args.key?(:num_sessions) | 
					
						
							|  |  |  |           @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile) | 
					
						
							|  |  |  |           @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile) | 
					
						
							|  |  |  |           @spend_probability = args[:spend_probability] if args.key?(:spend_probability) | 
					
						
							|  |  |  |           @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days) | 
					
						
							| 
									
										
										
										
											2015-06-23 23:05:46 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |