Class PhotoResource.GetRequest
Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.
Inheritance
Inherited Members
Namespace: Google.Apis.StreetViewPublish.v1
Assembly: Google.Apis.StreetViewPublish.v1.dll
Syntax
public class PhotoResource.GetRequest : StreetViewPublishBaseServiceRequest<Photo>, IClientServiceRequest<Photo>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string photoId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | photoId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services is used.
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PhotoId
Required. ID of the Photo.
Declaration
[RequestParameter("photoId", RequestParameterType.Path)]
public virtual string PhotoId { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
View
Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.
Declaration
[RequestParameter("view", RequestParameterType.Query)]
public virtual PhotoResource.GetRequest.ViewEnum? View { get; set; }
Property Value
Type | Description |
---|---|
PhotoResource.GetRequest.ViewEnum? |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()