Class: Google::Apis::GamesV1::CreateTurnBasedMatchRequest
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::GamesV1::CreateTurnBasedMatchRequest
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb 
Overview
This is a JSON template for a turn-based match creation request.
Instance Attribute Summary collapse
- 
  
    
      #auto_matching_criteria  ⇒ Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is a JSON template for an turn-based auto-match criteria object.
 - 
  
    
      #invited_player_ids  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The player ids to invite to the match.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Uniquely identifies the type of this resource.
 - 
  
    
      #request_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A randomly generated numeric ID.
 - 
  
    
      #variant  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The variant / mode of the application to be played.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CreateTurnBasedMatchRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CreateTurnBasedMatchRequest.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateTurnBasedMatchRequest
Returns a new instance of CreateTurnBasedMatchRequest
      4302 4303 4304  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4302 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#auto_matching_criteria ⇒ Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria
This is a JSON template for an turn-based auto-match criteria object.
Corresponds to the JSON property autoMatchingCriteria
      4276 4277 4278  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4276 def auto_matching_criteria @auto_matching_criteria end  | 
  
#invited_player_ids ⇒ Array<String>
The player ids to invite to the match.
Corresponds to the JSON property invitedPlayerIds
      4281 4282 4283  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4281 def invited_player_ids @invited_player_ids end  | 
  
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#turnBasedMatchCreateRequest.
Corresponds to the JSON property kind
      4287 4288 4289  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4287 def kind @kind end  | 
  
#request_id ⇒ Fixnum
A randomly generated numeric ID. This number is used at the server to ensure
that the request is handled correctly across retries.
Corresponds to the JSON property requestId
      4293 4294 4295  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4293 def request_id @request_id end  | 
  
#variant ⇒ Fixnum
The variant / mode of the application to be played. This can be any integer
value, or left blank. You should use a small number of variants to keep the
auto-matching pool as large as possible.
Corresponds to the JSON property variant
      4300 4301 4302  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4300 def variant @variant end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4307 4308 4309 4310 4311 4312 4313  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 4307 def update!(**args) @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) @kind = args[:kind] if args.key?(:kind) @request_id = args[:request_id] if args.key?(:request_id) @variant = args[:variant] if args.key?(:variant) end  |