Show / Hide Table of Contents

Class GetPhotoMediaRequest

Request for fetching a photo of a place using a photo resource name.

Inheritance
object
GetPhotoMediaRequest
Implements
IMessage<GetPhotoMediaRequest>
IEquatable<GetPhotoMediaRequest>
IDeepCloneable<GetPhotoMediaRequest>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class GetPhotoMediaRequest : IMessage<GetPhotoMediaRequest>, IEquatable<GetPhotoMediaRequest>, IDeepCloneable<GetPhotoMediaRequest>, IBufferMessage, IMessage

Constructors

GetPhotoMediaRequest()

Declaration
public GetPhotoMediaRequest()

GetPhotoMediaRequest(GetPhotoMediaRequest)

Declaration
public GetPhotoMediaRequest(GetPhotoMediaRequest other)
Parameters
Type Name Description
GetPhotoMediaRequest other

Properties

MaxHeightPx

Optional. Specifies the maximum desired height, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned.

At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.

Declaration
public int MaxHeightPx { get; set; }
Property Value
Type Description
int

MaxWidthPx

Optional. Specifies the maximum desired width, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned.

At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.

Declaration
public int MaxWidthPx { get; set; }
Property Value
Type Description
int

Name

Required. The resource name of a photo media in the format: places/{place_id}/photos/{photo_reference}/media.

The resource name of a photo as returned in a Place object's photos.name field comes with the format places/{place_id}/photos/{photo_reference}. You need to append /media at the end of the photo resource to get the photo media resource name.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

PhotoMediaName

PhotoMediaName-typed view over the Name resource name property.

Declaration
public PhotoMediaName PhotoMediaName { get; set; }
Property Value
Type Description
PhotoMediaName

SkipHttpRedirect

Optional. If set, skip the default HTTP redirect behavior and render a text format (for example, in JSON format for HTTP use case) response. If not set, an HTTP redirect will be issued to redirect the call to the image media. This option is ignored for non-HTTP requests.

Declaration
public bool SkipHttpRedirect { get; set; }
Property Value
Type Description
bool
In this article
Back to top Generated by DocFX