chore: migrate maps/playablelocations to the PHP microgenerator

Committer: @miraleung
PiperOrigin-RevId: 373589757
pull/653/head
Google APIs 4 years ago committed by Copybara-Service
parent b29fb6b9fc
commit 7467f29ba8
  1. 14
      google/maps/playablelocations/v3/BUILD.bazel
  2. 78
      google/maps/playablelocations/v3/playablelocations.proto
  3. 12
      google/maps/playablelocations/v3/playablelocations_gapic.yaml
  4. 4
      google/maps/playablelocations/v3/resources.proto
  5. 5
      google/maps/playablelocations/v3/sample/BUILD.bazel

@ -148,13 +148,14 @@ go_gapic_assembly_pkg(
##############################################################################
# PHP
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_grpc_library",
"php_proto_library",
php_gapic_assembly_pkg = "php_gapic_assembly_pkg2",
php_gapic_library = "php_gapic_library2",
php_grpc_library = "php_grpc_library2",
php_proto_library = "php_proto_library2",
)
php_proto_library(
@ -170,10 +171,7 @@ php_grpc_library(
php_gapic_library(
name = "playablelocations_php_gapic",
src = ":playablelocations_proto_with_info",
gapic_yaml = "playablelocations_gapic.yaml",
package = "google.maps.playablelocations.v3",
service_yaml = "playablelocations_v3.yaml",
srcs = [":playablelocations_proto_with_info"],
deps = [
":playablelocations_php_grpc",
":playablelocations_php_proto",

@ -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 {}

@ -1,14 +1,2 @@
type: com.google.api.codegen.ConfigProto
config_schema_version: 2.0.0
language_settings:
go:
package_name: developers.google.com/maps/go/playablelocations/v3
csharp:
package_name: Google.Maps.PlayableLocations.V3
ruby:
package_name: Google::Maps::PlayableLocations::V3
php:
package_name: Google\Maps\PlayableLocations\V3
nodejs:
package_name: playablelocations.v3
domain_layer_location: googlemaps

@ -25,6 +25,7 @@ option go_package = "google.golang.org/genproto/googleapis/maps/playablelocation
option java_multiple_files = true;
option java_outer_classname = "ResourcesProto";
option java_package = "com.google.maps.playablelocations.v3";
option php_namespace = "Google\\Maps\\PlayableLocations\\V3";
option objc_class_prefix = "GMPL";
// A report submitted by a player about a playable location that is considered
@ -59,7 +60,8 @@ message PlayerReport {
string location_name = 1 [(google.api.field_behavior) = REQUIRED];
// Required. One or more reasons why this playable location is considered bad.
repeated BadLocationReason reasons = 2 [(google.api.field_behavior) = REQUIRED];
repeated BadLocationReason reasons = 2
[(google.api.field_behavior) = REQUIRED];
// Required. A free-form description detailing why the playable location is
// considered bad.

@ -61,11 +61,12 @@ go_proto_library(
##############################################################################
# PHP
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_grpc_library",
"php_proto_library",
php_grpc_library = "php_grpc_library2",
php_proto_library = "php_proto_library2",
)
php_proto_library(

Loading…
Cancel
Save