google-api-client 0.41.2 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  7. data/generated/google/apis/admob_v1.rb +1 -1
  8. data/generated/google/apis/admob_v1/service.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +1389 -105
  12. data/generated/google/apis/apigee_v1/representations.rb +543 -0
  13. data/generated/google/apis/apigee_v1/service.rb +1139 -93
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  17. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  18. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  19. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  21. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  22. data/generated/google/apis/civicinfo_v2.rb +1 -1
  23. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  24. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  25. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  26. data/generated/google/apis/classroom_v1.rb +1 -1
  27. data/generated/google/apis/classroom_v1/service.rb +4 -3
  28. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  30. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  33. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  34. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  35. data/generated/google/apis/customsearch_v1/classes.rb +1606 -0
  36. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  37. data/generated/google/apis/customsearch_v1/service.rb +608 -0
  38. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  39. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  40. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -2
  41. data/generated/google/apis/displayvideo_v1.rb +1 -1
  42. data/generated/google/apis/displayvideo_v1/classes.rb +12 -5
  43. data/generated/google/apis/dns_v1.rb +4 -4
  44. data/generated/google/apis/dns_v1/classes.rb +313 -162
  45. data/generated/google/apis/dns_v1/service.rb +247 -180
  46. data/generated/google/apis/file_v1.rb +1 -1
  47. data/generated/google/apis/file_v1beta1.rb +1 -1
  48. data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -12
  49. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  50. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  51. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  52. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  53. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  54. data/generated/google/apis/games_v1.rb +5 -3
  55. data/generated/google/apis/games_v1/classes.rb +354 -2112
  56. data/generated/google/apis/games_v1/representations.rb +12 -647
  57. data/generated/google/apis/games_v1/service.rb +212 -1154
  58. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  59. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  60. data/generated/google/apis/groupssettings_v1.rb +1 -1
  61. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +6 -6
  64. data/generated/google/apis/monitoring_v3.rb +1 -1
  65. data/generated/google/apis/monitoring_v3/classes.rb +10 -2
  66. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  67. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  68. data/generated/google/apis/pubsub_v1.rb +1 -1
  69. data/generated/google/apis/pubsub_v1/classes.rb +24 -28
  70. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  71. data/generated/google/apis/recommender_v1.rb +1 -1
  72. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  73. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  74. data/generated/google/apis/recommender_v1/service.rb +123 -0
  75. data/generated/google/apis/redis_v1.rb +1 -1
  76. data/generated/google/apis/redis_v1beta1.rb +1 -1
  77. data/generated/google/apis/testing_v1.rb +1 -1
  78. data/generated/google/apis/testing_v1/classes.rb +17 -6
  79. data/generated/google/apis/testing_v1/representations.rb +1 -0
  80. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  81. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  82. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  83. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  84. data/generated/google/apis/youtube_v3.rb +1 -1
  85. data/generated/google/apis/youtube_v3/classes.rb +554 -0
  86. data/generated/google/apis/youtube_v3/representations.rb +281 -0
  87. data/generated/google/apis/youtube_v3/service.rb +259 -0
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +11 -19
  90. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  91. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  92. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  93. data/generated/google/apis/androidpublisher_v1_1.rb +0 -34
  94. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  95. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  96. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  97. data/generated/google/apis/androidpublisher_v2.rb +0 -34
  98. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  100. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  101. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  102. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://firebase.google.com/docs/hosting/
28
28
  module FirebasehostingV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20200601'
30
+ REVISION = '20200709'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -650,6 +650,7 @@ module Google
650
650
  end
651
651
 
652
652
  # Adds content files to a version.
653
+ # Each file must be under 2 GB.
653
654
  # @param [String] parent
654
655
  # Required. The version to add files to, in the format:
655
656
  # <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -1293,6 +1294,7 @@ module Google
1293
1294
  end
1294
1295
 
1295
1296
  # Adds content files to a version.
1297
+ # Each file must be under 2 GB.
1296
1298
  # @param [String] parent
1297
1299
  # Required. The version to add files to, in the format:
1298
1300
  # <code>sites/<var>site-name</var>/versions/<var>versionID</var></code>
@@ -18,11 +18,13 @@ require 'google/apis/games_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Play Game Services API
21
+ # Google Play Game Services
22
22
  #
23
- # The API for Google Play Game Services.
23
+ # The Google Play games service allows developers to enhance games with social
24
+ # leaderboards,
25
+ # achievements, game state, sign-in with Google, and more.
24
26
  #
25
- # @see https://developers.google.com/games/services/
27
+ # @see https://developers.google.com/games/
26
28
  module GamesV1
27
29
  VERSION = 'V1'
28
30
  REVISION = '20200625'
@@ -22,14 +22,11 @@ module Google
22
22
  module Apis
23
23
  module GamesV1
24
24
 
25
- # This is a JSON template for an achievement definition object.
25
+ # An achievement definition object.
26
26
  class AchievementDefinition
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
29
  # The type of the achievement.
30
- # Possible values are:
31
- # - "STANDARD" - Achievement is either locked or unlocked.
32
- # - "INCREMENTAL" - Achievement is incremental.
33
30
  # Corresponds to the JSON property `achievementType`
34
31
  # @return [String]
35
32
  attr_accessor :achievement_type
@@ -55,30 +52,26 @@ module Google
55
52
  attr_accessor :id
56
53
 
57
54
  # The initial state of the achievement.
58
- # Possible values are:
59
- # - "HIDDEN" - Achievement is hidden.
60
- # - "REVEALED" - Achievement is revealed.
61
- # - "UNLOCKED" - Achievement is unlocked.
62
55
  # Corresponds to the JSON property `initialState`
63
56
  # @return [String]
64
57
  attr_accessor :initial_state
65
58
 
66
- # Indicates whether the revealed icon image being returned is a default image,
67
- # or is provided by the game.
59
+ # Indicates whether the revealed icon image being returned is a default
60
+ # image, or is provided by the game.
68
61
  # Corresponds to the JSON property `isRevealedIconUrlDefault`
69
62
  # @return [Boolean]
70
63
  attr_accessor :is_revealed_icon_url_default
71
64
  alias_method :is_revealed_icon_url_default?, :is_revealed_icon_url_default
72
65
 
73
- # Indicates whether the unlocked icon image being returned is a default image,
74
- # or is game-provided.
66
+ # Indicates whether the unlocked icon image being returned is a default
67
+ # image, or is game-provided.
75
68
  # Corresponds to the JSON property `isUnlockedIconUrlDefault`
76
69
  # @return [Boolean]
77
70
  attr_accessor :is_unlocked_icon_url_default
78
71
  alias_method :is_unlocked_icon_url_default?, :is_unlocked_icon_url_default
79
72
 
80
73
  # Uniquely identifies the type of this resource. Value is always the fixed
81
- # string games#achievementDefinition.
74
+ # string `games#achievementDefinition`.
82
75
  # Corresponds to the JSON property `kind`
83
76
  # @return [String]
84
77
  attr_accessor :kind
@@ -125,7 +118,7 @@ module Google
125
118
  end
126
119
  end
127
120
 
128
- # This is a JSON template for a list of achievement definition objects.
121
+ # A list of achievement definition objects.
129
122
  class ListAchievementDefinitionsResponse
130
123
  include Google::Apis::Core::Hashable
131
124
 
@@ -135,7 +128,7 @@ module Google
135
128
  attr_accessor :items
136
129
 
137
130
  # Uniquely identifies the type of this resource. Value is always the fixed
138
- # string games#achievementDefinitionsListResponse.
131
+ # string `games#achievementDefinitionsListResponse`.
139
132
  # Corresponds to the JSON property `kind`
140
133
  # @return [String]
141
134
  attr_accessor :kind
@@ -157,7 +150,7 @@ module Google
157
150
  end
158
151
  end
159
152
 
160
- # This is a JSON template for an achievement increment response
153
+ # An achievement increment response
161
154
  class AchievementIncrementResponse
162
155
  include Google::Apis::Core::Hashable
163
156
 
@@ -167,13 +160,13 @@ module Google
167
160
  attr_accessor :current_steps
168
161
 
169
162
  # Uniquely identifies the type of this resource. Value is always the fixed
170
- # string games#achievementIncrementResponse.
163
+ # string `games#achievementIncrementResponse`.
171
164
  # Corresponds to the JSON property `kind`
172
165
  # @return [String]
173
166
  attr_accessor :kind
174
167
 
175
- # Whether the current steps for the achievement has reached the number of steps
176
- # required to unlock.
168
+ # Whether the current steps for the achievement has reached the number of
169
+ # steps required to unlock.
177
170
  # Corresponds to the JSON property `newlyUnlocked`
178
171
  # @return [Boolean]
179
172
  attr_accessor :newly_unlocked
@@ -191,21 +184,18 @@ module Google
191
184
  end
192
185
  end
193
186
 
194
- # This is a JSON template for an achievement reveal response
187
+ # An achievement reveal response
195
188
  class AchievementRevealResponse
196
189
  include Google::Apis::Core::Hashable
197
190
 
198
191
  # The current state of the achievement for which a reveal was attempted. This
199
- # might be UNLOCKED if the achievement was already unlocked.
200
- # Possible values are:
201
- # - "REVEALED" - Achievement is revealed.
202
- # - "UNLOCKED" - Achievement is unlocked.
192
+ # might be `UNLOCKED` if the achievement was already unlocked.
203
193
  # Corresponds to the JSON property `currentState`
204
194
  # @return [String]
205
195
  attr_accessor :current_state
206
196
 
207
197
  # Uniquely identifies the type of this resource. Value is always the fixed
208
- # string games#achievementRevealResponse.
198
+ # string `games#achievementRevealResponse`.
209
199
  # Corresponds to the JSON property `kind`
210
200
  # @return [String]
211
201
  attr_accessor :kind
@@ -221,7 +211,7 @@ module Google
221
211
  end
222
212
  end
223
213
 
224
- # This is a JSON template for an achievement set steps at least response.
214
+ # An achievement set steps at least response.
225
215
  class AchievementSetStepsAtLeastResponse
226
216
  include Google::Apis::Core::Hashable
227
217
 
@@ -231,12 +221,12 @@ module Google
231
221
  attr_accessor :current_steps
232
222
 
233
223
  # Uniquely identifies the type of this resource. Value is always the fixed
234
- # string games#achievementSetStepsAtLeastResponse.
224
+ # string `games#achievementSetStepsAtLeastResponse`.
235
225
  # Corresponds to the JSON property `kind`
236
226
  # @return [String]
237
227
  attr_accessor :kind
238
228
 
239
- # Whether the the current steps for the achievement has reached the number of
229
+ # Whether the current steps for the achievement has reached the number of
240
230
  # steps required to unlock.
241
231
  # Corresponds to the JSON property `newlyUnlocked`
242
232
  # @return [Boolean]
@@ -255,12 +245,12 @@ module Google
255
245
  end
256
246
  end
257
247
 
258
- # This is a JSON template for an achievement unlock response
248
+ # An achievement unlock response
259
249
  class AchievementUnlockResponse
260
250
  include Google::Apis::Core::Hashable
261
251
 
262
252
  # Uniquely identifies the type of this resource. Value is always the fixed
263
- # string games#achievementUnlockResponse.
253
+ # string `games#achievementUnlockResponse`.
264
254
  # Corresponds to the JSON property `kind`
265
255
  # @return [String]
266
256
  attr_accessor :kind
@@ -283,12 +273,12 @@ module Google
283
273
  end
284
274
  end
285
275
 
286
- # This is a JSON template for a list of achievement update requests.
276
+ # A list of achievement update requests.
287
277
  class AchievementUpdateMultipleRequest
288
278
  include Google::Apis::Core::Hashable
289
279
 
290
280
  # Uniquely identifies the type of this resource. Value is always the fixed
291
- # string games#achievementUpdateMultipleRequest.
281
+ # string `games#achievementUpdateMultipleRequest`.
292
282
  # Corresponds to the JSON property `kind`
293
283
  # @return [String]
294
284
  attr_accessor :kind
@@ -309,12 +299,12 @@ module Google
309
299
  end
310
300
  end
311
301
 
312
- # This is a JSON template for an achievement unlock response.
302
+ #
313
303
  class AchievementUpdateMultipleResponse
314
304
  include Google::Apis::Core::Hashable
315
305
 
316
306
  # Uniquely identifies the type of this resource. Value is always the fixed
317
- # string games#achievementUpdateMultipleResponse.
307
+ # string `games#achievementUpdateMultipleResponse`.
318
308
  # Corresponds to the JSON property `kind`
319
309
  # @return [String]
320
310
  attr_accessor :kind
@@ -335,7 +325,7 @@ module Google
335
325
  end
336
326
  end
337
327
 
338
- # This is a JSON template for a request to update an achievement.
328
+ # A request to update an achievement.
339
329
  class UpdateAchievementRequest
340
330
  include Google::Apis::Core::Hashable
341
331
 
@@ -344,29 +334,25 @@ module Google
344
334
  # @return [String]
345
335
  attr_accessor :achievement_id
346
336
 
347
- # This is a JSON template for the payload to request to increment an achievement.
337
+ # The payload to request to increment an
338
+ # achievement.
348
339
  # Corresponds to the JSON property `incrementPayload`
349
340
  # @return [Google::Apis::GamesV1::GamesAchievementIncrement]
350
341
  attr_accessor :increment_payload
351
342
 
352
343
  # Uniquely identifies the type of this resource. Value is always the fixed
353
- # string games#achievementUpdateRequest.
344
+ # string `games#achievementUpdateRequest`.
354
345
  # Corresponds to the JSON property `kind`
355
346
  # @return [String]
356
347
  attr_accessor :kind
357
348
 
358
- # This is a JSON template for the payload to request to increment an achievement.
349
+ # The payload to request to increment an
350
+ # achievement.
359
351
  # Corresponds to the JSON property `setStepsAtLeastPayload`
360
352
  # @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast]
361
353
  attr_accessor :set_steps_at_least_payload
362
354
 
363
355
  # The type of update being applied.
364
- # Possible values are:
365
- # - "REVEAL" - Achievement is revealed.
366
- # - "UNLOCK" - Achievement is unlocked.
367
- # - "INCREMENT" - Achievement is incremented.
368
- # - "SET_STEPS_AT_LEAST" - Achievement progress is set to at least the passed
369
- # value.
370
356
  # Corresponds to the JSON property `updateType`
371
357
  # @return [String]
372
358
  attr_accessor :update_type
@@ -385,7 +371,7 @@ module Google
385
371
  end
386
372
  end
387
373
 
388
- # This is a JSON template for an achievement update response.
374
+ # An updated achievement.
389
375
  class UpdateAchievementResponse
390
376
  include Google::Apis::Core::Hashable
391
377
 
@@ -395,10 +381,6 @@ module Google
395
381
  attr_accessor :achievement_id
396
382
 
397
383
  # The current state of the achievement.
398
- # Possible values are:
399
- # - "HIDDEN" - Achievement is hidden.
400
- # - "REVEALED" - Achievement is revealed.
401
- # - "UNLOCKED" - Achievement is unlocked.
402
384
  # Corresponds to the JSON property `currentState`
403
385
  # @return [String]
404
386
  attr_accessor :current_state
@@ -409,7 +391,7 @@ module Google
409
391
  attr_accessor :current_steps
410
392
 
411
393
  # Uniquely identifies the type of this resource. Value is always the fixed
412
- # string games#achievementUpdateResponse.
394
+ # string `games#achievementUpdateResponse`.
413
395
  # Corresponds to the JSON property `kind`
414
396
  # @return [String]
415
397
  attr_accessor :kind
@@ -442,83 +424,7 @@ module Google
442
424
  end
443
425
  end
444
426
 
445
- # This is a JSON template for aggregate stats.
446
- class AggregateStats
447
- include Google::Apis::Core::Hashable
448
-
449
- # The number of messages sent between a pair of peers.
450
- # Corresponds to the JSON property `count`
451
- # @return [Fixnum]
452
- attr_accessor :count
453
-
454
- # Uniquely identifies the type of this resource. Value is always the fixed
455
- # string games#aggregateStats.
456
- # Corresponds to the JSON property `kind`
457
- # @return [String]
458
- attr_accessor :kind
459
-
460
- # The maximum amount.
461
- # Corresponds to the JSON property `max`
462
- # @return [Fixnum]
463
- attr_accessor :max
464
-
465
- # The minimum amount.
466
- # Corresponds to the JSON property `min`
467
- # @return [Fixnum]
468
- attr_accessor :min
469
-
470
- # The total number of bytes sent for messages between a pair of peers.
471
- # Corresponds to the JSON property `sum`
472
- # @return [Fixnum]
473
- attr_accessor :sum
474
-
475
- def initialize(**args)
476
- update!(**args)
477
- end
478
-
479
- # Update properties of this object
480
- def update!(**args)
481
- @count = args[:count] if args.key?(:count)
482
- @kind = args[:kind] if args.key?(:kind)
483
- @max = args[:max] if args.key?(:max)
484
- @min = args[:min] if args.key?(:min)
485
- @sum = args[:sum] if args.key?(:sum)
486
- end
487
- end
488
-
489
- # This is a JSON template for an anonymous player
490
- class AnonymousPlayer
491
- include Google::Apis::Core::Hashable
492
-
493
- # The base URL for the image to display for the anonymous player.
494
- # Corresponds to the JSON property `avatarImageUrl`
495
- # @return [String]
496
- attr_accessor :avatar_image_url
497
-
498
- # The name to display for the anonymous player.
499
- # Corresponds to the JSON property `displayName`
500
- # @return [String]
501
- attr_accessor :display_name
502
-
503
- # Uniquely identifies the type of this resource. Value is always the fixed
504
- # string games#anonymousPlayer.
505
- # Corresponds to the JSON property `kind`
506
- # @return [String]
507
- attr_accessor :kind
508
-
509
- def initialize(**args)
510
- update!(**args)
511
- end
512
-
513
- # Update properties of this object
514
- def update!(**args)
515
- @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
516
- @display_name = args[:display_name] if args.key?(:display_name)
517
- @kind = args[:kind] if args.key?(:kind)
518
- end
519
- end
520
-
521
- # This is a JSON template for the Application resource.
427
+ # The Application resource.
522
428
  class Application
523
429
  include Google::Apis::Core::Hashable
524
430
 
@@ -537,7 +443,7 @@ module Google
537
443
  # @return [String]
538
444
  attr_accessor :author
539
445
 
540
- # This is a JSON template for an application category object.
446
+ # An application category object.
541
447
  # Corresponds to the JSON property `category`
542
448
  # @return [Google::Apis::GamesV1::ApplicationCategory]
543
449
  attr_accessor :category
@@ -548,8 +454,6 @@ module Google
548
454
  attr_accessor :description
549
455
 
550
456
  # A list of features that have been enabled for the application.
551
- # Possible values are:
552
- # - "SNAPSHOTS" - Snapshots has been enabled
553
457
  # Corresponds to the JSON property `enabledFeatures`
554
458
  # @return [Array<String>]
555
459
  attr_accessor :enabled_features
@@ -565,7 +469,7 @@ module Google
565
469
  attr_accessor :instances
566
470
 
567
471
  # Uniquely identifies the type of this resource. Value is always the fixed
568
- # string games#application.
472
+ # string `games#application`.
569
473
  # Corresponds to the JSON property `kind`
570
474
  # @return [String]
571
475
  attr_accessor :kind
@@ -613,12 +517,12 @@ module Google
613
517
  end
614
518
  end
615
519
 
616
- # This is a JSON template for an application category object.
520
+ # An application category object.
617
521
  class ApplicationCategory
618
522
  include Google::Apis::Core::Hashable
619
523
 
620
524
  # Uniquely identifies the type of this resource. Value is always the fixed
621
- # string games#applicationCategory.
525
+ # string `games#applicationCategory`.
622
526
  # Corresponds to the JSON property `kind`
623
527
  # @return [String]
624
528
  attr_accessor :kind
@@ -645,8 +549,7 @@ module Google
645
549
  end
646
550
  end
647
551
 
648
- # This is a JSON template for a third party application verification response
649
- # resource.
552
+ # A third party application verification response resource.
650
553
  class ApplicationVerifyResponse
651
554
  include Google::Apis::Core::Hashable
652
555
 
@@ -657,7 +560,7 @@ module Google
657
560
  attr_accessor :alternate_player_id
658
561
 
659
562
  # Uniquely identifies the type of this resource. Value is always the fixed
660
- # string games#applicationVerifyResponse.
563
+ # string `games#applicationVerifyResponse`.
661
564
  # Corresponds to the JSON property `kind`
662
565
  # @return [String]
663
566
  attr_accessor :kind
@@ -679,7 +582,7 @@ module Google
679
582
  end
680
583
  end
681
584
 
682
- # This is a JSON template for data related to individual game categories.
585
+ # Data related to individual game categories.
683
586
  class Category
684
587
  include Google::Apis::Core::Hashable
685
588
 
@@ -694,7 +597,7 @@ module Google
694
597
  attr_accessor :experience_points
695
598
 
696
599
  # Uniquely identifies the type of this resource. Value is always the fixed
697
- # string games#category.
600
+ # string `games#category`.
698
601
  # Corresponds to the JSON property `kind`
699
602
  # @return [String]
700
603
  attr_accessor :kind
@@ -711,7 +614,7 @@ module Google
711
614
  end
712
615
  end
713
616
 
714
- # This is a JSON template for a list of category data objects.
617
+ # A third party list metagame categories response.
715
618
  class ListCategoryResponse
716
619
  include Google::Apis::Core::Hashable
717
620
 
@@ -721,7 +624,7 @@ module Google
721
624
  attr_accessor :items
722
625
 
723
626
  # Uniquely identifies the type of this resource. Value is always the fixed
724
- # string games#categoryListResponse.
627
+ # string `games#categoryListResponse`.
725
628
  # Corresponds to the JSON property `kind`
726
629
  # @return [String]
727
630
  attr_accessor :kind
@@ -743,33 +646,22 @@ module Google
743
646
  end
744
647
  end
745
648
 
746
- # This is a JSON template for a batch update failure resource.
649
+ # A batch update failure resource.
747
650
  class EventBatchRecordFailure
748
651
  include Google::Apis::Core::Hashable
749
652
 
750
653
  # The cause for the update failure.
751
- # Possible values are:
752
- # - "TOO_LARGE": A batch request was issued with more events than are allowed in
753
- # a single batch.
754
- # - "TIME_PERIOD_EXPIRED": A batch was sent with data too far in the past to
755
- # record.
756
- # - "TIME_PERIOD_SHORT": A batch was sent with a time range that was too short.
757
- # - "TIME_PERIOD_LONG": A batch was sent with a time range that was too long.
758
- # - "ALREADY_UPDATED": An attempt was made to record a batch of data which was
759
- # already seen.
760
- # - "RECORD_RATE_HIGH": An attempt was made to record data faster than the
761
- # server will apply updates.
762
654
  # Corresponds to the JSON property `failureCause`
763
655
  # @return [String]
764
656
  attr_accessor :failure_cause
765
657
 
766
658
  # Uniquely identifies the type of this resource. Value is always the fixed
767
- # string games#eventBatchRecordFailure.
659
+ # string `games#eventBatchRecordFailure`.
768
660
  # Corresponds to the JSON property `kind`
769
661
  # @return [String]
770
662
  attr_accessor :kind
771
663
 
772
- # This is a JSON template for an event period time range.
664
+ # An event period time range.
773
665
  # Corresponds to the JSON property `range`
774
666
  # @return [Google::Apis::GamesV1::EventPeriodRange]
775
667
  attr_accessor :range
@@ -786,7 +678,7 @@ module Google
786
678
  end
787
679
  end
788
680
 
789
- # This is a JSON template for an event child relationship resource.
681
+ # An event child relationship resource.
790
682
  class EventChild
791
683
  include Google::Apis::Core::Hashable
792
684
 
@@ -796,7 +688,7 @@ module Google
796
688
  attr_accessor :child_id
797
689
 
798
690
  # Uniquely identifies the type of this resource. Value is always the fixed
799
- # string games#eventChild.
691
+ # string `games#eventChild`.
800
692
  # Corresponds to the JSON property `kind`
801
693
  # @return [String]
802
694
  attr_accessor :kind
@@ -812,7 +704,7 @@ module Google
812
704
  end
813
705
  end
814
706
 
815
- # This is a JSON template for an event definition resource.
707
+ # An event definition resource.
816
708
  class EventDefinition
817
709
  include Google::Apis::Core::Hashable
818
710
 
@@ -841,24 +733,20 @@ module Google
841
733
  # @return [String]
842
734
  attr_accessor :image_url
843
735
 
844
- # Indicates whether the icon image being returned is a default image, or is game-
845
- # provided.
736
+ # Indicates whether the icon image being returned is a default image, or is
737
+ # game-provided.
846
738
  # Corresponds to the JSON property `isDefaultImageUrl`
847
739
  # @return [Boolean]
848
740
  attr_accessor :is_default_image_url
849
741
  alias_method :is_default_image_url?, :is_default_image_url
850
742
 
851
743
  # Uniquely identifies the type of this resource. Value is always the fixed
852
- # string games#eventDefinition.
744
+ # string `games#eventDefinition`.
853
745
  # Corresponds to the JSON property `kind`
854
746
  # @return [String]
855
747
  attr_accessor :kind
856
748
 
857
749
  # The visibility of event being tracked in this definition.
858
- # Possible values are:
859
- # - "REVEALED": This event should be visible to all users.
860
- # - "HIDDEN": This event should only be shown to users that have recorded this
861
- # event at least once.
862
750
  # Corresponds to the JSON property `visibility`
863
751
  # @return [String]
864
752
  attr_accessor :visibility
@@ -880,7 +768,7 @@ module Google
880
768
  end
881
769
  end
882
770
 
883
- # This is a JSON template for a ListDefinitions response.
771
+ # A ListDefinitions response.
884
772
  class ListEventDefinitionResponse
885
773
  include Google::Apis::Core::Hashable
886
774
 
@@ -890,7 +778,7 @@ module Google
890
778
  attr_accessor :items
891
779
 
892
780
  # Uniquely identifies the type of this resource. Value is always the fixed
893
- # string games#eventDefinitionListResponse.
781
+ # string `games#eventDefinitionListResponse`.
894
782
  # Corresponds to the JSON property `kind`
895
783
  # @return [String]
896
784
  attr_accessor :kind
@@ -912,23 +800,24 @@ module Google
912
800
  end
913
801
  end
914
802
 
915
- # This is a JSON template for an event period time range.
803
+ # An event period time range.
916
804
  class EventPeriodRange
917
805
  include Google::Apis::Core::Hashable
918
806
 
919
807
  # Uniquely identifies the type of this resource. Value is always the fixed
920
- # string games#eventPeriodRange.
808
+ # string `games#eventPeriodRange`.
921
809
  # Corresponds to the JSON property `kind`
922
810
  # @return [String]
923
811
  attr_accessor :kind
924
812
 
925
- # The time when this update period ends, in millis, since 1970 UTC (Unix Epoch).
813
+ # The time when this update period ends, in millis, since 1970 UTC (Unix
814
+ # Epoch).
926
815
  # Corresponds to the JSON property `periodEndMillis`
927
816
  # @return [Fixnum]
928
817
  attr_accessor :period_end_millis
929
818
 
930
- # The time when this update period begins, in millis, since 1970 UTC (Unix Epoch)
931
- # .
819
+ # The time when this update period begins, in millis, since 1970 UTC (Unix
820
+ # Epoch).
932
821
  # Corresponds to the JSON property `periodStartMillis`
933
822
  # @return [Fixnum]
934
823
  attr_accessor :period_start_millis
@@ -945,17 +834,17 @@ module Google
945
834
  end
946
835
  end
947
836
 
948
- # This is a JSON template for an event period update resource.
837
+ # An event period update resource.
949
838
  class EventPeriodUpdate
950
839
  include Google::Apis::Core::Hashable
951
840
 
952
841
  # Uniquely identifies the type of this resource. Value is always the fixed
953
- # string games#eventPeriodUpdate.
842
+ # string `games#eventPeriodUpdate`.
954
843
  # Corresponds to the JSON property `kind`
955
844
  # @return [String]
956
845
  attr_accessor :kind
957
846
 
958
- # This is a JSON template for an event period time range.
847
+ # An event period time range.
959
848
  # Corresponds to the JSON property `timePeriod`
960
849
  # @return [Google::Apis::GamesV1::EventPeriodRange]
961
850
  attr_accessor :time_period
@@ -977,7 +866,7 @@ module Google
977
866
  end
978
867
  end
979
868
 
980
- # This is a JSON template for an event update failure resource.
869
+ # An event update failure resource.
981
870
  class EventRecordFailure
982
871
  include Google::Apis::Core::Hashable
983
872
 
@@ -987,16 +876,12 @@ module Google
987
876
  attr_accessor :event_id
988
877
 
989
878
  # The cause for the update failure.
990
- # Possible values are:
991
- # - "NOT_FOUND" - An attempt was made to set an event that was not defined.
992
- # - "INVALID_UPDATE_VALUE" - An attempt was made to increment an event by a non-
993
- # positive value.
994
879
  # Corresponds to the JSON property `failureCause`
995
880
  # @return [String]
996
881
  attr_accessor :failure_cause
997
882
 
998
883
  # Uniquely identifies the type of this resource. Value is always the fixed
999
- # string games#eventRecordFailure.
884
+ # string `games#eventRecordFailure`.
1000
885
  # Corresponds to the JSON property `kind`
1001
886
  # @return [String]
1002
887
  attr_accessor :kind
@@ -1013,18 +898,18 @@ module Google
1013
898
  end
1014
899
  end
1015
900
 
1016
- # This is a JSON template for an event period update resource.
901
+ # An event period update resource.
1017
902
  class EventRecordRequest
1018
903
  include Google::Apis::Core::Hashable
1019
904
 
1020
- # The current time when this update was sent, in milliseconds, since 1970 UTC (
1021
- # Unix Epoch).
905
+ # The current time when this update was sent, in milliseconds, since 1970 UTC
906
+ # (Unix Epoch).
1022
907
  # Corresponds to the JSON property `currentTimeMillis`
1023
908
  # @return [Fixnum]
1024
909
  attr_accessor :current_time_millis
1025
910
 
1026
911
  # Uniquely identifies the type of this resource. Value is always the fixed
1027
- # string games#eventRecordRequest.
912
+ # string `games#eventRecordRequest`.
1028
913
  # Corresponds to the JSON property `kind`
1029
914
  # @return [String]
1030
915
  attr_accessor :kind
@@ -1052,7 +937,7 @@ module Google
1052
937
  end
1053
938
  end
1054
939
 
1055
- # This is a JSON template for an event period update resource.
940
+ # An event period update resource.
1056
941
  class UpdateEventRequest
1057
942
  include Google::Apis::Core::Hashable
1058
943
 
@@ -1062,7 +947,7 @@ module Google
1062
947
  attr_accessor :definition_id
1063
948
 
1064
949
  # Uniquely identifies the type of this resource. Value is always the fixed
1065
- # string games#eventUpdateRequest.
950
+ # string `games#eventUpdateRequest`.
1066
951
  # Corresponds to the JSON property `kind`
1067
952
  # @return [String]
1068
953
  attr_accessor :kind
@@ -1084,7 +969,7 @@ module Google
1084
969
  end
1085
970
  end
1086
971
 
1087
- # This is a JSON template for an event period update resource.
972
+ # An event period update resource.
1088
973
  class UpdateEventResponse
1089
974
  include Google::Apis::Core::Hashable
1090
975
 
@@ -1099,7 +984,7 @@ module Google
1099
984
  attr_accessor :event_failures
1100
985
 
1101
986
  # Uniquely identifies the type of this resource. Value is always the fixed
1102
- # string games#eventUpdateResponse.
987
+ # string `games#eventUpdateResponse`.
1103
988
  # Corresponds to the JSON property `kind`
1104
989
  # @return [String]
1105
990
  attr_accessor :kind
@@ -1122,12 +1007,13 @@ module Google
1122
1007
  end
1123
1008
  end
1124
1009
 
1125
- # This is a JSON template for the payload to request to increment an achievement.
1010
+ # The payload to request to increment an
1011
+ # achievement.
1126
1012
  class GamesAchievementIncrement
1127
1013
  include Google::Apis::Core::Hashable
1128
1014
 
1129
1015
  # Uniquely identifies the type of this resource. Value is always the fixed
1130
- # string games#GamesAchievementIncrement.
1016
+ # string `games#GamesAchievementIncrement`.
1131
1017
  # Corresponds to the JSON property `kind`
1132
1018
  # @return [String]
1133
1019
  attr_accessor :kind
@@ -1154,12 +1040,13 @@ module Google
1154
1040
  end
1155
1041
  end
1156
1042
 
1157
- # This is a JSON template for the payload to request to increment an achievement.
1043
+ # The payload to request to increment an
1044
+ # achievement.
1158
1045
  class GamesAchievementSetStepsAtLeast
1159
1046
  include Google::Apis::Core::Hashable
1160
1047
 
1161
1048
  # Uniquely identifies the type of this resource. Value is always the fixed
1162
- # string games#GamesAchievementSetStepsAtLeast.
1049
+ # string `games#GamesAchievementSetStepsAtLeast`.
1163
1050
  # Corresponds to the JSON property `kind`
1164
1051
  # @return [String]
1165
1052
  attr_accessor :kind
@@ -1180,7 +1067,7 @@ module Google
1180
1067
  end
1181
1068
  end
1182
1069
 
1183
- # This is a JSON template for an image asset object.
1070
+ # An image asset object.
1184
1071
  class ImageAsset
1185
1072
  include Google::Apis::Core::Hashable
1186
1073
 
@@ -1190,7 +1077,7 @@ module Google
1190
1077
  attr_accessor :height
1191
1078
 
1192
1079
  # Uniquely identifies the type of this resource. Value is always the fixed
1193
- # string games#imageAsset.
1080
+ # string `games#imageAsset`.
1194
1081
  # Corresponds to the JSON property `kind`
1195
1082
  # @return [String]
1196
1083
  attr_accessor :kind
@@ -1224,7 +1111,7 @@ module Google
1224
1111
  end
1225
1112
  end
1226
1113
 
1227
- # This is a JSON template for the Instance resource.
1114
+ # The Instance resource.
1228
1115
  class Instance
1229
1116
  include Google::Apis::Core::Hashable
1230
1117
 
@@ -1233,18 +1120,18 @@ module Google
1233
1120
  # @return [String]
1234
1121
  attr_accessor :acquisition_uri
1235
1122
 
1236
- # This is a JSON template for the Android instance details resource.
1123
+ # The Android instance details resource.
1237
1124
  # Corresponds to the JSON property `androidInstance`
1238
1125
  # @return [Google::Apis::GamesV1::InstanceAndroidDetails]
1239
1126
  attr_accessor :android_instance
1240
1127
 
1241
- # This is a JSON template for the iOS details resource.
1128
+ # The iOS details resource.
1242
1129
  # Corresponds to the JSON property `iosInstance`
1243
1130
  # @return [Google::Apis::GamesV1::InstanceIosDetails]
1244
1131
  attr_accessor :ios_instance
1245
1132
 
1246
1133
  # Uniquely identifies the type of this resource. Value is always the fixed
1247
- # string games#instance.
1134
+ # string `games#instance`.
1248
1135
  # Corresponds to the JSON property `kind`
1249
1136
  # @return [String]
1250
1137
  attr_accessor :kind
@@ -1255,10 +1142,6 @@ module Google
1255
1142
  attr_accessor :name
1256
1143
 
1257
1144
  # The platform type.
1258
- # Possible values are:
1259
- # - "ANDROID" - Instance is for Android.
1260
- # - "IOS" - Instance is for iOS
1261
- # - "WEB_APP" - Instance is for Web App.
1262
1145
  # Corresponds to the JSON property `platformType`
1263
1146
  # @return [String]
1264
1147
  attr_accessor :platform_type
@@ -1275,7 +1158,7 @@ module Google
1275
1158
  attr_accessor :turn_based_play
1276
1159
  alias_method :turn_based_play?, :turn_based_play
1277
1160
 
1278
- # This is a JSON template for the Web details resource.
1161
+ # The Web details resource.
1279
1162
  # Corresponds to the JSON property `webInstance`
1280
1163
  # @return [Google::Apis::GamesV1::InstanceWebDetails]
1281
1164
  attr_accessor :web_instance
@@ -1298,7 +1181,7 @@ module Google
1298
1181
  end
1299
1182
  end
1300
1183
 
1301
- # This is a JSON template for the Android instance details resource.
1184
+ # The Android instance details resource.
1302
1185
  class InstanceAndroidDetails
1303
1186
  include Google::Apis::Core::Hashable
1304
1187
 
@@ -1309,7 +1192,7 @@ module Google
1309
1192
  alias_method :enable_piracy_check?, :enable_piracy_check
1310
1193
 
1311
1194
  # Uniquely identifies the type of this resource. Value is always the fixed
1312
- # string games#instanceAndroidDetails.
1195
+ # string `games#instanceAndroidDetails`.
1313
1196
  # Corresponds to the JSON property `kind`
1314
1197
  # @return [String]
1315
1198
  attr_accessor :kind
@@ -1338,7 +1221,7 @@ module Google
1338
1221
  end
1339
1222
  end
1340
1223
 
1341
- # This is a JSON template for the iOS details resource.
1224
+ # The iOS details resource.
1342
1225
  class InstanceIosDetails
1343
1226
  include Google::Apis::Core::Hashable
1344
1227
 
@@ -1353,7 +1236,7 @@ module Google
1353
1236
  attr_accessor :itunes_app_id
1354
1237
 
1355
1238
  # Uniquely identifies the type of this resource. Value is always the fixed
1356
- # string games#instanceIosDetails.
1239
+ # string `games#instanceIosDetails`.
1357
1240
  # Corresponds to the JSON property `kind`
1358
1241
  # @return [String]
1359
1242
  attr_accessor :kind
@@ -1400,12 +1283,12 @@ module Google
1400
1283
  end
1401
1284
  end
1402
1285
 
1403
- # This is a JSON template for the Web details resource.
1286
+ # The Web details resource.
1404
1287
  class InstanceWebDetails
1405
1288
  include Google::Apis::Core::Hashable
1406
1289
 
1407
1290
  # Uniquely identifies the type of this resource. Value is always the fixed
1408
- # string games#instanceWebDetails.
1291
+ # string `games#instanceWebDetails`.
1409
1292
  # Corresponds to the JSON property `kind`
1410
1293
  # @return [String]
1411
1294
  attr_accessor :kind
@@ -1433,7 +1316,7 @@ module Google
1433
1316
  end
1434
1317
  end
1435
1318
 
1436
- # This is a JSON template for the Leaderboard resource.
1319
+ # The Leaderboard resource.
1437
1320
  class Leaderboard
1438
1321
  include Google::Apis::Core::Hashable
1439
1322
 
@@ -1447,15 +1330,15 @@ module Google
1447
1330
  # @return [String]
1448
1331
  attr_accessor :id
1449
1332
 
1450
- # Indicates whether the icon image being returned is a default image, or is game-
1451
- # provided.
1333
+ # Indicates whether the icon image being returned is a default image, or is
1334
+ # game-provided.
1452
1335
  # Corresponds to the JSON property `isIconUrlDefault`
1453
1336
  # @return [Boolean]
1454
1337
  attr_accessor :is_icon_url_default
1455
1338
  alias_method :is_icon_url_default?, :is_icon_url_default
1456
1339
 
1457
1340
  # Uniquely identifies the type of this resource. Value is always the fixed
1458
- # string games#leaderboard.
1341
+ # string `games#leaderboard`.
1459
1342
  # Corresponds to the JSON property `kind`
1460
1343
  # @return [String]
1461
1344
  attr_accessor :kind
@@ -1466,11 +1349,6 @@ module Google
1466
1349
  attr_accessor :name
1467
1350
 
1468
1351
  # How scores are ordered.
1469
- # Possible values are:
1470
- # - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in
1471
- # descending order.
1472
- # - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in
1473
- # ascending order.
1474
1352
  # Corresponds to the JSON property `order`
1475
1353
  # @return [String]
1476
1354
  attr_accessor :order
@@ -1490,7 +1368,7 @@ module Google
1490
1368
  end
1491
1369
  end
1492
1370
 
1493
- # This is a JSON template for the Leaderboard Entry resource.
1371
+ # The Leaderboard Entry resource.
1494
1372
  class LeaderboardEntry
1495
1373
  include Google::Apis::Core::Hashable
1496
1374
 
@@ -1505,12 +1383,12 @@ module Google
1505
1383
  attr_accessor :formatted_score_rank
1506
1384
 
1507
1385
  # Uniquely identifies the type of this resource. Value is always the fixed
1508
- # string games#leaderboardEntry.
1386
+ # string `games#leaderboardEntry`.
1509
1387
  # Corresponds to the JSON property `kind`
1510
1388
  # @return [String]
1511
1389
  attr_accessor :kind
1512
1390
 
1513
- # This is a JSON template for a Player resource.
1391
+ # A Player resource.
1514
1392
  # Corresponds to the JSON property `player`
1515
1393
  # @return [Google::Apis::GamesV1::Player]
1516
1394
  attr_accessor :player
@@ -1520,8 +1398,8 @@ module Google
1520
1398
  # @return [Fixnum]
1521
1399
  attr_accessor :score_rank
1522
1400
 
1523
- # Additional information about the score. Values must contain no more than 64
1524
- # URI-safe characters as defined by section 2.3 of RFC 3986.
1401
+ # Additional information about the score. Values must contain no more than
1402
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
1525
1403
  # Corresponds to the JSON property `scoreTag`
1526
1404
  # @return [String]
1527
1405
  attr_accessor :score_tag
@@ -1532,10 +1410,6 @@ module Google
1532
1410
  attr_accessor :score_value
1533
1411
 
1534
1412
  # The time span of this high score.
1535
- # Possible values are:
1536
- # - "ALL_TIME" - The score is an all-time high score.
1537
- # - "WEEKLY" - The score is a weekly high score.
1538
- # - "DAILY" - The score is a daily high score.
1539
1413
  # Corresponds to the JSON property `timeSpan`
1540
1414
  # @return [String]
1541
1415
  attr_accessor :time_span
@@ -1564,7 +1438,7 @@ module Google
1564
1438
  end
1565
1439
  end
1566
1440
 
1567
- # This is a JSON template for a list of leaderboard objects.
1441
+ # A list of leaderboard objects.
1568
1442
  class ListLeaderboardResponse
1569
1443
  include Google::Apis::Core::Hashable
1570
1444
 
@@ -1574,7 +1448,7 @@ module Google
1574
1448
  attr_accessor :items
1575
1449
 
1576
1450
  # Uniquely identifies the type of this resource. Value is always the fixed
1577
- # string games#leaderboardListResponse.
1451
+ # string `games#leaderboardListResponse`.
1578
1452
  # Corresponds to the JSON property `kind`
1579
1453
  # @return [String]
1580
1454
  attr_accessor :kind
@@ -1596,7 +1470,7 @@ module Google
1596
1470
  end
1597
1471
  end
1598
1472
 
1599
- # This is a JSON template for a score rank in a leaderboard.
1473
+ # A score rank in a leaderboard.
1600
1474
  class LeaderboardScoreRank
1601
1475
  include Google::Apis::Core::Hashable
1602
1476
 
@@ -1611,7 +1485,7 @@ module Google
1611
1485
  attr_accessor :formatted_rank
1612
1486
 
1613
1487
  # Uniquely identifies the type of this resource. Value is always the fixed
1614
- # string games#leaderboardScoreRank.
1488
+ # string `games#leaderboardScoreRank`.
1615
1489
  # Corresponds to the JSON property `kind`
1616
1490
  # @return [String]
1617
1491
  attr_accessor :kind
@@ -1640,7 +1514,7 @@ module Google
1640
1514
  end
1641
1515
  end
1642
1516
 
1643
- # This is a JSON template for a ListScores response.
1517
+ # A ListScores response.
1644
1518
  class LeaderboardScores
1645
1519
  include Google::Apis::Core::Hashable
1646
1520
 
@@ -1650,7 +1524,7 @@ module Google
1650
1524
  attr_accessor :items
1651
1525
 
1652
1526
  # Uniquely identifies the type of this resource. Value is always the fixed
1653
- # string games#leaderboardScores.
1527
+ # string `games#leaderboardScores`.
1654
1528
  # Corresponds to the JSON property `kind`
1655
1529
  # @return [String]
1656
1530
  attr_accessor :kind
@@ -1665,7 +1539,7 @@ module Google
1665
1539
  # @return [Fixnum]
1666
1540
  attr_accessor :num_scores
1667
1541
 
1668
- # This is a JSON template for the Leaderboard Entry resource.
1542
+ # The Leaderboard Entry resource.
1669
1543
  # Corresponds to the JSON property `playerScore`
1670
1544
  # @return [Google::Apis::GamesV1::LeaderboardEntry]
1671
1545
  attr_accessor :player_score
@@ -1690,18 +1564,18 @@ module Google
1690
1564
  end
1691
1565
  end
1692
1566
 
1693
- # This is a JSON template for the metagame config resource
1567
+ # The metagame config resource
1694
1568
  class MetagameConfig
1695
1569
  include Google::Apis::Core::Hashable
1696
1570
 
1697
- # Current version of the metagame configuration data. When this data is updated,
1698
- # the version number will be increased by one.
1571
+ # Current version of the metagame configuration data. When this data is
1572
+ # updated, the version number will be increased by one.
1699
1573
  # Corresponds to the JSON property `currentVersion`
1700
1574
  # @return [Fixnum]
1701
1575
  attr_accessor :current_version
1702
1576
 
1703
1577
  # Uniquely identifies the type of this resource. Value is always the fixed
1704
- # string games#metagameConfig.
1578
+ # string `games#metagameConfig`.
1705
1579
  # Corresponds to the JSON property `kind`
1706
1580
  # @return [String]
1707
1581
  attr_accessor :kind
@@ -1723,262 +1597,7 @@ module Google
1723
1597
  end
1724
1598
  end
1725
1599
 
1726
- # This is a JSON template for network diagnostics reported for a client.
1727
- class NetworkDiagnostics
1728
- include Google::Apis::Core::Hashable
1729
-
1730
- # The Android network subtype.
1731
- # Corresponds to the JSON property `androidNetworkSubtype`
1732
- # @return [Fixnum]
1733
- attr_accessor :android_network_subtype
1734
-
1735
- # The Android network type.
1736
- # Corresponds to the JSON property `androidNetworkType`
1737
- # @return [Fixnum]
1738
- attr_accessor :android_network_type
1739
-
1740
- # iOS network type as defined in Reachability.h.
1741
- # Corresponds to the JSON property `iosNetworkType`
1742
- # @return [Fixnum]
1743
- attr_accessor :ios_network_type
1744
-
1745
- # Uniquely identifies the type of this resource. Value is always the fixed
1746
- # string games#networkDiagnostics.
1747
- # Corresponds to the JSON property `kind`
1748
- # @return [String]
1749
- attr_accessor :kind
1750
-
1751
- # The MCC+MNC code for the client's network connection. On Android: http://
1752
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
1753
- # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/
1754
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
1755
- # Corresponds to the JSON property `networkOperatorCode`
1756
- # @return [String]
1757
- attr_accessor :network_operator_code
1758
-
1759
- # The name of the carrier of the client's network connection. On Android: http://
1760
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
1761
- # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/
1762
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/
1763
- # /apple_ref/occ/instp/CTCarrier/carrierName
1764
- # Corresponds to the JSON property `networkOperatorName`
1765
- # @return [String]
1766
- attr_accessor :network_operator_name
1767
-
1768
- # The amount of time in milliseconds it took for the client to establish a
1769
- # connection with the XMPP server.
1770
- # Corresponds to the JSON property `registrationLatencyMillis`
1771
- # @return [Fixnum]
1772
- attr_accessor :registration_latency_millis
1773
-
1774
- def initialize(**args)
1775
- update!(**args)
1776
- end
1777
-
1778
- # Update properties of this object
1779
- def update!(**args)
1780
- @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
1781
- @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
1782
- @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
1783
- @kind = args[:kind] if args.key?(:kind)
1784
- @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
1785
- @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
1786
- @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis)
1787
- end
1788
- end
1789
-
1790
- # This is a JSON template for a result for a match participant.
1791
- class ParticipantResult
1792
- include Google::Apis::Core::Hashable
1793
-
1794
- # Uniquely identifies the type of this resource. Value is always the fixed
1795
- # string games#participantResult.
1796
- # Corresponds to the JSON property `kind`
1797
- # @return [String]
1798
- attr_accessor :kind
1799
-
1800
- # The ID of the participant.
1801
- # Corresponds to the JSON property `participantId`
1802
- # @return [String]
1803
- attr_accessor :participant_id
1804
-
1805
- # The placement or ranking of the participant in the match results; a number
1806
- # from one to the number of participants in the match. Multiple participants may
1807
- # have the same placing value in case of a type.
1808
- # Corresponds to the JSON property `placing`
1809
- # @return [Fixnum]
1810
- attr_accessor :placing
1811
-
1812
- # The result of the participant for this match.
1813
- # Possible values are:
1814
- # - "MATCH_RESULT_WIN" - The participant won the match.
1815
- # - "MATCH_RESULT_LOSS" - The participant lost the match.
1816
- # - "MATCH_RESULT_TIE" - The participant tied the match.
1817
- # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or
1818
- # loses this kind of game.)
1819
- # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the
1820
- # match.
1821
- # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for
1822
- # this participant.
1823
- # Corresponds to the JSON property `result`
1824
- # @return [String]
1825
- attr_accessor :result
1826
-
1827
- def initialize(**args)
1828
- update!(**args)
1829
- end
1830
-
1831
- # Update properties of this object
1832
- def update!(**args)
1833
- @kind = args[:kind] if args.key?(:kind)
1834
- @participant_id = args[:participant_id] if args.key?(:participant_id)
1835
- @placing = args[:placing] if args.key?(:placing)
1836
- @result = args[:result] if args.key?(:result)
1837
- end
1838
- end
1839
-
1840
- # This is a JSON template for peer channel diagnostics.
1841
- class PeerChannelDiagnostics
1842
- include Google::Apis::Core::Hashable
1843
-
1844
- # This is a JSON template for aggregate stats.
1845
- # Corresponds to the JSON property `bytesReceived`
1846
- # @return [Google::Apis::GamesV1::AggregateStats]
1847
- attr_accessor :bytes_received
1848
-
1849
- # This is a JSON template for aggregate stats.
1850
- # Corresponds to the JSON property `bytesSent`
1851
- # @return [Google::Apis::GamesV1::AggregateStats]
1852
- attr_accessor :bytes_sent
1853
-
1854
- # Uniquely identifies the type of this resource. Value is always the fixed
1855
- # string games#peerChannelDiagnostics.
1856
- # Corresponds to the JSON property `kind`
1857
- # @return [String]
1858
- attr_accessor :kind
1859
-
1860
- # Number of messages lost.
1861
- # Corresponds to the JSON property `numMessagesLost`
1862
- # @return [Fixnum]
1863
- attr_accessor :num_messages_lost
1864
-
1865
- # Number of messages received.
1866
- # Corresponds to the JSON property `numMessagesReceived`
1867
- # @return [Fixnum]
1868
- attr_accessor :num_messages_received
1869
-
1870
- # Number of messages sent.
1871
- # Corresponds to the JSON property `numMessagesSent`
1872
- # @return [Fixnum]
1873
- attr_accessor :num_messages_sent
1874
-
1875
- # Number of send failures.
1876
- # Corresponds to the JSON property `numSendFailures`
1877
- # @return [Fixnum]
1878
- attr_accessor :num_send_failures
1879
-
1880
- # This is a JSON template for aggregate stats.
1881
- # Corresponds to the JSON property `roundtripLatencyMillis`
1882
- # @return [Google::Apis::GamesV1::AggregateStats]
1883
- attr_accessor :roundtrip_latency_millis
1884
-
1885
- def initialize(**args)
1886
- update!(**args)
1887
- end
1888
-
1889
- # Update properties of this object
1890
- def update!(**args)
1891
- @bytes_received = args[:bytes_received] if args.key?(:bytes_received)
1892
- @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent)
1893
- @kind = args[:kind] if args.key?(:kind)
1894
- @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost)
1895
- @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received)
1896
- @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent)
1897
- @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures)
1898
- @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis)
1899
- end
1900
- end
1901
-
1902
- # This is a JSON template for peer session diagnostics.
1903
- class PeerSessionDiagnostics
1904
- include Google::Apis::Core::Hashable
1905
-
1906
- # Connected time in milliseconds.
1907
- # Corresponds to the JSON property `connectedTimestampMillis`
1908
- # @return [Fixnum]
1909
- attr_accessor :connected_timestamp_millis
1910
-
1911
- # Uniquely identifies the type of this resource. Value is always the fixed
1912
- # string games#peerSessionDiagnostics.
1913
- # Corresponds to the JSON property `kind`
1914
- # @return [String]
1915
- attr_accessor :kind
1916
-
1917
- # The participant ID of the peer.
1918
- # Corresponds to the JSON property `participantId`
1919
- # @return [String]
1920
- attr_accessor :participant_id
1921
-
1922
- # This is a JSON template for peer channel diagnostics.
1923
- # Corresponds to the JSON property `reliableChannel`
1924
- # @return [Google::Apis::GamesV1::PeerChannelDiagnostics]
1925
- attr_accessor :reliable_channel
1926
-
1927
- # This is a JSON template for peer channel diagnostics.
1928
- # Corresponds to the JSON property `unreliableChannel`
1929
- # @return [Google::Apis::GamesV1::PeerChannelDiagnostics]
1930
- attr_accessor :unreliable_channel
1931
-
1932
- def initialize(**args)
1933
- update!(**args)
1934
- end
1935
-
1936
- # Update properties of this object
1937
- def update!(**args)
1938
- @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis)
1939
- @kind = args[:kind] if args.key?(:kind)
1940
- @participant_id = args[:participant_id] if args.key?(:participant_id)
1941
- @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel)
1942
- @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel)
1943
- end
1944
- end
1945
-
1946
- # This is a JSON template for metadata about a player playing a game with the
1947
- # currently authenticated user.
1948
- class Played
1949
- include Google::Apis::Core::Hashable
1950
-
1951
- # True if the player was auto-matched with the currently authenticated user.
1952
- # Corresponds to the JSON property `autoMatched`
1953
- # @return [Boolean]
1954
- attr_accessor :auto_matched
1955
- alias_method :auto_matched?, :auto_matched
1956
-
1957
- # Uniquely identifies the type of this resource. Value is always the fixed
1958
- # string games#played.
1959
- # Corresponds to the JSON property `kind`
1960
- # @return [String]
1961
- attr_accessor :kind
1962
-
1963
- # The last time the player played the game in milliseconds since the epoch in
1964
- # UTC.
1965
- # Corresponds to the JSON property `timeMillis`
1966
- # @return [Fixnum]
1967
- attr_accessor :time_millis
1968
-
1969
- def initialize(**args)
1970
- update!(**args)
1971
- end
1972
-
1973
- # Update properties of this object
1974
- def update!(**args)
1975
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
1976
- @kind = args[:kind] if args.key?(:kind)
1977
- @time_millis = args[:time_millis] if args.key?(:time_millis)
1978
- end
1979
- end
1980
-
1981
- # This is a JSON template for a Player resource.
1600
+ # A Player resource.
1982
1601
  class Player
1983
1602
  include Google::Apis::Core::Hashable
1984
1603
 
@@ -2002,7 +1621,7 @@ module Google
2002
1621
  # @return [String]
2003
1622
  attr_accessor :display_name
2004
1623
 
2005
- # This is a JSON template for 1P/3P metadata about the player's experience.
1624
+ # 1P/3P metadata about the player's experience.
2006
1625
  # Corresponds to the JSON property `experienceInfo`
2007
1626
  # @return [Google::Apis::GamesV1::PlayerExperienceInfo]
2008
1627
  attr_accessor :experience_info
@@ -2014,27 +1633,20 @@ module Google
2014
1633
  attr_accessor :friend_status
2015
1634
 
2016
1635
  # Uniquely identifies the type of this resource. Value is always the fixed
2017
- # string games#player.
1636
+ # string `games#player`
2018
1637
  # Corresponds to the JSON property `kind`
2019
1638
  # @return [String]
2020
1639
  attr_accessor :kind
2021
1640
 
2022
- # This is a JSON template for metadata about a player playing a game with the
2023
- # currently authenticated user.
2024
- # Corresponds to the JSON property `lastPlayedWith`
2025
- # @return [Google::Apis::GamesV1::Played]
2026
- attr_accessor :last_played_with
2027
-
2028
- # An object representation of the individual components of the player's name.
2029
- # For some players, these fields may not be present.
1641
+ # A representation of the individual components of the name.
2030
1642
  # Corresponds to the JSON property `name`
2031
1643
  # @return [Google::Apis::GamesV1::Player::Name]
2032
1644
  attr_accessor :name
2033
1645
 
2034
1646
  # The player ID that was used for this player the first time they signed into
2035
- # the game in question. This is only populated for calls to player.get for the
2036
- # requesting player, only if the player ID has subsequently changed, and only to
2037
- # clients that support remapping player IDs.
1647
+ # the game in question. This is only populated for calls to player.get for
1648
+ # the requesting player, only if the player ID has subsequently changed, and
1649
+ # only to clients that support remapping player IDs.
2038
1650
  # Corresponds to the JSON property `originalPlayerId`
2039
1651
  # @return [String]
2040
1652
  attr_accessor :original_player_id
@@ -2044,7 +1656,7 @@ module Google
2044
1656
  # @return [String]
2045
1657
  attr_accessor :player_id
2046
1658
 
2047
- # This is a JSON template for profile settings
1659
+ # Profile settings
2048
1660
  # Corresponds to the JSON property `profileSettings`
2049
1661
  # @return [Google::Apis::GamesV1::ProfileSettings]
2050
1662
  attr_accessor :profile_settings
@@ -2067,7 +1679,6 @@ module Google
2067
1679
  @experience_info = args[:experience_info] if args.key?(:experience_info)
2068
1680
  @friend_status = args[:friend_status] if args.key?(:friend_status)
2069
1681
  @kind = args[:kind] if args.key?(:kind)
2070
- @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
2071
1682
  @name = args[:name] if args.key?(:name)
2072
1683
  @original_player_id = args[:original_player_id] if args.key?(:original_player_id)
2073
1684
  @player_id = args[:player_id] if args.key?(:player_id)
@@ -2075,17 +1686,18 @@ module Google
2075
1686
  @title = args[:title] if args.key?(:title)
2076
1687
  end
2077
1688
 
2078
- # An object representation of the individual components of the player's name.
2079
- # For some players, these fields may not be present.
1689
+ # A representation of the individual components of the name.
2080
1690
  class Name
2081
1691
  include Google::Apis::Core::Hashable
2082
1692
 
2083
- # The family name of this player. In some places, this is known as the last name.
1693
+ # The family name of this player. In some places, this is known as the last
1694
+ # name.
2084
1695
  # Corresponds to the JSON property `familyName`
2085
1696
  # @return [String]
2086
1697
  attr_accessor :family_name
2087
1698
 
2088
- # The given name of this player. In some places, this is known as the first name.
1699
+ # The given name of this player. In some places, this is known as the first
1700
+ # name.
2089
1701
  # Corresponds to the JSON property `givenName`
2090
1702
  # @return [String]
2091
1703
  attr_accessor :given_name
@@ -2102,15 +1714,11 @@ module Google
2102
1714
  end
2103
1715
  end
2104
1716
 
2105
- # This is a JSON template for an achievement object.
1717
+ # An achievement object.
2106
1718
  class PlayerAchievement
2107
1719
  include Google::Apis::Core::Hashable
2108
1720
 
2109
1721
  # The state of the achievement.
2110
- # Possible values are:
2111
- # - "HIDDEN" - Achievement is hidden.
2112
- # - "REVEALED" - Achievement is revealed.
2113
- # - "UNLOCKED" - Achievement is unlocked.
2114
1722
  # Corresponds to the JSON property `achievementState`
2115
1723
  # @return [String]
2116
1724
  attr_accessor :achievement_state
@@ -2121,8 +1729,8 @@ module Google
2121
1729
  attr_accessor :current_steps
2122
1730
 
2123
1731
  # Experience points earned for the achievement. This field is absent for
2124
- # achievements that have not yet been unlocked and 0 for achievements that have
2125
- # been unlocked by testers but that are unpublished.
1732
+ # achievements that have not yet been unlocked and 0 for achievements that
1733
+ # have been unlocked by testers but that are unpublished.
2126
1734
  # Corresponds to the JSON property `experiencePoints`
2127
1735
  # @return [Fixnum]
2128
1736
  attr_accessor :experience_points
@@ -2138,7 +1746,7 @@ module Google
2138
1746
  attr_accessor :id
2139
1747
 
2140
1748
  # Uniquely identifies the type of this resource. Value is always the fixed
2141
- # string games#playerAchievement.
1749
+ # string `games#playerAchievement`.
2142
1750
  # Corresponds to the JSON property `kind`
2143
1751
  # @return [String]
2144
1752
  attr_accessor :kind
@@ -2164,7 +1772,7 @@ module Google
2164
1772
  end
2165
1773
  end
2166
1774
 
2167
- # This is a JSON template for a list of achievement objects.
1775
+ # A list of achievement objects.
2168
1776
  class ListPlayerAchievementResponse
2169
1777
  include Google::Apis::Core::Hashable
2170
1778
 
@@ -2174,7 +1782,7 @@ module Google
2174
1782
  attr_accessor :items
2175
1783
 
2176
1784
  # Uniquely identifies the type of this resource. Value is always the fixed
2177
- # string games#playerAchievementListResponse.
1785
+ # string `games#playerAchievementListResponse`.
2178
1786
  # Corresponds to the JSON property `kind`
2179
1787
  # @return [String]
2180
1788
  attr_accessor :kind
@@ -2196,7 +1804,7 @@ module Google
2196
1804
  end
2197
1805
  end
2198
1806
 
2199
- # This is a JSON template for an event status resource.
1807
+ # An event status resource.
2200
1808
  class PlayerEvent
2201
1809
  include Google::Apis::Core::Hashable
2202
1810
 
@@ -2213,7 +1821,7 @@ module Google
2213
1821
  attr_accessor :formatted_num_events
2214
1822
 
2215
1823
  # Uniquely identifies the type of this resource. Value is always the fixed
2216
- # string games#playerEvent.
1824
+ # string `games#playerEvent`.
2217
1825
  # Corresponds to the JSON property `kind`
2218
1826
  # @return [String]
2219
1827
  attr_accessor :kind
@@ -2242,7 +1850,7 @@ module Google
2242
1850
  end
2243
1851
  end
2244
1852
 
2245
- # This is a JSON template for a ListByPlayer response.
1853
+ # A ListByPlayer response.
2246
1854
  class ListPlayerEventResponse
2247
1855
  include Google::Apis::Core::Hashable
2248
1856
 
@@ -2252,7 +1860,7 @@ module Google
2252
1860
  attr_accessor :items
2253
1861
 
2254
1862
  # Uniquely identifies the type of this resource. Value is always the fixed
2255
- # string games#playerEventListResponse.
1863
+ # string `games#playerEventListResponse`.
2256
1864
  # Corresponds to the JSON property `kind`
2257
1865
  # @return [String]
2258
1866
  attr_accessor :kind
@@ -2274,7 +1882,7 @@ module Google
2274
1882
  end
2275
1883
  end
2276
1884
 
2277
- # This is a JSON template for 1P/3P metadata about the player's experience.
1885
+ # 1P/3P metadata about the player's experience.
2278
1886
  class PlayerExperienceInfo
2279
1887
  include Google::Apis::Core::Hashable
2280
1888
 
@@ -2283,23 +1891,24 @@ module Google
2283
1891
  # @return [Fixnum]
2284
1892
  attr_accessor :current_experience_points
2285
1893
 
2286
- # This is a JSON template for 1P/3P metadata about a user's level.
1894
+ # 1P/3P metadata about a user's level.
2287
1895
  # Corresponds to the JSON property `currentLevel`
2288
1896
  # @return [Google::Apis::GamesV1::PlayerLevel]
2289
1897
  attr_accessor :current_level
2290
1898
 
2291
1899
  # Uniquely identifies the type of this resource. Value is always the fixed
2292
- # string games#playerExperienceInfo.
1900
+ # string `games#playerExperienceInfo`.
2293
1901
  # Corresponds to the JSON property `kind`
2294
1902
  # @return [String]
2295
1903
  attr_accessor :kind
2296
1904
 
2297
- # The timestamp when the player was leveled up, in millis since Unix epoch UTC.
1905
+ # The timestamp when the player was leveled up, in millis since Unix epoch
1906
+ # UTC.
2298
1907
  # Corresponds to the JSON property `lastLevelUpTimestampMillis`
2299
1908
  # @return [Fixnum]
2300
1909
  attr_accessor :last_level_up_timestamp_millis
2301
1910
 
2302
- # This is a JSON template for 1P/3P metadata about a user's level.
1911
+ # 1P/3P metadata about a user's level.
2303
1912
  # Corresponds to the JSON property `nextLevel`
2304
1913
  # @return [Google::Apis::GamesV1::PlayerLevel]
2305
1914
  attr_accessor :next_level
@@ -2318,12 +1927,12 @@ module Google
2318
1927
  end
2319
1928
  end
2320
1929
 
2321
- # This is a JSON template for a player leaderboard score object.
1930
+ # A player leaderboard score object.
2322
1931
  class PlayerLeaderboardScore
2323
1932
  include Google::Apis::Core::Hashable
2324
1933
 
2325
1934
  # Uniquely identifies the type of this resource. Value is always the fixed
2326
- # string games#playerLeaderboardScore.
1935
+ # string `games#playerLeaderboardScore`.
2327
1936
  # Corresponds to the JSON property `kind`
2328
1937
  # @return [String]
2329
1938
  attr_accessor :kind
@@ -2333,7 +1942,7 @@ module Google
2333
1942
  # @return [String]
2334
1943
  attr_accessor :leaderboard_id
2335
1944
 
2336
- # This is a JSON template for a score rank in a leaderboard.
1945
+ # A score rank in a leaderboard.
2337
1946
  # Corresponds to the JSON property `publicRank`
2338
1947
  # @return [Google::Apis::GamesV1::LeaderboardScoreRank]
2339
1948
  attr_accessor :public_rank
@@ -2343,8 +1952,8 @@ module Google
2343
1952
  # @return [String]
2344
1953
  attr_accessor :score_string
2345
1954
 
2346
- # Additional information about the score. Values must contain no more than 64
2347
- # URI-safe characters as defined by section 2.3 of RFC 3986.
1955
+ # Additional information about the score. Values must contain no more than
1956
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2348
1957
  # Corresponds to the JSON property `scoreTag`
2349
1958
  # @return [String]
2350
1959
  attr_accessor :score_tag
@@ -2354,16 +1963,12 @@ module Google
2354
1963
  # @return [Fixnum]
2355
1964
  attr_accessor :score_value
2356
1965
 
2357
- # This is a JSON template for a score rank in a leaderboard.
1966
+ # A score rank in a leaderboard.
2358
1967
  # Corresponds to the JSON property `socialRank`
2359
1968
  # @return [Google::Apis::GamesV1::LeaderboardScoreRank]
2360
1969
  attr_accessor :social_rank
2361
1970
 
2362
1971
  # The time span of this score.
2363
- # Possible values are:
2364
- # - "ALL_TIME" - The score is an all-time score.
2365
- # - "WEEKLY" - The score is a weekly score.
2366
- # - "DAILY" - The score is a daily score.
2367
1972
  # Corresponds to the JSON property `timeSpan`
2368
1973
  # @return [String]
2369
1974
  attr_accessor :time_span
@@ -2392,7 +1997,7 @@ module Google
2392
1997
  end
2393
1998
  end
2394
1999
 
2395
- # This is a JSON template for a list of player leaderboard scores.
2000
+ # A list of player leaderboard scores.
2396
2001
  class ListPlayerLeaderboardScoreResponse
2397
2002
  include Google::Apis::Core::Hashable
2398
2003
 
@@ -2402,7 +2007,7 @@ module Google
2402
2007
  attr_accessor :items
2403
2008
 
2404
2009
  # Uniquely identifies the type of this resource. Value is always the fixed
2405
- # string games#playerLeaderboardScoreListResponse.
2010
+ # string `games#playerLeaderboardScoreListResponse`.
2406
2011
  # Corresponds to the JSON property `kind`
2407
2012
  # @return [String]
2408
2013
  attr_accessor :kind
@@ -2412,7 +2017,7 @@ module Google
2412
2017
  # @return [String]
2413
2018
  attr_accessor :next_page_token
2414
2019
 
2415
- # This is a JSON template for a Player resource.
2020
+ # A Player resource.
2416
2021
  # Corresponds to the JSON property `player`
2417
2022
  # @return [Google::Apis::GamesV1::Player]
2418
2023
  attr_accessor :player
@@ -2430,12 +2035,12 @@ module Google
2430
2035
  end
2431
2036
  end
2432
2037
 
2433
- # This is a JSON template for 1P/3P metadata about a user's level.
2038
+ # 1P/3P metadata about a user's level.
2434
2039
  class PlayerLevel
2435
2040
  include Google::Apis::Core::Hashable
2436
2041
 
2437
2042
  # Uniquely identifies the type of this resource. Value is always the fixed
2438
- # string games#playerLevel.
2043
+ # string `games#playerLevel`.
2439
2044
  # Corresponds to the JSON property `kind`
2440
2045
  # @return [String]
2441
2046
  attr_accessor :kind
@@ -2468,7 +2073,7 @@ module Google
2468
2073
  end
2469
2074
  end
2470
2075
 
2471
- # This is a JSON template for a third party player list response.
2076
+ # A third party player list response.
2472
2077
  class ListPlayerResponse
2473
2078
  include Google::Apis::Core::Hashable
2474
2079
 
@@ -2478,7 +2083,7 @@ module Google
2478
2083
  attr_accessor :items
2479
2084
 
2480
2085
  # Uniquely identifies the type of this resource. Value is always the fixed
2481
- # string games#playerListResponse.
2086
+ # string `games#playerListResponse`.
2482
2087
  # Corresponds to the JSON property `kind`
2483
2088
  # @return [String]
2484
2089
  attr_accessor :kind
@@ -2500,7 +2105,7 @@ module Google
2500
2105
  end
2501
2106
  end
2502
2107
 
2503
- # This is a JSON template for a player score.
2108
+ # A player score.
2504
2109
  class PlayerScore
2505
2110
  include Google::Apis::Core::Hashable
2506
2111
 
@@ -2510,7 +2115,7 @@ module Google
2510
2115
  attr_accessor :formatted_score
2511
2116
 
2512
2117
  # Uniquely identifies the type of this resource. Value is always the fixed
2513
- # string games#playerScore.
2118
+ # string `games#playerScore`.
2514
2119
  # Corresponds to the JSON property `kind`
2515
2120
  # @return [String]
2516
2121
  attr_accessor :kind
@@ -2520,17 +2125,13 @@ module Google
2520
2125
  # @return [Fixnum]
2521
2126
  attr_accessor :score
2522
2127
 
2523
- # Additional information about this score. Values will contain no more than 64
2524
- # URI-safe characters as defined by section 2.3 of RFC 3986.
2128
+ # Additional information about this score. Values will contain no more than
2129
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2525
2130
  # Corresponds to the JSON property `scoreTag`
2526
2131
  # @return [String]
2527
2132
  attr_accessor :score_tag
2528
2133
 
2529
2134
  # The time span for this player score.
2530
- # Possible values are:
2531
- # - "ALL_TIME" - The score is an all-time score.
2532
- # - "WEEKLY" - The score is a weekly score.
2533
- # - "DAILY" - The score is a daily score.
2534
2135
  # Corresponds to the JSON property `timeSpan`
2535
2136
  # @return [String]
2536
2137
  attr_accessor :time_span
@@ -2549,12 +2150,12 @@ module Google
2549
2150
  end
2550
2151
  end
2551
2152
 
2552
- # This is a JSON template for a list of score submission statuses.
2153
+ # A list of score submission statuses.
2553
2154
  class ListPlayerScoreResponse
2554
2155
  include Google::Apis::Core::Hashable
2555
2156
 
2556
2157
  # Uniquely identifies the type of this resource. Value is always the fixed
2557
- # string games#playerScoreListResponse.
2158
+ # string `games#playerScoreListResponse`.
2558
2159
  # Corresponds to the JSON property `kind`
2559
2160
  # @return [String]
2560
2161
  attr_accessor :kind
@@ -2575,16 +2176,12 @@ module Google
2575
2176
  end
2576
2177
  end
2577
2178
 
2578
- # This is a JSON template for a list of leaderboard entry resources.
2179
+ # A list of leaderboard entry resources.
2579
2180
  class PlayerScoreResponse
2580
2181
  include Google::Apis::Core::Hashable
2581
2182
 
2582
- # The time spans where the submitted score is better than the existing score for
2583
- # that time span.
2584
- # Possible values are:
2585
- # - "ALL_TIME" - The score is an all-time score.
2586
- # - "WEEKLY" - The score is a weekly score.
2587
- # - "DAILY" - The score is a daily score.
2183
+ # The time spans where the submitted score is better than the existing score
2184
+ # for that time span.
2588
2185
  # Corresponds to the JSON property `beatenScoreTimeSpans`
2589
2186
  # @return [Array<String>]
2590
2187
  attr_accessor :beaten_score_time_spans
@@ -2595,7 +2192,7 @@ module Google
2595
2192
  attr_accessor :formatted_score
2596
2193
 
2597
2194
  # Uniquely identifies the type of this resource. Value is always the fixed
2598
- # string games#playerScoreResponse.
2195
+ # string `games#playerScoreResponse`.
2599
2196
  # Corresponds to the JSON property `kind`
2600
2197
  # @return [String]
2601
2198
  attr_accessor :kind
@@ -2605,15 +2202,16 @@ module Google
2605
2202
  # @return [String]
2606
2203
  attr_accessor :leaderboard_id
2607
2204
 
2608
- # Additional information about this score. Values will contain no more than 64
2609
- # URI-safe characters as defined by section 2.3 of RFC 3986.
2205
+ # Additional information about this score. Values will contain no more than
2206
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2610
2207
  # Corresponds to the JSON property `scoreTag`
2611
2208
  # @return [String]
2612
2209
  attr_accessor :score_tag
2613
2210
 
2614
- # The scores in time spans that have not been beaten. As an example, the
2615
- # submitted score may be better than the player's DAILY score, but not better
2616
- # than the player's scores for the WEEKLY or ALL_TIME time spans.
2211
+ # The scores in time spans that have not been beaten. As an example, the
2212
+ # submitted score may be better than the
2213
+ # player's `DAILY` score, but not better than the player's scores
2214
+ # for the `WEEKLY` or `ALL_TIME` time spans.
2617
2215
  # Corresponds to the JSON property `unbeatenScores`
2618
2216
  # @return [Array<Google::Apis::GamesV1::PlayerScore>]
2619
2217
  attr_accessor :unbeaten_scores
@@ -2633,12 +2231,12 @@ module Google
2633
2231
  end
2634
2232
  end
2635
2233
 
2636
- # This is a JSON template for a list of score submission requests
2234
+ # A list of score submission requests.
2637
2235
  class PlayerScoreSubmissionList
2638
2236
  include Google::Apis::Core::Hashable
2639
2237
 
2640
2238
  # Uniquely identifies the type of this resource. Value is always the fixed
2641
- # string games#playerScoreSubmissionList.
2239
+ # string `games#playerScoreSubmissionList`.
2642
2240
  # Corresponds to the JSON property `kind`
2643
2241
  # @return [String]
2644
2242
  attr_accessor :kind
@@ -2659,22 +2257,22 @@ module Google
2659
2257
  end
2660
2258
  end
2661
2259
 
2662
- # This is a JSON template for profile settings
2260
+ # Profile settings
2663
2261
  class ProfileSettings
2664
2262
  include Google::Apis::Core::Hashable
2665
2263
 
2666
- # Whether the player's friends list is visible to the game.
2264
+ #
2667
2265
  # Corresponds to the JSON property `friendsListVisibility`
2668
2266
  # @return [String]
2669
2267
  attr_accessor :friends_list_visibility
2670
2268
 
2671
2269
  # Uniquely identifies the type of this resource. Value is always the fixed
2672
- # string games#profileSettings.
2270
+ # string `games#profileSettings`.
2673
2271
  # Corresponds to the JSON property `kind`
2674
2272
  # @return [String]
2675
2273
  attr_accessor :kind
2676
2274
 
2677
- #
2275
+ # Whether the player's profile is visible to the currently signed in player.
2678
2276
  # Corresponds to the JSON property `profileVisible`
2679
2277
  # @return [Boolean]
2680
2278
  attr_accessor :profile_visible
@@ -2692,34 +2290,26 @@ module Google
2692
2290
  end
2693
2291
  end
2694
2292
 
2695
- # This is a JSON template for a push token resource.
2696
- class PushToken
2293
+ # A third party checking a revision response.
2294
+ class CheckRevisionResponse
2697
2295
  include Google::Apis::Core::Hashable
2698
2296
 
2699
- # The revision of the client SDK used by your application, in the same format
2700
- # that's used by revisions.check. Used to send backward compatible messages.
2701
- # Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:
2702
- #
2703
- # - IOS - Push token is for iOS
2704
- # Corresponds to the JSON property `clientRevision`
2297
+ # The version of the API this client revision should use when calling API
2298
+ # methods.
2299
+ # Corresponds to the JSON property `apiVersion`
2705
2300
  # @return [String]
2706
- attr_accessor :client_revision
2707
-
2708
- # This is a JSON template for a push token ID resource.
2709
- # Corresponds to the JSON property `id`
2710
- # @return [Google::Apis::GamesV1::PushTokenId]
2711
- attr_accessor :id
2301
+ attr_accessor :api_version
2712
2302
 
2713
2303
  # Uniquely identifies the type of this resource. Value is always the fixed
2714
- # string games#pushToken.
2304
+ # string `games#revisionCheckResponse`.
2715
2305
  # Corresponds to the JSON property `kind`
2716
2306
  # @return [String]
2717
2307
  attr_accessor :kind
2718
2308
 
2719
- # The preferred language for notifications that are sent using this token.
2720
- # Corresponds to the JSON property `language`
2309
+ # The result of the revision check.
2310
+ # Corresponds to the JSON property `revisionStatus`
2721
2311
  # @return [String]
2722
- attr_accessor :language
2312
+ attr_accessor :revision_status
2723
2313
 
2724
2314
  def initialize(**args)
2725
2315
  update!(**args)
@@ -2727,92 +2317,43 @@ module Google
2727
2317
 
2728
2318
  # Update properties of this object
2729
2319
  def update!(**args)
2730
- @client_revision = args[:client_revision] if args.key?(:client_revision)
2731
- @id = args[:id] if args.key?(:id)
2320
+ @api_version = args[:api_version] if args.key?(:api_version)
2732
2321
  @kind = args[:kind] if args.key?(:kind)
2733
- @language = args[:language] if args.key?(:language)
2322
+ @revision_status = args[:revision_status] if args.key?(:revision_status)
2734
2323
  end
2735
2324
  end
2736
2325
 
2737
- # This is a JSON template for a push token ID resource.
2738
- class PushTokenId
2326
+ # A request to submit a score to leaderboards.
2327
+ class ScoreSubmission
2739
2328
  include Google::Apis::Core::Hashable
2740
2329
 
2741
- # A push token ID for iOS devices.
2742
- # Corresponds to the JSON property `ios`
2743
- # @return [Google::Apis::GamesV1::PushTokenId::Ios]
2744
- attr_accessor :ios
2745
-
2746
2330
  # Uniquely identifies the type of this resource. Value is always the fixed
2747
- # string games#pushTokenId.
2331
+ # string `games#scoreSubmission`.
2748
2332
  # Corresponds to the JSON property `kind`
2749
2333
  # @return [String]
2750
2334
  attr_accessor :kind
2751
2335
 
2752
- def initialize(**args)
2753
- update!(**args)
2754
- end
2755
-
2756
- # Update properties of this object
2757
- def update!(**args)
2758
- @ios = args[:ios] if args.key?(:ios)
2759
- @kind = args[:kind] if args.key?(:kind)
2760
- end
2761
-
2762
- # A push token ID for iOS devices.
2763
- class Ios
2764
- include Google::Apis::Core::Hashable
2765
-
2766
- # Device token supplied by an iOS system call to register for remote
2767
- # notifications. Encode this field as web-safe base64.
2768
- # Corresponds to the JSON property `apns_device_token`
2769
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
2770
- # @return [String]
2771
- attr_accessor :apns_device_token
2772
-
2773
- # Indicates whether this token should be used for the production or sandbox APNS
2774
- # server.
2775
- # Corresponds to the JSON property `apns_environment`
2776
- # @return [String]
2777
- attr_accessor :apns_environment
2778
-
2779
- def initialize(**args)
2780
- update!(**args)
2781
- end
2782
-
2783
- # Update properties of this object
2784
- def update!(**args)
2785
- @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token)
2786
- @apns_environment = args[:apns_environment] if args.key?(:apns_environment)
2787
- end
2788
- end
2789
- end
2790
-
2791
- # This is a JSON template for the result of checking a revision.
2792
- class CheckRevisionResponse
2793
- include Google::Apis::Core::Hashable
2794
-
2795
- # The version of the API this client revision should use when calling API
2796
- # methods.
2797
- # Corresponds to the JSON property `apiVersion`
2336
+ # The leaderboard this score is being submitted to.
2337
+ # Corresponds to the JSON property `leaderboardId`
2798
2338
  # @return [String]
2799
- attr_accessor :api_version
2339
+ attr_accessor :leaderboard_id
2800
2340
 
2801
- # Uniquely identifies the type of this resource. Value is always the fixed
2802
- # string games#revisionCheckResponse.
2803
- # Corresponds to the JSON property `kind`
2341
+ # The new score being submitted.
2342
+ # Corresponds to the JSON property `score`
2343
+ # @return [Fixnum]
2344
+ attr_accessor :score
2345
+
2346
+ # Additional information about this score. Values will contain no more than
2347
+ # 64 URI-safe characters as defined by section 2.3 of RFC 3986.
2348
+ # Corresponds to the JSON property `scoreTag`
2804
2349
  # @return [String]
2805
- attr_accessor :kind
2350
+ attr_accessor :score_tag
2806
2351
 
2807
- # The result of the revision check.
2808
- # Possible values are:
2809
- # - "OK" - The revision being used is current.
2810
- # - "DEPRECATED" - There is currently a newer version available, but the
2811
- # revision being used still works.
2812
- # - "INVALID" - The revision being used is not supported in any released version.
2813
- # Corresponds to the JSON property `revisionStatus`
2352
+ # Signature Values will contain URI-safe characters as defined by section 2.3
2353
+ # of RFC 3986.
2354
+ # Corresponds to the JSON property `signature`
2814
2355
  # @return [String]
2815
- attr_accessor :revision_status
2356
+ attr_accessor :signature
2816
2357
 
2817
2358
  def initialize(**args)
2818
2359
  update!(**args)
@@ -2820,303 +2361,77 @@ module Google
2820
2361
 
2821
2362
  # Update properties of this object
2822
2363
  def update!(**args)
2823
- @api_version = args[:api_version] if args.key?(:api_version)
2824
2364
  @kind = args[:kind] if args.key?(:kind)
2825
- @revision_status = args[:revision_status] if args.key?(:revision_status)
2365
+ @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
2366
+ @score = args[:score] if args.key?(:score)
2367
+ @score_tag = args[:score_tag] if args.key?(:score_tag)
2368
+ @signature = args[:signature] if args.key?(:signature)
2826
2369
  end
2827
2370
  end
2828
2371
 
2829
- # This is a JSON template for a room resource object.
2830
- class Room
2372
+ # An snapshot object.
2373
+ class Snapshot
2831
2374
  include Google::Apis::Core::Hashable
2832
2375
 
2833
- # The ID of the application being played.
2834
- # Corresponds to the JSON property `applicationId`
2835
- # @return [String]
2836
- attr_accessor :application_id
2837
-
2838
- # This is a JSON template for a room auto-match criteria object.
2839
- # Corresponds to the JSON property `autoMatchingCriteria`
2840
- # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria]
2841
- attr_accessor :auto_matching_criteria
2842
-
2843
- # This is a JSON template for status of room automatching that is in progress.
2844
- # Corresponds to the JSON property `autoMatchingStatus`
2845
- # @return [Google::Apis::GamesV1::RoomAutoMatchStatus]
2846
- attr_accessor :auto_matching_status
2847
-
2848
- # This is a JSON template for room modification metadata.
2849
- # Corresponds to the JSON property `creationDetails`
2850
- # @return [Google::Apis::GamesV1::RoomModification]
2851
- attr_accessor :creation_details
2376
+ # An image of a snapshot.
2377
+ # Corresponds to the JSON property `coverImage`
2378
+ # @return [Google::Apis::GamesV1::SnapshotImage]
2379
+ attr_accessor :cover_image
2852
2380
 
2853
- # This short description is generated by our servers and worded relative to the
2854
- # player requesting the room. It is intended to be displayed when the room is
2855
- # shown in a list (that is, an invitation to a room.)
2381
+ # The description of this snapshot.
2856
2382
  # Corresponds to the JSON property `description`
2857
2383
  # @return [String]
2858
2384
  attr_accessor :description
2859
2385
 
2860
- # The ID of the participant that invited the user to the room. Not set if the
2861
- # user was not invited to the room.
2862
- # Corresponds to the JSON property `inviterId`
2863
- # @return [String]
2864
- attr_accessor :inviter_id
2865
-
2866
- # Uniquely identifies the type of this resource. Value is always the fixed
2867
- # string games#room.
2868
- # Corresponds to the JSON property `kind`
2869
- # @return [String]
2870
- attr_accessor :kind
2871
-
2872
- # This is a JSON template for room modification metadata.
2873
- # Corresponds to the JSON property `lastUpdateDetails`
2874
- # @return [Google::Apis::GamesV1::RoomModification]
2875
- attr_accessor :last_update_details
2876
-
2877
- # The participants involved in the room, along with their statuses. Includes
2878
- # participants who have left or declined invitations.
2879
- # Corresponds to the JSON property `participants`
2880
- # @return [Array<Google::Apis::GamesV1::RoomParticipant>]
2881
- attr_accessor :participants
2882
-
2883
- # Globally unique ID for a room.
2884
- # Corresponds to the JSON property `roomId`
2386
+ # The ID of the file underlying this snapshot in the Drive API. Only present
2387
+ # if the snapshot is a view on a Drive file and the file is owned by the
2388
+ # caller.
2389
+ # Corresponds to the JSON property `driveId`
2885
2390
  # @return [String]
2886
- attr_accessor :room_id
2391
+ attr_accessor :drive_id
2887
2392
 
2888
- # The version of the room status: an increasing counter, used by the client to
2889
- # ignore out-of-order updates to room status.
2890
- # Corresponds to the JSON property `roomStatusVersion`
2891
- # @return [Fixnum]
2892
- attr_accessor :room_status_version
2893
-
2894
- # The status of the room.
2895
- # Possible values are:
2896
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
2897
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
2898
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (
2899
- # either before or after auto-matching).
2900
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
2901
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned
2902
- # in sync calls when a player joins a room (as a tombstone), or for rooms where
2903
- # all joined participants have left.
2904
- # Corresponds to the JSON property `status`
2905
- # @return [String]
2906
- attr_accessor :status
2907
-
2908
- # The variant / mode of the application being played; can be any integer value,
2909
- # or left blank.
2910
- # Corresponds to the JSON property `variant`
2393
+ # The duration associated with this snapshot, in millis.
2394
+ # Corresponds to the JSON property `durationMillis`
2911
2395
  # @return [Fixnum]
2912
- attr_accessor :variant
2913
-
2914
- def initialize(**args)
2915
- update!(**args)
2916
- end
2917
-
2918
- # Update properties of this object
2919
- def update!(**args)
2920
- @application_id = args[:application_id] if args.key?(:application_id)
2921
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
2922
- @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
2923
- @creation_details = args[:creation_details] if args.key?(:creation_details)
2924
- @description = args[:description] if args.key?(:description)
2925
- @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
2926
- @kind = args[:kind] if args.key?(:kind)
2927
- @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
2928
- @participants = args[:participants] if args.key?(:participants)
2929
- @room_id = args[:room_id] if args.key?(:room_id)
2930
- @room_status_version = args[:room_status_version] if args.key?(:room_status_version)
2931
- @status = args[:status] if args.key?(:status)
2932
- @variant = args[:variant] if args.key?(:variant)
2933
- end
2934
- end
2935
-
2936
- # This is a JSON template for status of room automatching that is in progress.
2937
- class RoomAutoMatchStatus
2938
- include Google::Apis::Core::Hashable
2396
+ attr_accessor :duration_millis
2939
2397
 
2940
- # Uniquely identifies the type of this resource. Value is always the fixed
2941
- # string games#roomAutoMatchStatus.
2942
- # Corresponds to the JSON property `kind`
2398
+ # The ID of the snapshot.
2399
+ # Corresponds to the JSON property `id`
2943
2400
  # @return [String]
2944
- attr_accessor :kind
2945
-
2946
- # An estimate for the amount of time (in seconds) that auto-matching is expected
2947
- # to take to complete.
2948
- # Corresponds to the JSON property `waitEstimateSeconds`
2949
- # @return [Fixnum]
2950
- attr_accessor :wait_estimate_seconds
2951
-
2952
- def initialize(**args)
2953
- update!(**args)
2954
- end
2955
-
2956
- # Update properties of this object
2957
- def update!(**args)
2958
- @kind = args[:kind] if args.key?(:kind)
2959
- @wait_estimate_seconds = args[:wait_estimate_seconds] if args.key?(:wait_estimate_seconds)
2960
- end
2961
- end
2962
-
2963
- # This is a JSON template for a room auto-match criteria object.
2964
- class RoomAutoMatchingCriteria
2965
- include Google::Apis::Core::Hashable
2966
-
2967
- # A bitmask indicating when auto-matches are valid. When ANDed with other
2968
- # exclusive bitmasks, the result must be zero. Can be used to support exclusive
2969
- # roles within a game.
2970
- # Corresponds to the JSON property `exclusiveBitmask`
2971
- # @return [Fixnum]
2972
- attr_accessor :exclusive_bitmask
2401
+ attr_accessor :id
2973
2402
 
2974
2403
  # Uniquely identifies the type of this resource. Value is always the fixed
2975
- # string games#roomAutoMatchingCriteria.
2404
+ # string `games#snapshot`.
2976
2405
  # Corresponds to the JSON property `kind`
2977
2406
  # @return [String]
2978
2407
  attr_accessor :kind
2979
2408
 
2980
- # The maximum number of players that should be added to the room by auto-
2981
- # matching.
2982
- # Corresponds to the JSON property `maxAutoMatchingPlayers`
2409
+ # The timestamp (in millis since Unix epoch) of the last modification to this
2410
+ # snapshot.
2411
+ # Corresponds to the JSON property `lastModifiedMillis`
2983
2412
  # @return [Fixnum]
2984
- attr_accessor :max_auto_matching_players
2413
+ attr_accessor :last_modified_millis
2985
2414
 
2986
- # The minimum number of players that should be added to the room by auto-
2987
- # matching.
2988
- # Corresponds to the JSON property `minAutoMatchingPlayers`
2415
+ # The progress value (64-bit integer set by developer) associated with this
2416
+ # snapshot.
2417
+ # Corresponds to the JSON property `progressValue`
2989
2418
  # @return [Fixnum]
2990
- attr_accessor :min_auto_matching_players
2991
-
2992
- def initialize(**args)
2993
- update!(**args)
2994
- end
2995
-
2996
- # Update properties of this object
2997
- def update!(**args)
2998
- @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
2999
- @kind = args[:kind] if args.key?(:kind)
3000
- @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
3001
- @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
3002
- end
3003
- end
3004
-
3005
- # This is a JSON template for the client address when setting up a room.
3006
- class RoomClientAddress
3007
- include Google::Apis::Core::Hashable
3008
-
3009
- # Uniquely identifies the type of this resource. Value is always the fixed
3010
- # string games#roomClientAddress.
3011
- # Corresponds to the JSON property `kind`
3012
- # @return [String]
3013
- attr_accessor :kind
2419
+ attr_accessor :progress_value
3014
2420
 
3015
- # The XMPP address of the client on the Google Games XMPP network.
3016
- # Corresponds to the JSON property `xmppAddress`
2421
+ # The title of this snapshot.
2422
+ # Corresponds to the JSON property `title`
3017
2423
  # @return [String]
3018
- attr_accessor :xmpp_address
3019
-
3020
- def initialize(**args)
3021
- update!(**args)
3022
- end
3023
-
3024
- # Update properties of this object
3025
- def update!(**args)
3026
- @kind = args[:kind] if args.key?(:kind)
3027
- @xmpp_address = args[:xmpp_address] if args.key?(:xmpp_address)
3028
- end
3029
- end
3030
-
3031
- # This is a JSON template for a room creation request.
3032
- class CreateRoomRequest
3033
- include Google::Apis::Core::Hashable
3034
-
3035
- # This is a JSON template for a room auto-match criteria object.
3036
- # Corresponds to the JSON property `autoMatchingCriteria`
3037
- # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria]
3038
- attr_accessor :auto_matching_criteria
3039
-
3040
- # The capabilities that this client supports for realtime communication.
3041
- # Corresponds to the JSON property `capabilities`
3042
- # @return [Array<String>]
3043
- attr_accessor :capabilities
3044
-
3045
- # This is a JSON template for the client address when setting up a room.
3046
- # Corresponds to the JSON property `clientAddress`
3047
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3048
- attr_accessor :client_address
3049
-
3050
- # The player IDs to invite to the room.
3051
- # Corresponds to the JSON property `invitedPlayerIds`
3052
- # @return [Array<String>]
3053
- attr_accessor :invited_player_ids
2424
+ attr_accessor :title
3054
2425
 
3055
- # Uniquely identifies the type of this resource. Value is always the fixed
3056
- # string games#roomCreateRequest.
3057
- # Corresponds to the JSON property `kind`
2426
+ # The type of this snapshot.
2427
+ # Corresponds to the JSON property `type`
3058
2428
  # @return [String]
3059
- attr_accessor :kind
3060
-
3061
- # This is a JSON template for network diagnostics reported for a client.
3062
- # Corresponds to the JSON property `networkDiagnostics`
3063
- # @return [Google::Apis::GamesV1::NetworkDiagnostics]
3064
- attr_accessor :network_diagnostics
3065
-
3066
- # A randomly generated numeric ID. This number is used at the server to ensure
3067
- # that the request is handled correctly across retries.
3068
- # Corresponds to the JSON property `requestId`
3069
- # @return [Fixnum]
3070
- attr_accessor :request_id
3071
-
3072
- # The variant / mode of the application to be played. This can be any integer
3073
- # value, or left blank. You should use a small number of variants to keep the
3074
- # auto-matching pool as large as possible.
3075
- # Corresponds to the JSON property `variant`
3076
- # @return [Fixnum]
3077
- attr_accessor :variant
3078
-
3079
- def initialize(**args)
3080
- update!(**args)
3081
- end
3082
-
3083
- # Update properties of this object
3084
- def update!(**args)
3085
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3086
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3087
- @client_address = args[:client_address] if args.key?(:client_address)
3088
- @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
3089
- @kind = args[:kind] if args.key?(:kind)
3090
- @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
3091
- @request_id = args[:request_id] if args.key?(:request_id)
3092
- @variant = args[:variant] if args.key?(:variant)
3093
- end
3094
- end
3095
-
3096
- # This is a JSON template for a join room request.
3097
- class JoinRoomRequest
3098
- include Google::Apis::Core::Hashable
3099
-
3100
- # The capabilities that this client supports for realtime communication.
3101
- # Corresponds to the JSON property `capabilities`
3102
- # @return [Array<String>]
3103
- attr_accessor :capabilities
3104
-
3105
- # This is a JSON template for the client address when setting up a room.
3106
- # Corresponds to the JSON property `clientAddress`
3107
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3108
- attr_accessor :client_address
2429
+ attr_accessor :type
3109
2430
 
3110
- # Uniquely identifies the type of this resource. Value is always the fixed
3111
- # string games#roomJoinRequest.
3112
- # Corresponds to the JSON property `kind`
2431
+ # The unique name provided when the snapshot was created.
2432
+ # Corresponds to the JSON property `uniqueName`
3113
2433
  # @return [String]
3114
- attr_accessor :kind
3115
-
3116
- # This is a JSON template for network diagnostics reported for a client.
3117
- # Corresponds to the JSON property `networkDiagnostics`
3118
- # @return [Google::Apis::GamesV1::NetworkDiagnostics]
3119
- attr_accessor :network_diagnostics
2434
+ attr_accessor :unique_name
3120
2435
 
3121
2436
  def initialize(**args)
3122
2437
  update!(**args)
@@ -3124,125 +2439,50 @@ module Google
3124
2439
 
3125
2440
  # Update properties of this object
3126
2441
  def update!(**args)
3127
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3128
- @client_address = args[:client_address] if args.key?(:client_address)
2442
+ @cover_image = args[:cover_image] if args.key?(:cover_image)
2443
+ @description = args[:description] if args.key?(:description)
2444
+ @drive_id = args[:drive_id] if args.key?(:drive_id)
2445
+ @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
2446
+ @id = args[:id] if args.key?(:id)
3129
2447
  @kind = args[:kind] if args.key?(:kind)
3130
- @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics)
2448
+ @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
2449
+ @progress_value = args[:progress_value] if args.key?(:progress_value)
2450
+ @title = args[:title] if args.key?(:title)
2451
+ @type = args[:type] if args.key?(:type)
2452
+ @unique_name = args[:unique_name] if args.key?(:unique_name)
3131
2453
  end
3132
2454
  end
3133
2455
 
3134
- # This is a JSON template for room leave diagnostics.
3135
- class RoomLeaveDiagnostics
2456
+ # An image of a snapshot.
2457
+ class SnapshotImage
3136
2458
  include Google::Apis::Core::Hashable
3137
2459
 
3138
- # Android network subtype. http://developer.android.com/reference/android/net/
3139
- # NetworkInfo.html#getSubtype()
3140
- # Corresponds to the JSON property `androidNetworkSubtype`
3141
- # @return [Fixnum]
3142
- attr_accessor :android_network_subtype
3143
-
3144
- # Android network type. http://developer.android.com/reference/android/net/
3145
- # NetworkInfo.html#getType()
3146
- # Corresponds to the JSON property `androidNetworkType`
3147
- # @return [Fixnum]
3148
- attr_accessor :android_network_type
3149
-
3150
- # iOS network type as defined in Reachability.h.
3151
- # Corresponds to the JSON property `iosNetworkType`
2460
+ # The height of the image.
2461
+ # Corresponds to the JSON property `height`
3152
2462
  # @return [Fixnum]
3153
- attr_accessor :ios_network_type
2463
+ attr_accessor :height
3154
2464
 
3155
2465
  # Uniquely identifies the type of this resource. Value is always the fixed
3156
- # string games#roomLeaveDiagnostics.
2466
+ # string `games#snapshotImage`.
3157
2467
  # Corresponds to the JSON property `kind`
3158
2468
  # @return [String]
3159
2469
  attr_accessor :kind
3160
2470
 
3161
- # The MCC+MNC code for the client's network connection. On Android: http://
3162
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
3163
- # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/
3164
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html
3165
- # Corresponds to the JSON property `networkOperatorCode`
3166
- # @return [String]
3167
- attr_accessor :network_operator_code
3168
-
3169
- # The name of the carrier of the client's network connection. On Android: http://
3170
- # developer.android.com/reference/android/telephony/TelephonyManager.html#
3171
- # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/
3172
- # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/
3173
- # /apple_ref/occ/instp/CTCarrier/carrierName
3174
- # Corresponds to the JSON property `networkOperatorName`
2471
+ # The MIME type of the image.
2472
+ # Corresponds to the JSON property `mime_type`
3175
2473
  # @return [String]
3176
- attr_accessor :network_operator_name
3177
-
3178
- # Diagnostics about all peer sessions.
3179
- # Corresponds to the JSON property `peerSession`
3180
- # @return [Array<Google::Apis::GamesV1::PeerSessionDiagnostics>]
3181
- attr_accessor :peer_session
3182
-
3183
- # Whether or not sockets were used.
3184
- # Corresponds to the JSON property `socketsUsed`
3185
- # @return [Boolean]
3186
- attr_accessor :sockets_used
3187
- alias_method :sockets_used?, :sockets_used
3188
-
3189
- def initialize(**args)
3190
- update!(**args)
3191
- end
3192
-
3193
- # Update properties of this object
3194
- def update!(**args)
3195
- @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype)
3196
- @android_network_type = args[:android_network_type] if args.key?(:android_network_type)
3197
- @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type)
3198
- @kind = args[:kind] if args.key?(:kind)
3199
- @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code)
3200
- @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
3201
- @peer_session = args[:peer_session] if args.key?(:peer_session)
3202
- @sockets_used = args[:sockets_used] if args.key?(:sockets_used)
3203
- end
3204
- end
3205
-
3206
- # This is a JSON template for a leave room request.
3207
- class LeaveRoomRequest
3208
- include Google::Apis::Core::Hashable
2474
+ attr_accessor :mime_type
3209
2475
 
3210
- # Uniquely identifies the type of this resource. Value is always the fixed
3211
- # string games#roomLeaveRequest.
3212
- # Corresponds to the JSON property `kind`
2476
+ # The URL of the image. This URL may be invalidated at any time and should
2477
+ # not be cached.
2478
+ # Corresponds to the JSON property `url`
3213
2479
  # @return [String]
3214
- attr_accessor :kind
2480
+ attr_accessor :url
3215
2481
 
3216
- # This is a JSON template for room leave diagnostics.
3217
- # Corresponds to the JSON property `leaveDiagnostics`
3218
- # @return [Google::Apis::GamesV1::RoomLeaveDiagnostics]
3219
- attr_accessor :leave_diagnostics
3220
-
3221
- # Reason for leaving the match.
3222
- # Possible values are:
3223
- # - "PLAYER_LEFT" - The player chose to leave the room..
3224
- # - "GAME_LEFT" - The game chose to remove the player from the room.
3225
- # - "REALTIME_ABANDONED" - The player switched to another application and
3226
- # abandoned the room.
3227
- # - "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a
3228
- # connection to other peer(s).
3229
- # - "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate
3230
- # with the server.
3231
- # - "REALTIME_SERVER_ERROR" - The client received an error response when it
3232
- # tried to communicate with the server.
3233
- # - "REALTIME_TIMEOUT" - The client timed out while waiting for a room.
3234
- # - "REALTIME_CLIENT_DISCONNECTING" - The client disconnects without first
3235
- # calling Leave.
3236
- # - "REALTIME_SIGN_OUT" - The user signed out of G+ while in the room.
3237
- # - "REALTIME_GAME_CRASHED" - The game crashed.
3238
- # - "REALTIME_ROOM_SERVICE_CRASHED" - RoomAndroidService crashed.
3239
- # - "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION" - Another client is trying to
3240
- # enter a room.
3241
- # - "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is trying to enter a
3242
- # new room.
3243
- # Corresponds to the JSON property `reason`
3244
- # @return [String]
3245
- attr_accessor :reason
2482
+ # The width of the image.
2483
+ # Corresponds to the JSON property `width`
2484
+ # @return [Fixnum]
2485
+ attr_accessor :width
3246
2486
 
3247
2487
  def initialize(**args)
3248
2488
  update!(**args)
@@ -3250,28 +2490,31 @@ module Google
3250
2490
 
3251
2491
  # Update properties of this object
3252
2492
  def update!(**args)
2493
+ @height = args[:height] if args.key?(:height)
3253
2494
  @kind = args[:kind] if args.key?(:kind)
3254
- @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics)
3255
- @reason = args[:reason] if args.key?(:reason)
2495
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2496
+ @url = args[:url] if args.key?(:url)
2497
+ @width = args[:width] if args.key?(:width)
3256
2498
  end
3257
2499
  end
3258
2500
 
3259
- # This is a JSON template for a list of rooms.
3260
- class RoomList
2501
+ # A third party list snapshots response.
2502
+ class ListSnapshotResponse
3261
2503
  include Google::Apis::Core::Hashable
3262
2504
 
3263
- # The rooms.
2505
+ # The snapshots.
3264
2506
  # Corresponds to the JSON property `items`
3265
- # @return [Array<Google::Apis::GamesV1::Room>]
2507
+ # @return [Array<Google::Apis::GamesV1::Snapshot>]
3266
2508
  attr_accessor :items
3267
2509
 
3268
2510
  # Uniquely identifies the type of this resource. Value is always the fixed
3269
- # string games#roomList.
2511
+ # string `games#snapshotListResponse`.
3270
2512
  # Corresponds to the JSON property `kind`
3271
2513
  # @return [String]
3272
2514
  attr_accessor :kind
3273
2515
 
3274
- # The pagination token for the next page of results.
2516
+ # Token corresponding to the next page of results. If there are no more
2517
+ # results, the token is omitted.
3275
2518
  # Corresponds to the JSON property `nextPageToken`
3276
2519
  # @return [String]
3277
2520
  attr_accessor :next_page_token
@@ -3288,1090 +2531,83 @@ module Google
3288
2531
  end
3289
2532
  end
3290
2533
 
3291
- # This is a JSON template for room modification metadata.
3292
- class RoomModification
2534
+ # A third party stats resource.
2535
+ class StatsResponse
3293
2536
  include Google::Apis::Core::Hashable
3294
2537
 
3295
- # Uniquely identifies the type of this resource. Value is always the fixed
3296
- # string games#roomModification.
3297
- # Corresponds to the JSON property `kind`
3298
- # @return [String]
3299
- attr_accessor :kind
3300
-
3301
- # The timestamp at which they modified the room, in milliseconds since the epoch
3302
- # in UTC.
3303
- # Corresponds to the JSON property `modifiedTimestampMillis`
3304
- # @return [Fixnum]
3305
- attr_accessor :modified_timestamp_millis
3306
-
3307
- # The ID of the participant that modified the room.
3308
- # Corresponds to the JSON property `participantId`
3309
- # @return [String]
3310
- attr_accessor :participant_id
3311
-
3312
- def initialize(**args)
3313
- update!(**args)
3314
- end
3315
-
3316
- # Update properties of this object
3317
- def update!(**args)
3318
- @kind = args[:kind] if args.key?(:kind)
3319
- @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
3320
- @participant_id = args[:participant_id] if args.key?(:participant_id)
3321
- end
3322
- end
2538
+ # Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not
2539
+ # populated if there is not enough information.
2540
+ # Corresponds to the JSON property `avg_session_length_minutes`
2541
+ # @return [Float]
2542
+ attr_accessor :avg_session_length_minutes
3323
2543
 
3324
- # This is a JSON template for an update on the status of a peer in a room.
3325
- class RoomP2PStatus
3326
- include Google::Apis::Core::Hashable
2544
+ # The probability of the player not returning to play the game in the next
2545
+ # day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough
2546
+ # information.
2547
+ # Corresponds to the JSON property `churn_probability`
2548
+ # @return [Float]
2549
+ attr_accessor :churn_probability
3327
2550
 
3328
- # The amount of time in milliseconds it took to establish connections with this
3329
- # peer.
3330
- # Corresponds to the JSON property `connectionSetupLatencyMillis`
2551
+ # Number of days since the player last played this game. E.g., 0, 1, 5, 10,
2552
+ # ... . Not populated if there is not enough information.
2553
+ # Corresponds to the JSON property `days_since_last_played`
3331
2554
  # @return [Fixnum]
3332
- attr_accessor :connection_setup_latency_millis
3333
-
3334
- # The error code in event of a failure.
3335
- # Possible values are:
3336
- # - "P2P_FAILED" - The client failed to establish a P2P connection with the peer.
3337
- #
3338
- # - "PRESENCE_FAILED" - The client failed to register to receive P2P connections.
3339
- #
3340
- # - "RELAY_SERVER_FAILED" - The client received an error when trying to use the
3341
- # relay server to establish a P2P connection with the peer.
3342
- # Corresponds to the JSON property `error`
3343
- # @return [String]
3344
- attr_accessor :error
2555
+ attr_accessor :days_since_last_played
3345
2556
 
3346
- # More detailed diagnostic message returned in event of a failure.
3347
- # Corresponds to the JSON property `error_reason`
3348
- # @return [String]
3349
- attr_accessor :error_reason
2557
+ # The probability of the player going to spend beyond a threshold amount of
2558
+ # money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
2559
+ # information.
2560
+ # Corresponds to the JSON property `high_spender_probability`
2561
+ # @return [Float]
2562
+ attr_accessor :high_spender_probability
3350
2563
 
3351
2564
  # Uniquely identifies the type of this resource. Value is always the fixed
3352
- # string games#roomP2PStatus.
2565
+ # string `games#statsResponse`.
3353
2566
  # Corresponds to the JSON property `kind`
3354
2567
  # @return [String]
3355
2568
  attr_accessor :kind
3356
2569
 
3357
- # The ID of the participant.
3358
- # Corresponds to the JSON property `participantId`
3359
- # @return [String]
3360
- attr_accessor :participant_id
3361
-
3362
- # The status of the peer in the room.
3363
- # Possible values are:
3364
- # - "CONNECTION_ESTABLISHED" - The client established a P2P connection with the
3365
- # peer.
3366
- # - "CONNECTION_FAILED" - The client failed to establish directed presence with
3367
- # the peer.
3368
- # Corresponds to the JSON property `status`
3369
- # @return [String]
3370
- attr_accessor :status
3371
-
3372
- # The amount of time in milliseconds it took to send packets back and forth on
3373
- # the unreliable channel with this peer.
3374
- # Corresponds to the JSON property `unreliableRoundtripLatencyMillis`
2570
+ # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5,
2571
+ # 10, ... . Not populated if there is not enough information.
2572
+ # Corresponds to the JSON property `num_purchases`
3375
2573
  # @return [Fixnum]
3376
- attr_accessor :unreliable_roundtrip_latency_millis
3377
-
3378
- def initialize(**args)
3379
- update!(**args)
3380
- end
3381
-
3382
- # Update properties of this object
3383
- def update!(**args)
3384
- @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis)
3385
- @error = args[:error] if args.key?(:error)
3386
- @error_reason = args[:error_reason] if args.key?(:error_reason)
3387
- @kind = args[:kind] if args.key?(:kind)
3388
- @participant_id = args[:participant_id] if args.key?(:participant_id)
3389
- @status = args[:status] if args.key?(:status)
3390
- @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis)
3391
- end
3392
- end
3393
-
3394
- # This is a JSON template for an update on the status of peers in a room.
3395
- class RoomP2PStatuses
3396
- include Google::Apis::Core::Hashable
3397
-
3398
- # Uniquely identifies the type of this resource. Value is always the fixed
3399
- # string games#roomP2PStatuses.
3400
- # Corresponds to the JSON property `kind`
3401
- # @return [String]
3402
- attr_accessor :kind
3403
-
3404
- # The updates for the peers.
3405
- # Corresponds to the JSON property `updates`
3406
- # @return [Array<Google::Apis::GamesV1::RoomP2PStatus>]
3407
- attr_accessor :updates
3408
-
3409
- def initialize(**args)
3410
- update!(**args)
3411
- end
3412
-
3413
- # Update properties of this object
3414
- def update!(**args)
3415
- @kind = args[:kind] if args.key?(:kind)
3416
- @updates = args[:updates] if args.key?(:updates)
3417
- end
3418
- end
2574
+ attr_accessor :num_purchases
3419
2575
 
3420
- # This is a JSON template for a participant in a room.
3421
- class RoomParticipant
3422
- include Google::Apis::Core::Hashable
2576
+ # The approximate number of sessions of the player within the last 28 days,
2577
+ # where a session begins when the player is connected to Play Games Services
2578
+ # and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated
2579
+ # if there is not enough information.
2580
+ # Corresponds to the JSON property `num_sessions`
2581
+ # @return [Fixnum]
2582
+ attr_accessor :num_sessions
3423
2583
 
3424
- # True if this participant was auto-matched with the requesting player.
3425
- # Corresponds to the JSON property `autoMatched`
3426
- # @return [Boolean]
3427
- attr_accessor :auto_matched
3428
- alias_method :auto_matched?, :auto_matched
2584
+ # The approximation of the sessions percentile of the player within the last
2585
+ # 30 days, where a session begins when the player is connected to Play Games
2586
+ # Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not
2587
+ # populated if there is not enough information.
2588
+ # Corresponds to the JSON property `num_sessions_percentile`
2589
+ # @return [Float]
2590
+ attr_accessor :num_sessions_percentile
3429
2591
 
3430
- # This is a JSON template for an anonymous player
3431
- # Corresponds to the JSON property `autoMatchedPlayer`
3432
- # @return [Google::Apis::GamesV1::AnonymousPlayer]
3433
- attr_accessor :auto_matched_player
2592
+ # The approximate spend percentile of the player in this game. E.g., 0, 0.25,
2593
+ # 0.5, 0.75. Not populated if there is not enough information.
2594
+ # Corresponds to the JSON property `spend_percentile`
2595
+ # @return [Float]
2596
+ attr_accessor :spend_percentile
3434
2597
 
3435
- # The capabilities which can be used when communicating with this participant.
3436
- # Corresponds to the JSON property `capabilities`
3437
- # @return [Array<String>]
3438
- attr_accessor :capabilities
3439
-
3440
- # This is a JSON template for the client address when setting up a room.
3441
- # Corresponds to the JSON property `clientAddress`
3442
- # @return [Google::Apis::GamesV1::RoomClientAddress]
3443
- attr_accessor :client_address
3444
-
3445
- # True if this participant is in the fully connected set of peers in the room.
3446
- # Corresponds to the JSON property `connected`
3447
- # @return [Boolean]
3448
- attr_accessor :connected
3449
- alias_method :connected?, :connected
3450
-
3451
- # An identifier for the participant in the scope of the room. Cannot be used to
3452
- # identify a player across rooms or in other contexts.
3453
- # Corresponds to the JSON property `id`
3454
- # @return [String]
3455
- attr_accessor :id
3456
-
3457
- # Uniquely identifies the type of this resource. Value is always the fixed
3458
- # string games#roomParticipant.
3459
- # Corresponds to the JSON property `kind`
3460
- # @return [String]
3461
- attr_accessor :kind
3462
-
3463
- # The reason the participant left the room; populated if the participant status
3464
- # is PARTICIPANT_LEFT.
3465
- # Possible values are:
3466
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
3467
- # - "GAME_LEFT" - The game chose to remove the player from the room.
3468
- # - "ABANDONED" - The player switched to another application and abandoned the
3469
- # room.
3470
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a
3471
- # connection to other peer(s) in the room.
3472
- # - "SERVER_ERROR" - The client received an error response when it tried to
3473
- # communicate with the server.
3474
- # - "TIMEOUT" - The client timed out while waiting for players to join and
3475
- # connect.
3476
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
3477
- # Corresponds to the JSON property `leaveReason`
3478
- # @return [String]
3479
- attr_accessor :leave_reason
3480
-
3481
- # This is a JSON template for a Player resource.
3482
- # Corresponds to the JSON property `player`
3483
- # @return [Google::Apis::GamesV1::Player]
3484
- attr_accessor :player
3485
-
3486
- # The status of the participant with respect to the room.
3487
- # Possible values are:
3488
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room,
3489
- # but has not yet responded.
3490
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after
3491
- # creating it or accepting an invitation.)
3492
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the
3493
- # room.
3494
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
3495
- # Corresponds to the JSON property `status`
3496
- # @return [String]
3497
- attr_accessor :status
3498
-
3499
- def initialize(**args)
3500
- update!(**args)
3501
- end
3502
-
3503
- # Update properties of this object
3504
- def update!(**args)
3505
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
3506
- @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
3507
- @capabilities = args[:capabilities] if args.key?(:capabilities)
3508
- @client_address = args[:client_address] if args.key?(:client_address)
3509
- @connected = args[:connected] if args.key?(:connected)
3510
- @id = args[:id] if args.key?(:id)
3511
- @kind = args[:kind] if args.key?(:kind)
3512
- @leave_reason = args[:leave_reason] if args.key?(:leave_reason)
3513
- @player = args[:player] if args.key?(:player)
3514
- @status = args[:status] if args.key?(:status)
3515
- end
3516
- end
3517
-
3518
- # This is a JSON template for the status of a room that the player has joined.
3519
- class RoomStatus
3520
- include Google::Apis::Core::Hashable
3521
-
3522
- # This is a JSON template for status of room automatching that is in progress.
3523
- # Corresponds to the JSON property `autoMatchingStatus`
3524
- # @return [Google::Apis::GamesV1::RoomAutoMatchStatus]
3525
- attr_accessor :auto_matching_status
3526
-
3527
- # Uniquely identifies the type of this resource. Value is always the fixed
3528
- # string games#roomStatus.
3529
- # Corresponds to the JSON property `kind`
3530
- # @return [String]
3531
- attr_accessor :kind
3532
-
3533
- # The participants involved in the room, along with their statuses. Includes
3534
- # participants who have left or declined invitations.
3535
- # Corresponds to the JSON property `participants`
3536
- # @return [Array<Google::Apis::GamesV1::RoomParticipant>]
3537
- attr_accessor :participants
3538
-
3539
- # Globally unique ID for a room.
3540
- # Corresponds to the JSON property `roomId`
3541
- # @return [String]
3542
- attr_accessor :room_id
3543
-
3544
- # The status of the room.
3545
- # Possible values are:
3546
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
3547
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
3548
- # - "ROOM_CONNECTING" - Players have joined are connecting to each other (either
3549
- # before or after auto-matching).
3550
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
3551
- # - "ROOM_DELETED" - All joined players have left.
3552
- # Corresponds to the JSON property `status`
3553
- # @return [String]
3554
- attr_accessor :status
3555
-
3556
- # The version of the status for the room: an increasing counter, used by the
3557
- # client to ignore out-of-order updates to room status.
3558
- # Corresponds to the JSON property `statusVersion`
3559
- # @return [Fixnum]
3560
- attr_accessor :status_version
3561
-
3562
- def initialize(**args)
3563
- update!(**args)
3564
- end
3565
-
3566
- # Update properties of this object
3567
- def update!(**args)
3568
- @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status)
3569
- @kind = args[:kind] if args.key?(:kind)
3570
- @participants = args[:participants] if args.key?(:participants)
3571
- @room_id = args[:room_id] if args.key?(:room_id)
3572
- @status = args[:status] if args.key?(:status)
3573
- @status_version = args[:status_version] if args.key?(:status_version)
3574
- end
3575
- end
3576
-
3577
- # This is a JSON template for a request to submit a score to leaderboards.
3578
- class ScoreSubmission
3579
- include Google::Apis::Core::Hashable
3580
-
3581
- # Uniquely identifies the type of this resource. Value is always the fixed
3582
- # string games#scoreSubmission.
3583
- # Corresponds to the JSON property `kind`
3584
- # @return [String]
3585
- attr_accessor :kind
3586
-
3587
- # The leaderboard this score is being submitted to.
3588
- # Corresponds to the JSON property `leaderboardId`
3589
- # @return [String]
3590
- attr_accessor :leaderboard_id
3591
-
3592
- # The new score being submitted.
3593
- # Corresponds to the JSON property `score`
3594
- # @return [Fixnum]
3595
- attr_accessor :score
3596
-
3597
- # Additional information about this score. Values will contain no more than 64
3598
- # URI-safe characters as defined by section 2.3 of RFC 3986.
3599
- # Corresponds to the JSON property `scoreTag`
3600
- # @return [String]
3601
- attr_accessor :score_tag
3602
-
3603
- # Signature Values will contain URI-safe characters as defined by section 2.3 of
3604
- # RFC 3986.
3605
- # Corresponds to the JSON property `signature`
3606
- # @return [String]
3607
- attr_accessor :signature
3608
-
3609
- def initialize(**args)
3610
- update!(**args)
3611
- end
3612
-
3613
- # Update properties of this object
3614
- def update!(**args)
3615
- @kind = args[:kind] if args.key?(:kind)
3616
- @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
3617
- @score = args[:score] if args.key?(:score)
3618
- @score_tag = args[:score_tag] if args.key?(:score_tag)
3619
- @signature = args[:signature] if args.key?(:signature)
3620
- end
3621
- end
3622
-
3623
- # This is a JSON template for an snapshot object.
3624
- class Snapshot
3625
- include Google::Apis::Core::Hashable
3626
-
3627
- # This is a JSON template for an image of a snapshot.
3628
- # Corresponds to the JSON property `coverImage`
3629
- # @return [Google::Apis::GamesV1::SnapshotImage]
3630
- attr_accessor :cover_image
3631
-
3632
- # The description of this snapshot.
3633
- # Corresponds to the JSON property `description`
3634
- # @return [String]
3635
- attr_accessor :description
3636
-
3637
- # The ID of the file underlying this snapshot in the Drive API. Only present if
3638
- # the snapshot is a view on a Drive file and the file is owned by the caller.
3639
- # Corresponds to the JSON property `driveId`
3640
- # @return [String]
3641
- attr_accessor :drive_id
3642
-
3643
- # The duration associated with this snapshot, in millis.
3644
- # Corresponds to the JSON property `durationMillis`
3645
- # @return [Fixnum]
3646
- attr_accessor :duration_millis
3647
-
3648
- # The ID of the snapshot.
3649
- # Corresponds to the JSON property `id`
3650
- # @return [String]
3651
- attr_accessor :id
3652
-
3653
- # Uniquely identifies the type of this resource. Value is always the fixed
3654
- # string games#snapshot.
3655
- # Corresponds to the JSON property `kind`
3656
- # @return [String]
3657
- attr_accessor :kind
3658
-
3659
- # The timestamp (in millis since Unix epoch) of the last modification to this
3660
- # snapshot.
3661
- # Corresponds to the JSON property `lastModifiedMillis`
3662
- # @return [Fixnum]
3663
- attr_accessor :last_modified_millis
3664
-
3665
- # The progress value (64-bit integer set by developer) associated with this
3666
- # snapshot.
3667
- # Corresponds to the JSON property `progressValue`
3668
- # @return [Fixnum]
3669
- attr_accessor :progress_value
3670
-
3671
- # The title of this snapshot.
3672
- # Corresponds to the JSON property `title`
3673
- # @return [String]
3674
- attr_accessor :title
3675
-
3676
- # The type of this snapshot.
3677
- # Possible values are:
3678
- # - "SAVE_GAME" - A snapshot representing a save game.
3679
- # Corresponds to the JSON property `type`
3680
- # @return [String]
3681
- attr_accessor :type
3682
-
3683
- # The unique name provided when the snapshot was created.
3684
- # Corresponds to the JSON property `uniqueName`
3685
- # @return [String]
3686
- attr_accessor :unique_name
3687
-
3688
- def initialize(**args)
3689
- update!(**args)
3690
- end
3691
-
3692
- # Update properties of this object
3693
- def update!(**args)
3694
- @cover_image = args[:cover_image] if args.key?(:cover_image)
3695
- @description = args[:description] if args.key?(:description)
3696
- @drive_id = args[:drive_id] if args.key?(:drive_id)
3697
- @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
3698
- @id = args[:id] if args.key?(:id)
3699
- @kind = args[:kind] if args.key?(:kind)
3700
- @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis)
3701
- @progress_value = args[:progress_value] if args.key?(:progress_value)
3702
- @title = args[:title] if args.key?(:title)
3703
- @type = args[:type] if args.key?(:type)
3704
- @unique_name = args[:unique_name] if args.key?(:unique_name)
3705
- end
3706
- end
3707
-
3708
- # This is a JSON template for an image of a snapshot.
3709
- class SnapshotImage
3710
- include Google::Apis::Core::Hashable
3711
-
3712
- # The height of the image.
3713
- # Corresponds to the JSON property `height`
3714
- # @return [Fixnum]
3715
- attr_accessor :height
3716
-
3717
- # Uniquely identifies the type of this resource. Value is always the fixed
3718
- # string games#snapshotImage.
3719
- # Corresponds to the JSON property `kind`
3720
- # @return [String]
3721
- attr_accessor :kind
3722
-
3723
- # The MIME type of the image.
3724
- # Corresponds to the JSON property `mime_type`
3725
- # @return [String]
3726
- attr_accessor :mime_type
3727
-
3728
- # The URL of the image. This URL may be invalidated at any time and should not
3729
- # be cached.
3730
- # Corresponds to the JSON property `url`
3731
- # @return [String]
3732
- attr_accessor :url
3733
-
3734
- # The width of the image.
3735
- # Corresponds to the JSON property `width`
3736
- # @return [Fixnum]
3737
- attr_accessor :width
3738
-
3739
- def initialize(**args)
3740
- update!(**args)
3741
- end
3742
-
3743
- # Update properties of this object
3744
- def update!(**args)
3745
- @height = args[:height] if args.key?(:height)
3746
- @kind = args[:kind] if args.key?(:kind)
3747
- @mime_type = args[:mime_type] if args.key?(:mime_type)
3748
- @url = args[:url] if args.key?(:url)
3749
- @width = args[:width] if args.key?(:width)
3750
- end
3751
- end
3752
-
3753
- # This is a JSON template for a list of snapshot objects.
3754
- class ListSnapshotResponse
3755
- include Google::Apis::Core::Hashable
3756
-
3757
- # The snapshots.
3758
- # Corresponds to the JSON property `items`
3759
- # @return [Array<Google::Apis::GamesV1::Snapshot>]
3760
- attr_accessor :items
3761
-
3762
- # Uniquely identifies the type of this resource. Value is always the fixed
3763
- # string games#snapshotListResponse.
3764
- # Corresponds to the JSON property `kind`
3765
- # @return [String]
3766
- attr_accessor :kind
3767
-
3768
- # Token corresponding to the next page of results. If there are no more results,
3769
- # the token is omitted.
3770
- # Corresponds to the JSON property `nextPageToken`
3771
- # @return [String]
3772
- attr_accessor :next_page_token
3773
-
3774
- def initialize(**args)
3775
- update!(**args)
3776
- end
3777
-
3778
- # Update properties of this object
3779
- def update!(**args)
3780
- @items = args[:items] if args.key?(:items)
3781
- @kind = args[:kind] if args.key?(:kind)
3782
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3783
- end
3784
- end
3785
-
3786
- # This is a JSON template for an turn-based auto-match criteria object.
3787
- class TurnBasedAutoMatchingCriteria
3788
- include Google::Apis::Core::Hashable
3789
-
3790
- # A bitmask indicating when auto-matches are valid. When ANDed with other
3791
- # exclusive bitmasks, the result must be zero. Can be used to support exclusive
3792
- # roles within a game.
3793
- # Corresponds to the JSON property `exclusiveBitmask`
3794
- # @return [Fixnum]
3795
- attr_accessor :exclusive_bitmask
3796
-
3797
- # Uniquely identifies the type of this resource. Value is always the fixed
3798
- # string games#turnBasedAutoMatchingCriteria.
3799
- # Corresponds to the JSON property `kind`
3800
- # @return [String]
3801
- attr_accessor :kind
3802
-
3803
- # The maximum number of players that should be added to the match by auto-
3804
- # matching.
3805
- # Corresponds to the JSON property `maxAutoMatchingPlayers`
3806
- # @return [Fixnum]
3807
- attr_accessor :max_auto_matching_players
3808
-
3809
- # The minimum number of players that should be added to the match by auto-
3810
- # matching.
3811
- # Corresponds to the JSON property `minAutoMatchingPlayers`
3812
- # @return [Fixnum]
3813
- attr_accessor :min_auto_matching_players
3814
-
3815
- def initialize(**args)
3816
- update!(**args)
3817
- end
3818
-
3819
- # Update properties of this object
3820
- def update!(**args)
3821
- @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask)
3822
- @kind = args[:kind] if args.key?(:kind)
3823
- @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players)
3824
- @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players)
3825
- end
3826
- end
3827
-
3828
- # This is a JSON template for a turn-based match resource object.
3829
- class TurnBasedMatch
3830
- include Google::Apis::Core::Hashable
3831
-
3832
- # The ID of the application being played.
3833
- # Corresponds to the JSON property `applicationId`
3834
- # @return [String]
3835
- attr_accessor :application_id
3836
-
3837
- # This is a JSON template for an turn-based auto-match criteria object.
3838
- # Corresponds to the JSON property `autoMatchingCriteria`
3839
- # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria]
3840
- attr_accessor :auto_matching_criteria
3841
-
3842
- # This is a JSON template for turn-based match modification metadata.
3843
- # Corresponds to the JSON property `creationDetails`
3844
- # @return [Google::Apis::GamesV1::TurnBasedMatchModification]
3845
- attr_accessor :creation_details
3846
-
3847
- # This is a JSON template for a turn-based match data object.
3848
- # Corresponds to the JSON property `data`
3849
- # @return [Google::Apis::GamesV1::TurnBasedMatchData]
3850
- attr_accessor :data
3851
-
3852
- # This short description is generated by our servers based on turn state and is
3853
- # localized and worded relative to the player requesting the match. It is
3854
- # intended to be displayed when the match is shown in a list.
3855
- # Corresponds to the JSON property `description`
3856
- # @return [String]
3857
- attr_accessor :description
3858
-
3859
- # The ID of the participant that invited the user to the match. Not set if the
3860
- # user was not invited to the match.
3861
- # Corresponds to the JSON property `inviterId`
3862
- # @return [String]
3863
- attr_accessor :inviter_id
3864
-
3865
- # Uniquely identifies the type of this resource. Value is always the fixed
3866
- # string games#turnBasedMatch.
3867
- # Corresponds to the JSON property `kind`
3868
- # @return [String]
3869
- attr_accessor :kind
3870
-
3871
- # This is a JSON template for turn-based match modification metadata.
3872
- # Corresponds to the JSON property `lastUpdateDetails`
3873
- # @return [Google::Apis::GamesV1::TurnBasedMatchModification]
3874
- attr_accessor :last_update_details
3875
-
3876
- # Globally unique ID for a turn-based match.
3877
- # Corresponds to the JSON property `matchId`
3878
- # @return [String]
3879
- attr_accessor :match_id
3880
-
3881
- # The number of the match in a chain of rematches. Will be set to 1 for the
3882
- # first match and incremented by 1 for each rematch.
3883
- # Corresponds to the JSON property `matchNumber`
3884
- # @return [Fixnum]
3885
- attr_accessor :match_number
3886
-
3887
- # The version of this match: an increasing counter, used to avoid out-of-date
3888
- # updates to the match.
3889
- # Corresponds to the JSON property `matchVersion`
3890
- # @return [Fixnum]
3891
- attr_accessor :match_version
3892
-
3893
- # The participants involved in the match, along with their statuses. Includes
3894
- # participants who have left or declined invitations.
3895
- # Corresponds to the JSON property `participants`
3896
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatchParticipant>]
3897
- attr_accessor :participants
3898
-
3899
- # The ID of the participant that is taking a turn.
3900
- # Corresponds to the JSON property `pendingParticipantId`
3901
- # @return [String]
3902
- attr_accessor :pending_participant_id
3903
-
3904
- # This is a JSON template for a turn-based match data object.
3905
- # Corresponds to the JSON property `previousMatchData`
3906
- # @return [Google::Apis::GamesV1::TurnBasedMatchData]
3907
- attr_accessor :previous_match_data
3908
-
3909
- # The ID of a rematch of this match. Only set for completed matches that have
3910
- # been rematched.
3911
- # Corresponds to the JSON property `rematchId`
3912
- # @return [String]
3913
- attr_accessor :rematch_id
3914
-
3915
- # The results reported for this match.
3916
- # Corresponds to the JSON property `results`
3917
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
3918
- attr_accessor :results
3919
-
3920
- # The status of the match.
3921
- # Possible values are:
3922
- # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching;
3923
- # the match cannot be established until they are filled.
3924
- # - "MATCH_ACTIVE" - The match has started.
3925
- # - "MATCH_COMPLETE" - The match has finished.
3926
- # - "MATCH_CANCELED" - The match was canceled.
3927
- # - "MATCH_EXPIRED" - The match expired due to inactivity.
3928
- # - "MATCH_DELETED" - The match should no longer be shown on the client.
3929
- # Returned only for tombstones for matches when sync is called.
3930
- # Corresponds to the JSON property `status`
3931
- # @return [String]
3932
- attr_accessor :status
3933
-
3934
- # The status of the current user in the match. Derived from the match type,
3935
- # match status, the user's participant status, and the pending participant for
3936
- # the match.
3937
- # Possible values are:
3938
- # - "USER_INVITED" - The user has been invited to join the match and has not
3939
- # responded yet.
3940
- # - "USER_AWAITING_TURN" - The user is waiting for their turn.
3941
- # - "USER_TURN" - The user has an action to take in the match.
3942
- # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or
3943
- # expired.)
3944
- # Corresponds to the JSON property `userMatchStatus`
3945
- # @return [String]
3946
- attr_accessor :user_match_status
3947
-
3948
- # The variant / mode of the application being played; can be any integer value,
3949
- # or left blank.
3950
- # Corresponds to the JSON property `variant`
3951
- # @return [Fixnum]
3952
- attr_accessor :variant
3953
-
3954
- # The ID of another participant in the match that can be used when describing
3955
- # the participants the user is playing with.
3956
- # Corresponds to the JSON property `withParticipantId`
3957
- # @return [String]
3958
- attr_accessor :with_participant_id
3959
-
3960
- def initialize(**args)
3961
- update!(**args)
3962
- end
3963
-
3964
- # Update properties of this object
3965
- def update!(**args)
3966
- @application_id = args[:application_id] if args.key?(:application_id)
3967
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
3968
- @creation_details = args[:creation_details] if args.key?(:creation_details)
3969
- @data = args[:data] if args.key?(:data)
3970
- @description = args[:description] if args.key?(:description)
3971
- @inviter_id = args[:inviter_id] if args.key?(:inviter_id)
3972
- @kind = args[:kind] if args.key?(:kind)
3973
- @last_update_details = args[:last_update_details] if args.key?(:last_update_details)
3974
- @match_id = args[:match_id] if args.key?(:match_id)
3975
- @match_number = args[:match_number] if args.key?(:match_number)
3976
- @match_version = args[:match_version] if args.key?(:match_version)
3977
- @participants = args[:participants] if args.key?(:participants)
3978
- @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
3979
- @previous_match_data = args[:previous_match_data] if args.key?(:previous_match_data)
3980
- @rematch_id = args[:rematch_id] if args.key?(:rematch_id)
3981
- @results = args[:results] if args.key?(:results)
3982
- @status = args[:status] if args.key?(:status)
3983
- @user_match_status = args[:user_match_status] if args.key?(:user_match_status)
3984
- @variant = args[:variant] if args.key?(:variant)
3985
- @with_participant_id = args[:with_participant_id] if args.key?(:with_participant_id)
3986
- end
3987
- end
3988
-
3989
- # This is a JSON template for a turn-based match creation request.
3990
- class CreateTurnBasedMatchRequest
3991
- include Google::Apis::Core::Hashable
3992
-
3993
- # This is a JSON template for an turn-based auto-match criteria object.
3994
- # Corresponds to the JSON property `autoMatchingCriteria`
3995
- # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria]
3996
- attr_accessor :auto_matching_criteria
3997
-
3998
- # The player ids to invite to the match.
3999
- # Corresponds to the JSON property `invitedPlayerIds`
4000
- # @return [Array<String>]
4001
- attr_accessor :invited_player_ids
4002
-
4003
- # Uniquely identifies the type of this resource. Value is always the fixed
4004
- # string games#turnBasedMatchCreateRequest.
4005
- # Corresponds to the JSON property `kind`
4006
- # @return [String]
4007
- attr_accessor :kind
4008
-
4009
- # A randomly generated numeric ID. This number is used at the server to ensure
4010
- # that the request is handled correctly across retries.
4011
- # Corresponds to the JSON property `requestId`
4012
- # @return [Fixnum]
4013
- attr_accessor :request_id
4014
-
4015
- # The variant / mode of the application to be played. This can be any integer
4016
- # value, or left blank. You should use a small number of variants to keep the
4017
- # auto-matching pool as large as possible.
4018
- # Corresponds to the JSON property `variant`
4019
- # @return [Fixnum]
4020
- attr_accessor :variant
4021
-
4022
- def initialize(**args)
4023
- update!(**args)
4024
- end
4025
-
4026
- # Update properties of this object
4027
- def update!(**args)
4028
- @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
4029
- @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
4030
- @kind = args[:kind] if args.key?(:kind)
4031
- @request_id = args[:request_id] if args.key?(:request_id)
4032
- @variant = args[:variant] if args.key?(:variant)
4033
- end
4034
- end
4035
-
4036
- # This is a JSON template for a turn-based match data object.
4037
- class TurnBasedMatchData
4038
- include Google::Apis::Core::Hashable
4039
-
4040
- # The byte representation of the data (limited to 128 kB), as a Base64-encoded
4041
- # string with the URL_SAFE encoding option.
4042
- # Corresponds to the JSON property `data`
4043
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
4044
- # @return [String]
4045
- attr_accessor :data
4046
-
4047
- # True if this match has data available but it wasn't returned in a list
4048
- # response; fetching the match individually will retrieve this data.
4049
- # Corresponds to the JSON property `dataAvailable`
4050
- # @return [Boolean]
4051
- attr_accessor :data_available
4052
- alias_method :data_available?, :data_available
4053
-
4054
- # Uniquely identifies the type of this resource. Value is always the fixed
4055
- # string games#turnBasedMatchData.
4056
- # Corresponds to the JSON property `kind`
4057
- # @return [String]
4058
- attr_accessor :kind
4059
-
4060
- def initialize(**args)
4061
- update!(**args)
4062
- end
4063
-
4064
- # Update properties of this object
4065
- def update!(**args)
4066
- @data = args[:data] if args.key?(:data)
4067
- @data_available = args[:data_available] if args.key?(:data_available)
4068
- @kind = args[:kind] if args.key?(:kind)
4069
- end
4070
- end
4071
-
4072
- # This is a JSON template for sending a turn-based match data object.
4073
- class TurnBasedMatchDataRequest
4074
- include Google::Apis::Core::Hashable
4075
-
4076
- # The byte representation of the data (limited to 128 kB), as a Base64-encoded
4077
- # string with the URL_SAFE encoding option.
4078
- # Corresponds to the JSON property `data`
4079
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
4080
- # @return [String]
4081
- attr_accessor :data
4082
-
4083
- # Uniquely identifies the type of this resource. Value is always the fixed
4084
- # string games#turnBasedMatchDataRequest.
4085
- # Corresponds to the JSON property `kind`
4086
- # @return [String]
4087
- attr_accessor :kind
4088
-
4089
- def initialize(**args)
4090
- update!(**args)
4091
- end
4092
-
4093
- # Update properties of this object
4094
- def update!(**args)
4095
- @data = args[:data] if args.key?(:data)
4096
- @kind = args[:kind] if args.key?(:kind)
4097
- end
4098
- end
4099
-
4100
- # This is a JSON template for a list of turn-based matches.
4101
- class TurnBasedMatchList
4102
- include Google::Apis::Core::Hashable
4103
-
4104
- # The matches.
4105
- # Corresponds to the JSON property `items`
4106
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatch>]
4107
- attr_accessor :items
4108
-
4109
- # Uniquely identifies the type of this resource. Value is always the fixed
4110
- # string games#turnBasedMatchList.
4111
- # Corresponds to the JSON property `kind`
4112
- # @return [String]
4113
- attr_accessor :kind
4114
-
4115
- # The pagination token for the next page of results.
4116
- # Corresponds to the JSON property `nextPageToken`
4117
- # @return [String]
4118
- attr_accessor :next_page_token
4119
-
4120
- def initialize(**args)
4121
- update!(**args)
4122
- end
4123
-
4124
- # Update properties of this object
4125
- def update!(**args)
4126
- @items = args[:items] if args.key?(:items)
4127
- @kind = args[:kind] if args.key?(:kind)
4128
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4129
- end
4130
- end
4131
-
4132
- # This is a JSON template for turn-based match modification metadata.
4133
- class TurnBasedMatchModification
4134
- include Google::Apis::Core::Hashable
4135
-
4136
- # Uniquely identifies the type of this resource. Value is always the fixed
4137
- # string games#turnBasedMatchModification.
4138
- # Corresponds to the JSON property `kind`
4139
- # @return [String]
4140
- attr_accessor :kind
4141
-
4142
- # The timestamp at which they modified the match, in milliseconds since the
4143
- # epoch in UTC.
4144
- # Corresponds to the JSON property `modifiedTimestampMillis`
4145
- # @return [Fixnum]
4146
- attr_accessor :modified_timestamp_millis
4147
-
4148
- # The ID of the participant that modified the match.
4149
- # Corresponds to the JSON property `participantId`
4150
- # @return [String]
4151
- attr_accessor :participant_id
4152
-
4153
- def initialize(**args)
4154
- update!(**args)
4155
- end
4156
-
4157
- # Update properties of this object
4158
- def update!(**args)
4159
- @kind = args[:kind] if args.key?(:kind)
4160
- @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis)
4161
- @participant_id = args[:participant_id] if args.key?(:participant_id)
4162
- end
4163
- end
4164
-
4165
- # This is a JSON template for a participant in a turn-based match.
4166
- class TurnBasedMatchParticipant
4167
- include Google::Apis::Core::Hashable
4168
-
4169
- # True if this participant was auto-matched with the requesting player.
4170
- # Corresponds to the JSON property `autoMatched`
4171
- # @return [Boolean]
4172
- attr_accessor :auto_matched
4173
- alias_method :auto_matched?, :auto_matched
4174
-
4175
- # This is a JSON template for an anonymous player
4176
- # Corresponds to the JSON property `autoMatchedPlayer`
4177
- # @return [Google::Apis::GamesV1::AnonymousPlayer]
4178
- attr_accessor :auto_matched_player
4179
-
4180
- # An identifier for the participant in the scope of the match. Cannot be used to
4181
- # identify a player across matches or in other contexts.
4182
- # Corresponds to the JSON property `id`
4183
- # @return [String]
4184
- attr_accessor :id
4185
-
4186
- # Uniquely identifies the type of this resource. Value is always the fixed
4187
- # string games#turnBasedMatchParticipant.
4188
- # Corresponds to the JSON property `kind`
4189
- # @return [String]
4190
- attr_accessor :kind
4191
-
4192
- # This is a JSON template for a Player resource.
4193
- # Corresponds to the JSON property `player`
4194
- # @return [Google::Apis::GamesV1::Player]
4195
- attr_accessor :player
4196
-
4197
- # The status of the participant with respect to the match.
4198
- # Possible values are:
4199
- # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to
4200
- # the match, but the invitation has not been sent; the invite will be sent when
4201
- # it becomes their turn.
4202
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the match,
4203
- # but has not yet responded.
4204
- # - "PARTICIPANT_JOINED" - The participant has joined the match (either after
4205
- # creating it or accepting an invitation.)
4206
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the
4207
- # match.
4208
- # - "PARTICIPANT_LEFT" - The participant joined the match and then left it.
4209
- # - "PARTICIPANT_FINISHED" - The participant finished playing in the match.
4210
- # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the
4211
- # allotted time.
4212
- # Corresponds to the JSON property `status`
4213
- # @return [String]
4214
- attr_accessor :status
4215
-
4216
- def initialize(**args)
4217
- update!(**args)
4218
- end
4219
-
4220
- # Update properties of this object
4221
- def update!(**args)
4222
- @auto_matched = args[:auto_matched] if args.key?(:auto_matched)
4223
- @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player)
4224
- @id = args[:id] if args.key?(:id)
4225
- @kind = args[:kind] if args.key?(:kind)
4226
- @player = args[:player] if args.key?(:player)
4227
- @status = args[:status] if args.key?(:status)
4228
- end
4229
- end
4230
-
4231
- # This is a JSON template for a rematch response.
4232
- class TurnBasedMatchRematch
4233
- include Google::Apis::Core::Hashable
4234
-
4235
- # Uniquely identifies the type of this resource. Value is always the fixed
4236
- # string games#turnBasedMatchRematch.
4237
- # Corresponds to the JSON property `kind`
4238
- # @return [String]
4239
- attr_accessor :kind
4240
-
4241
- # This is a JSON template for a turn-based match resource object.
4242
- # Corresponds to the JSON property `previousMatch`
4243
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
4244
- attr_accessor :previous_match
4245
-
4246
- # This is a JSON template for a turn-based match resource object.
4247
- # Corresponds to the JSON property `rematch`
4248
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
4249
- attr_accessor :rematch
4250
-
4251
- def initialize(**args)
4252
- update!(**args)
4253
- end
4254
-
4255
- # Update properties of this object
4256
- def update!(**args)
4257
- @kind = args[:kind] if args.key?(:kind)
4258
- @previous_match = args[:previous_match] if args.key?(:previous_match)
4259
- @rematch = args[:rematch] if args.key?(:rematch)
4260
- end
4261
- end
4262
-
4263
- # This is a JSON template for a turn-based match results object.
4264
- class TurnBasedMatchResults
4265
- include Google::Apis::Core::Hashable
4266
-
4267
- # This is a JSON template for sending a turn-based match data object.
4268
- # Corresponds to the JSON property `data`
4269
- # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]
4270
- attr_accessor :data
4271
-
4272
- # Uniquely identifies the type of this resource. Value is always the fixed
4273
- # string games#turnBasedMatchResults.
4274
- # Corresponds to the JSON property `kind`
4275
- # @return [String]
4276
- attr_accessor :kind
4277
-
4278
- # The version of the match being updated.
4279
- # Corresponds to the JSON property `matchVersion`
4280
- # @return [Fixnum]
4281
- attr_accessor :match_version
4282
-
4283
- # The match results for the participants in the match.
4284
- # Corresponds to the JSON property `results`
4285
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
4286
- attr_accessor :results
4287
-
4288
- def initialize(**args)
4289
- update!(**args)
4290
- end
4291
-
4292
- # Update properties of this object
4293
- def update!(**args)
4294
- @data = args[:data] if args.key?(:data)
4295
- @kind = args[:kind] if args.key?(:kind)
4296
- @match_version = args[:match_version] if args.key?(:match_version)
4297
- @results = args[:results] if args.key?(:results)
4298
- end
4299
- end
4300
-
4301
- # This is a JSON template for a list of turn-based matches returned from a sync.
4302
- class TurnBasedMatchSync
4303
- include Google::Apis::Core::Hashable
4304
-
4305
- # The matches.
4306
- # Corresponds to the JSON property `items`
4307
- # @return [Array<Google::Apis::GamesV1::TurnBasedMatch>]
4308
- attr_accessor :items
4309
-
4310
- # Uniquely identifies the type of this resource. Value is always the fixed
4311
- # string games#turnBasedMatchSync.
4312
- # Corresponds to the JSON property `kind`
4313
- # @return [String]
4314
- attr_accessor :kind
4315
-
4316
- # True if there were more matches available to fetch at the time the response
4317
- # was generated (which were not returned due to page size limits.)
4318
- # Corresponds to the JSON property `moreAvailable`
4319
- # @return [Boolean]
4320
- attr_accessor :more_available
4321
- alias_method :more_available?, :more_available
4322
-
4323
- # The pagination token for the next page of results.
4324
- # Corresponds to the JSON property `nextPageToken`
4325
- # @return [String]
4326
- attr_accessor :next_page_token
4327
-
4328
- def initialize(**args)
4329
- update!(**args)
4330
- end
4331
-
4332
- # Update properties of this object
4333
- def update!(**args)
4334
- @items = args[:items] if args.key?(:items)
4335
- @kind = args[:kind] if args.key?(:kind)
4336
- @more_available = args[:more_available] if args.key?(:more_available)
4337
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4338
- end
4339
- end
4340
-
4341
- # This is a JSON template for the object representing a turn.
4342
- class TurnBasedMatchTurn
4343
- include Google::Apis::Core::Hashable
4344
-
4345
- # This is a JSON template for sending a turn-based match data object.
4346
- # Corresponds to the JSON property `data`
4347
- # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest]
4348
- attr_accessor :data
4349
-
4350
- # Uniquely identifies the type of this resource. Value is always the fixed
4351
- # string games#turnBasedMatchTurn.
4352
- # Corresponds to the JSON property `kind`
4353
- # @return [String]
4354
- attr_accessor :kind
4355
-
4356
- # The version of this match: an increasing counter, used to avoid out-of-date
4357
- # updates to the match.
4358
- # Corresponds to the JSON property `matchVersion`
4359
- # @return [Fixnum]
4360
- attr_accessor :match_version
4361
-
4362
- # The ID of the participant who should take their turn next. May be set to the
4363
- # current player's participant ID to update match state without changing the
4364
- # turn. If not set, the match will wait for other player(s) to join via
4365
- # automatching; this is only valid if automatch criteria is set on the match
4366
- # with remaining slots for automatched players.
4367
- # Corresponds to the JSON property `pendingParticipantId`
4368
- # @return [String]
4369
- attr_accessor :pending_participant_id
2598
+ # The probability of the player going to spend the game in the next seven
2599
+ # days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
2600
+ # information.
2601
+ # Corresponds to the JSON property `spend_probability`
2602
+ # @return [Float]
2603
+ attr_accessor :spend_probability
4370
2604
 
4371
- # The match results for the participants in the match.
4372
- # Corresponds to the JSON property `results`
4373
- # @return [Array<Google::Apis::GamesV1::ParticipantResult>]
4374
- attr_accessor :results
2605
+ # The predicted amount of money that the player going to spend in the next 28
2606
+ # days. E.g., 1, 30, 60, ... . Not populated if there is not enough
2607
+ # information.
2608
+ # Corresponds to the JSON property `total_spend_next_28_days`
2609
+ # @return [Float]
2610
+ attr_accessor :total_spend_next_28_days
4375
2611
 
4376
2612
  def initialize(**args)
4377
2613
  update!(**args)
@@ -4379,11 +2615,17 @@ module Google
4379
2615
 
4380
2616
  # Update properties of this object
4381
2617
  def update!(**args)
4382
- @data = args[:data] if args.key?(:data)
2618
+ @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes)
2619
+ @churn_probability = args[:churn_probability] if args.key?(:churn_probability)
2620
+ @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played)
2621
+ @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability)
4383
2622
  @kind = args[:kind] if args.key?(:kind)
4384
- @match_version = args[:match_version] if args.key?(:match_version)
4385
- @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id)
4386
- @results = args[:results] if args.key?(:results)
2623
+ @num_purchases = args[:num_purchases] if args.key?(:num_purchases)
2624
+ @num_sessions = args[:num_sessions] if args.key?(:num_sessions)
2625
+ @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile)
2626
+ @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile)
2627
+ @spend_probability = args[:spend_probability] if args.key?(:spend_probability)
2628
+ @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days)
4387
2629
  end
4388
2630
  end
4389
2631
  end