blob: e5697bf8eafdec75f696eb022b84e4dd24a56328 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="streetviewpublish_v1.html">Street View Publish API</a> . <a href="streetviewpublish_v1.photo.html">photo</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the [Photo Sphere XMP metadata](https://developers.google.com/streetview/spherical-metadata) in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(photoId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a Photo and its metadata. 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 photo ID does not exist.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#get">get(photoId, languageCode=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">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.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#startUpload">startUpload(body=None, x__xgafv=None)</a></code></p>
yoshi-code-bot69706592021-03-03 03:54:02 -080091<p class="firstline">Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned UploadRef to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses UploadRef with CreatePhoto to create the Photo object entry.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If `updateMask` is not present, the update applies to all fields. 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.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <pre>After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the [Photo Sphere XMP metadata](https://developers.google.com/streetview/spherical-metadata) in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104
105Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 The object takes the form of:
108
109{ # Photo is used to store 360 photos along with photo metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800110 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
111 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
112 { # A connection is the link from a source photo to a destination photo.
113 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700114 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800115 },
116 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 ],
118 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
119 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
120 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700121 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 },
123 &quot;places&quot;: [ # Places where this photo belongs.
124 { # Place metadata for an entity.
125 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
126 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
127 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800128 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800129 ],
130 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
131 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.
132 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
133 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700134 &quot;latLngPair&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800135 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
136 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800137 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
139 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
140 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
141 },
142 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
143 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
144 },
145 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
146 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
147 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
148 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
yoshi-code-bot69706592021-03-03 03:54:02 -0800149 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800150 },
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700151 &quot;uploadTime&quot;: &quot;A String&quot;, # Time when the image was uploaded.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
153}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700154
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160Returns:
161 An object of the form:
162
163 { # Photo is used to store 360 photos along with photo metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800164 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
165 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
166 { # A connection is the link from a source photo to a destination photo.
167 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700168 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800169 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 },
171 ],
172 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
173 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
174 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700175 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 },
177 &quot;places&quot;: [ # Places where this photo belongs.
178 { # Place metadata for an entity.
179 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
180 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
181 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
182 },
183 ],
184 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
185 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.
186 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
187 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700188 &quot;latLngPair&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
190 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
191 },
192 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
193 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
194 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
195 },
196 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
197 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
198 },
199 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
200 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
201 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
202 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
yoshi-code-bot69706592021-03-03 03:54:02 -0800203 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800204 },
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700205 &quot;uploadTime&quot;: &quot;A String&quot;, # Time when the image was uploaded.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
207}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208</div>
209
210<div class="method">
211 <code class="details" id="delete">delete(photoId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 <pre>Deletes a Photo and its metadata. 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 photo ID does not exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213
214Args:
215 photoId: string, Required. ID of the Photo. (required)
216 x__xgafv: string, V1 error format.
217 Allowed values
218 1 - v1 error format
219 2 - v2 error format
220
221Returns:
222 An object of the form:
223
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700224 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800225}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226</div>
227
228<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800229 <code class="details" id="get">get(photoId, languageCode=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700230 <pre>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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231
232Args:
233 photoId: string, Required. ID of the Photo. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user&#x27;s language preference for Google services is used.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 view: string, Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.
236 Allowed values
yoshi-code-bot7700bbf2021-05-20 04:44:03 -0700237 BASIC - Server responses do not include the download URL for the photo bytes. The default value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700238 INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243
244Returns:
245 An object of the form:
246
247 { # Photo is used to store 360 photos along with photo metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800248 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
249 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
250 { # A connection is the link from a source photo to a destination photo.
251 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700252 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800253 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800254 },
255 ],
256 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
257 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
258 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700259 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800260 },
261 &quot;places&quot;: [ # Places where this photo belongs.
262 { # Place metadata for an entity.
263 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
264 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
265 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
266 },
267 ],
268 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
269 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.
270 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
271 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700272 &quot;latLngPair&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800273 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
274 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
275 },
276 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
277 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
278 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
279 },
280 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
281 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
282 },
283 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
284 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
285 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
286 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
yoshi-code-bot69706592021-03-03 03:54:02 -0800287 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800288 },
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700289 &quot;uploadTime&quot;: &quot;A String&quot;, # Time when the image was uploaded.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800290 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
291}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292</div>
293
294<div class="method">
295 <code class="details" id="startUpload">startUpload(body=None, x__xgafv=None)</code>
yoshi-code-bot69706592021-03-03 03:54:02 -0800296 <pre>Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned UploadRef to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses UploadRef with CreatePhoto to create the Photo object entry.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297
298Args:
299 body: object, The request body.
300 The object takes the form of:
301
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700302{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800303}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304
305 x__xgafv: string, V1 error format.
306 Allowed values
307 1 - v1 error format
308 2 - v2 error format
309
310Returns:
311 An object of the form:
312
313 { # Upload reference for media files.
yoshi-code-bot69706592021-03-03 03:54:02 -0800314 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800315}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316</div>
317
318<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700319 <code class="details" id="update">update(id, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700320 <pre>Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If `updateMask` is not present, the update applies to all fields. 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.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321
322Args:
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700323 id: string, A unique identifier for a photo. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700324 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 The object takes the form of:
326
327{ # Photo is used to store 360 photos along with photo metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
329 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
330 { # A connection is the link from a source photo to a destination photo.
331 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700332 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800333 },
334 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800335 ],
336 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
337 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
338 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700339 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 },
341 &quot;places&quot;: [ # Places where this photo belongs.
342 { # Place metadata for an entity.
343 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
344 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
345 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800346 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800347 ],
348 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
349 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.
350 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
351 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700352 &quot;latLngPair&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800353 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
354 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800355 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800356 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
357 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
358 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
359 },
360 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
361 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
362 },
363 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
364 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
365 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
366 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
yoshi-code-bot69706592021-03-03 03:54:02 -0800367 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800368 },
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700369 &quot;uploadTime&quot;: &quot;A String&quot;, # Time when the image was uploaded.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800370 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
371}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700373 updateMask: string, Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` *Note:* When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 x__xgafv: string, V1 error format.
375 Allowed values
376 1 - v1 error format
377 2 - v2 error format
378
379Returns:
380 An object of the form:
381
382 { # Photo is used to store 360 photos along with photo metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
384 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
385 { # A connection is the link from a source photo to a destination photo.
386 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700387 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800388 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800389 },
390 ],
391 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
392 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
393 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700394 &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800395 },
396 &quot;places&quot;: [ # Places where this photo belongs.
397 { # Place metadata for an entity.
398 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback.
399 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
400 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
401 },
402 ],
403 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
404 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations.
405 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
406 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
yoshi-code-bot807277b2021-04-22 04:38:02 -0700407 &quot;latLngPair&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800408 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
409 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
410 },
411 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
412 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator.
413 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK.
414 },
415 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
416 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
417 },
418 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
419 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
420 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
421 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
yoshi-code-bot69706592021-03-03 03:54:02 -0800422 &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800423 },
yoshi-code-bote5e87b12021-09-14 00:22:34 -0700424 &quot;uploadTime&quot;: &quot;A String&quot;, # Time when the image was uploaded.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800425 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
426}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700427</div>
428
429</body></html>