Skip to content

Commit

Permalink
docs: change comments for some fields in Places API
Browse files Browse the repository at this point in the history
feat: add new wheelchair accessibility fields
feat: add new primary type fields
feat: add new short formatted address field

PiperOrigin-RevId: 588852313
  • Loading branch information
Google APIs authored and Copybara-Service committed Dec 7, 2023
1 parent 8a82c29 commit fe38367
Show file tree
Hide file tree
Showing 6 changed files with 361 additions and 337 deletions.
1 change: 1 addition & 0 deletions google/maps/places/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ csharp_gapic_library(
grpc_service_config = "places_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "places_v1.yaml",
transport = "grpc+rest",
deps = [
":places_csharp_grpc",
":places_csharp_proto",
Expand Down
18 changes: 8 additions & 10 deletions google/maps/places/v1/attribution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ syntax = "proto3";

package google.maps.places.v1;

import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Maps.Places.V1";
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
Expand All @@ -31,16 +29,16 @@ option php_namespace = "Google\\Maps\\Places\\V1";
// [Photo][google.maps.places.v1.Photo], and
// [Review][google.maps.places.v1.Review].
message AuthorAttribution {
// Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
// or [Review][google.maps.places.v1.Review].
string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// Name of the author of the [Photo][google.maps.places.v1.Photo] or
// [Review][google.maps.places.v1.Review].
string display_name = 1;

// Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
// or [Review][google.maps.places.v1.Review].
string uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// URI of the author of the [Photo][google.maps.places.v1.Photo] or
// [Review][google.maps.places.v1.Review].
string uri = 2;

// Output only. Profile photo URI of the author of the
// Profile photo URI of the author of the
// [Photo][google.maps.places.v1.Photo] or
// [Review][google.maps.places.v1.Review].
string photo_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
string photo_uri = 3;
}
21 changes: 10 additions & 11 deletions google/maps/places/v1/photo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,17 @@ message Photo {
singular: "photo"
};

// Output only. A reference representing this place photo which may be used to
// look up this place photo again (a.k.a. the API "resource" name:
// places/{place_id}/photos/{photo}).
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// Identifier. A reference representing this place photo which may be used to
// look up this place photo again (also called the API "resource" name:
// `places/{place_id}/photos/{photo}`).
string name = 1 [(google.api.field_behavior) = IDENTIFIER];

// Output only. The maximum available width, in pixels.
int32 width_px = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// The maximum available width, in pixels.
int32 width_px = 2;

// Output only. The maximum available height, in pixels.
int32 height_px = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
// The maximum available height, in pixels.
int32 height_px = 3;

// Output only. This photo's authors.
repeated AuthorAttribution author_attributions = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
// This photo's authors.
repeated AuthorAttribution author_attributions = 4;
}

0 comments on commit fe38367

Please sign in to comment.