Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3LogPlayerReportsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/playablelocations_v3/classes.rb,
generated/google/apis/playablelocations_v3/representations.rb,
generated/google/apis/playablelocations_v3/representations.rb

Overview

A request for logging your player's bad location reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3LogPlayerReportsRequest

Returns a new instance of GoogleMapsPlayablelocationsV3LogPlayerReportsRequest.



135
136
137
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 135

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_infoGoogle::Apis::PlayablelocationsV3::GoogleMapsUnityClientInfo

Client information. Corresponds to the JSON property clientInfo



118
119
120
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 118

def client_info
  @client_info
end

#player_reportsArray<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport>

Required. Player reports. The maximum number of player reports that you can log at once is 50. Corresponds to the JSON property playerReports



124
125
126
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 124

def player_reports
  @player_reports
end

#request_idString

Required. A string that uniquely identifies the log player reports request. This allows you to detect duplicate requests. We recommend that you use UUIDs for this value. The value must not exceed 50 characters. You should reuse the request_id only when retrying a request in the case of a failure. In that case, the request must be identical to the one that failed. Corresponds to the JSON property requestId

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 133

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
144
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 140

def update!(**args)
  @client_info = args[:client_info] if args.key?(:client_info)
  @player_reports = args[:player_reports] if args.key?(:player_reports)
  @request_id = args[:request_id] if args.key?(:request_id)
end