1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.maps.places.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21import "google/maps/places/v1/attribution.proto"; 22 23option cc_enable_arenas = true; 24option csharp_namespace = "Google.Maps.Places.V1"; 25option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; 26option java_multiple_files = true; 27option java_outer_classname = "PhotoProto"; 28option java_package = "com.google.maps.places.v1"; 29option objc_class_prefix = "GMPSV1"; 30option php_namespace = "Google\\Maps\\Places\\V1"; 31 32// Information about a photo of a place. 33message Photo { 34 option (google.api.resource) = { 35 type: "places.googleapis.com/Photo" 36 pattern: "places/{place}/photos/{photo}" 37 plural: "photos" 38 singular: "photo" 39 }; 40 41 // Identifier. A reference representing this place photo which may be used to 42 // look up this place photo again (also called the API "resource" name: 43 // `places/{place_id}/photos/{photo}`). 44 string name = 1 [(google.api.field_behavior) = IDENTIFIER]; 45 46 // The maximum available width, in pixels. 47 int32 width_px = 2; 48 49 // The maximum available height, in pixels. 50 int32 height_px = 3; 51 52 // This photo's authors. 53 repeated AuthorAttribution author_attributions = 4; 54} 55