Show / Hide Table of Contents

Class PlacesResource.PhotosResource.GetMediaRequest

Get a photo media with a photo reference string.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>
PlacesResource.PhotosResource.GetMediaRequest
Implements
IClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>
IClientServiceRequest
Inherited Members
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Xgafv
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.AccessToken
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Alt
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Callback
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Fields
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Key
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.OauthToken
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.PrettyPrint
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.QuotaUser
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.UploadType
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.UploadProtocol
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Execute()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ExecuteAsStream()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ExecuteAsync()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.CreateRequest(bool?)
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.GenerateRequestUri()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.GetBody()
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ETagAction
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ModifyRequest
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ValidateParameters
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.ApiVersion
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.RequestParameters
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.MapsPlaces.v1
Assembly: Google.Apis.MapsPlaces.v1.dll
Syntax
public class PlacesResource.PhotosResource.GetMediaRequest : MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>, IClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>, IClientServiceRequest

Constructors

GetMediaRequest(IClientService, string)

Constructs a new GetMedia request.

Declaration
public GetMediaRequest(IClientService service, string name)
Parameters
Type Name Description
IClientService service
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.HttpMethod

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
[RequestParameter("maxHeightPx", RequestParameterType.Query)]
public virtual 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
[RequestParameter("maxWidthPx", RequestParameterType.Query)]
public virtual int? MaxWidthPx { get; set; }
Property Value
Type Description
int?

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.MethodName

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
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>.RestPath

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
[RequestParameter("skipHttpRedirect", RequestParameterType.Query)]
public virtual bool? SkipHttpRedirect { get; set; }
Property Value
Type Description
bool?

Methods

InitParameters()

Initializes GetMedia parameter list.

Declaration
protected override void InitParameters()
Overrides
MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX