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 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://streetviewpublish.googleapis.com/", | 12 "baseUrl": "https://streetviewpublish.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Street View Publish", | 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", | 15 "description": "Publishes 360 photos to Google Maps, along with position, or
ientation, and connectivity metadata. Apps can offer an interface for positionin
g, connecting, and uploading user-generated Street View images.\n", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://developers.google.com/streetview/publish/", | 17 "documentationLink": "https://developers.google.com/streetview/publish/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "streetviewpublish:v1", | 22 "id": "streetviewpublish:v1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "streetviewpublish", | 24 "name": "streetviewpublish", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "oauth_token": { | 28 "alt": { |
29 "description": "OAuth 2.0 token for the current user.", | 29 "default": "json", |
| 30 "description": "Data format for response.", |
| 31 "enum": [ |
| 32 "json", |
| 33 "media", |
| 34 "proto" |
| 35 ], |
| 36 "enumDescriptions": [ |
| 37 "Responses with Content-Type of application/json", |
| 38 "Media download with context-dependent Content-Type", |
| 39 "Responses with Content-Type of application/x-protobuf" |
| 40 ], |
30 "location": "query", | 41 "location": "query", |
31 "type": "string" | 42 "type": "string" |
32 }, | 43 }, |
| 44 "access_token": { |
| 45 "description": "OAuth access token.", |
| 46 "location": "query", |
| 47 "type": "string" |
| 48 }, |
| 49 "key": { |
| 50 "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.", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
| 54 "quotaUser": { |
| 55 "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.", |
| 56 "location": "query", |
| 57 "type": "string" |
| 58 }, |
| 59 "pp": { |
| 60 "default": "true", |
| 61 "description": "Pretty-print response.", |
| 62 "location": "query", |
| 63 "type": "boolean" |
| 64 }, |
33 "bearer_token": { | 65 "bearer_token": { |
34 "description": "OAuth bearer token.", | 66 "description": "OAuth bearer token.", |
35 "location": "query", | 67 "location": "query", |
36 "type": "string" | 68 "type": "string" |
37 }, | 69 }, |
| 70 "oauth_token": { |
| 71 "description": "OAuth 2.0 token for the current user.", |
| 72 "location": "query", |
| 73 "type": "string" |
| 74 }, |
38 "upload_protocol": { | 75 "upload_protocol": { |
39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 76 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
40 "location": "query", | 77 "location": "query", |
41 "type": "string" | 78 "type": "string" |
42 }, | 79 }, |
43 "prettyPrint": { | 80 "prettyPrint": { |
44 "default": "true", | 81 "default": "true", |
45 "description": "Returns response with indentations and line breaks."
, | 82 "description": "Returns response with indentations and line breaks."
, |
46 "location": "query", | 83 "location": "query", |
47 "type": "boolean" | 84 "type": "boolean" |
48 }, | 85 }, |
49 "uploadType": { | 86 "uploadType": { |
50 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 87 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
51 "location": "query", | 88 "location": "query", |
52 "type": "string" | 89 "type": "string" |
53 }, | 90 }, |
54 "fields": { | 91 "fields": { |
55 "description": "Selector specifying which fields to include in a par
tial response.", | 92 "description": "Selector specifying which fields to include in a par
tial response.", |
56 "location": "query", | 93 "location": "query", |
57 "type": "string" | 94 "type": "string" |
58 }, | 95 }, |
59 "callback": { | |
60 "description": "JSONP", | |
61 "location": "query", | |
62 "type": "string" | |
63 }, | |
64 "$.xgafv": { | 96 "$.xgafv": { |
65 "description": "V1 error format.", | 97 "description": "V1 error format.", |
66 "enum": [ | 98 "enum": [ |
67 "1", | 99 "1", |
68 "2" | 100 "2" |
69 ], | 101 ], |
70 "enumDescriptions": [ | 102 "enumDescriptions": [ |
71 "v1 error format", | 103 "v1 error format", |
72 "v2 error format" | 104 "v2 error format" |
73 ], | 105 ], |
74 "location": "query", | 106 "location": "query", |
75 "type": "string" | 107 "type": "string" |
76 }, | 108 }, |
77 "alt": { | 109 "callback": { |
78 "default": "json", | 110 "description": "JSONP", |
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", | 111 "location": "query", |
91 "type": "string" | 112 "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 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "photos": { | 117 "photos": { |
118 "methods": { | 118 "methods": { |
119 "batchDelete": { | 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.", | 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", | 121 "httpMethod": "POST", |
122 "id": "streetviewpublish.photos.batchDelete", | 122 "id": "streetviewpublish.photos.batchDelete", |
(...skipping 10 matching lines...) Expand all Loading... |
133 "https://www.googleapis.com/auth/streetviewpublish" | 133 "https://www.googleapis.com/auth/streetviewpublish" |
134 ] | 134 ] |
135 }, | 135 }, |
136 "batchUpdate": { | 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.", | 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", | 138 "httpMethod": "POST", |
139 "id": "streetviewpublish.photos.batchUpdate", | 139 "id": "streetviewpublish.photos.batchUpdate", |
140 "parameterOrder": [], | 140 "parameterOrder": [], |
141 "parameters": {}, | 141 "parameters": {}, |
142 "path": "v1/photos:batchUpdate", | 142 "path": "v1/photos:batchUpdate", |
143 "request": {}, | 143 "request": { |
| 144 "$ref": "BatchUpdatePhotosRequest" |
| 145 }, |
144 "response": { | 146 "response": { |
145 "$ref": "BatchUpdatePhotosResponse" | 147 "$ref": "BatchUpdatePhotosResponse" |
146 }, | 148 }, |
147 "scopes": [ | 149 "scopes": [ |
148 "https://www.googleapis.com/auth/streetviewpublish" | 150 "https://www.googleapis.com/auth/streetviewpublish" |
149 ] | 151 ] |
150 }, | 152 }, |
151 "batchGet": { | 153 "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.", | 154 "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", | 155 "httpMethod": "GET", |
(...skipping 23 matching lines...) Expand all Loading... |
177 "scopes": [ | 179 "scopes": [ |
178 "https://www.googleapis.com/auth/streetviewpublish" | 180 "https://www.googleapis.com/auth/streetviewpublish" |
179 ] | 181 ] |
180 }, | 182 }, |
181 "list": { | 183 "list": { |
182 "description": "Lists all the Photos that belong to the user
.", | 184 "description": "Lists all the Photos that belong to the user
.", |
183 "httpMethod": "GET", | 185 "httpMethod": "GET", |
184 "id": "streetviewpublish.photos.list", | 186 "id": "streetviewpublish.photos.list", |
185 "parameterOrder": [], | 187 "parameterOrder": [], |
186 "parameters": { | 188 "parameters": { |
187 "filter": { | |
188 "description": "The filter expression. For example:
`placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", | |
189 "location": "query", | |
190 "type": "string" | |
191 }, | |
192 "pageToken": { | 189 "pageToken": { |
193 "description": "The\nnextPageToken\nvalue returned f
rom a previous\nListPhotos\nrequest, if any.", | 190 "description": "The\nnextPageToken\nvalue returned f
rom a previous\nListPhotos\nrequest, if any.", |
194 "location": "query", | 191 "location": "query", |
195 "type": "string" | 192 "type": "string" |
196 }, | 193 }, |
197 "pageSize": { | 194 "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`.", | 195 "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", | 196 "format": "int32", |
200 "location": "query", | 197 "location": "query", |
201 "type": "integer" | 198 "type": "integer" |
202 }, | 199 }, |
203 "view": { | 200 "view": { |
204 "description": "Specifies if a download URL for the
photos bytes should be returned in the\nPhotos response.", | 201 "description": "Specifies if a download URL for the
photos bytes should be returned in the\nPhotos response.", |
205 "enum": [ | 202 "enum": [ |
206 "BASIC", | 203 "BASIC", |
207 "INCLUDE_DOWNLOAD_URL" | 204 "INCLUDE_DOWNLOAD_URL" |
208 ], | 205 ], |
209 "location": "query", | 206 "location": "query", |
210 "type": "string" | 207 "type": "string" |
| 208 }, |
| 209 "filter": { |
| 210 "description": "The filter expression. For example:
`placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", |
| 211 "location": "query", |
| 212 "type": "string" |
211 } | 213 } |
212 }, | 214 }, |
213 "path": "v1/photos", | 215 "path": "v1/photos", |
214 "response": { | 216 "response": { |
215 "$ref": "ListPhotosResponse" | 217 "$ref": "ListPhotosResponse" |
216 }, | 218 }, |
217 "scopes": [ | 219 "scopes": [ |
218 "https://www.googleapis.com/auth/streetviewpublish" | 220 "https://www.googleapis.com/auth/streetviewpublish" |
219 ] | 221 ] |
220 } | 222 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 "response": { | 341 "response": { |
340 "$ref": "Photo" | 342 "$ref": "Photo" |
341 }, | 343 }, |
342 "scopes": [ | 344 "scopes": [ |
343 "https://www.googleapis.com/auth/streetviewpublish" | 345 "https://www.googleapis.com/auth/streetviewpublish" |
344 ] | 346 ] |
345 } | 347 } |
346 } | 348 } |
347 } | 349 } |
348 }, | 350 }, |
349 "revision": "20170630", | 351 "revision": "20170722", |
350 "rootUrl": "https://streetviewpublish.googleapis.com/", | 352 "rootUrl": "https://streetviewpublish.googleapis.com/", |
351 "schemas": { | 353 "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": { | 354 "BatchDeletePhotosResponse": { |
448 "description": "Response to batch delete of one or more\nPhotos.", | 355 "description": "Response to batch delete of one or more\nPhotos.", |
449 "id": "BatchDeletePhotosResponse", | 356 "id": "BatchDeletePhotosResponse", |
450 "properties": { | 357 "properties": { |
451 "status": { | 358 "status": { |
452 "description": "The status for the operation to delete a sin
gle\nPhoto in the batch request.", | 359 "description": "The status for the operation to delete a sin
gle\nPhoto in the batch request.", |
453 "items": { | 360 "items": { |
454 "$ref": "Status" | 361 "$ref": "Status" |
455 }, | 362 }, |
456 "type": "array" | 363 "type": "array" |
457 } | 364 } |
458 }, | 365 }, |
459 "type": "object" | 366 "type": "object" |
460 }, | 367 }, |
461 "Status": { | 368 "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.", | 369 "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", | 370 "id": "Status", |
464 "properties": { | 371 "properties": { |
465 "message": { | 372 "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.", | 373 "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" | 374 "type": "string" |
468 }, | 375 }, |
469 "details": { | 376 "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.", | 377 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
471 "items": { | 378 "items": { |
472 "additionalProperties": { | 379 "additionalProperties": { |
473 "description": "Properties of the object. Contains f
ield @type with type URL.", | 380 "description": "Properties of the object. Contains f
ield @type with type URL.", |
474 "type": "any" | 381 "type": "any" |
475 }, | 382 }, |
476 "type": "object" | 383 "type": "object" |
477 }, | 384 }, |
478 "type": "array" | 385 "type": "array" |
479 }, | 386 }, |
480 "code": { | 387 "code": { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 "description": "Upload reference for media files.", | 443 "description": "Upload reference for media files.", |
537 "id": "UploadRef", | 444 "id": "UploadRef", |
538 "properties": { | 445 "properties": { |
539 "uploadUrl": { | 446 "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}\"", | 447 "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" | 448 "type": "string" |
542 } | 449 } |
543 }, | 450 }, |
544 "type": "object" | 451 "type": "object" |
545 }, | 452 }, |
| 453 "LatLng": { |
| 454 "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)", |
| 455 "id": "LatLng", |
| 456 "properties": { |
| 457 "longitude": { |
| 458 "description": "The longitude in degrees. It must be in the
range [-180.0, +180.0].", |
| 459 "format": "double", |
| 460 "type": "number" |
| 461 }, |
| 462 "latitude": { |
| 463 "description": "The latitude in degrees. It must be in the r
ange [-90.0, +90.0].", |
| 464 "format": "double", |
| 465 "type": "number" |
| 466 } |
| 467 }, |
| 468 "type": "object" |
| 469 }, |
546 "BatchDeletePhotosRequest": { | 470 "BatchDeletePhotosRequest": { |
547 "description": "Request to delete multiple Photos.", | 471 "description": "Request to delete multiple Photos.", |
548 "id": "BatchDeletePhotosRequest", | 472 "id": "BatchDeletePhotosRequest", |
549 "properties": { | 473 "properties": { |
550 "photoIds": { | 474 "photoIds": { |
551 "description": "Required. IDs of the Photos. For HTTP\nGET r
equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`.
", | 475 "description": "Required. IDs of the Photos. For HTTP\nGET r
equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`.
", |
552 "items": { | 476 "items": { |
553 "type": "string" | 477 "type": "string" |
554 }, | 478 }, |
555 "type": "array" | 479 "type": "array" |
556 } | 480 } |
557 }, | 481 }, |
558 "type": "object" | 482 "type": "object" |
559 }, | 483 }, |
560 "LatLng": { | 484 "UpdatePhotoRequest": { |
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)", | 485 "description": "Request to update the metadata of a\nPhoto. Updating
the pixels of a photo\nis not supported.", |
562 "id": "LatLng", | 486 "id": "UpdatePhotoRequest", |
563 "properties": { | 487 "properties": { |
564 "longitude": { | 488 "updateMask": { |
565 "description": "The longitude in degrees. It must be in the
range [-180.0, +180.0].", | 489 "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>", |
566 "format": "double", | 490 "format": "google-fieldmask", |
567 "type": "number" | 491 "type": "string" |
568 }, | 492 }, |
569 "latitude": { | 493 "photo": { |
570 "description": "The latitude in degrees. It must be in the r
ange [-90.0, +90.0].", | 494 "$ref": "Photo", |
571 "format": "double", | 495 "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." |
572 "type": "number" | |
573 } | 496 } |
574 }, | 497 }, |
575 "type": "object" | 498 "type": "object" |
| 499 }, |
| 500 "PhotoId": { |
| 501 "description": "Identifier for a Photo.", |
| 502 "id": "PhotoId", |
| 503 "properties": { |
| 504 "id": { |
| 505 "description": "Required. A base64 encoded identifier.", |
| 506 "type": "string" |
| 507 } |
| 508 }, |
| 509 "type": "object" |
576 }, | 510 }, |
577 "Pose": { | 511 "Pose": { |
578 "description": "Raw pose measurement for an entity.", | 512 "description": "Raw pose measurement for an entity.", |
579 "id": "Pose", | 513 "id": "Pose", |
580 "properties": { | 514 "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": { | 515 "level": { |
596 "$ref": "Level", | 516 "$ref": "Level", |
597 "description": "Level (the floor in a building) used to conf
igure vertical navigation." | 517 "description": "Level (the floor in a building) used to conf
igure vertical navigation." |
598 }, | 518 }, |
599 "heading": { | 519 "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.", | 520 "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", | 521 "format": "double", |
602 "type": "number" | 522 "type": "number" |
603 }, | 523 }, |
604 "altitude": { | 524 "altitude": { |
605 "description": "Altitude of the pose in meters above ground
level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", | 525 "description": "Altitude of the pose in meters above ground
level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", |
606 "format": "double", | 526 "format": "double", |
607 "type": "number" | 527 "type": "number" |
| 528 }, |
| 529 "pitch": { |
| 530 "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.", |
| 531 "format": "double", |
| 532 "type": "number" |
| 533 }, |
| 534 "latLngPair": { |
| 535 "$ref": "LatLng", |
| 536 "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." |
| 537 }, |
| 538 "roll": { |
| 539 "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.", |
| 540 "format": "double", |
| 541 "type": "number" |
608 } | 542 } |
609 }, | 543 }, |
610 "type": "object" | 544 "type": "object" |
611 }, | 545 }, |
612 "PhotoId": { | 546 "BatchUpdatePhotosRequest": { |
613 "description": "Identifier for a Photo.", | 547 "description": "Request to update the metadata of photos.\nUpdating
the pixels of photos is not supported.", |
614 "id": "PhotoId", | 548 "id": "BatchUpdatePhotosRequest", |
615 "properties": { | 549 "properties": { |
616 "id": { | 550 "updatePhotoRequests": { |
617 "description": "Required. A base64 encoded identifier.", | 551 "description": "Required. List of\nUpdatePhotoRequests.", |
618 "type": "string" | 552 "items": { |
| 553 "$ref": "UpdatePhotoRequest" |
| 554 }, |
| 555 "type": "array" |
619 } | 556 } |
620 }, | 557 }, |
621 "type": "object" | 558 "type": "object" |
622 }, | 559 }, |
623 "ListPhotosResponse": { | 560 "ListPhotosResponse": { |
624 "description": "Response to list all photos that belong to a user.", | 561 "description": "Response to list all photos that belong to a user.", |
625 "id": "ListPhotosResponse", | 562 "id": "ListPhotosResponse", |
626 "properties": { | 563 "properties": { |
627 "nextPageToken": { | 564 "nextPageToken": { |
628 "description": "Token to retrieve the next page of results,
or empty if there are no more\nresults in the list.", | 565 "description": "Token to retrieve the next page of results,
or empty if there are no more\nresults in the list.", |
629 "type": "string" | 566 "type": "string" |
630 }, | 567 }, |
631 "photos": { | 568 "photos": { |
632 "description": "List of photos. The maximum number of items
returned is based on the\npageSize field\nin the request.", | 569 "description": "List of photos. The maximum number of items
returned is based on the\npageSize field\nin the request.", |
633 "items": { | 570 "items": { |
634 "$ref": "Photo" | 571 "$ref": "Photo" |
635 }, | 572 }, |
636 "type": "array" | 573 "type": "array" |
637 } | 574 } |
638 }, | 575 }, |
639 "type": "object" | 576 "type": "object" |
| 577 }, |
| 578 "Photo": { |
| 579 "description": "Photo is used to store 360 photos along with photo m
etadata.", |
| 580 "id": "Photo", |
| 581 "properties": { |
| 582 "captureTime": { |
| 583 "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.", |
| 584 "format": "google-datetime", |
| 585 "type": "string" |
| 586 }, |
| 587 "thumbnailUrl": { |
| 588 "description": "Output only. The thumbnail URL for showing a
preview of the given photo.", |
| 589 "type": "string" |
| 590 }, |
| 591 "viewCount": { |
| 592 "description": "Output only. View count of the photo.", |
| 593 "format": "int64", |
| 594 "type": "string" |
| 595 }, |
| 596 "downloadUrl": { |
| 597 "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.", |
| 598 "type": "string" |
| 599 }, |
| 600 "places": { |
| 601 "description": "Places where this photo belongs.", |
| 602 "items": { |
| 603 "$ref": "Place" |
| 604 }, |
| 605 "type": "array" |
| 606 }, |
| 607 "connections": { |
| 608 "description": "Connections to other photos. A connection re
presents the link from this\nphoto to another photo.", |
| 609 "items": { |
| 610 "$ref": "Connection" |
| 611 }, |
| 612 "type": "array" |
| 613 }, |
| 614 "pose": { |
| 615 "$ref": "Pose", |
| 616 "description": "Pose of the photo." |
| 617 }, |
| 618 "photoId": { |
| 619 "$ref": "PhotoId", |
| 620 "description": "Required when updating photo. Output only wh
en creating photo.\nIdentifier for the photo, which is unique among all photos i
n\nGoogle." |
| 621 }, |
| 622 "uploadReference": { |
| 623 "$ref": "UploadRef", |
| 624 "description": "Required when creating photo. Input only. Th
e resource URL where the photo\nbytes are uploaded to." |
| 625 }, |
| 626 "shareLink": { |
| 627 "description": "Output only. The share link for the photo.", |
| 628 "type": "string" |
| 629 } |
| 630 }, |
| 631 "type": "object" |
| 632 }, |
| 633 "PhotoResponse": { |
| 634 "description": "Response payload for a single\nPhoto\nin batch opera
tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", |
| 635 "id": "PhotoResponse", |
| 636 "properties": { |
| 637 "photo": { |
| 638 "$ref": "Photo", |
| 639 "description": "The Photo resource, if the request\nwas succ
essful." |
| 640 }, |
| 641 "status": { |
| 642 "$ref": "Status", |
| 643 "description": "The status for the operation to get or updat
e a single photo in the batch\nrequest." |
| 644 } |
| 645 }, |
| 646 "type": "object" |
| 647 }, |
| 648 "Connection": { |
| 649 "description": "A connection is the link from a source photo to a de
stination photo.", |
| 650 "id": "Connection", |
| 651 "properties": { |
| 652 "target": { |
| 653 "$ref": "PhotoId", |
| 654 "description": "Required. The destination of the connection
from the containing photo to\nanother photo." |
| 655 } |
| 656 }, |
| 657 "type": "object" |
| 658 }, |
| 659 "BatchUpdatePhotosResponse": { |
| 660 "description": "Response to batch update of metadata of one or more\
nPhotos.", |
| 661 "id": "BatchUpdatePhotosResponse", |
| 662 "properties": { |
| 663 "results": { |
| 664 "description": "List of results for each individual\nPhoto u
pdated, in the same order as\nthe request.", |
| 665 "items": { |
| 666 "$ref": "PhotoResponse" |
| 667 }, |
| 668 "type": "array" |
| 669 } |
| 670 }, |
| 671 "type": "object" |
640 } | 672 } |
641 }, | 673 }, |
642 "servicePath": "", | 674 "servicePath": "", |
643 "title": "Street View Publish API", | 675 "title": "Street View Publish API", |
644 "version": "v1" | 676 "version": "v1" |
645 } | 677 } |
OLD | NEW |