blob: e41dd1bcc3647185aeda7c659dd828b16fde7c04 [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.photos.html">photos</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchDelete">batchDelete(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Deletes a list of Photos and their</p>
80<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070081 <code><a href="#batchGet">batchGet(photoIds=None, view=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Gets the metadata of the specified</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#batchUpdate">batchUpdate(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Updates the metadata of Photos, such</p>
86<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <code><a href="#list">list(view=None, pageSize=None, pageToken=None, filter=None, languageCode=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists all the Photos that belong to</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code class="details" id="batchDelete">batchDelete(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095 <pre>Deletes a list of Photos and their
96metadata.
97
98Note that if
99BatchDeletePhotos
100fails, either critical fields are missing or there is an authentication
101error. Even if
102BatchDeletePhotos
103succeeds, individual photos in the batch may have failures.
104These failures are specified in each
105PhotoResponse.status
106in
107BatchDeletePhotosResponse.results.
108See
109DeletePhoto
110for specific failures that can occur per photo.
111
112Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 The object takes the form of:
115
116{ # Request to delete multiple Photos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;photoIds&quot;: [ # Required. IDs of the Photos. HTTP
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 # GET requests require the following syntax for the URL query parameter:
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 # `photoIds=&lt;id1&gt;&amp;photoIds=&lt;id2&gt;&amp;...`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 ],
122 }
123
124 x__xgafv: string, V1 error format.
125 Allowed values
126 1 - v1 error format
127 2 - v2 error format
128
129Returns:
130 An object of the form:
131
132 { # Response to batch delete of one or more
133 # Photos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;status&quot;: [ # The status for the operation to delete a single
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 # Photo in the batch request.
136 { # The `Status` type defines a logical error model that is suitable for
137 # different programming environments, including REST APIs and RPC APIs. It is
138 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
139 # three pieces of data: error code, error message, and error details.
140 #
141 # You can find out more about this error model and how to work with it in the
142 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
144 # user-facing error message should be localized and sent in the
145 # google.rpc.Status.details field, or localized by the client.
146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 # message types for APIs to use.
149 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 },
152 ],
153 },
154 ],
155 }</pre>
156</div>
157
158<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700159 <code class="details" id="batchGet">batchGet(photoIds=None, view=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 <pre>Gets the metadata of the specified
161Photo batch.
162
163Note that if
164BatchGetPhotos
165fails, either critical fields are missing or there is an authentication
166error. Even if
167BatchGetPhotos
168succeeds, individual photos in the batch may have failures.
169These failures are specified in each
170PhotoResponse.status
171in
172BatchGetPhotosResponse.results.
173See
174GetPhoto
175for specific failures that can occur per photo.
176
177Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 photoIds: string, Required. IDs of the Photos. For HTTP
179GET requests, the URL query parameter should be
Dan O'Mearadd494642020-05-01 07:42:23 -0700180`photoIds=&lt;id1&gt;&amp;photoIds=&lt;id2&gt;&amp;...`. (repeated)
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 view: string, Required. Specifies if a download URL for the photo bytes should be returned in the
182Photo response.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700183 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
184information, see
185http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
186If language_code is unspecified, the user&#x27;s language preference for Google
187services is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188 x__xgafv: string, V1 error format.
189 Allowed values
190 1 - v1 error format
191 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192
193Returns:
194 An object of the form:
195
196 { # Response to batch get of Photos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;results&quot;: [ # List of results for each individual
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 # Photo requested, in the same order as
199 # the requests in
200 # BatchGetPhotos.
201 { # Response payload for a single
202 # Photo
203 # in batch operations including
204 # BatchGetPhotos
205 # and
206 # BatchUpdatePhotos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # The status for the operation to get or update a single photo in the batch
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 # request.
209 # different programming environments, including REST APIs and RPC APIs. It is
210 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
211 # three pieces of data: error code, error message, and error details.
212 #
213 # You can find out more about this error model and how to work with it in the
214 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
216 # user-facing error message should be localized and sent in the
217 # google.rpc.Status.details field, or localized by the client.
218 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 # message types for APIs to use.
221 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223 },
224 ],
225 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700226 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request
227 # was successful.
228 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured.
229 # When the photo has no exif timestamp, this is used to set a timestamp in
230 # the photo metadata.
231 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this
232 # photo to another photo.
233 { # A connection is the link from a source photo to a destination photo.
234 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to
235 # another photo.
236 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
237 },
238 },
239 ],
240 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
241 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the
242 # photo bytes are uploaded to.
243 &quot;uploadUrl&quot;: &quot;A String&quot;, # Required. An upload reference should be unique for each user. It follows
244 # the form:
245 # &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
246 },
247 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
248 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
249 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68%
250 # confidence (one standard deviation). For example, on Android, this value is
251 # available from this method:
252 # https://developer.android.com/reference/android/location/Location#getAccuracy().
253 # Other platforms have different methods of obtaining similar accuracy
254 # estimations.
255 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid.
256 # NaN indicates an unmeasured quantity.
257 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise
258 # from North. Value must be &gt;=0 and &lt;360.
259 # NaN indicates an unmeasured quantity.
260 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
261 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters.
262 # Consider how the elevator buttons would be labeled for this level if there
263 # was an elevator.
264 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates
265 # the first level above ground level, -1 indicates the first level under
266 # ground level. Non-integer values are OK.
267 },
268 &quot;latLngPair&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Latitude and longitude pair of the pose, as explained here:
269 # https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
270 # When creating a Photo, if the
271 # latitude and longitude pair are not provided, the geolocation from the
272 # exif header is used. A latitude and longitude pair not provided in the
273 # photo or exif header causes the photo process to fail.
274 # of doubles representing degrees latitude and degrees longitude. Unless
275 # specified otherwise, this must conform to the
276 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
277 # standard&lt;/a&gt;. Values must be within normalized ranges.
278 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
279 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
280 },
281 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90
282 # and &lt;= 90. A value of -90 means looking directly down, and a value of 90
283 # means looking directly up.
284 # NaN indicates an unmeasured quantity.
285 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0
286 # means level with the horizon.
287 # NaN indicates an unmeasured quantity.
288 },
289 &quot;places&quot;: [ # Places where this photo belongs.
290 { # Place metadata for an entity.
291 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
292 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should
293 # be the language_code specified in the request, but may be a fallback.
294 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in
295 # https://developers.google.com/places/place-id.
296 },
297 ],
298 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only
299 # when
300 # GetPhotoRequest.view
301 # is set to
302 # PhotoView.INCLUDE_DOWNLOAD_URL.
303 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
304 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo.
305 # Identifier for the photo, which is unique among all photos in
306 # Google.
307 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
308 },
309 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or
310 # rejected. Not currently populated.
311 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
312 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 },
314 ],
315 }</pre>
316</div>
317
318<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700319 <code class="details" id="batchUpdate">batchUpdate(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 <pre>Updates the metadata of Photos, such
321as pose, place association, connections, etc. Changing the pixels of photos
322is not supported.
323
324Note that if
325BatchUpdatePhotos
326fails, either critical fields are missing or there is an authentication
327error. Even if
328BatchUpdatePhotos
329succeeds, individual photos in the batch may have failures.
330These failures are specified in each
331PhotoResponse.status
332in
333BatchUpdatePhotosResponse.results.
334See
335UpdatePhoto
336for specific failures that can occur per photo.
337
338Only the fields specified in
339updateMask
340field are used. If `updateMask` is not present, the update applies to all
341fields.
342
343The number of
344UpdatePhotoRequest
345messages in a
346BatchUpdatePhotosRequest
347must not exceed 20.
348
Bu Sun Kim65020912020-05-20 12:08:20 -0700349&lt;aside class=&quot;note&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; To update
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350Pose.altitude,
351Pose.latLngPair has to be
Dan O'Mearadd494642020-05-01 07:42:23 -0700352filled as well. Otherwise, the request will fail.&lt;/aside&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353
354Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 The object takes the form of:
357
358{ # Request to update the metadata of photos.
359 # Updating the pixels of photos is not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;updatePhotoRequests&quot;: [ # Required. List of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 # UpdatePhotoRequests.
362 { # Request to update the metadata of a
363 # Photo. Updating the pixels of a photo
364 # is not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;updateMask&quot;: &quot;A String&quot;, # Required. Mask that identifies fields on the photo metadata to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366 # If not present, the old Photo
367 # metadata is entirely replaced with the
368 # new Photo metadata in this request.
369 # The update fails if invalid fields are specified. Multiple fields can be
370 # specified in a comma-delimited list.
371 #
372 # The following fields are valid:
373 #
374 # * `pose.heading`
375 # * `pose.latLngPair`
376 # * `pose.pitch`
377 # * `pose.roll`
378 # * `pose.level`
379 # * `pose.altitude`
380 # * `connections`
381 # * `places`
382 #
383 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 # &lt;aside class=&quot;note&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; When
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 # updateMask
386 # contains repeated fields, the entire set of repeated values get replaced
387 # with the new contents. For example, if
388 # updateMask
389 # contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
Dan O'Mearadd494642020-05-01 07:42:23 -0700390 # all connections are removed.&lt;/aside&gt;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700391 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # Required. Photo object containing the
392 # new metadata.
393 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured.
394 # When the photo has no exif timestamp, this is used to set a timestamp in
395 # the photo metadata.
396 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this
397 # photo to another photo.
398 { # A connection is the link from a source photo to a destination photo.
399 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to
400 # another photo.
401 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
402 },
403 },
404 ],
405 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
406 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the
407 # photo bytes are uploaded to.
408 &quot;uploadUrl&quot;: &quot;A String&quot;, # Required. An upload reference should be unique for each user. It follows
409 # the form:
410 # &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
411 },
412 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
413 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
414 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68%
415 # confidence (one standard deviation). For example, on Android, this value is
416 # available from this method:
417 # https://developer.android.com/reference/android/location/Location#getAccuracy().
418 # Other platforms have different methods of obtaining similar accuracy
419 # estimations.
420 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid.
421 # NaN indicates an unmeasured quantity.
422 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise
423 # from North. Value must be &gt;=0 and &lt;360.
424 # NaN indicates an unmeasured quantity.
425 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
426 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters.
427 # Consider how the elevator buttons would be labeled for this level if there
428 # was an elevator.
429 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates
430 # the first level above ground level, -1 indicates the first level under
431 # ground level. Non-integer values are OK.
432 },
433 &quot;latLngPair&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Latitude and longitude pair of the pose, as explained here:
434 # https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
435 # When creating a Photo, if the
436 # latitude and longitude pair are not provided, the geolocation from the
437 # exif header is used. A latitude and longitude pair not provided in the
438 # photo or exif header causes the photo process to fail.
439 # of doubles representing degrees latitude and degrees longitude. Unless
440 # specified otherwise, this must conform to the
441 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
442 # standard&lt;/a&gt;. Values must be within normalized ranges.
443 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
444 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
445 },
446 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90
447 # and &lt;= 90. A value of -90 means looking directly down, and a value of 90
448 # means looking directly up.
449 # NaN indicates an unmeasured quantity.
450 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0
451 # means level with the horizon.
452 # NaN indicates an unmeasured quantity.
453 },
454 &quot;places&quot;: [ # Places where this photo belongs.
455 { # Place metadata for an entity.
456 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
457 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should
458 # be the language_code specified in the request, but may be a fallback.
459 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in
460 # https://developers.google.com/places/place-id.
461 },
462 ],
463 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only
464 # when
465 # GetPhotoRequest.view
466 # is set to
467 # PhotoView.INCLUDE_DOWNLOAD_URL.
468 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
469 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo.
470 # Identifier for the photo, which is unique among all photos in
471 # Google.
472 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
473 },
474 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or
475 # rejected. Not currently populated.
476 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
477 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 },
479 ],
480 }
481
482 x__xgafv: string, V1 error format.
483 Allowed values
484 1 - v1 error format
485 2 - v2 error format
486
487Returns:
488 An object of the form:
489
490 { # Response to batch update of metadata of one or more
491 # Photos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;results&quot;: [ # List of results for each individual
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 # Photo updated, in the same order as
494 # the request.
495 { # Response payload for a single
496 # Photo
497 # in batch operations including
498 # BatchGetPhotos
499 # and
500 # BatchUpdatePhotos.
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # The status for the operation to get or update a single photo in the batch
502 # request.
503 # different programming environments, including REST APIs and RPC APIs. It is
504 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
505 # three pieces of data: error code, error message, and error details.
506 #
507 # You can find out more about this error model and how to work with it in the
508 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700509 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
510 # user-facing error message should be localized and sent in the
511 # google.rpc.Status.details field, or localized by the client.
512 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
514 # message types for APIs to use.
515 {
516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
517 },
518 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700520 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request
521 # was successful.
522 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured.
523 # When the photo has no exif timestamp, this is used to set a timestamp in
524 # the photo metadata.
525 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this
526 # photo to another photo.
527 { # A connection is the link from a source photo to a destination photo.
528 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to
529 # another photo.
530 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
531 },
532 },
533 ],
534 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
535 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the
536 # photo bytes are uploaded to.
537 &quot;uploadUrl&quot;: &quot;A String&quot;, # Required. An upload reference should be unique for each user. It follows
538 # the form:
539 # &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
540 },
541 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
542 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
543 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68%
544 # confidence (one standard deviation). For example, on Android, this value is
545 # available from this method:
546 # https://developer.android.com/reference/android/location/Location#getAccuracy().
547 # Other platforms have different methods of obtaining similar accuracy
548 # estimations.
549 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid.
550 # NaN indicates an unmeasured quantity.
551 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise
552 # from North. Value must be &gt;=0 and &lt;360.
553 # NaN indicates an unmeasured quantity.
554 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
555 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters.
556 # Consider how the elevator buttons would be labeled for this level if there
557 # was an elevator.
558 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates
559 # the first level above ground level, -1 indicates the first level under
560 # ground level. Non-integer values are OK.
561 },
562 &quot;latLngPair&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Latitude and longitude pair of the pose, as explained here:
563 # https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
564 # When creating a Photo, if the
565 # latitude and longitude pair are not provided, the geolocation from the
566 # exif header is used. A latitude and longitude pair not provided in the
567 # photo or exif header causes the photo process to fail.
568 # of doubles representing degrees latitude and degrees longitude. Unless
569 # specified otherwise, this must conform to the
570 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
571 # standard&lt;/a&gt;. Values must be within normalized ranges.
572 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
573 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
574 },
575 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90
576 # and &lt;= 90. A value of -90 means looking directly down, and a value of 90
577 # means looking directly up.
578 # NaN indicates an unmeasured quantity.
579 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0
580 # means level with the horizon.
581 # NaN indicates an unmeasured quantity.
582 },
583 &quot;places&quot;: [ # Places where this photo belongs.
584 { # Place metadata for an entity.
585 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
586 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should
587 # be the language_code specified in the request, but may be a fallback.
588 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in
589 # https://developers.google.com/places/place-id.
590 },
591 ],
592 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only
593 # when
594 # GetPhotoRequest.view
595 # is set to
596 # PhotoView.INCLUDE_DOWNLOAD_URL.
597 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
598 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo.
599 # Identifier for the photo, which is unique among all photos in
600 # Google.
601 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
602 },
603 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or
604 # rejected. Not currently populated.
605 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 },
608 ],
609 }</pre>
610</div>
611
612<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700613 <code class="details" id="list">list(view=None, pageSize=None, pageToken=None, filter=None, languageCode=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 <pre>Lists all the Photos that belong to
615the user.
616
617&lt;aside class=&quot;note&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; Recently created photos that are still
618being indexed are not returned in the response.&lt;/aside&gt;
619
620Args:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700621 view: string, Required. Specifies if a download URL for the photos bytes should be returned in the
622Photos response.
623 pageSize: integer, The maximum number of photos to return.
624`pageSize` must be non-negative. If `pageSize` is zero or is not provided,
625the default page size of 100 is used.
626The number of photos returned in the response may be less than `pageSize`
627if the number of photos that belong to the user is less than `pageSize`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 pageToken: string, The
629nextPageToken
630value returned from a previous
631ListPhotos
632request, if any.
633 filter: string, Required. The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
634
635The only filter supported at the moment is `placeId`.
636 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more
637information, see
638http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
639If language_code is unspecified, the user&#x27;s language preference for Google
640services is used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 x__xgafv: string, V1 error format.
642 Allowed values
643 1 - v1 error format
644 2 - v2 error format
645
646Returns:
647 An object of the form:
648
649 { # Response to list all photos that belong to a user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;photos&quot;: [ # List of photos. The
651 # pageSize field
652 # in the request determines the number of items returned.
653 { # Photo is used to store 360 photos along with photo metadata.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700654 &quot;captureTime&quot;: &quot;A String&quot;, # Absolute time when the photo was captured.
655 # When the photo has no exif timestamp, this is used to set a timestamp in
656 # the photo metadata.
657 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this
658 # photo to another photo.
659 { # A connection is the link from a source photo to a destination photo.
660 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to
661 # another photo.
662 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
663 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700665 ],
666 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
667 &quot;uploadReference&quot;: { # Upload reference for media files. # Required when creating a photo. Input only. The resource URL where the
668 # photo bytes are uploaded to.
669 &quot;uploadUrl&quot;: &quot;A String&quot;, # Required. An upload reference should be unique for each user. It follows
670 # the form:
671 # &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700673 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
674 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
675 &quot;accuracyMeters&quot;: 3.14, # The estimated horizontal accuracy of this pose in meters with 68%
676 # confidence (one standard deviation). For example, on Android, this value is
677 # available from this method:
678 # https://developer.android.com/reference/android/location/Location#getAccuracy().
679 # Other platforms have different methods of obtaining similar accuracy
680 # estimations.
681 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid.
682 # NaN indicates an unmeasured quantity.
683 &quot;heading&quot;: 3.14, # Compass heading, measured at the center of the photo in degrees clockwise
684 # from North. Value must be &gt;=0 and &lt;360.
685 # NaN indicates an unmeasured quantity.
686 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
687 &quot;name&quot;: &quot;A String&quot;, # Required. A name assigned to this Level, restricted to 3 characters.
688 # Consider how the elevator buttons would be labeled for this level if there
689 # was an elevator.
690 &quot;number&quot;: 3.14, # Floor number, used for ordering. 0 indicates the ground level, 1 indicates
691 # the first level above ground level, -1 indicates the first level under
692 # ground level. Non-integer values are OK.
693 },
694 &quot;latLngPair&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair # Latitude and longitude pair of the pose, as explained here:
695 # https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
696 # When creating a Photo, if the
697 # latitude and longitude pair are not provided, the geolocation from the
698 # exif header is used. A latitude and longitude pair not provided in the
699 # photo or exif header causes the photo process to fail.
700 # of doubles representing degrees latitude and degrees longitude. Unless
701 # specified otherwise, this must conform to the
702 # &lt;a href=&quot;http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf&quot;&gt;WGS84
703 # standard&lt;/a&gt;. Values must be within normalized ranges.
704 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
705 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
706 },
707 &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90
708 # and &lt;= 90. A value of -90 means looking directly down, and a value of 90
709 # means looking directly up.
710 # NaN indicates an unmeasured quantity.
711 &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0
712 # means level with the horizon.
713 # NaN indicates an unmeasured quantity.
714 },
715 &quot;places&quot;: [ # Places where this photo belongs.
716 { # Place metadata for an entity.
717 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
718 &quot;languageCode&quot;: &quot;A String&quot;, # Output-only. The language_code that the name is localized with. This should
719 # be the language_code specified in the request, but may be a fallback.
720 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in
721 # https://developers.google.com/places/place-id.
722 },
723 ],
724 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only
725 # when
726 # GetPhotoRequest.view
727 # is set to
728 # PhotoView.INCLUDE_DOWNLOAD_URL.
729 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
730 &quot;photoId&quot;: { # Identifier for a Photo. # Required when updating a photo. Output only when creating a photo.
731 # Identifier for the photo, which is unique among all photos in
732 # Google.
733 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
734 },
735 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or
736 # rejected. Not currently populated.
737 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700738 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700740 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more
741 # results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700742 }</pre>
743</div>
744
745<div class="method">
746 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
747 <pre>Retrieves the next page of results.
748
749Args:
750 previous_request: The request for the previous page. (required)
751 previous_response: The response from the request for the previous page. (required)
752
753Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700755 page. Returns None if there are no more items in the collection.
756 </pre>
757</div>
758
759</body></html>