blob: 3ef8b07724dbf168c2ccaba4f45efd7370f92d22 [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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080081 <code><a href="#batchGet">batchGet(languageCode=None, photoIds=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. *Note:* To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
89<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists all the Photos that belong to the user. *Note:* Recently created photos that are still being indexed are not returned in the response.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="batchDelete">batchDelete(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 <pre>Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099
100Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 The object takes the form of:
103
104{ # Request to delete multiple Photos.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800105 &quot;photoIds&quot;: [ # Required. IDs of the Photos. HTTP GET requests require the following syntax for the URL query parameter: `photoIds=&amp;photoIds=&amp;...`.
106 &quot;A String&quot;,
107 ],
108}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109
110 x__xgafv: string, V1 error format.
111 Allowed values
112 1 - v1 error format
113 2 - v2 error format
114
115Returns:
116 An object of the form:
117
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 { # Response to batch delete of one or more Photos.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;status&quot;: [ # The status for the operation to delete a single Photo in the batch request.
120 { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
121 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
122 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
123 {
124 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
125 },
126 ],
127 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
128 },
129 ],
130}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131</div>
132
133<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800134 <code class="details" id="batchGet">batchGet(languageCode=None, photoIds=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 <pre>Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136
137Args:
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800138 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800139 photoIds: string, Required. IDs of the Photos. For HTTP GET requests, the URL query parameter should be `photoIds=&amp;photoIds=&amp;...`. (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 view: string, Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.
141 Allowed values
142 BASIC - Server reponses do not include the download URL for the photo bytes. The default value.
143 INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148
149Returns:
150 An object of the form:
151
152 { # Response to batch get of Photos.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800153 &quot;results&quot;: [ # List of results for each individual Photo requested, in the same order as the requests in BatchGetPhotos.
154 { # Response payload for a single Photo in batch operations including BatchGetPhotos and BatchUpdatePhotos.
155 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request was successful.
156 &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.
157 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
158 { # A connection is the link from a source photo to a destination photo.
159 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800160 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
161 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 ],
164 &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.
165 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
166 &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.
167 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
168 },
169 &quot;places&quot;: [ # Places where this photo belongs.
170 { # Place metadata for an entity.
171 &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.
172 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
173 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
174 },
175 ],
176 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
177 &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.
178 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
179 &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.
180 &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 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.
181 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
182 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
183 },
184 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
185 &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.
186 &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.
187 },
188 &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.
189 &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.
190 },
191 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
192 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
193 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
194 &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 -0800195 &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 -0800196 },
197 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800199 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status for the operation to get or update a single photo in the batch request.
200 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
201 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
202 {
203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
204 },
205 ],
206 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
207 },
208 },
209 ],
210}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700211</div>
212
213<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700214 <code class="details" id="batchUpdate">batchUpdate(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 <pre>Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. *Note:* To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216
217Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700218 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 The object takes the form of:
220
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221{ # Request to update the metadata of photos. Updating the pixels of photos is not supported.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800222 &quot;updatePhotoRequests&quot;: [ # Required. List of UpdatePhotoRequests.
223 { # Request to update the metadata of a Photo. Updating the pixels of a photo is not supported.
224 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # Required. Photo object containing the new metadata.
225 &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.
226 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
227 { # A connection is the link from a source photo to a destination photo.
228 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800229 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
230 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800231 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800232 ],
233 &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.
234 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
235 &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.
236 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
237 },
238 &quot;places&quot;: [ # Places where this photo belongs.
239 { # Place metadata for an entity.
240 &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.
241 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
242 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
243 },
244 ],
245 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
246 &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.
247 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
248 &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.
249 &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 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.
250 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
251 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
252 },
253 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
254 &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.
255 &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.
256 },
257 &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.
258 &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.
259 },
260 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
261 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
262 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
263 &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 -0800264 &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 -0800265 },
266 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800268 &quot;updateMask&quot;: &quot;A String&quot;, # 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.
269 },
270 ],
271}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272
273 x__xgafv: string, V1 error format.
274 Allowed values
275 1 - v1 error format
276 2 - v2 error format
277
278Returns:
279 An object of the form:
280
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700281 { # Response to batch update of metadata of one or more Photos.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800282 &quot;results&quot;: [ # List of results for each individual Photo updated, in the same order as the request.
283 { # Response payload for a single Photo in batch operations including BatchGetPhotos and BatchUpdatePhotos.
284 &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request was successful.
285 &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.
286 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
287 { # A connection is the link from a source photo to a destination photo.
288 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800289 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
290 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800291 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800292 ],
293 &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.
294 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
295 &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.
296 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
297 },
298 &quot;places&quot;: [ # Places where this photo belongs.
299 { # Place metadata for an entity.
300 &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.
301 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
302 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
303 },
304 ],
305 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
306 &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.
307 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
308 &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.
309 &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 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.
310 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
311 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
312 },
313 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
314 &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.
315 &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.
316 },
317 &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.
318 &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.
319 },
320 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
321 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
322 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
323 &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 -0800324 &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 -0800325 },
326 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700327 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status for the operation to get or update a single photo in the batch request.
329 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
330 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
331 {
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334 ],
335 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
336 },
337 },
338 ],
339}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700340</div>
341
342<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700343 <code class="details" id="close">close()</code>
344 <pre>Close httplib2 connections.</pre>
345</div>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700346
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700347<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800348 <code class="details" id="list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700349 <pre>Lists all the Photos that belong to the user. *Note:* Recently created photos that are still being indexed are not returned in the response.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350
351Args:
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800352 filter: string, Required. The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The only filter supported at the moment is `placeId`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800353 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.
354 pageSize: integer, The maximum number of photos to return. `pageSize` must be non-negative. If `pageSize` is zero or is not provided, the default page size of 100 is used. The number of photos returned in the response may be less than `pageSize` if the number of photos that belong to the user is less than `pageSize`.
355 pageToken: string, The nextPageToken value returned from a previous ListPhotos request, if any.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700356 view: string, Required. Specifies if a download URL for the photos bytes should be returned in the Photos response.
357 Allowed values
358 BASIC - Server reponses do not include the download URL for the photo bytes. The default value.
359 INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700360 x__xgafv: string, V1 error format.
361 Allowed values
362 1 - v1 error format
363 2 - v2 error format
364
365Returns:
366 An object of the form:
367
368 { # Response to list all photos that belong to a user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800369 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
370 &quot;photos&quot;: [ # List of photos. The pageSize field in the request determines the number of items returned.
371 { # Photo is used to store 360 photos along with photo metadata.
372 &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.
373 &quot;connections&quot;: [ # Connections to other photos. A connection represents the link from this photo to another photo.
374 { # A connection is the link from a source photo to a destination photo.
375 &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800376 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
377 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800378 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800379 ],
380 &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.
381 &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated.
382 &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.
383 &quot;id&quot;: &quot;A String&quot;, # Required. A unique identifier for a photo.
384 },
385 &quot;places&quot;: [ # Places where this photo belongs.
386 { # Place metadata for an entity.
387 &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.
388 &quot;name&quot;: &quot;A String&quot;, # Output-only. The name of the place, localized to the language_code.
389 &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
390 },
391 ],
392 &quot;pose&quot;: { # Raw pose measurement for an entity. # Pose of the photo.
393 &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.
394 &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
395 &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.
396 &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 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.
397 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
398 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
399 },
400 &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
401 &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.
402 &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.
403 },
404 &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.
405 &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.
406 },
407 &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
408 &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
409 &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
410 &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 -0800411 &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 -0800412 },
413 &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
414 },
415 ],
416}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417</div>
418
419<div class="method">
420 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
421 <pre>Retrieves the next page of results.
422
423Args:
424 previous_request: The request for the previous page. (required)
425 previous_response: The response from the request for the previous page. (required)
426
427Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 page. Returns None if there are no more items in the collection.
430 </pre>
431</div>
432
433</body></html>