OLD | NEW |
(Empty) | |
| 1 { |
| 2 "auth": { |
| 3 "oauth2": { |
| 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/streetviewpublish": { |
| 6 "description": "Publish and manage your 360 photos on Google
Street View" |
| 7 } |
| 8 } |
| 9 } |
| 10 }, |
| 11 "basePath": "", |
| 12 "baseUrl": "https://streetviewpublish.googleapis.com/", |
| 13 "batchPath": "batch", |
| 14 "canonicalName": "Street View Publish", |
| 15 "description": "The Street View Publish API allows your application to publi
sh 360 photos to Google Maps, along with image metadata that specifies the posit
ion, orientation, and connectivity of each photo. With this API, any app can off
er an interface for positioning, connecting, and uploading user-generated Street
View images.\n", |
| 16 "discoveryVersion": "v1", |
| 17 "documentationLink": "https://developers.google.com/streetview/publish/", |
| 18 "icons": { |
| 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 21 }, |
| 22 "id": "streetviewpublish:v1", |
| 23 "kind": "discovery#restDescription", |
| 24 "name": "streetviewpublish", |
| 25 "ownerDomain": "google.com", |
| 26 "ownerName": "Google", |
| 27 "parameters": { |
| 28 "oauth_token": { |
| 29 "description": "OAuth 2.0 token for the current user.", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "bearer_token": { |
| 34 "description": "OAuth bearer token.", |
| 35 "location": "query", |
| 36 "type": "string" |
| 37 }, |
| 38 "upload_protocol": { |
| 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 40 "location": "query", |
| 41 "type": "string" |
| 42 }, |
| 43 "prettyPrint": { |
| 44 "default": "true", |
| 45 "description": "Returns response with indentations and line breaks."
, |
| 46 "location": "query", |
| 47 "type": "boolean" |
| 48 }, |
| 49 "uploadType": { |
| 50 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
| 54 "fields": { |
| 55 "description": "Selector specifying which fields to include in a par
tial response.", |
| 56 "location": "query", |
| 57 "type": "string" |
| 58 }, |
| 59 "callback": { |
| 60 "description": "JSONP", |
| 61 "location": "query", |
| 62 "type": "string" |
| 63 }, |
| 64 "$.xgafv": { |
| 65 "description": "V1 error format.", |
| 66 "enum": [ |
| 67 "1", |
| 68 "2" |
| 69 ], |
| 70 "enumDescriptions": [ |
| 71 "v1 error format", |
| 72 "v2 error format" |
| 73 ], |
| 74 "location": "query", |
| 75 "type": "string" |
| 76 }, |
| 77 "alt": { |
| 78 "default": "json", |
| 79 "description": "Data format for response.", |
| 80 "enum": [ |
| 81 "json", |
| 82 "media", |
| 83 "proto" |
| 84 ], |
| 85 "enumDescriptions": [ |
| 86 "Responses with Content-Type of application/json", |
| 87 "Media download with context-dependent Content-Type", |
| 88 "Responses with Content-Type of application/x-protobuf" |
| 89 ], |
| 90 "location": "query", |
| 91 "type": "string" |
| 92 }, |
| 93 "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.", |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
| 98 "access_token": { |
| 99 "description": "OAuth access token.", |
| 100 "location": "query", |
| 101 "type": "string" |
| 102 }, |
| 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.", |
| 105 "location": "query", |
| 106 "type": "string" |
| 107 }, |
| 108 "pp": { |
| 109 "default": "true", |
| 110 "description": "Pretty-print response.", |
| 111 "location": "query", |
| 112 "type": "boolean" |
| 113 } |
| 114 }, |
| 115 "protocol": "rest", |
| 116 "resources": { |
| 117 "photos": { |
| 118 "methods": { |
| 119 "batchDelete": { |
| 120 "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.", |
| 121 "httpMethod": "POST", |
| 122 "id": "streetviewpublish.photos.batchDelete", |
| 123 "parameterOrder": [], |
| 124 "parameters": {}, |
| 125 "path": "v1/photos:batchDelete", |
| 126 "request": { |
| 127 "$ref": "BatchDeletePhotosRequest" |
| 128 }, |
| 129 "response": { |
| 130 "$ref": "BatchDeletePhotosResponse" |
| 131 }, |
| 132 "scopes": [ |
| 133 "https://www.googleapis.com/auth/streetviewpublish" |
| 134 ] |
| 135 }, |
| 136 "batchUpdate": { |
| 137 "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.", |
| 138 "httpMethod": "POST", |
| 139 "id": "streetviewpublish.photos.batchUpdate", |
| 140 "parameterOrder": [], |
| 141 "parameters": {}, |
| 142 "path": "v1/photos:batchUpdate", |
| 143 "request": {}, |
| 144 "response": { |
| 145 "$ref": "BatchUpdatePhotosResponse" |
| 146 }, |
| 147 "scopes": [ |
| 148 "https://www.googleapis.com/auth/streetviewpublish" |
| 149 ] |
| 150 }, |
| 151 "batchGet": { |
| 152 "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.", |
| 153 "httpMethod": "GET", |
| 154 "id": "streetviewpublish.photos.batchGet", |
| 155 "parameterOrder": [], |
| 156 "parameters": { |
| 157 "view": { |
| 158 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", |
| 159 "enum": [ |
| 160 "BASIC", |
| 161 "INCLUDE_DOWNLOAD_URL" |
| 162 ], |
| 163 "location": "query", |
| 164 "type": "string" |
| 165 }, |
| 166 "photoIds": { |
| 167 "description": "Required. IDs of the Photos. For HTT
P\nGET requests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id
2>&...`.", |
| 168 "location": "query", |
| 169 "repeated": true, |
| 170 "type": "string" |
| 171 } |
| 172 }, |
| 173 "path": "v1/photos:batchGet", |
| 174 "response": { |
| 175 "$ref": "BatchGetPhotosResponse" |
| 176 }, |
| 177 "scopes": [ |
| 178 "https://www.googleapis.com/auth/streetviewpublish" |
| 179 ] |
| 180 }, |
| 181 "list": { |
| 182 "description": "Lists all the Photos that belong to the user
.", |
| 183 "httpMethod": "GET", |
| 184 "id": "streetviewpublish.photos.list", |
| 185 "parameterOrder": [], |
| 186 "parameters": { |
| 187 "filter": { |
| 188 "description": "The filter expression. For example:
`placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", |
| 189 "location": "query", |
| 190 "type": "string" |
| 191 }, |
| 192 "pageToken": { |
| 193 "description": "The\nnextPageToken\nvalue returned f
rom a previous\nListPhotos\nrequest, if any.", |
| 194 "location": "query", |
| 195 "type": "string" |
| 196 }, |
| 197 "pageSize": { |
| 198 "description": "The maximum number of photos to retu
rn.\n`pageSize` must be non-negative. If `pageSize` is zero or is not provided,\
nthe default page size of 100 will be used.\nThe number of photos returned in th
e response may be less than `pageSize`\nif the number of photos that belong to t
he user is less than `pageSize`.", |
| 199 "format": "int32", |
| 200 "location": "query", |
| 201 "type": "integer" |
| 202 }, |
| 203 "view": { |
| 204 "description": "Specifies if a download URL for the
photos bytes should be returned in the\nPhotos response.", |
| 205 "enum": [ |
| 206 "BASIC", |
| 207 "INCLUDE_DOWNLOAD_URL" |
| 208 ], |
| 209 "location": "query", |
| 210 "type": "string" |
| 211 } |
| 212 }, |
| 213 "path": "v1/photos", |
| 214 "response": { |
| 215 "$ref": "ListPhotosResponse" |
| 216 }, |
| 217 "scopes": [ |
| 218 "https://www.googleapis.com/auth/streetviewpublish" |
| 219 ] |
| 220 } |
| 221 } |
| 222 }, |
| 223 "photo": { |
| 224 "methods": { |
| 225 "update": { |
| 226 "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.", |
| 227 "httpMethod": "PUT", |
| 228 "id": "streetviewpublish.photo.update", |
| 229 "parameterOrder": [ |
| 230 "id" |
| 231 ], |
| 232 "parameters": { |
| 233 "id": { |
| 234 "description": "Required. A base64 encoded identifie
r.", |
| 235 "location": "path", |
| 236 "required": true, |
| 237 "type": "string" |
| 238 }, |
| 239 "updateMask": { |
| 240 "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>", |
| 241 "format": "google-fieldmask", |
| 242 "location": "query", |
| 243 "type": "string" |
| 244 } |
| 245 }, |
| 246 "path": "v1/photo/{id}", |
| 247 "request": { |
| 248 "$ref": "Photo" |
| 249 }, |
| 250 "response": { |
| 251 "$ref": "Photo" |
| 252 }, |
| 253 "scopes": [ |
| 254 "https://www.googleapis.com/auth/streetviewpublish" |
| 255 ] |
| 256 }, |
| 257 "create": { |
| 258 "description": "After the client finishes uploading the phot
o with the returned\nUploadRef,\nCreatePhoto\npublishes the uploaded Photo to\nS
treet View on Google Maps.\n\nThis method returns the following error codes:\n\n
* google.rpc.Code.INVALID_ARGUMENT if the request is malformed.\n* google.rpc.Co
de.NOT_FOUND if the upload reference does not exist.\n* google.rpc.Code.RESOURCE
_EXHAUSTED if the account has reached the\nstorage limit.", |
| 259 "httpMethod": "POST", |
| 260 "id": "streetviewpublish.photo.create", |
| 261 "parameterOrder": [], |
| 262 "parameters": {}, |
| 263 "path": "v1/photo", |
| 264 "request": { |
| 265 "$ref": "Photo" |
| 266 }, |
| 267 "response": { |
| 268 "$ref": "Photo" |
| 269 }, |
| 270 "scopes": [ |
| 271 "https://www.googleapis.com/auth/streetviewpublish" |
| 272 ] |
| 273 }, |
| 274 "startUpload": { |
| 275 "description": "Creates an upload session to start uploading
photo bytes. The upload URL of\nthe returned UploadRef is used to\nupload the b
ytes for the Photo.\n\nIn addition to the photo requirements shown in\nhttps://s
upport.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,\nthe photo must a
lso meet the following requirements:\n\n* Photo Sphere XMP metadata must be incl
uded in the photo medadata. See\nhttps://developers.google.com/streetview/spheri
cal-metadata for the\nrequired fields.\n* The pixel size of the photo must meet
the size requirements listed in\nhttps://support.google.com/maps/answer/7012050?
hl=en&ref_topic=6275604, and\nthe photo must be a full 360 horizontally.\n\nAfte
r the upload is complete, the\nUploadRef is used with\nCreatePhoto\nto create th
e Photo object entry.", |
| 276 "httpMethod": "POST", |
| 277 "id": "streetviewpublish.photo.startUpload", |
| 278 "parameterOrder": [], |
| 279 "parameters": {}, |
| 280 "path": "v1/photo:startUpload", |
| 281 "request": { |
| 282 "$ref": "Empty" |
| 283 }, |
| 284 "response": { |
| 285 "$ref": "UploadRef" |
| 286 }, |
| 287 "scopes": [ |
| 288 "https://www.googleapis.com/auth/streetviewpublish" |
| 289 ] |
| 290 }, |
| 291 "delete": { |
| 292 "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.", |
| 293 "httpMethod": "DELETE", |
| 294 "id": "streetviewpublish.photo.delete", |
| 295 "parameterOrder": [ |
| 296 "photoId" |
| 297 ], |
| 298 "parameters": { |
| 299 "photoId": { |
| 300 "description": "Required. ID of the Photo.", |
| 301 "location": "path", |
| 302 "required": true, |
| 303 "type": "string" |
| 304 } |
| 305 }, |
| 306 "path": "v1/photo/{photoId}", |
| 307 "response": { |
| 308 "$ref": "Empty" |
| 309 }, |
| 310 "scopes": [ |
| 311 "https://www.googleapis.com/auth/streetviewpublish" |
| 312 ] |
| 313 }, |
| 314 "get": { |
| 315 "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.", |
| 316 "httpMethod": "GET", |
| 317 "id": "streetviewpublish.photo.get", |
| 318 "parameterOrder": [ |
| 319 "photoId" |
| 320 ], |
| 321 "parameters": { |
| 322 "view": { |
| 323 "description": "Specifies if a download URL for the
photo bytes should be returned in the\nPhoto response.", |
| 324 "enum": [ |
| 325 "BASIC", |
| 326 "INCLUDE_DOWNLOAD_URL" |
| 327 ], |
| 328 "location": "query", |
| 329 "type": "string" |
| 330 }, |
| 331 "photoId": { |
| 332 "description": "Required. ID of the Photo.", |
| 333 "location": "path", |
| 334 "required": true, |
| 335 "type": "string" |
| 336 } |
| 337 }, |
| 338 "path": "v1/photo/{photoId}", |
| 339 "response": { |
| 340 "$ref": "Photo" |
| 341 }, |
| 342 "scopes": [ |
| 343 "https://www.googleapis.com/auth/streetviewpublish" |
| 344 ] |
| 345 } |
| 346 } |
| 347 } |
| 348 }, |
| 349 "revision": "20170630", |
| 350 "rootUrl": "https://streetviewpublish.googleapis.com/", |
| 351 "schemas": { |
| 352 "Photo": { |
| 353 "description": "Photo is used to store 360 photos along with photo m
etadata.", |
| 354 "id": "Photo", |
| 355 "properties": { |
| 356 "thumbnailUrl": { |
| 357 "description": "Output only. The thumbnail URL for showing a
preview of the given photo.", |
| 358 "type": "string" |
| 359 }, |
| 360 "captureTime": { |
| 361 "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.", |
| 362 "format": "google-datetime", |
| 363 "type": "string" |
| 364 }, |
| 365 "viewCount": { |
| 366 "description": "Output only. View count of the photo.", |
| 367 "format": "int64", |
| 368 "type": "string" |
| 369 }, |
| 370 "downloadUrl": { |
| 371 "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.", |
| 372 "type": "string" |
| 373 }, |
| 374 "connections": { |
| 375 "description": "Connections to other photos. A connection re
presents the link from this\nphoto to another photo.", |
| 376 "items": { |
| 377 "$ref": "Connection" |
| 378 }, |
| 379 "type": "array" |
| 380 }, |
| 381 "places": { |
| 382 "description": "Places where this photo belongs.", |
| 383 "items": { |
| 384 "$ref": "Place" |
| 385 }, |
| 386 "type": "array" |
| 387 }, |
| 388 "pose": { |
| 389 "$ref": "Pose", |
| 390 "description": "Pose of the photo." |
| 391 }, |
| 392 "photoId": { |
| 393 "$ref": "PhotoId", |
| 394 "description": "Required when updating photo. Output only wh
en creating photo.\nIdentifier for the photo, which is unique among all photos i
n\nGoogle." |
| 395 }, |
| 396 "uploadReference": { |
| 397 "$ref": "UploadRef", |
| 398 "description": "Required when creating photo. Input only. Th
e resource URL where the photo\nbytes are uploaded to." |
| 399 }, |
| 400 "shareLink": { |
| 401 "description": "Output only. The share link for the photo.", |
| 402 "type": "string" |
| 403 } |
| 404 }, |
| 405 "type": "object" |
| 406 }, |
| 407 "PhotoResponse": { |
| 408 "description": "Response payload for a single\nPhoto\nin batch opera
tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", |
| 409 "id": "PhotoResponse", |
| 410 "properties": { |
| 411 "status": { |
| 412 "$ref": "Status", |
| 413 "description": "The status for the operation to get or updat
e a single photo in the batch\nrequest." |
| 414 }, |
| 415 "photo": { |
| 416 "$ref": "Photo", |
| 417 "description": "The Photo resource, if the request\nwas succ
essful." |
| 418 } |
| 419 }, |
| 420 "type": "object" |
| 421 }, |
| 422 "Connection": { |
| 423 "description": "A connection is the link from a source photo to a de
stination photo.", |
| 424 "id": "Connection", |
| 425 "properties": { |
| 426 "target": { |
| 427 "$ref": "PhotoId", |
| 428 "description": "Required. The destination of the connection
from the containing photo to\nanother photo." |
| 429 } |
| 430 }, |
| 431 "type": "object" |
| 432 }, |
| 433 "BatchUpdatePhotosResponse": { |
| 434 "description": "Response to batch update of metadata of one or more\
nPhotos.", |
| 435 "id": "BatchUpdatePhotosResponse", |
| 436 "properties": { |
| 437 "results": { |
| 438 "description": "List of results for each individual\nPhoto u
pdated, in the same order as\nthe request.", |
| 439 "items": { |
| 440 "$ref": "PhotoResponse" |
| 441 }, |
| 442 "type": "array" |
| 443 } |
| 444 }, |
| 445 "type": "object" |
| 446 }, |
| 447 "BatchDeletePhotosResponse": { |
| 448 "description": "Response to batch delete of one or more\nPhotos.", |
| 449 "id": "BatchDeletePhotosResponse", |
| 450 "properties": { |
| 451 "status": { |
| 452 "description": "The status for the operation to delete a sin
gle\nPhoto in the batch request.", |
| 453 "items": { |
| 454 "$ref": "Status" |
| 455 }, |
| 456 "type": "array" |
| 457 } |
| 458 }, |
| 459 "type": "object" |
| 460 }, |
| 461 "Status": { |
| 462 "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.", |
| 463 "id": "Status", |
| 464 "properties": { |
| 465 "message": { |
| 466 "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.", |
| 467 "type": "string" |
| 468 }, |
| 469 "details": { |
| 470 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
| 471 "items": { |
| 472 "additionalProperties": { |
| 473 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 474 "type": "any" |
| 475 }, |
| 476 "type": "object" |
| 477 }, |
| 478 "type": "array" |
| 479 }, |
| 480 "code": { |
| 481 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 482 "format": "int32", |
| 483 "type": "integer" |
| 484 } |
| 485 }, |
| 486 "type": "object" |
| 487 }, |
| 488 "Empty": { |
| 489 "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 `{}`.", |
| 490 "id": "Empty", |
| 491 "properties": {}, |
| 492 "type": "object" |
| 493 }, |
| 494 "Level": { |
| 495 "description": "Level information containing level number and its co
rresponding name.", |
| 496 "id": "Level", |
| 497 "properties": { |
| 498 "number": { |
| 499 "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.", |
| 500 "format": "double", |
| 501 "type": "number" |
| 502 }, |
| 503 "name": { |
| 504 "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.", |
| 505 "type": "string" |
| 506 } |
| 507 }, |
| 508 "type": "object" |
| 509 }, |
| 510 "BatchGetPhotosResponse": { |
| 511 "description": "Response to batch get of Photos.", |
| 512 "id": "BatchGetPhotosResponse", |
| 513 "properties": { |
| 514 "results": { |
| 515 "description": "List of results for each individual\nPhoto r
equested, in the same order as\nthe requests in\nBatchGetPhotos.", |
| 516 "items": { |
| 517 "$ref": "PhotoResponse" |
| 518 }, |
| 519 "type": "array" |
| 520 } |
| 521 }, |
| 522 "type": "object" |
| 523 }, |
| 524 "Place": { |
| 525 "description": "Place metadata for an entity.", |
| 526 "id": "Place", |
| 527 "properties": { |
| 528 "placeId": { |
| 529 "description": "Required. Place identifier, as described in\
nhttps://developers.google.com/places/place-id.", |
| 530 "type": "string" |
| 531 } |
| 532 }, |
| 533 "type": "object" |
| 534 }, |
| 535 "UploadRef": { |
| 536 "description": "Upload reference for media files.", |
| 537 "id": "UploadRef", |
| 538 "properties": { |
| 539 "uploadUrl": { |
| 540 "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}\"", |
| 541 "type": "string" |
| 542 } |
| 543 }, |
| 544 "type": "object" |
| 545 }, |
| 546 "BatchDeletePhotosRequest": { |
| 547 "description": "Request to delete multiple Photos.", |
| 548 "id": "BatchDeletePhotosRequest", |
| 549 "properties": { |
| 550 "photoIds": { |
| 551 "description": "Required. IDs of the Photos. For HTTP\nGET r
equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`.
", |
| 552 "items": { |
| 553 "type": "string" |
| 554 }, |
| 555 "type": "array" |
| 556 } |
| 557 }, |
| 558 "type": "object" |
| 559 }, |
| 560 "LatLng": { |
| 561 "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)", |
| 562 "id": "LatLng", |
| 563 "properties": { |
| 564 "longitude": { |
| 565 "description": "The longitude in degrees. It must be in the
range [-180.0, +180.0].", |
| 566 "format": "double", |
| 567 "type": "number" |
| 568 }, |
| 569 "latitude": { |
| 570 "description": "The latitude in degrees. It must be in the r
ange [-90.0, +90.0].", |
| 571 "format": "double", |
| 572 "type": "number" |
| 573 } |
| 574 }, |
| 575 "type": "object" |
| 576 }, |
| 577 "Pose": { |
| 578 "description": "Raw pose measurement for an entity.", |
| 579 "id": "Pose", |
| 580 "properties": { |
| 581 "pitch": { |
| 582 "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.", |
| 583 "format": "double", |
| 584 "type": "number" |
| 585 }, |
| 586 "latLngPair": { |
| 587 "$ref": "LatLng", |
| 588 "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." |
| 589 }, |
| 590 "roll": { |
| 591 "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.", |
| 592 "format": "double", |
| 593 "type": "number" |
| 594 }, |
| 595 "level": { |
| 596 "$ref": "Level", |
| 597 "description": "Level (the floor in a building) used to conf
igure vertical navigation." |
| 598 }, |
| 599 "heading": { |
| 600 "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.", |
| 601 "format": "double", |
| 602 "type": "number" |
| 603 }, |
| 604 "altitude": { |
| 605 "description": "Altitude of the pose in meters above ground
level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", |
| 606 "format": "double", |
| 607 "type": "number" |
| 608 } |
| 609 }, |
| 610 "type": "object" |
| 611 }, |
| 612 "PhotoId": { |
| 613 "description": "Identifier for a Photo.", |
| 614 "id": "PhotoId", |
| 615 "properties": { |
| 616 "id": { |
| 617 "description": "Required. A base64 encoded identifier.", |
| 618 "type": "string" |
| 619 } |
| 620 }, |
| 621 "type": "object" |
| 622 }, |
| 623 "ListPhotosResponse": { |
| 624 "description": "Response to list all photos that belong to a user.", |
| 625 "id": "ListPhotosResponse", |
| 626 "properties": { |
| 627 "nextPageToken": { |
| 628 "description": "Token to retrieve the next page of results,
or empty if there are no more\nresults in the list.", |
| 629 "type": "string" |
| 630 }, |
| 631 "photos": { |
| 632 "description": "List of photos. The maximum number of items
returned is based on the\npageSize field\nin the request.", |
| 633 "items": { |
| 634 "$ref": "Photo" |
| 635 }, |
| 636 "type": "array" |
| 637 } |
| 638 }, |
| 639 "type": "object" |
| 640 } |
| 641 }, |
| 642 "servicePath": "", |
| 643 "title": "Street View Publish API", |
| 644 "version": "v1" |
| 645 } |
OLD | NEW |