Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: discovery/googleapis/streetviewpublish__v1.json

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/storagetransfer__v1.json ('k') | discovery/googleapis/translate__v2.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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": "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", 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 "alt": { 28 "oauth_token": {
29 "default": "json", 29 "description": "OAuth 2.0 token for the current user.",
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 ],
41 "location": "query", 30 "location": "query",
42 "type": "string" 31 "type": "string"
43 }, 32 },
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 },
65 "bearer_token": { 33 "bearer_token": {
66 "description": "OAuth bearer token.", 34 "description": "OAuth bearer token.",
67 "location": "query", 35 "location": "query",
68 "type": "string" 36 "type": "string"
69 }, 37 },
70 "oauth_token": {
71 "description": "OAuth 2.0 token for the current user.",
72 "location": "query",
73 "type": "string"
74 },
75 "upload_protocol": { 38 "upload_protocol": {
76 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
77 "location": "query", 40 "location": "query",
78 "type": "string" 41 "type": "string"
79 }, 42 },
80 "prettyPrint": { 43 "prettyPrint": {
81 "default": "true", 44 "default": "true",
82 "description": "Returns response with indentations and line breaks." , 45 "description": "Returns response with indentations and line breaks." ,
83 "location": "query", 46 "location": "query",
84 "type": "boolean" 47 "type": "boolean"
85 }, 48 },
49 "fields": {
50 "description": "Selector specifying which fields to include in a par tial response.",
51 "location": "query",
52 "type": "string"
53 },
86 "uploadType": { 54 "uploadType": {
87 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 55 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
88 "location": "query", 56 "location": "query",
89 "type": "string" 57 "type": "string"
90 }, 58 },
91 "fields": { 59 "callback": {
92 "description": "Selector specifying which fields to include in a par tial response.", 60 "description": "JSONP",
93 "location": "query", 61 "location": "query",
94 "type": "string" 62 "type": "string"
95 }, 63 },
96 "$.xgafv": { 64 "$.xgafv": {
97 "description": "V1 error format.", 65 "description": "V1 error format.",
98 "enum": [ 66 "enum": [
99 "1", 67 "1",
100 "2" 68 "2"
101 ], 69 ],
102 "enumDescriptions": [ 70 "enumDescriptions": [
103 "v1 error format", 71 "v1 error format",
104 "v2 error format" 72 "v2 error format"
105 ], 73 ],
106 "location": "query", 74 "location": "query",
107 "type": "string" 75 "type": "string"
108 }, 76 },
109 "callback": { 77 "alt": {
110 "description": "JSONP", 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 ],
111 "location": "query", 90 "location": "query",
112 "type": "string" 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 } 113 }
114 }, 114 },
115 "protocol": "rest", 115 "protocol": "rest",
116 "resources": { 116 "resources": {
117 "photos": { 117 "photo": {
118 "methods": { 118 "methods": {
119 "batchDelete": { 119 "get": {
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": "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": "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 "$ref": "BatchUpdatePhotosRequest"
145 },
146 "response": {
147 "$ref": "BatchUpdatePhotosResponse"
148 },
149 "scopes": [
150 "https://www.googleapis.com/auth/streetviewpublish"
151 ]
152 },
153 "batchGet": {
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.",
155 "httpMethod": "GET", 121 "httpMethod": "GET",
156 "id": "streetviewpublish.photos.batchGet", 122 "id": "streetviewpublish.photo.get",
157 "parameterOrder": [], 123 "parameterOrder": [
124 "photoId"
125 ],
158 "parameters": { 126 "parameters": {
159 "view": { 127 "view": {
160 "description": "Specifies if a download URL for the photo bytes should be returned in the\nPhoto response.", 128 "description": "Specifies if a download URL for the photo bytes should be returned in the\nPhoto response.",
161 "enum": [ 129 "enum": [
162 "BASIC", 130 "BASIC",
163 "INCLUDE_DOWNLOAD_URL" 131 "INCLUDE_DOWNLOAD_URL"
164 ], 132 ],
165 "location": "query", 133 "location": "query",
166 "type": "string" 134 "type": "string"
167 }, 135 },
168 "photoIds": { 136 "photoId": {
169 "description": "Required. IDs of the Photos. For HTT P\nGET requests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id 2>&...`.", 137 "description": "Required. ID of the Photo.",
170 "location": "query", 138 "location": "path",
171 "repeated": true, 139 "required": true,
172 "type": "string" 140 "type": "string"
173 } 141 }
174 }, 142 },
175 "path": "v1/photos:batchGet", 143 "path": "v1/photo/{photoId}",
176 "response": { 144 "response": {
177 "$ref": "BatchGetPhotosResponse" 145 "$ref": "Photo"
178 }, 146 },
179 "scopes": [ 147 "scopes": [
180 "https://www.googleapis.com/auth/streetviewpublish" 148 "https://www.googleapis.com/auth/streetviewpublish"
181 ] 149 ]
182 }, 150 },
183 "list": {
184 "description": "Lists all the Photos that belong to the user .",
185 "httpMethod": "GET",
186 "id": "streetviewpublish.photos.list",
187 "parameterOrder": [],
188 "parameters": {
189 "pageToken": {
190 "description": "The\nnextPageToken\nvalue returned f rom a previous\nListPhotos\nrequest, if any.",
191 "location": "query",
192 "type": "string"
193 },
194 "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`.",
196 "format": "int32",
197 "location": "query",
198 "type": "integer"
199 },
200 "view": {
201 "description": "Specifies if a download URL for the photos bytes should be returned in the\nPhotos response.",
202 "enum": [
203 "BASIC",
204 "INCLUDE_DOWNLOAD_URL"
205 ],
206 "location": "query",
207 "type": "string"
208 },
209 "filter": {
210 "description": "The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.",
211 "location": "query",
212 "type": "string"
213 }
214 },
215 "path": "v1/photos",
216 "response": {
217 "$ref": "ListPhotosResponse"
218 },
219 "scopes": [
220 "https://www.googleapis.com/auth/streetviewpublish"
221 ]
222 }
223 }
224 },
225 "photo": {
226 "methods": {
227 "update": { 151 "update": {
228 "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.", 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.",
229 "httpMethod": "PUT", 153 "httpMethod": "PUT",
230 "id": "streetviewpublish.photo.update", 154 "id": "streetviewpublish.photo.update",
231 "parameterOrder": [ 155 "parameterOrder": [
232 "id" 156 "id"
233 ], 157 ],
234 "parameters": { 158 "parameters": {
159 "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>",
161 "format": "google-fieldmask",
162 "location": "query",
163 "type": "string"
164 },
235 "id": { 165 "id": {
236 "description": "Required. A base64 encoded identifie r.", 166 "description": "Required. A base64 encoded identifie r.",
237 "location": "path", 167 "location": "path",
238 "required": true, 168 "required": true,
239 "type": "string" 169 "type": "string"
240 },
241 "updateMask": {
242 "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>",
243 "format": "google-fieldmask",
244 "location": "query",
245 "type": "string"
246 } 170 }
247 }, 171 },
248 "path": "v1/photo/{id}", 172 "path": "v1/photo/{id}",
249 "request": { 173 "request": {
250 "$ref": "Photo" 174 "$ref": "Photo"
251 }, 175 },
252 "response": { 176 "response": {
253 "$ref": "Photo" 177 "$ref": "Photo"
254 }, 178 },
255 "scopes": [ 179 "scopes": [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 "type": "string" 229 "type": "string"
306 } 230 }
307 }, 231 },
308 "path": "v1/photo/{photoId}", 232 "path": "v1/photo/{photoId}",
309 "response": { 233 "response": {
310 "$ref": "Empty" 234 "$ref": "Empty"
311 }, 235 },
312 "scopes": [ 236 "scopes": [
313 "https://www.googleapis.com/auth/streetviewpublish" 237 "https://www.googleapis.com/auth/streetviewpublish"
314 ] 238 ]
239 }
240 }
241 },
242 "photos": {
243 "methods": {
244 "list": {
245 "description": "Lists all the Photos that belong to the user .",
246 "httpMethod": "GET",
247 "id": "streetviewpublish.photos.list",
248 "parameterOrder": [],
249 "parameters": {
250 "filter": {
251 "description": "The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.",
252 "location": "query",
253 "type": "string"
254 },
255 "pageToken": {
256 "description": "The\nnextPageToken\nvalue returned f rom a previous\nListPhotos\nrequest, if any.",
257 "location": "query",
258 "type": "string"
259 },
260 "pageSize": {
261 "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`.",
262 "format": "int32",
263 "location": "query",
264 "type": "integer"
265 },
266 "view": {
267 "description": "Specifies if a download URL for the photos bytes should be returned in the\nPhotos response.",
268 "enum": [
269 "BASIC",
270 "INCLUDE_DOWNLOAD_URL"
271 ],
272 "location": "query",
273 "type": "string"
274 }
275 },
276 "path": "v1/photos",
277 "response": {
278 "$ref": "ListPhotosResponse"
279 },
280 "scopes": [
281 "https://www.googleapis.com/auth/streetviewpublish"
282 ]
315 }, 283 },
316 "get": { 284 "batchDelete": {
317 "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.", 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": {
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.",
303 "httpMethod": "POST",
304 "id": "streetviewpublish.photos.batchUpdate",
305 "parameterOrder": [],
306 "parameters": {},
307 "path": "v1/photos:batchUpdate",
308 "request": {
309 "$ref": "BatchUpdatePhotosRequest"
310 },
311 "response": {
312 "$ref": "BatchUpdatePhotosResponse"
313 },
314 "scopes": [
315 "https://www.googleapis.com/auth/streetviewpublish"
316 ]
317 },
318 "batchGet": {
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.",
318 "httpMethod": "GET", 320 "httpMethod": "GET",
319 "id": "streetviewpublish.photo.get", 321 "id": "streetviewpublish.photos.batchGet",
320 "parameterOrder": [ 322 "parameterOrder": [],
321 "photoId"
322 ],
323 "parameters": { 323 "parameters": {
324 "view": { 324 "view": {
325 "description": "Specifies if a download URL for the photo bytes should be returned in the\nPhoto response.", 325 "description": "Specifies if a download URL for the photo bytes should be returned in the\nPhoto response.",
326 "enum": [ 326 "enum": [
327 "BASIC", 327 "BASIC",
328 "INCLUDE_DOWNLOAD_URL" 328 "INCLUDE_DOWNLOAD_URL"
329 ], 329 ],
330 "location": "query", 330 "location": "query",
331 "type": "string" 331 "type": "string"
332 }, 332 },
333 "photoId": { 333 "photoIds": {
334 "description": "Required. ID of the Photo.", 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": "path", 335 "location": "query",
336 "required": true, 336 "repeated": true,
337 "type": "string" 337 "type": "string"
338 } 338 }
339 }, 339 },
340 "path": "v1/photo/{photoId}", 340 "path": "v1/photos:batchGet",
341 "response": { 341 "response": {
342 "$ref": "Photo" 342 "$ref": "BatchGetPhotosResponse"
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": "20170722",
352 "rootUrl": "https://streetviewpublish.googleapis.com/", 352 "rootUrl": "https://streetviewpublish.googleapis.com/",
353 "schemas": { 353 "schemas": {
354 "BatchDeletePhotosResponse": {
355 "description": "Response to batch delete of one or more\nPhotos.",
356 "id": "BatchDeletePhotosResponse",
357 "properties": {
358 "status": {
359 "description": "The status for the operation to delete a sin gle\nPhoto in the batch request.",
360 "items": {
361 "$ref": "Status"
362 },
363 "type": "array"
364 }
365 },
366 "type": "object"
367 },
368 "Status": {
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.",
370 "id": "Status",
371 "properties": {
372 "message": {
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.",
374 "type": "string"
375 },
376 "details": {
377 "description": "A list of messages that carry the error deta ils. There is a common set of\nmessage types for APIs to use.",
378 "items": {
379 "additionalProperties": {
380 "description": "Properties of the object. Contains f ield @type with type URL.",
381 "type": "any"
382 },
383 "type": "object"
384 },
385 "type": "array"
386 },
387 "code": {
388 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
389 "format": "int32",
390 "type": "integer"
391 }
392 },
393 "type": "object"
394 },
395 "Empty": {
396 "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 `{}`.",
397 "id": "Empty",
398 "properties": {},
399 "type": "object"
400 },
401 "Level": {
402 "description": "Level information containing level number and its co rresponding name.",
403 "id": "Level",
404 "properties": {
405 "number": {
406 "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.",
407 "format": "double",
408 "type": "number"
409 },
410 "name": {
411 "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.",
412 "type": "string"
413 }
414 },
415 "type": "object"
416 },
417 "BatchGetPhotosResponse": {
418 "description": "Response to batch get of Photos.",
419 "id": "BatchGetPhotosResponse",
420 "properties": {
421 "results": {
422 "description": "List of results for each individual\nPhoto r equested, in the same order as\nthe requests in\nBatchGetPhotos.",
423 "items": {
424 "$ref": "PhotoResponse"
425 },
426 "type": "array"
427 }
428 },
429 "type": "object"
430 },
431 "Place": {
432 "description": "Place metadata for an entity.",
433 "id": "Place",
434 "properties": {
435 "placeId": {
436 "description": "Required. Place identifier, as described in\ nhttps://developers.google.com/places/place-id.",
437 "type": "string"
438 }
439 },
440 "type": "object"
441 },
442 "UploadRef": {
443 "description": "Upload reference for media files.",
444 "id": "UploadRef",
445 "properties": {
446 "uploadUrl": {
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}\"",
448 "type": "string"
449 }
450 },
451 "type": "object"
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 },
470 "BatchDeletePhotosRequest": {
471 "description": "Request to delete multiple Photos.",
472 "id": "BatchDeletePhotosRequest",
473 "properties": {
474 "photoIds": {
475 "description": "Required. IDs of the Photos. For HTTP\nGET r equests, the URL query parameter should be\n`photoIds=<id1>&photoIds=<id2>&...`. ",
476 "items": {
477 "type": "string"
478 },
479 "type": "array"
480 }
481 },
482 "type": "object"
483 },
484 "UpdatePhotoRequest": { 354 "UpdatePhotoRequest": {
485 "description": "Request to update the metadata of a\nPhoto. Updating the pixels of a photo\nis not supported.", 355 "description": "Request to update the metadata of a\nPhoto. Updating the pixels of a photo\nis not supported.",
486 "id": "UpdatePhotoRequest", 356 "id": "UpdatePhotoRequest",
487 "properties": { 357 "properties": {
488 "updateMask": { 358 "updateMask": {
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>", 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>",
490 "format": "google-fieldmask", 360 "format": "google-fieldmask",
491 "type": "string" 361 "type": "string"
492 }, 362 },
493 "photo": { 363 "photo": {
494 "$ref": "Photo", 364 "$ref": "Photo",
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." 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."
496 } 366 }
497 }, 367 },
498 "type": "object" 368 "type": "object"
499 }, 369 },
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"
510 },
511 "Pose": { 370 "Pose": {
512 "description": "Raw pose measurement for an entity.", 371 "description": "Raw pose measurement for an entity.",
513 "id": "Pose", 372 "id": "Pose",
514 "properties": { 373 "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 },
515 "level": { 383 "level": {
516 "$ref": "Level", 384 "$ref": "Level",
517 "description": "Level (the floor in a building) used to conf igure vertical navigation." 385 "description": "Level (the floor in a building) used to conf igure vertical navigation."
518 }, 386 },
519 "heading": { 387 "heading": {
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.", 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.",
521 "format": "double", 389 "format": "double",
522 "type": "number" 390 "type": "number"
523 }, 391 },
524 "altitude": { 392 "altitude": {
525 "description": "Altitude of the pose in meters above ground level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", 393 "description": "Altitude of the pose in meters above ground level (as defined by WGS84).\nNaN indicates an unmeasured quantity.",
526 "format": "double", 394 "format": "double",
527 "type": "number" 395 "type": "number"
528 }, 396 },
529 "pitch": { 397 "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.", 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.",
531 "format": "double", 399 "format": "double",
532 "type": "number" 400 "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"
542 } 401 }
543 }, 402 },
544 "type": "object" 403 "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"
545 }, 415 },
546 "BatchUpdatePhotosRequest": { 416 "BatchUpdatePhotosRequest": {
547 "description": "Request to update the metadata of photos.\nUpdating the pixels of photos is not supported.", 417 "description": "Request to update the metadata of photos.\nUpdating the pixels of photos is not supported.",
548 "id": "BatchUpdatePhotosRequest", 418 "id": "BatchUpdatePhotosRequest",
549 "properties": { 419 "properties": {
550 "updatePhotoRequests": { 420 "updatePhotoRequests": {
551 "description": "Required. List of\nUpdatePhotoRequests.", 421 "description": "Required. List of\nUpdatePhotoRequests.",
552 "items": { 422 "items": {
553 "$ref": "UpdatePhotoRequest" 423 "$ref": "UpdatePhotoRequest"
554 }, 424 },
(...skipping 17 matching lines...) Expand all
572 }, 442 },
573 "type": "array" 443 "type": "array"
574 } 444 }
575 }, 445 },
576 "type": "object" 446 "type": "object"
577 }, 447 },
578 "Photo": { 448 "Photo": {
579 "description": "Photo is used to store 360 photos along with photo m etadata.", 449 "description": "Photo is used to store 360 photos along with photo m etadata.",
580 "id": "Photo", 450 "id": "Photo",
581 "properties": { 451 "properties": {
582 "captureTime": { 452 "pose": {
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.", 453 "$ref": "Pose",
584 "format": "google-datetime", 454 "description": "Pose of the photo."
455 },
456 "uploadReference": {
457 "$ref": "UploadRef",
458 "description": "Required when creating photo. Input only. Th e resource URL where the photo\nbytes are uploaded to."
459 },
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": {
465 "description": "Output only. The share link for the photo.",
585 "type": "string" 466 "type": "string"
586 }, 467 },
587 "thumbnailUrl": { 468 "thumbnailUrl": {
588 "description": "Output only. The thumbnail URL for showing a preview of the given photo.", 469 "description": "Output only. The thumbnail URL for showing a preview of the given photo.",
589 "type": "string" 470 "type": "string"
590 }, 471 },
472 "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.",
474 "format": "google-datetime",
475 "type": "string"
476 },
591 "viewCount": { 477 "viewCount": {
592 "description": "Output only. View count of the photo.", 478 "description": "Output only. View count of the photo.",
593 "format": "int64", 479 "format": "int64",
594 "type": "string" 480 "type": "string"
595 }, 481 },
596 "downloadUrl": { 482 "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.", 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.",
598 "type": "string" 484 "type": "string"
599 }, 485 },
600 "places": {
601 "description": "Places where this photo belongs.",
602 "items": {
603 "$ref": "Place"
604 },
605 "type": "array"
606 },
607 "connections": { 486 "connections": {
608 "description": "Connections to other photos. A connection re presents the link from this\nphoto to another photo.", 487 "description": "Connections to other photos. A connection re presents the link from this\nphoto to another photo.",
609 "items": { 488 "items": {
610 "$ref": "Connection" 489 "$ref": "Connection"
611 }, 490 },
612 "type": "array" 491 "type": "array"
613 }, 492 },
614 "pose": { 493 "places": {
615 "$ref": "Pose", 494 "description": "Places where this photo belongs.",
616 "description": "Pose of the photo." 495 "items": {
617 }, 496 "$ref": "Place"
618 "photoId": { 497 },
619 "$ref": "PhotoId", 498 "type": "array"
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 } 499 }
630 }, 500 },
631 "type": "object" 501 "type": "object"
632 }, 502 },
633 "PhotoResponse": { 503 "PhotoResponse": {
634 "description": "Response payload for a single\nPhoto\nin batch opera tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", 504 "description": "Response payload for a single\nPhoto\nin batch opera tions including\nBatchGetPhotos\nand\nBatchUpdatePhotos.",
635 "id": "PhotoResponse", 505 "id": "PhotoResponse",
636 "properties": { 506 "properties": {
507 "status": {
508 "$ref": "Status",
509 "description": "The status for the operation to get or updat e a single photo in the batch\nrequest."
510 },
637 "photo": { 511 "photo": {
638 "$ref": "Photo", 512 "$ref": "Photo",
639 "description": "The Photo resource, if the request\nwas succ essful." 513 "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 } 514 }
645 }, 515 },
646 "type": "object" 516 "type": "object"
647 }, 517 },
648 "Connection": { 518 "Connection": {
649 "description": "A connection is the link from a source photo to a de stination photo.", 519 "description": "A connection is the link from a source photo to a de stination photo.",
650 "id": "Connection", 520 "id": "Connection",
651 "properties": { 521 "properties": {
652 "target": { 522 "target": {
653 "$ref": "PhotoId", 523 "$ref": "PhotoId",
654 "description": "Required. The destination of the connection from the containing photo to\nanother photo." 524 "description": "Required. The destination of the connection from the containing photo to\nanother photo."
655 } 525 }
656 }, 526 },
657 "type": "object" 527 "type": "object"
658 }, 528 },
659 "BatchUpdatePhotosResponse": { 529 "BatchUpdatePhotosResponse": {
660 "description": "Response to batch update of metadata of one or more\ nPhotos.", 530 "description": "Response to batch update of metadata of one or more\ nPhotos.",
661 "id": "BatchUpdatePhotosResponse", 531 "id": "BatchUpdatePhotosResponse",
662 "properties": { 532 "properties": {
663 "results": { 533 "results": {
664 "description": "List of results for each individual\nPhoto u pdated, in the same order as\nthe request.", 534 "description": "List of results for each individual\nPhoto u pdated, in the same order as\nthe request.",
665 "items": { 535 "items": {
666 "$ref": "PhotoResponse" 536 "$ref": "PhotoResponse"
667 }, 537 },
668 "type": "array" 538 "type": "array"
669 } 539 }
670 }, 540 },
671 "type": "object" 541 "type": "object"
542 },
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": {
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.",
559 "id": "Status",
560 "properties": {
561 "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.",
563 "items": {
564 "additionalProperties": {
565 "description": "Properties of the object. Contains f ield @type with type URL.",
566 "type": "any"
567 },
568 "type": "object"
569 },
570 "type": "array"
571 },
572 "code": {
573 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
574 "format": "int32",
575 "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 }
581 },
582 "type": "object"
583 },
584 "Empty": {
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 `{}`.",
586 "id": "Empty",
587 "properties": {},
588 "type": "object"
589 },
590 "Level": {
591 "description": "Level information containing level number and its co rresponding name.",
592 "id": "Level",
593 "properties": {
594 "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.",
596 "format": "double",
597 "type": "number"
598 },
599 "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.",
601 "type": "string"
602 }
603 },
604 "type": "object"
605 },
606 "UploadRef": {
607 "description": "Upload reference for media files.",
608 "id": "UploadRef",
609 "properties": {
610 "uploadUrl": {
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}\"",
612 "type": "string"
613 }
614 },
615 "type": "object"
616 },
617 "Place": {
618 "description": "Place metadata for an entity.",
619 "id": "Place",
620 "properties": {
621 "placeId": {
622 "description": "Required. Place identifier, as described in\ nhttps://developers.google.com/places/place-id.",
623 "type": "string"
624 }
625 },
626 "type": "object"
627 },
628 "BatchGetPhotosResponse": {
629 "description": "Response to batch get of Photos.",
630 "id": "BatchGetPhotosResponse",
631 "properties": {
632 "results": {
633 "description": "List of results for each individual\nPhoto r equested, in the same order as\nthe requests in\nBatchGetPhotos.",
634 "items": {
635 "$ref": "PhotoResponse"
636 },
637 "type": "array"
638 }
639 },
640 "type": "object"
641 },
642 "BatchDeletePhotosRequest": {
643 "description": "Request to delete multiple Photos.",
644 "id": "BatchDeletePhotosRequest",
645 "properties": {
646 "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 "items": {
649 "type": "string"
650 },
651 "type": "array"
652 }
653 },
654 "type": "object"
655 },
656 "LatLng": {
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 "id": "LatLng",
659 "properties": {
660 "latitude": {
661 "description": "The latitude in degrees. It must be in the r ange [-90.0, +90.0].",
662 "format": "double",
663 "type": "number"
664 },
665 "longitude": {
666 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
667 "format": "double",
668 "type": "number"
669 }
670 },
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 }
OLDNEW
« no previous file with comments | « discovery/googleapis/storagetransfer__v1.json ('k') | discovery/googleapis/translate__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698