|
|
|
@ -29,6 +29,7 @@ option go_package = "google.golang.org/genproto/googleapis/maps/playablelocation |
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option java_outer_classname = "PlayableLocationsProto"; |
|
|
|
|
option java_package = "com.google.maps.playablelocations.v3"; |
|
|
|
|
option php_namespace = "Google\\Maps\\PlayableLocations\\V3"; |
|
|
|
|
option objc_class_prefix = "GMPL"; |
|
|
|
|
|
|
|
|
|
// The Playable Locations API for v3. |
|
|
|
@ -40,7 +41,8 @@ service PlayableLocations { |
|
|
|
|
// |
|
|
|
|
// Note: Identical `SamplePlayableLocations` requests can return different |
|
|
|
|
// results as the state of the world changes over time. |
|
|
|
|
rpc SamplePlayableLocations(SamplePlayableLocationsRequest) returns (SamplePlayableLocationsResponse) { |
|
|
|
|
rpc SamplePlayableLocations(SamplePlayableLocationsRequest) |
|
|
|
|
returns (SamplePlayableLocationsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v3:samplePlayableLocations" |
|
|
|
|
body: "*" |
|
|
|
@ -51,7 +53,8 @@ service PlayableLocations { |
|
|
|
|
// |
|
|
|
|
// Reports are not partially saved; either all reports are saved and this |
|
|
|
|
// request succeeds, or no reports are saved, and this request fails. |
|
|
|
|
rpc LogPlayerReports(LogPlayerReportsRequest) returns (LogPlayerReportsResponse) { |
|
|
|
|
rpc LogPlayerReports(LogPlayerReportsRequest) |
|
|
|
|
returns (LogPlayerReportsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v3:logPlayerReports" |
|
|
|
|
body: "*" |
|
|
|
@ -97,11 +100,13 @@ service PlayableLocations { |
|
|
|
|
// again to get a fresh view of the real world. |
|
|
|
|
message SamplePlayableLocationsRequest { |
|
|
|
|
// Required. Specifies the area to search within for playable locations. |
|
|
|
|
google.maps.playablelocations.v3.sample.AreaFilter area_filter = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
google.maps.playablelocations.v3.sample.AreaFilter area_filter = 1 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. Specifies one or more (up to 5) criteria for filtering the |
|
|
|
|
// returned playable locations. |
|
|
|
|
repeated google.maps.playablelocations.v3.sample.Criterion criteria = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
repeated google.maps.playablelocations.v3.sample.Criterion criteria = 2 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// |
|
|
|
@ -111,11 +116,13 @@ message SamplePlayableLocationsRequest { |
|
|
|
|
message SamplePlayableLocationsResponse { |
|
|
|
|
// Each PlayableLocation object corresponds to a game_object_type specified |
|
|
|
|
// in the request. |
|
|
|
|
map<int32, google.maps.playablelocations.v3.sample.PlayableLocationList> locations_per_game_object_type = 1; |
|
|
|
|
map<int32, google.maps.playablelocations.v3.sample.PlayableLocationList> |
|
|
|
|
locations_per_game_object_type = 1; |
|
|
|
|
|
|
|
|
|
// Required. Specifies the "time-to-live" for the set of playable locations. You can use |
|
|
|
|
// this value to determine how long to cache the set of playable locations. |
|
|
|
|
// After this length of time, your back-end game server should issue a new |
|
|
|
|
// Required. Specifies the "time-to-live" for the set of playable locations. |
|
|
|
|
// You can use this value to determine how long to cache the set of playable |
|
|
|
|
// locations. After this length of time, your back-end game server should |
|
|
|
|
// issue a new |
|
|
|
|
// [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] |
|
|
|
|
// request to get a fresh set of playable locations (because for example, they |
|
|
|
|
// might have been removed, a park might have closed for the day, a |
|
|
|
@ -125,54 +132,55 @@ message SamplePlayableLocationsResponse { |
|
|
|
|
|
|
|
|
|
// A request for logging your player's bad location reports. |
|
|
|
|
message LogPlayerReportsRequest { |
|
|
|
|
// Required. Player reports. The maximum number of player reports that you can log at |
|
|
|
|
// once is 50. |
|
|
|
|
repeated PlayerReport player_reports = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// 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. |
|
|
|
|
// Required. Player reports. The maximum number of player reports that you can |
|
|
|
|
// log at once is 50. |
|
|
|
|
repeated PlayerReport player_reports = 1 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// 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. |
|
|
|
|
string request_id = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. Information about the client device (for example, device model and |
|
|
|
|
// operating system). |
|
|
|
|
google.maps.unity.ClientInfo client_info = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
// Required. Information about the client device (for example, device model |
|
|
|
|
// and operating system). |
|
|
|
|
google.maps.unity.ClientInfo client_info = 3 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// A response for the [LogPlayerReports][google.maps.playablelocations.v3.PlayableLocations.LogPlayerReports] |
|
|
|
|
// A response for the |
|
|
|
|
// [LogPlayerReports][google.maps.playablelocations.v3.PlayableLocations.LogPlayerReports] |
|
|
|
|
// method. |
|
|
|
|
// |
|
|
|
|
// This method returns no data upon success. |
|
|
|
|
message LogPlayerReportsResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message LogPlayerReportsResponse {} |
|
|
|
|
|
|
|
|
|
// A request for logging impressions. |
|
|
|
|
message LogImpressionsRequest { |
|
|
|
|
// Required. Impression event details. The maximum number of impression reports that you |
|
|
|
|
// can log at once is 50. |
|
|
|
|
// Required. Impression event details. The maximum number of impression |
|
|
|
|
// reports that you can log at once is 50. |
|
|
|
|
repeated Impression impressions = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. A string that uniquely identifies the log impressions request. This allows |
|
|
|
|
// you to detect duplicate requests. We recommend that you use UUIDs for this |
|
|
|
|
// value. The value must not exceed 50 characters. |
|
|
|
|
// Required. A string that uniquely identifies the log impressions 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 case of |
|
|
|
|
// failure. In this case, the request must be identical to the one that |
|
|
|
|
// failed. |
|
|
|
|
string request_id = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. Information about the client device. For example, device model and |
|
|
|
|
// operating system. |
|
|
|
|
google.maps.unity.ClientInfo client_info = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
// Required. Information about the client device. For example, device model |
|
|
|
|
// and operating system. |
|
|
|
|
google.maps.unity.ClientInfo client_info = 3 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// A response for the [LogImpressions][google.maps.playablelocations.v3.PlayableLocations.LogImpressions] method. |
|
|
|
|
// This method returns no data upon success. |
|
|
|
|
message LogImpressionsResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// A response for the |
|
|
|
|
// [LogImpressions][google.maps.playablelocations.v3.PlayableLocations.LogImpressions] |
|
|
|
|
// method. This method returns no data upon success. |
|
|
|
|
message LogImpressionsResponse {} |
|
|
|
|