OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/streetviewpublish": { | 5 "https://www.googleapis.com/auth/streetviewpublish": { |
6 "description": "Publish and manage your 360 photos on Google
Street View" | 6 "description": "Publish and manage your 360 photos on Google
Street View" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
(...skipping 28 matching lines...) Expand all Loading... |
39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
40 "location": "query", | 40 "location": "query", |
41 "type": "string" | 41 "type": "string" |
42 }, | 42 }, |
43 "prettyPrint": { | 43 "prettyPrint": { |
44 "default": "true", | 44 "default": "true", |
45 "description": "Returns response with indentations and line breaks."
, | 45 "description": "Returns response with indentations and line breaks."
, |
46 "location": "query", | 46 "location": "query", |
47 "type": "boolean" | 47 "type": "boolean" |
48 }, | 48 }, |
| 49 "uploadType": { |
| 50 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
49 "fields": { | 54 "fields": { |
50 "description": "Selector specifying which fields to include in a par
tial response.", | 55 "description": "Selector specifying which fields to include in a par
tial response.", |
51 "location": "query", | 56 "location": "query", |
52 "type": "string" | 57 "type": "string" |
53 }, | 58 }, |
54 "uploadType": { | |
55 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
56 "location": "query", | |
57 "type": "string" | |
58 }, | |
59 "callback": { | |
60 "description": "JSONP", | |
61 "location": "query", | |
62 "type": "string" | |
63 }, | |
64 "$.xgafv": { | 59 "$.xgafv": { |
65 "description": "V1 error format.", | 60 "description": "V1 error format.", |
66 "enum": [ | 61 "enum": [ |
67 "1", | 62 "1", |
68 "2" | 63 "2" |
69 ], | 64 ], |
70 "enumDescriptions": [ | 65 "enumDescriptions": [ |
71 "v1 error format", | 66 "v1 error format", |
72 "v2 error format" | 67 "v2 error format" |
73 ], | 68 ], |
74 "location": "query", | 69 "location": "query", |
75 "type": "string" | 70 "type": "string" |
76 }, | 71 }, |
| 72 "callback": { |
| 73 "description": "JSONP", |
| 74 "location": "query", |
| 75 "type": "string" |
| 76 }, |
77 "alt": { | 77 "alt": { |
78 "default": "json", | 78 "default": "json", |
79 "description": "Data format for response.", | 79 "description": "Data format for response.", |
80 "enum": [ | 80 "enum": [ |
81 "json", | 81 "json", |
82 "media", | 82 "media", |
83 "proto" | 83 "proto" |
84 ], | 84 ], |
85 "enumDescriptions": [ | 85 "enumDescriptions": [ |
86 "Responses with Content-Type of application/json", | 86 "Responses with Content-Type of application/json", |
87 "Media download with context-dependent Content-Type", | 87 "Media download with context-dependent Content-Type", |
88 "Responses with Content-Type of application/x-protobuf" | 88 "Responses with Content-Type of application/x-protobuf" |
89 ], | 89 ], |
90 "location": "query", | 90 "location": "query", |
91 "type": "string" | 91 "type": "string" |
92 }, | 92 }, |
| 93 "access_token": { |
| 94 "description": "OAuth access token.", |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
93 "key": { | 98 "key": { |
94 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 99 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
95 "location": "query", | 100 "location": "query", |
96 "type": "string" | 101 "type": "string" |
97 }, | 102 }, |
98 "access_token": { | |
99 "description": "OAuth access token.", | |
100 "location": "query", | |
101 "type": "string" | |
102 }, | |
103 "quotaUser": { | 103 "quotaUser": { |
104 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 104 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
105 "location": "query", | 105 "location": "query", |
106 "type": "string" | 106 "type": "string" |
107 }, | 107 }, |
108 "pp": { | 108 "pp": { |
109 "default": "true", | 109 "default": "true", |
110 "description": "Pretty-print response.", | 110 "description": "Pretty-print response.", |
111 "location": "query", | 111 "location": "query", |
112 "type": "boolean" | 112 "type": "boolean" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "photo": { | 117 "photo": { |
118 "methods": { | 118 "methods": { |
| 119 "delete": { |
| 120 "description": "Deletes a Photo and its metadata.\n\nThis me
thod returns the following error codes:\n\n* google.rpc.Code.PERMISSION_DENIED i
f the requesting user did not\ncreate the requested photo.\n* google.rpc.Code.NO
T_FOUND if the photo ID does not exist.", |
| 121 "httpMethod": "DELETE", |
| 122 "id": "streetviewpublish.photo.delete", |
| 123 "parameterOrder": [ |
| 124 "photoId" |
| 125 ], |
| 126 "parameters": { |
| 127 "photoId": { |
| 128 "description": "Required. ID of the Photo.", |
| 129 "location": "path", |
| 130 "required": true, |
| 131 "type": "string" |
| 132 } |
| 133 }, |
| 134 "path": "v1/photo/{photoId}", |
| 135 "response": { |
| 136 "$ref": "Empty" |
| 137 }, |
| 138 "scopes": [ |
| 139 "https://www.googleapis.com/auth/streetviewpublish" |
| 140 ] |
| 141 }, |
119 "get": { | 142 "get": { |
120 "description": "Gets the metadata of the specified\nPhoto.\n
\nThis method returns the following error codes:\n\n* google.rpc.Code.PERMISSION
_DENIED if the requesting user did not\ncreate the requested Photo.\n* google.rp
c.Code.NOT_FOUND if the requested\nPhoto does not exist.", | 143 "description": "Gets the metadata of the specified\nPhoto.\n
\nThis method returns the following error codes:\n\n* google.rpc.Code.PERMISSION
_DENIED if the requesting user did not\ncreate the requested Photo.\n* google.rp
c.Code.NOT_FOUND if the requested\nPhoto does not exist.", |
121 "httpMethod": "GET", | 144 "httpMethod": "GET", |
122 "id": "streetviewpublish.photo.get", | 145 "id": "streetviewpublish.photo.get", |
123 "parameterOrder": [ | 146 "parameterOrder": [ |
124 "photoId" | 147 "photoId" |
125 ], | 148 ], |
126 "parameters": { | 149 "parameters": { |
| 150 "photoId": { |
| 151 "description": "Required. ID of the Photo.", |
| 152 "location": "path", |
| 153 "required": true, |
| 154 "type": "string" |
| 155 }, |
127 "view": { | 156 "view": { |
128 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", | 157 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", |
129 "enum": [ | 158 "enum": [ |
130 "BASIC", | 159 "BASIC", |
131 "INCLUDE_DOWNLOAD_URL" | 160 "INCLUDE_DOWNLOAD_URL" |
132 ], | 161 ], |
133 "location": "query", | 162 "location": "query", |
134 "type": "string" | 163 "type": "string" |
135 }, | |
136 "photoId": { | |
137 "description": "Required. ID of the Photo.", | |
138 "location": "path", | |
139 "required": true, | |
140 "type": "string" | |
141 } | 164 } |
142 }, | 165 }, |
143 "path": "v1/photo/{photoId}", | 166 "path": "v1/photo/{photoId}", |
144 "response": { | 167 "response": { |
145 "$ref": "Photo" | 168 "$ref": "Photo" |
146 }, | 169 }, |
147 "scopes": [ | 170 "scopes": [ |
148 "https://www.googleapis.com/auth/streetviewpublish" | 171 "https://www.googleapis.com/auth/streetviewpublish" |
149 ] | 172 ] |
150 }, | 173 }, |
151 "update": { | 174 "update": { |
152 "description": "Updates the metadata of a Photo, such\nas po
se, place association, connections, etc. Changing the pixels of a\nphoto is not
supported.\n\nThis method returns the following error codes:\n\n* google.rpc.Cod
e.PERMISSION_DENIED if the requesting user did not\ncreate the requested photo.\
n* google.rpc.Code.INVALID_ARGUMENT if the request is malformed.\n* google.rpc.C
ode.NOT_FOUND if the requested photo does not exist.", | 175 "description": "Updates the metadata of a Photo, such\nas po
se, place association, connections, etc. Changing the pixels of a\nphoto is not
supported.\n\nOnly the fields specified in\nupdateMask\nfield are used. If `upda
teMask` is not present, the update applies to all\nfields.\n\n<aside class=\"not
e\"><b>Note:</b> To update\nPose.altitude,\nPose.latLngPair has to be\nfilled as
well. Otherwise, the request will fail.</aside>\n\nThis method returns the foll
owing error codes:\n\n* google.rpc.Code.PERMISSION_DENIED if the requesting user
did not\ncreate the requested photo.\n* google.rpc.Code.INVALID_ARGUMENT if the
request is malformed.\n* google.rpc.Code.NOT_FOUND if the requested photo does
not exist.", |
153 "httpMethod": "PUT", | 176 "httpMethod": "PUT", |
154 "id": "streetviewpublish.photo.update", | 177 "id": "streetviewpublish.photo.update", |
155 "parameterOrder": [ | 178 "parameterOrder": [ |
156 "id" | 179 "id" |
157 ], | 180 ], |
158 "parameters": { | 181 "parameters": { |
| 182 "id": { |
| 183 "description": "Required. A unique identifier for a
photo.", |
| 184 "location": "path", |
| 185 "required": true, |
| 186 "type": "string" |
| 187 }, |
159 "updateMask": { | 188 "updateMask": { |
160 "description": "Mask that identifies fields on the p
hoto metadata to update.\nIf not present, the old Photo metadata will be entirel
y replaced with the\nnew Photo metadata in this request. The update fails if inv
alid fields are\nspecified. Multiple fields can be specified in a comma-delimite
d list.\n\nThe following fields are valid:\n\n* `pose.heading`\n* `pose.latlngpa
ir`\n* `pose.pitch`\n* `pose.roll`\n* `pose.level`\n* `pose.altitude`\n* `connec
tions`\n* `places`\n\n\n<aside class=\"note\"><b>Note:</b> Repeated fields in\nu
pdateMask\nmean the entire set of repeated values will be replaced with the new\
ncontents. For example, if\nupdateMask\ncontains `connections` and\ngoogle.stree
tview.publish.v1.UpdatePhotoRequest.photo.connections is\nempty, all connections
will be removed.</aside>", | 189 "description": "Mask that identifies fields on the p
hoto metadata to update.\nIf not present, the old Photo metadata will be entirel
y replaced with the\nnew Photo metadata in this request. The update fails if inv
alid fields are\nspecified. Multiple fields can be specified in a comma-delimite
d list.\n\nThe following fields are valid:\n\n* `pose.heading`\n* `pose.latLngPa
ir`\n* `pose.pitch`\n* `pose.roll`\n* `pose.level`\n* `pose.altitude`\n* `connec
tions`\n* `places`\n\n\n<aside class=\"note\"><b>Note:</b> Repeated fields in\nu
pdateMask\nmean the entire set of repeated values will be replaced with the new\
ncontents. For example, if\nupdateMask\ncontains `connections` and `UpdatePhotoR
equest.photo.connections` is empty,\nall connections will be removed.</aside>", |
161 "format": "google-fieldmask", | 190 "format": "google-fieldmask", |
162 "location": "query", | 191 "location": "query", |
163 "type": "string" | 192 "type": "string" |
164 }, | |
165 "id": { | |
166 "description": "Required. A base64 encoded identifie
r.", | |
167 "location": "path", | |
168 "required": true, | |
169 "type": "string" | |
170 } | 193 } |
171 }, | 194 }, |
172 "path": "v1/photo/{id}", | 195 "path": "v1/photo/{id}", |
173 "request": { | 196 "request": { |
174 "$ref": "Photo" | 197 "$ref": "Photo" |
175 }, | 198 }, |
176 "response": { | 199 "response": { |
177 "$ref": "Photo" | 200 "$ref": "Photo" |
178 }, | 201 }, |
179 "scopes": [ | 202 "scopes": [ |
(...skipping 26 matching lines...) Expand all Loading... |
206 "path": "v1/photo:startUpload", | 229 "path": "v1/photo:startUpload", |
207 "request": { | 230 "request": { |
208 "$ref": "Empty" | 231 "$ref": "Empty" |
209 }, | 232 }, |
210 "response": { | 233 "response": { |
211 "$ref": "UploadRef" | 234 "$ref": "UploadRef" |
212 }, | 235 }, |
213 "scopes": [ | 236 "scopes": [ |
214 "https://www.googleapis.com/auth/streetviewpublish" | 237 "https://www.googleapis.com/auth/streetviewpublish" |
215 ] | 238 ] |
216 }, | |
217 "delete": { | |
218 "description": "Deletes a Photo and its metadata.\n\nThis me
thod returns the following error codes:\n\n* google.rpc.Code.PERMISSION_DENIED i
f the requesting user did not\ncreate the requested photo.\n* google.rpc.Code.NO
T_FOUND if the photo ID does not exist.", | |
219 "httpMethod": "DELETE", | |
220 "id": "streetviewpublish.photo.delete", | |
221 "parameterOrder": [ | |
222 "photoId" | |
223 ], | |
224 "parameters": { | |
225 "photoId": { | |
226 "description": "Required. ID of the Photo.", | |
227 "location": "path", | |
228 "required": true, | |
229 "type": "string" | |
230 } | |
231 }, | |
232 "path": "v1/photo/{photoId}", | |
233 "response": { | |
234 "$ref": "Empty" | |
235 }, | |
236 "scopes": [ | |
237 "https://www.googleapis.com/auth/streetviewpublish" | |
238 ] | |
239 } | 239 } |
240 } | 240 } |
241 }, | 241 }, |
242 "photos": { | 242 "photos": { |
243 "methods": { | 243 "methods": { |
| 244 "batchGet": { |
| 245 "description": "Gets the metadata of the specified\nPhoto ba
tch.\n\nNote that if\nBatchGetPhotos\nfails, either critical fields are missing
or there was an authentication\nerror. Even if\nBatchGetPhotos\nsucceeds, there
may have been failures for single photos in the batch.\nThese failures will be s
pecified in each\nPhotoResponse.status\nin\nBatchGetPhotosResponse.results.\nSee
\nGetPhoto\nfor specific failures that can occur per photo.", |
| 246 "httpMethod": "GET", |
| 247 "id": "streetviewpublish.photos.batchGet", |
| 248 "parameterOrder": [], |
| 249 "parameters": { |
| 250 "photoIds": { |
| 251 "description": "Required. IDs of the Photos. For HTT
P\nGET requests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id
2>&...`.", |
| 252 "location": "query", |
| 253 "repeated": true, |
| 254 "type": "string" |
| 255 }, |
| 256 "view": { |
| 257 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", |
| 258 "enum": [ |
| 259 "BASIC", |
| 260 "INCLUDE_DOWNLOAD_URL" |
| 261 ], |
| 262 "location": "query", |
| 263 "type": "string" |
| 264 } |
| 265 }, |
| 266 "path": "v1/photos:batchGet", |
| 267 "response": { |
| 268 "$ref": "BatchGetPhotosResponse" |
| 269 }, |
| 270 "scopes": [ |
| 271 "https://www.googleapis.com/auth/streetviewpublish" |
| 272 ] |
| 273 }, |
244 "list": { | 274 "list": { |
245 "description": "Lists all the Photos that belong to the user
.", | 275 "description": "Lists all the Photos that belong to\nthe use
r.", |
246 "httpMethod": "GET", | 276 "httpMethod": "GET", |
247 "id": "streetviewpublish.photos.list", | 277 "id": "streetviewpublish.photos.list", |
248 "parameterOrder": [], | 278 "parameterOrder": [], |
249 "parameters": { | 279 "parameters": { |
250 "filter": { | 280 "filter": { |
251 "description": "The filter expression. For example:
`placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", | 281 "description": "The filter expression. For example:
`placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", |
252 "location": "query", | 282 "location": "query", |
253 "type": "string" | 283 "type": "string" |
254 }, | 284 }, |
255 "pageToken": { | 285 "pageToken": { |
(...skipping 18 matching lines...) Expand all Loading... |
274 } | 304 } |
275 }, | 305 }, |
276 "path": "v1/photos", | 306 "path": "v1/photos", |
277 "response": { | 307 "response": { |
278 "$ref": "ListPhotosResponse" | 308 "$ref": "ListPhotosResponse" |
279 }, | 309 }, |
280 "scopes": [ | 310 "scopes": [ |
281 "https://www.googleapis.com/auth/streetviewpublish" | 311 "https://www.googleapis.com/auth/streetviewpublish" |
282 ] | 312 ] |
283 }, | 313 }, |
284 "batchDelete": { | |
285 "description": "Deletes a list of Photos and their metadata.
\n\nNote that if\nBatchDeletePhotos\nfails, either critical fields are missing o
r there was an authentication\nerror. Even if\nBatchDeletePhotos\nsucceeds, ther
e may have been failures for single photos in the batch.\nThese failures will be
specified in each\nPhotoResponse.status\nin\nBatchDeletePhotosResponse.results.
\nSee\nDeletePhoto\nfor specific failures that can occur per photo.", | |
286 "httpMethod": "POST", | |
287 "id": "streetviewpublish.photos.batchDelete", | |
288 "parameterOrder": [], | |
289 "parameters": {}, | |
290 "path": "v1/photos:batchDelete", | |
291 "request": { | |
292 "$ref": "BatchDeletePhotosRequest" | |
293 }, | |
294 "response": { | |
295 "$ref": "BatchDeletePhotosResponse" | |
296 }, | |
297 "scopes": [ | |
298 "https://www.googleapis.com/auth/streetviewpublish" | |
299 ] | |
300 }, | |
301 "batchUpdate": { | 314 "batchUpdate": { |
302 "description": "Updates the metadata of Photos, such\nas pos
e, place association, connections, etc. Changing the pixels of photos\nis not su
pported.\n\nNote that if\nBatchUpdatePhotos\nfails, either critical fields are m
issing or there was an authentication\nerror. Even if\nBatchUpdatePhotos\nsuccee
ds, there may have been failures for single photos in the batch.\nThese failures
will be specified in each\nPhotoResponse.status\nin\nBatchUpdatePhotosResponse.
results.\nSee\nUpdatePhoto\nfor specific failures that can occur per photo.", | 315 "description": "Updates the metadata of Photos, such\nas pos
e, place association, connections, etc. Changing the pixels of photos\nis not su
pported.\n\nNote that if\nBatchUpdatePhotos\nfails, either critical fields are m
issing or there was an authentication\nerror. Even if\nBatchUpdatePhotos\nsuccee
ds, there may have been failures for single photos in the batch.\nThese failures
will be specified in each\nPhotoResponse.status\nin\nBatchUpdatePhotosResponse.
results.\nSee\nUpdatePhoto\nfor specific failures that can occur per photo.\n\nO
nly the fields specified in\nupdateMask\nfield are used. If `updateMask` is not
present, the update applies to all\nfields.\n\n<aside class=\"note\"><b>Note:</b
> To update\nPose.altitude,\nPose.latLngPair has to be\nfilled as well. Otherwis
e, the request will fail.</aside>", |
303 "httpMethod": "POST", | 316 "httpMethod": "POST", |
304 "id": "streetviewpublish.photos.batchUpdate", | 317 "id": "streetviewpublish.photos.batchUpdate", |
305 "parameterOrder": [], | 318 "parameterOrder": [], |
306 "parameters": {}, | 319 "parameters": {}, |
307 "path": "v1/photos:batchUpdate", | 320 "path": "v1/photos:batchUpdate", |
308 "request": { | 321 "request": { |
309 "$ref": "BatchUpdatePhotosRequest" | 322 "$ref": "BatchUpdatePhotosRequest" |
310 }, | 323 }, |
311 "response": { | 324 "response": { |
312 "$ref": "BatchUpdatePhotosResponse" | 325 "$ref": "BatchUpdatePhotosResponse" |
313 }, | 326 }, |
314 "scopes": [ | 327 "scopes": [ |
315 "https://www.googleapis.com/auth/streetviewpublish" | 328 "https://www.googleapis.com/auth/streetviewpublish" |
316 ] | 329 ] |
317 }, | 330 }, |
318 "batchGet": { | 331 "batchDelete": { |
319 "description": "Gets the metadata of the specified\nPhoto ba
tch.\n\nNote that if\nBatchGetPhotos\nfails, either critical fields are missing
or there was an authentication\nerror. Even if\nBatchGetPhotos\nsucceeds, there
may have been failures for single photos in the batch.\nThese failures will be s
pecified in each\nPhotoResponse.status\nin\nBatchGetPhotosResponse.results.\nSee
\nGetPhoto\nfor specific failures that can occur per photo.", | 332 "description": "Deletes a list of Photos and their\nmetadata
.\n\nNote that if\nBatchDeletePhotos\nfails, either critical fields are missing
or there was an authentication\nerror. Even if\nBatchDeletePhotos\nsucceeds, the
re may have been failures for single photos in the batch.\nThese failures will b
e specified in each\nPhotoResponse.status\nin\nBatchDeletePhotosResponse.results
.\nSee\nDeletePhoto\nfor specific failures that can occur per photo.", |
320 "httpMethod": "GET", | 333 "httpMethod": "POST", |
321 "id": "streetviewpublish.photos.batchGet", | 334 "id": "streetviewpublish.photos.batchDelete", |
322 "parameterOrder": [], | 335 "parameterOrder": [], |
323 "parameters": { | 336 "parameters": {}, |
324 "view": { | 337 "path": "v1/photos:batchDelete", |
325 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", | 338 "request": { |
326 "enum": [ | 339 "$ref": "BatchDeletePhotosRequest" |
327 "BASIC", | |
328 "INCLUDE_DOWNLOAD_URL" | |
329 ], | |
330 "location": "query", | |
331 "type": "string" | |
332 }, | |
333 "photoIds": { | |
334 "description": "Required. IDs of the Photos. For HTT
P\nGET requests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id
2>&...`.", | |
335 "location": "query", | |
336 "repeated": true, | |
337 "type": "string" | |
338 } | |
339 }, | 340 }, |
340 "path": "v1/photos:batchGet", | |
341 "response": { | 341 "response": { |
342 "$ref": "BatchGetPhotosResponse" | 342 "$ref": "BatchDeletePhotosResponse" |
343 }, | 343 }, |
344 "scopes": [ | 344 "scopes": [ |
345 "https://www.googleapis.com/auth/streetviewpublish" | 345 "https://www.googleapis.com/auth/streetviewpublish" |
346 ] | 346 ] |
347 } | 347 } |
348 } | 348 } |
349 } | 349 } |
350 }, | 350 }, |
351 "revision": "20170722", | 351 "revision": "20170907", |
352 "rootUrl": "https://streetviewpublish.googleapis.com/", | 352 "rootUrl": "https://streetviewpublish.googleapis.com/", |
353 "schemas": { | 353 "schemas": { |
354 "UpdatePhotoRequest": { | 354 "PhotoId": { |
355 "description": "Request to update the metadata of a\nPhoto. Updating
the pixels of a photo\nis not supported.", | 355 "description": "Identifier for a Photo.", |
356 "id": "UpdatePhotoRequest", | 356 "id": "PhotoId", |
357 "properties": { | 357 "properties": { |
358 "updateMask": { | 358 "id": { |
359 "description": "Mask that identifies fields on the photo met
adata to update.\nIf not present, the old Photo metadata will be entirely replac
ed with the\nnew Photo metadata in this request. The update fails if invalid fie
lds are\nspecified. Multiple fields can be specified in a comma-delimited list.\
n\nThe following fields are valid:\n\n* `pose.heading`\n* `pose.latlngpair`\n* `
pose.pitch`\n* `pose.roll`\n* `pose.level`\n* `pose.altitude`\n* `connections`\n
* `places`\n\n\n<aside class=\"note\"><b>Note:</b> Repeated fields in\nupdateMas
k\nmean the entire set of repeated values will be replaced with the new\ncontent
s. For example, if\nupdateMask\ncontains `connections` and\ngoogle.streetview.pu
blish.v1.UpdatePhotoRequest.photo.connections is\nempty, all connections will be
removed.</aside>", | 359 "description": "Required. A unique identifier for a photo.", |
360 "format": "google-fieldmask", | |
361 "type": "string" | 360 "type": "string" |
362 }, | |
363 "photo": { | |
364 "$ref": "Photo", | |
365 "description": "Required. Photo object containing the\nnew m
etadata. Only the fields specified in\nupdateMask\nfield are used. If `updateMas
k` is not present, the update applies to all\nfields. <aside class=\"note\"><b>N
ote:</b> To update\nPose.altitude,\nPose.latLngPair has to be\nfilled as well. O
therwise, the request will fail." | |
366 } | 361 } |
367 }, | 362 }, |
368 "type": "object" | 363 "type": "object" |
369 }, | 364 }, |
370 "Pose": { | 365 "Pose": { |
371 "description": "Raw pose measurement for an entity.", | 366 "description": "Raw pose measurement for an entity.", |
372 "id": "Pose", | 367 "id": "Pose", |
373 "properties": { | 368 "properties": { |
374 "latLngPair": { | |
375 "$ref": "LatLng", | |
376 "description": "Latitude and longitude pair of the pose, as
explained here:\nhttps://cloud.google.com/datastore/docs/reference/rest/Shared.T
ypes/LatLng\nWhen creating a Photo, if the\nlatitude and longitude pair are not
provided here, the geolocation from the\nexif header will be used. If the latitu
de and longitude pair is not\nprovided and cannot be found in the exif header, t
he create photo process\nwill fail." | |
377 }, | |
378 "roll": { | |
379 "description": "Roll, measured in degrees. Value must be >=
0 and <360. A value of 0\nmeans level with the horizon.\nNaN indicates an unmeas
ured quantity.", | |
380 "format": "double", | |
381 "type": "number" | |
382 }, | |
383 "level": { | |
384 "$ref": "Level", | |
385 "description": "Level (the floor in a building) used to conf
igure vertical navigation." | |
386 }, | |
387 "heading": { | 369 "heading": { |
388 "description": "Compass heading, measured at the center of t
he photo in degrees clockwise\nfrom North. Value must be >=0 and <360.\nNaN indi
cates an unmeasured quantity.", | 370 "description": "Compass heading, measured at the center of t
he photo in degrees clockwise\nfrom North. Value must be >=0 and <360.\nNaN indi
cates an unmeasured quantity.", |
389 "format": "double", | 371 "format": "double", |
390 "type": "number" | 372 "type": "number" |
391 }, | 373 }, |
392 "altitude": { | 374 "altitude": { |
393 "description": "Altitude of the pose in meters above ground
level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", | 375 "description": "Altitude of the pose in meters above ground
level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", |
394 "format": "double", | 376 "format": "double", |
395 "type": "number" | 377 "type": "number" |
396 }, | 378 }, |
397 "pitch": { | 379 "pitch": { |
398 "description": "Pitch, measured at the center of the photo i
n degrees. Value must be >=-90\nand <= 90. A value of -90 means looking directly
down, and a value of 90\nmeans looking directly up.\nNaN indicates an unmeasure
d quantity.", | 380 "description": "Pitch, measured at the center of the photo i
n degrees. Value must be >=-90\nand <= 90. A value of -90 means looking directly
down, and a value of 90\nmeans looking directly up.\nNaN indicates an unmeasure
d quantity.", |
399 "format": "double", | 381 "format": "double", |
400 "type": "number" | 382 "type": "number" |
| 383 }, |
| 384 "latLngPair": { |
| 385 "$ref": "LatLng", |
| 386 "description": "Latitude and longitude pair of the pose, as
explained here:\nhttps://cloud.google.com/datastore/docs/reference/rest/Shared.T
ypes/LatLng\nWhen creating a Photo, if the\nlatitude and longitude pair are not
provided here, the geolocation from the\nexif header will be used. If the latitu
de and longitude pair is not\nprovided and cannot be found in the exif header, t
he create photo process\nwill fail." |
| 387 }, |
| 388 "roll": { |
| 389 "description": "Roll, measured in degrees. Value must be >=
0 and <360. A value of 0\nmeans level with the horizon.\nNaN indicates an unmeas
ured quantity.", |
| 390 "format": "double", |
| 391 "type": "number" |
| 392 }, |
| 393 "level": { |
| 394 "$ref": "Level", |
| 395 "description": "Level (the floor in a building) used to conf
igure vertical navigation." |
401 } | 396 } |
402 }, | 397 }, |
403 "type": "object" | 398 "type": "object" |
404 }, | |
405 "PhotoId": { | |
406 "description": "Identifier for a Photo.", | |
407 "id": "PhotoId", | |
408 "properties": { | |
409 "id": { | |
410 "description": "Required. A base64 encoded identifier.", | |
411 "type": "string" | |
412 } | |
413 }, | |
414 "type": "object" | |
415 }, | 399 }, |
416 "BatchUpdatePhotosRequest": { | 400 "BatchUpdatePhotosRequest": { |
417 "description": "Request to update the metadata of photos.\nUpdating
the pixels of photos is not supported.", | 401 "description": "Request to update the metadata of photos.\nUpdating
the pixels of photos is not supported.", |
418 "id": "BatchUpdatePhotosRequest", | 402 "id": "BatchUpdatePhotosRequest", |
419 "properties": { | 403 "properties": { |
420 "updatePhotoRequests": { | 404 "updatePhotoRequests": { |
421 "description": "Required. List of\nUpdatePhotoRequests.", | 405 "description": "Required. List of\nUpdatePhotoRequests.", |
422 "items": { | 406 "items": { |
423 "$ref": "UpdatePhotoRequest" | 407 "$ref": "UpdatePhotoRequest" |
424 }, | 408 }, |
(...skipping 17 matching lines...) Expand all Loading... |
442 }, | 426 }, |
443 "type": "array" | 427 "type": "array" |
444 } | 428 } |
445 }, | 429 }, |
446 "type": "object" | 430 "type": "object" |
447 }, | 431 }, |
448 "Photo": { | 432 "Photo": { |
449 "description": "Photo is used to store 360 photos along with photo m
etadata.", | 433 "description": "Photo is used to store 360 photos along with photo m
etadata.", |
450 "id": "Photo", | 434 "id": "Photo", |
451 "properties": { | 435 "properties": { |
| 436 "downloadUrl": { |
| 437 "description": "Output only. The download URL for the photo
bytes. This field is set only\nwhen\nGetPhotoRequest.view\nis set to\nPhotoView.
INCLUDE_DOWNLOAD_URL.", |
| 438 "type": "string" |
| 439 }, |
| 440 "connections": { |
| 441 "description": "Connections to other photos. A connection re
presents the link from this\nphoto to another photo.", |
| 442 "items": { |
| 443 "$ref": "Connection" |
| 444 }, |
| 445 "type": "array" |
| 446 }, |
| 447 "places": { |
| 448 "description": "Places where this photo belongs.", |
| 449 "items": { |
| 450 "$ref": "Place" |
| 451 }, |
| 452 "type": "array" |
| 453 }, |
452 "pose": { | 454 "pose": { |
453 "$ref": "Pose", | 455 "$ref": "Pose", |
454 "description": "Pose of the photo." | 456 "description": "Pose of the photo." |
455 }, | 457 }, |
| 458 "photoId": { |
| 459 "$ref": "PhotoId", |
| 460 "description": "Required when updating photo. Output only wh
en creating photo.\nIdentifier for the photo, which is unique among all photos i
n\nGoogle." |
| 461 }, |
456 "uploadReference": { | 462 "uploadReference": { |
457 "$ref": "UploadRef", | 463 "$ref": "UploadRef", |
458 "description": "Required when creating photo. Input only. Th
e resource URL where the photo\nbytes are uploaded to." | 464 "description": "Required when creating photo. Input only. Th
e resource URL where the photo\nbytes are uploaded to." |
459 }, | 465 }, |
460 "photoId": { | |
461 "$ref": "PhotoId", | |
462 "description": "Required when updating photo. Output only wh
en creating photo.\nIdentifier for the photo, which is unique among all photos i
n\nGoogle." | |
463 }, | |
464 "shareLink": { | 466 "shareLink": { |
465 "description": "Output only. The share link for the photo.", | 467 "description": "Output only. The share link for the photo.", |
466 "type": "string" | 468 "type": "string" |
467 }, | 469 }, |
468 "thumbnailUrl": { | 470 "thumbnailUrl": { |
469 "description": "Output only. The thumbnail URL for showing a
preview of the given photo.", | 471 "description": "Output only. The thumbnail URL for showing a
preview of the given photo.", |
470 "type": "string" | 472 "type": "string" |
471 }, | 473 }, |
472 "captureTime": { | 474 "captureTime": { |
473 "description": "Absolute time when the photo was captured.\n
When the photo has no exif timestamp, this is used to set a timestamp in\nthe ph
oto metadata.", | 475 "description": "Absolute time when the photo was captured.\n
When the photo has no exif timestamp, this is used to set a timestamp in\nthe ph
oto metadata.", |
474 "format": "google-datetime", | 476 "format": "google-datetime", |
475 "type": "string" | 477 "type": "string" |
476 }, | 478 }, |
477 "viewCount": { | 479 "viewCount": { |
478 "description": "Output only. View count of the photo.", | 480 "description": "Output only. View count of the photo.", |
479 "format": "int64", | 481 "format": "int64", |
480 "type": "string" | 482 "type": "string" |
481 }, | |
482 "downloadUrl": { | |
483 "description": "Output only. The download URL for the photo
bytes. This field is set only\nwhen\nGetPhotoRequest.view\nis set to\nPhotoView.
INCLUDE_DOWNLOAD_URL.", | |
484 "type": "string" | |
485 }, | |
486 "connections": { | |
487 "description": "Connections to other photos. A connection re
presents the link from this\nphoto to another photo.", | |
488 "items": { | |
489 "$ref": "Connection" | |
490 }, | |
491 "type": "array" | |
492 }, | |
493 "places": { | |
494 "description": "Places where this photo belongs.", | |
495 "items": { | |
496 "$ref": "Place" | |
497 }, | |
498 "type": "array" | |
499 } | 483 } |
500 }, | 484 }, |
501 "type": "object" | 485 "type": "object" |
502 }, | 486 }, |
503 "PhotoResponse": { | 487 "PhotoResponse": { |
504 "description": "Response payload for a single\nPhoto\nin batch opera
tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", | 488 "description": "Response payload for a single\nPhoto\nin batch opera
tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", |
505 "id": "PhotoResponse", | 489 "id": "PhotoResponse", |
506 "properties": { | 490 "properties": { |
507 "status": { | 491 "status": { |
508 "$ref": "Status", | 492 "$ref": "Status", |
(...skipping 24 matching lines...) Expand all Loading... |
533 "results": { | 517 "results": { |
534 "description": "List of results for each individual\nPhoto u
pdated, in the same order as\nthe request.", | 518 "description": "List of results for each individual\nPhoto u
pdated, in the same order as\nthe request.", |
535 "items": { | 519 "items": { |
536 "$ref": "PhotoResponse" | 520 "$ref": "PhotoResponse" |
537 }, | 521 }, |
538 "type": "array" | 522 "type": "array" |
539 } | 523 } |
540 }, | 524 }, |
541 "type": "object" | 525 "type": "object" |
542 }, | 526 }, |
543 "BatchDeletePhotosResponse": { | |
544 "description": "Response to batch delete of one or more\nPhotos.", | |
545 "id": "BatchDeletePhotosResponse", | |
546 "properties": { | |
547 "status": { | |
548 "description": "The status for the operation to delete a sin
gle\nPhoto in the batch request.", | |
549 "items": { | |
550 "$ref": "Status" | |
551 }, | |
552 "type": "array" | |
553 } | |
554 }, | |
555 "type": "object" | |
556 }, | |
557 "Status": { | 527 "Status": { |
558 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | 528 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
559 "id": "Status", | 529 "id": "Status", |
560 "properties": { | 530 "properties": { |
| 531 "message": { |
| 532 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 533 "type": "string" |
| 534 }, |
561 "details": { | 535 "details": { |
562 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | 536 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
563 "items": { | 537 "items": { |
564 "additionalProperties": { | 538 "additionalProperties": { |
565 "description": "Properties of the object. Contains f
ield @type with type URL.", | 539 "description": "Properties of the object. Contains f
ield @type with type URL.", |
566 "type": "any" | 540 "type": "any" |
567 }, | 541 }, |
568 "type": "object" | 542 "type": "object" |
569 }, | 543 }, |
570 "type": "array" | 544 "type": "array" |
571 }, | 545 }, |
572 "code": { | 546 "code": { |
573 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 547 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
574 "format": "int32", | 548 "format": "int32", |
575 "type": "integer" | 549 "type": "integer" |
576 }, | |
577 "message": { | |
578 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | |
579 "type": "string" | |
580 } | 550 } |
581 }, | 551 }, |
582 "type": "object" | 552 "type": "object" |
583 }, | 553 }, |
584 "Empty": { | 554 "BatchDeletePhotosResponse": { |
585 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 555 "description": "Response to batch delete of one or more\nPhotos.", |
586 "id": "Empty", | 556 "id": "BatchDeletePhotosResponse", |
587 "properties": {}, | 557 "properties": { |
| 558 "status": { |
| 559 "description": "The status for the operation to delete a sin
gle\nPhoto in the batch request.", |
| 560 "items": { |
| 561 "$ref": "Status" |
| 562 }, |
| 563 "type": "array" |
| 564 } |
| 565 }, |
588 "type": "object" | 566 "type": "object" |
589 }, | 567 }, |
590 "Level": { | 568 "Level": { |
591 "description": "Level information containing level number and its co
rresponding name.", | 569 "description": "Level information containing level number and its co
rresponding name.", |
592 "id": "Level", | 570 "id": "Level", |
593 "properties": { | 571 "properties": { |
594 "number": { | 572 "number": { |
595 "description": "Floor number, used for ordering. 0 indicates
the ground level, 1 indicates\nthe first level above ground level, -1 indicates
the first level under\nground level. Non-integer values are OK.", | 573 "description": "Floor number, used for ordering. 0 indicates
the ground level, 1 indicates\nthe first level above ground level, -1 indicates
the first level under\nground level. Non-integer values are OK.", |
596 "format": "double", | 574 "format": "double", |
597 "type": "number" | 575 "type": "number" |
598 }, | 576 }, |
599 "name": { | 577 "name": { |
600 "description": "Required. A name assigned to this Level, res
tricted to 3 characters.\nConsider how the elevator buttons would be labeled for
this level if there\nwas an elevator.", | 578 "description": "Required. A name assigned to this Level, res
tricted to 3 characters.\nConsider how the elevator buttons would be labeled for
this level if there\nwas an elevator.", |
601 "type": "string" | 579 "type": "string" |
602 } | 580 } |
603 }, | 581 }, |
604 "type": "object" | 582 "type": "object" |
605 }, | 583 }, |
606 "UploadRef": { | 584 "Empty": { |
607 "description": "Upload reference for media files.", | 585 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
608 "id": "UploadRef", | 586 "id": "Empty", |
| 587 "properties": {}, |
| 588 "type": "object" |
| 589 }, |
| 590 "BatchGetPhotosResponse": { |
| 591 "description": "Response to batch get of Photos.", |
| 592 "id": "BatchGetPhotosResponse", |
609 "properties": { | 593 "properties": { |
610 "uploadUrl": { | 594 "results": { |
611 "description": "Required. An upload reference should be uniq
ue for each user. It follows\nthe form:\n\"https://streetviewpublish.googleapis.
com/media/user/{account_id}/photo/{upload_reference}\"", | 595 "description": "List of results for each individual\nPhoto r
equested, in the same order as\nthe requests in\nBatchGetPhotos.", |
612 "type": "string" | 596 "items": { |
| 597 "$ref": "PhotoResponse" |
| 598 }, |
| 599 "type": "array" |
613 } | 600 } |
614 }, | 601 }, |
615 "type": "object" | 602 "type": "object" |
616 }, | 603 }, |
617 "Place": { | 604 "Place": { |
618 "description": "Place metadata for an entity.", | 605 "description": "Place metadata for an entity.", |
619 "id": "Place", | 606 "id": "Place", |
620 "properties": { | 607 "properties": { |
621 "placeId": { | 608 "placeId": { |
622 "description": "Required. Place identifier, as described in\
nhttps://developers.google.com/places/place-id.", | 609 "description": "Required. Place identifier, as described in\
nhttps://developers.google.com/places/place-id.", |
623 "type": "string" | 610 "type": "string" |
624 } | 611 } |
625 }, | 612 }, |
626 "type": "object" | 613 "type": "object" |
627 }, | 614 }, |
628 "BatchGetPhotosResponse": { | 615 "UploadRef": { |
629 "description": "Response to batch get of Photos.", | 616 "description": "Upload reference for media files.", |
630 "id": "BatchGetPhotosResponse", | 617 "id": "UploadRef", |
631 "properties": { | 618 "properties": { |
632 "results": { | 619 "uploadUrl": { |
633 "description": "List of results for each individual\nPhoto r
equested, in the same order as\nthe requests in\nBatchGetPhotos.", | 620 "description": "Required. An upload reference should be uniq
ue for each user. It follows\nthe form:\n\"https://streetviewpublish.googleapis.
com/media/user/{account_id}/photo/{upload_reference}\"", |
634 "items": { | 621 "type": "string" |
635 "$ref": "PhotoResponse" | |
636 }, | |
637 "type": "array" | |
638 } | 622 } |
639 }, | 623 }, |
640 "type": "object" | 624 "type": "object" |
| 625 }, |
| 626 "LatLng": { |
| 627 "description": "An object representing a latitude/longitude pair. Th
is is expressed as a pair\nof doubles representing degrees latitude and degrees
longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http
://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values
must be within normalized ranges.\n\nExample of normalization code in Python:\n
\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long
itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if
r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur
n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal
degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp
ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return
r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36
0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize
Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n
assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo
ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert
(0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali
zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\
n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.
0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng
(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as
sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N
ormalizeLatLng(-270.0, 10.0)", |
| 628 "id": "LatLng", |
| 629 "properties": { |
| 630 "latitude": { |
| 631 "description": "The latitude in degrees. It must be in the r
ange [-90.0, +90.0].", |
| 632 "format": "double", |
| 633 "type": "number" |
| 634 }, |
| 635 "longitude": { |
| 636 "description": "The longitude in degrees. It must be in the
range [-180.0, +180.0].", |
| 637 "format": "double", |
| 638 "type": "number" |
| 639 } |
| 640 }, |
| 641 "type": "object" |
641 }, | 642 }, |
642 "BatchDeletePhotosRequest": { | 643 "BatchDeletePhotosRequest": { |
643 "description": "Request to delete multiple Photos.", | 644 "description": "Request to delete multiple Photos.", |
644 "id": "BatchDeletePhotosRequest", | 645 "id": "BatchDeletePhotosRequest", |
645 "properties": { | 646 "properties": { |
646 "photoIds": { | 647 "photoIds": { |
647 "description": "Required. IDs of the Photos. For HTTP\nGET r
equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`.
", | 648 "description": "Required. IDs of the Photos. For HTTP\nGET r
equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`.
", |
648 "items": { | 649 "items": { |
649 "type": "string" | 650 "type": "string" |
650 }, | 651 }, |
651 "type": "array" | 652 "type": "array" |
652 } | 653 } |
653 }, | 654 }, |
654 "type": "object" | 655 "type": "object" |
655 }, | 656 }, |
656 "LatLng": { | 657 "UpdatePhotoRequest": { |
657 "description": "An object representing a latitude/longitude pair. Th
is is expressed as a pair\nof doubles representing degrees latitude and degrees
longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http
://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values
must be within normalized ranges.\n\nExample of normalization code in Python:\n
\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees long
itude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if
r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n retur
n r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal
degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], resp
ectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return
r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 36
0, NormalizeLongitude(longitude)\n else:\n return 180 - r, Normalize
Longitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n
assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLo
ngitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert
(0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == Normali
zeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\
n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.
0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng
(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n as
sert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == N
ormalizeLatLng(-270.0, 10.0)", | 658 "description": "Request to update the metadata of a\nPhoto. Updating
the pixels of a photo\nis not supported.", |
658 "id": "LatLng", | 659 "id": "UpdatePhotoRequest", |
659 "properties": { | 660 "properties": { |
660 "latitude": { | 661 "photo": { |
661 "description": "The latitude in degrees. It must be in the r
ange [-90.0, +90.0].", | 662 "$ref": "Photo", |
662 "format": "double", | 663 "description": "Required. Photo object containing the\nnew m
etadata." |
663 "type": "number" | |
664 }, | 664 }, |
665 "longitude": { | 665 "updateMask": { |
666 "description": "The longitude in degrees. It must be in the
range [-180.0, +180.0].", | 666 "description": "Mask that identifies fields on the photo met
adata to update.\nIf not present, the old Photo metadata will be entirely replac
ed with the\nnew Photo metadata in this request. The update fails if invalid fie
lds are\nspecified. Multiple fields can be specified in a comma-delimited list.\
n\nThe following fields are valid:\n\n* `pose.heading`\n* `pose.latLngPair`\n* `
pose.pitch`\n* `pose.roll`\n* `pose.level`\n* `pose.altitude`\n* `connections`\n
* `places`\n\n\n<aside class=\"note\"><b>Note:</b> Repeated fields in\nupdateMas
k\nmean the entire set of repeated values will be replaced with the new\ncontent
s. For example, if\nupdateMask\ncontains `connections` and `UpdatePhotoRequest.p
hoto.connections` is empty,\nall connections will be removed.</aside>", |
667 "format": "double", | 667 "format": "google-fieldmask", |
668 "type": "number" | 668 "type": "string" |
669 } | 669 } |
670 }, | 670 }, |
671 "type": "object" | 671 "type": "object" |
672 } | 672 } |
673 }, | 673 }, |
674 "servicePath": "", | 674 "servicePath": "", |
675 "title": "Street View Publish API", | 675 "title": "Street View Publish API", |
676 "version": "v1" | 676 "version": "v1" |
677 } | 677 } |
OLD | NEW |