| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/streetview/publish/apiv1", |
| 4 |
"version": "0.2.5", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.streetview.publish.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchDeletePhotos_sync", |
| 16 |
"title": "streetviewpublish BatchDeletePhotos Sample", |
| 17 |
"description": "BatchDeletePhotos deletes a list of [Photos][google.streetview.publish.v1.Photo] and their\nmetadata.\n\nNote that if\n[BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]\nfails, either critical fields are missing or there is an authentication\nerror. Even if\n[BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]\nsucceeds, individual photos in the batch may have failures.\nThese failures are specified in each\n[PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]\nin\n[BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].\nSee\n[DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]\nfor specific failures that can occur per photo.", |
| 18 |
"file": "StreetViewPublishClient/BatchDeletePhotos/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "BatchDeletePhotos", |
| 22 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.BatchDeletePhotos", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "publishpb.BatchDeletePhotosRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "*publishpb.BatchDeletePhotosResponse", |
| 38 |
"client": { |
| 39 |
"shortName": "StreetViewPublishClient", |
| 40 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "BatchDeletePhotos", |
| 44 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos", |
| 45 |
"service": { |
| 46 |
"shortName": "StreetViewPublishService", |
| 47 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"origin": "API_DEFINITION", |
| 52 |
"segments": [ |
| 53 |
{ |
| 54 |
"start": 18, |
| 55 |
"end": 53, |
| 56 |
"type": "FULL" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
{ |
| 61 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchGetPhotos_sync", |
| 62 |
"title": "streetviewpublish BatchGetPhotos Sample", |
| 63 |
"description": "BatchGetPhotos gets the metadata of the specified\n[Photo][google.streetview.publish.v1.Photo] batch.\n\nNote that if\n[BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]\nfails, either critical fields are missing or there is an authentication\nerror. Even if\n[BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]\nsucceeds, individual photos in the batch may have failures.\nThese failures are specified in each\n[PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]\nin\n[BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].\nSee\n[GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]\nfor specific failures that can occur per photo.", |
| 64 |
"file": "StreetViewPublishClient/BatchGetPhotos/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "BatchGetPhotos", |
| 68 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.BatchGetPhotos", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "publishpb.BatchGetPhotosRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"resultType": "*publishpb.BatchGetPhotosResponse", |
| 84 |
"client": { |
| 85 |
"shortName": "StreetViewPublishClient", |
| 86 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 87 |
}, |
| 88 |
"method": { |
| 89 |
"shortName": "BatchGetPhotos", |
| 90 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos", |
| 91 |
"service": { |
| 92 |
"shortName": "StreetViewPublishService", |
| 93 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 94 |
} |
| 95 |
} |
| 96 |
}, |
| 97 |
"origin": "API_DEFINITION", |
| 98 |
"segments": [ |
| 99 |
{ |
| 100 |
"start": 18, |
| 101 |
"end": 53, |
| 102 |
"type": "FULL" |
| 103 |
} |
| 104 |
] |
| 105 |
}, |
| 106 |
{ |
| 107 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchUpdatePhotos_sync", |
| 108 |
"title": "streetviewpublish BatchUpdatePhotos Sample", |
| 109 |
"description": "BatchUpdatePhotos updates the metadata of [Photos][google.streetview.publish.v1.Photo], such\nas pose, place association, connections, etc. Changing the pixels of photos\nis not supported.\n\nNote that if\n[BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]\nfails, either critical fields are missing or there is an authentication\nerror. Even if\n[BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]\nsucceeds, individual photos in the batch may have failures.\nThese failures are specified in each\n[PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]\nin\n[BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].\nSee\n[UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]\nfor specific failures that can occur per photo.\n\nOnly the fields specified in\n[updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]\nfield are used. If `updateMask` is not present, the update applies to all\nfields.\n\nThe number of\n[UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]\nmessages in a\n[BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]\nmust not exceed 20.\n\n> Note: To update\n[Pose.altitude][google.streetview.publish.v1.Pose.altitude],\n[Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be\nfilled as well. Otherwise, the request will fail.", |
| 110 |
"file": "StreetViewPublishClient/BatchUpdatePhotos/main.go", |
| 111 |
"language": "GO", |
| 112 |
"clientMethod": { |
| 113 |
"shortName": "BatchUpdatePhotos", |
| 114 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.BatchUpdatePhotos", |
| 115 |
"parameters": [ |
| 116 |
{ |
| 117 |
"type": "context.Context", |
| 118 |
"name": "ctx" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "publishpb.BatchUpdatePhotosRequest", |
| 122 |
"name": "req" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "...gax.CallOption", |
| 126 |
"name": "opts" |
| 127 |
} |
| 128 |
], |
| 129 |
"resultType": "*publishpb.BatchUpdatePhotosResponse", |
| 130 |
"client": { |
| 131 |
"shortName": "StreetViewPublishClient", |
| 132 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 133 |
}, |
| 134 |
"method": { |
| 135 |
"shortName": "BatchUpdatePhotos", |
| 136 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos", |
| 137 |
"service": { |
| 138 |
"shortName": "StreetViewPublishService", |
| 139 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"origin": "API_DEFINITION", |
| 144 |
"segments": [ |
| 145 |
{ |
| 146 |
"start": 18, |
| 147 |
"end": 53, |
| 148 |
"type": "FULL" |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
{ |
| 153 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_CreatePhoto_sync", |
| 154 |
"title": "streetviewpublish CreatePhoto Sample", |
| 155 |
"description": "CreatePhoto after the client finishes uploading the photo with the returned\n[UploadRef][google.streetview.publish.v1.UploadRef],\n[CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]\npublishes the uploaded [Photo][google.streetview.publish.v1.Photo] to\nStreet View on Google Maps.\n\nCurrently, the only way to set heading, pitch, and roll in CreatePhoto is\nthrough the [Photo Sphere XMP\nmetadata](https: //developers.google.com/streetview/spherical-metadata) in\nthe photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,\n`pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if\nthe request is malformed or if the uploaded photo is not a 360 photo.\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload\nreference does not exist.\n* [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]\nif the account has reached the storage limit.", |
| 156 |
"file": "StreetViewPublishClient/CreatePhoto/main.go", |
| 157 |
"language": "GO", |
| 158 |
"clientMethod": { |
| 159 |
"shortName": "CreatePhoto", |
| 160 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.CreatePhoto", |
| 161 |
"parameters": [ |
| 162 |
{ |
| 163 |
"type": "context.Context", |
| 164 |
"name": "ctx" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "publishpb.CreatePhotoRequest", |
| 168 |
"name": "req" |
| 169 |
}, |
| 170 |
{ |
| 171 |
"type": "...gax.CallOption", |
| 172 |
"name": "opts" |
| 173 |
} |
| 174 |
], |
| 175 |
"resultType": "*publishpb.Photo", |
| 176 |
"client": { |
| 177 |
"shortName": "StreetViewPublishClient", |
| 178 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 179 |
}, |
| 180 |
"method": { |
| 181 |
"shortName": "CreatePhoto", |
| 182 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhoto", |
| 183 |
"service": { |
| 184 |
"shortName": "StreetViewPublishService", |
| 185 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 186 |
} |
| 187 |
} |
| 188 |
}, |
| 189 |
"origin": "API_DEFINITION", |
| 190 |
"segments": [ |
| 191 |
{ |
| 192 |
"start": 18, |
| 193 |
"end": 53, |
| 194 |
"type": "FULL" |
| 195 |
} |
| 196 |
] |
| 197 |
}, |
| 198 |
{ |
| 199 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_CreatePhotoSequence_sync", |
| 200 |
"title": "streetviewpublish CreatePhotoSequence Sample", |
| 201 |
"description": "CreatePhotoSequence after the client finishes uploading the\n[PhotoSequence][google.streetview.publish.v1.PhotoSequence] with the\nreturned [UploadRef][google.streetview.publish.v1.UploadRef],\n[CreatePhotoSequence][google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence]\nextracts a sequence of 360 photos from a video or Extensible Device\nMetadata (XDM, http: //www.xdm.org/) to be published to Street View on\nGoogle Maps.\n\n`CreatePhotoSequence` returns an [Operation][google.longrunning.Operation],\nwith the [PhotoSequence][google.streetview.publish.v1.PhotoSequence] Id set\nin the `Operation.name` field.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if\nthe request is malformed.\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload\nreference does not exist.", |
| 202 |
"file": "StreetViewPublishClient/CreatePhotoSequence/main.go", |
| 203 |
"language": "GO", |
| 204 |
"clientMethod": { |
| 205 |
"shortName": "CreatePhotoSequence", |
| 206 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.CreatePhotoSequence", |
| 207 |
"parameters": [ |
| 208 |
{ |
| 209 |
"type": "context.Context", |
| 210 |
"name": "ctx" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "publishpb.CreatePhotoSequenceRequest", |
| 214 |
"name": "req" |
| 215 |
}, |
| 216 |
{ |
| 217 |
"type": "...gax.CallOption", |
| 218 |
"name": "opts" |
| 219 |
} |
| 220 |
], |
| 221 |
"resultType": "CreatePhotoSequenceOperation", |
| 222 |
"client": { |
| 223 |
"shortName": "StreetViewPublishClient", |
| 224 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 225 |
}, |
| 226 |
"method": { |
| 227 |
"shortName": "CreatePhotoSequence", |
| 228 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence", |
| 229 |
"service": { |
| 230 |
"shortName": "StreetViewPublishService", |
| 231 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 232 |
} |
| 233 |
} |
| 234 |
}, |
| 235 |
"origin": "API_DEFINITION", |
| 236 |
"segments": [ |
| 237 |
{ |
| 238 |
"start": 18, |
| 239 |
"end": 58, |
| 240 |
"type": "FULL" |
| 241 |
} |
| 242 |
] |
| 243 |
}, |
| 244 |
{ |
| 245 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_DeletePhoto_sync", |
| 246 |
"title": "streetviewpublish DeletePhoto Sample", |
| 247 |
"description": "DeletePhoto deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if\nthe requesting user did not create the requested photo.\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID\ndoes not exist.", |
| 248 |
"file": "StreetViewPublishClient/DeletePhoto/main.go", |
| 249 |
"language": "GO", |
| 250 |
"clientMethod": { |
| 251 |
"shortName": "DeletePhoto", |
| 252 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.DeletePhoto", |
| 253 |
"parameters": [ |
| 254 |
{ |
| 255 |
"type": "context.Context", |
| 256 |
"name": "ctx" |
| 257 |
}, |
| 258 |
{ |
| 259 |
"type": "publishpb.DeletePhotoRequest", |
| 260 |
"name": "req" |
| 261 |
}, |
| 262 |
{ |
| 263 |
"type": "...gax.CallOption", |
| 264 |
"name": "opts" |
| 265 |
} |
| 266 |
], |
| 267 |
"client": { |
| 268 |
"shortName": "StreetViewPublishClient", |
| 269 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 270 |
}, |
| 271 |
"method": { |
| 272 |
"shortName": "DeletePhoto", |
| 273 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhoto", |
| 274 |
"service": { |
| 275 |
"shortName": "StreetViewPublishService", |
| 276 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 277 |
} |
| 278 |
} |
| 279 |
}, |
| 280 |
"origin": "API_DEFINITION", |
| 281 |
"segments": [ |
| 282 |
{ |
| 283 |
"start": 18, |
| 284 |
"end": 51, |
| 285 |
"type": "FULL" |
| 286 |
} |
| 287 |
] |
| 288 |
}, |
| 289 |
{ |
| 290 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_DeletePhotoSequence_sync", |
| 291 |
"title": "streetviewpublish DeletePhotoSequence Sample", |
| 292 |
"description": "DeletePhotoSequence deletes a [PhotoSequence][google.streetview.publish.v1.PhotoSequence] and\nits metadata.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if\nthe requesting user did not create the requested photo sequence.\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo\nsequence ID does not exist.\n* [google.rpc.Code.FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION] if the photo sequence ID is not\nyet finished processing.", |
| 293 |
"file": "StreetViewPublishClient/DeletePhotoSequence/main.go", |
| 294 |
"language": "GO", |
| 295 |
"clientMethod": { |
| 296 |
"shortName": "DeletePhotoSequence", |
| 297 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.DeletePhotoSequence", |
| 298 |
"parameters": [ |
| 299 |
{ |
| 300 |
"type": "context.Context", |
| 301 |
"name": "ctx" |
| 302 |
}, |
| 303 |
{ |
| 304 |
"type": "publishpb.DeletePhotoSequenceRequest", |
| 305 |
"name": "req" |
| 306 |
}, |
| 307 |
{ |
| 308 |
"type": "...gax.CallOption", |
| 309 |
"name": "opts" |
| 310 |
} |
| 311 |
], |
| 312 |
"client": { |
| 313 |
"shortName": "StreetViewPublishClient", |
| 314 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 315 |
}, |
| 316 |
"method": { |
| 317 |
"shortName": "DeletePhotoSequence", |
| 318 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhotoSequence", |
| 319 |
"service": { |
| 320 |
"shortName": "StreetViewPublishService", |
| 321 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 322 |
} |
| 323 |
} |
| 324 |
}, |
| 325 |
"origin": "API_DEFINITION", |
| 326 |
"segments": [ |
| 327 |
{ |
| 328 |
"start": 18, |
| 329 |
"end": 51, |
| 330 |
"type": "FULL" |
| 331 |
} |
| 332 |
] |
| 333 |
}, |
| 334 |
{ |
| 335 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_GetPhoto_sync", |
| 336 |
"title": "streetviewpublish GetPhoto Sample", |
| 337 |
"description": "GetPhoto gets the metadata of the specified\n[Photo][google.streetview.publish.v1.Photo].\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if\nthe requesting user did not create the requested\n[Photo][google.streetview.publish.v1.Photo].\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested\n[Photo][google.streetview.publish.v1.Photo] does not exist.\n* [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the\nrequested [Photo][google.streetview.publish.v1.Photo] is still being\nindexed.", |
| 338 |
"file": "StreetViewPublishClient/GetPhoto/main.go", |
| 339 |
"language": "GO", |
| 340 |
"clientMethod": { |
| 341 |
"shortName": "GetPhoto", |
| 342 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.GetPhoto", |
| 343 |
"parameters": [ |
| 344 |
{ |
| 345 |
"type": "context.Context", |
| 346 |
"name": "ctx" |
| 347 |
}, |
| 348 |
{ |
| 349 |
"type": "publishpb.GetPhotoRequest", |
| 350 |
"name": "req" |
| 351 |
}, |
| 352 |
{ |
| 353 |
"type": "...gax.CallOption", |
| 354 |
"name": "opts" |
| 355 |
} |
| 356 |
], |
| 357 |
"resultType": "*publishpb.Photo", |
| 358 |
"client": { |
| 359 |
"shortName": "StreetViewPublishClient", |
| 360 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 361 |
}, |
| 362 |
"method": { |
| 363 |
"shortName": "GetPhoto", |
| 364 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhoto", |
| 365 |
"service": { |
| 366 |
"shortName": "StreetViewPublishService", |
| 367 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 368 |
} |
| 369 |
} |
| 370 |
}, |
| 371 |
"origin": "API_DEFINITION", |
| 372 |
"segments": [ |
| 373 |
{ |
| 374 |
"start": 18, |
| 375 |
"end": 53, |
| 376 |
"type": "FULL" |
| 377 |
} |
| 378 |
] |
| 379 |
}, |
| 380 |
{ |
| 381 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_GetPhotoSequence_sync", |
| 382 |
"title": "streetviewpublish GetPhotoSequence Sample", |
| 383 |
"description": "GetPhotoSequence gets the metadata of the specified\n[PhotoSequence][google.streetview.publish.v1.PhotoSequence] via the\n[Operation][google.longrunning.Operation] interface.\n\nThis method returns the following three types of responses: \n\n* `Operation.done` = false, if the processing of\n[PhotoSequence][google.streetview.publish.v1.PhotoSequence] is not\nfinished yet.\n* `Operation.done` = true and `Operation.error` is populated, if there was\nan error in processing.\n* `Operation.done` = true and `Operation.response` is poulated, which\ncontains a [PhotoSequence][google.streetview.publish.v1.PhotoSequence]\nmessage.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if\nthe requesting user did not create the requested\n[PhotoSequence][google.streetview.publish.v1.PhotoSequence].\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested\n[PhotoSequence][google.streetview.publish.v1.PhotoSequence] does not exist.", |
| 384 |
"file": "StreetViewPublishClient/GetPhotoSequence/main.go", |
| 385 |
"language": "GO", |
| 386 |
"clientMethod": { |
| 387 |
"shortName": "GetPhotoSequence", |
| 388 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.GetPhotoSequence", |
| 389 |
"parameters": [ |
| 390 |
{ |
| 391 |
"type": "context.Context", |
| 392 |
"name": "ctx" |
| 393 |
}, |
| 394 |
{ |
| 395 |
"type": "publishpb.GetPhotoSequenceRequest", |
| 396 |
"name": "req" |
| 397 |
}, |
| 398 |
{ |
| 399 |
"type": "...gax.CallOption", |
| 400 |
"name": "opts" |
| 401 |
} |
| 402 |
], |
| 403 |
"resultType": "GetPhotoSequenceOperation", |
| 404 |
"client": { |
| 405 |
"shortName": "StreetViewPublishClient", |
| 406 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 407 |
}, |
| 408 |
"method": { |
| 409 |
"shortName": "GetPhotoSequence", |
| 410 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhotoSequence", |
| 411 |
"service": { |
| 412 |
"shortName": "StreetViewPublishService", |
| 413 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 414 |
} |
| 415 |
} |
| 416 |
}, |
| 417 |
"origin": "API_DEFINITION", |
| 418 |
"segments": [ |
| 419 |
{ |
| 420 |
"start": 18, |
| 421 |
"end": 58, |
| 422 |
"type": "FULL" |
| 423 |
} |
| 424 |
] |
| 425 |
}, |
| 426 |
{ |
| 427 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_ListPhotoSequences_sync", |
| 428 |
"title": "streetviewpublish ListPhotoSequences Sample", |
| 429 |
"description": "ListPhotoSequences lists all the [PhotoSequences][google.streetview.publish.v1.PhotoSequence]\nthat belong to the user, in descending CreatePhotoSequence timestamp order.", |
| 430 |
"file": "StreetViewPublishClient/ListPhotoSequences/main.go", |
| 431 |
"language": "GO", |
| 432 |
"clientMethod": { |
| 433 |
"shortName": "ListPhotoSequences", |
| 434 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.ListPhotoSequences", |
| 435 |
"parameters": [ |
| 436 |
{ |
| 437 |
"type": "context.Context", |
| 438 |
"name": "ctx" |
| 439 |
}, |
| 440 |
{ |
| 441 |
"type": "publishpb.ListPhotoSequencesRequest", |
| 442 |
"name": "req" |
| 443 |
}, |
| 444 |
{ |
| 445 |
"type": "...gax.CallOption", |
| 446 |
"name": "opts" |
| 447 |
} |
| 448 |
], |
| 449 |
"resultType": "OperationIterator", |
| 450 |
"client": { |
| 451 |
"shortName": "StreetViewPublishClient", |
| 452 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 453 |
}, |
| 454 |
"method": { |
| 455 |
"shortName": "ListPhotoSequences", |
| 456 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotoSequences", |
| 457 |
"service": { |
| 458 |
"shortName": "StreetViewPublishService", |
| 459 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 460 |
} |
| 461 |
} |
| 462 |
}, |
| 463 |
"origin": "API_DEFINITION", |
| 464 |
"segments": [ |
| 465 |
{ |
| 466 |
"start": 18, |
| 467 |
"end": 66, |
| 468 |
"type": "FULL" |
| 469 |
} |
| 470 |
] |
| 471 |
}, |
| 472 |
{ |
| 473 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_ListPhotos_sync", |
| 474 |
"title": "streetviewpublish ListPhotos Sample", |
| 475 |
"description": "ListPhotos lists all the [Photos][google.streetview.publish.v1.Photo] that belong to\nthe user.\n\n> Note: Recently created photos that are still\nbeing indexed are not returned in the response.", |
| 476 |
"file": "StreetViewPublishClient/ListPhotos/main.go", |
| 477 |
"language": "GO", |
| 478 |
"clientMethod": { |
| 479 |
"shortName": "ListPhotos", |
| 480 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.ListPhotos", |
| 481 |
"parameters": [ |
| 482 |
{ |
| 483 |
"type": "context.Context", |
| 484 |
"name": "ctx" |
| 485 |
}, |
| 486 |
{ |
| 487 |
"type": "publishpb.ListPhotosRequest", |
| 488 |
"name": "req" |
| 489 |
}, |
| 490 |
{ |
| 491 |
"type": "...gax.CallOption", |
| 492 |
"name": "opts" |
| 493 |
} |
| 494 |
], |
| 495 |
"resultType": "PhotoIterator", |
| 496 |
"client": { |
| 497 |
"shortName": "StreetViewPublishClient", |
| 498 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 499 |
}, |
| 500 |
"method": { |
| 501 |
"shortName": "ListPhotos", |
| 502 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotos", |
| 503 |
"service": { |
| 504 |
"shortName": "StreetViewPublishService", |
| 505 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 506 |
} |
| 507 |
} |
| 508 |
}, |
| 509 |
"origin": "API_DEFINITION", |
| 510 |
"segments": [ |
| 511 |
{ |
| 512 |
"start": 18, |
| 513 |
"end": 66, |
| 514 |
"type": "FULL" |
| 515 |
} |
| 516 |
] |
| 517 |
}, |
| 518 |
{ |
| 519 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_StartPhotoSequenceUpload_sync", |
| 520 |
"title": "streetviewpublish StartPhotoSequenceUpload Sample", |
| 521 |
"description": "StartPhotoSequenceUpload creates an upload session to start uploading photo sequence data.\nThe upload URL of the returned\n[UploadRef][google.streetview.publish.v1.UploadRef] is used to upload the\ndata for the `photoSequence`.\n\nAfter the upload is complete, the\n[UploadRef][google.streetview.publish.v1.UploadRef] is used with\n[CreatePhotoSequence][google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence]\nto create the [PhotoSequence][google.streetview.publish.v1.PhotoSequence]\nobject entry.", |
| 522 |
"file": "StreetViewPublishClient/StartPhotoSequenceUpload/main.go", |
| 523 |
"language": "GO", |
| 524 |
"clientMethod": { |
| 525 |
"shortName": "StartPhotoSequenceUpload", |
| 526 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.StartPhotoSequenceUpload", |
| 527 |
"parameters": [ |
| 528 |
{ |
| 529 |
"type": "context.Context", |
| 530 |
"name": "ctx" |
| 531 |
}, |
| 532 |
{ |
| 533 |
"type": "emptypb.Empty", |
| 534 |
"name": "req" |
| 535 |
}, |
| 536 |
{ |
| 537 |
"type": "...gax.CallOption", |
| 538 |
"name": "opts" |
| 539 |
} |
| 540 |
], |
| 541 |
"resultType": "*publishpb.UploadRef", |
| 542 |
"client": { |
| 543 |
"shortName": "StreetViewPublishClient", |
| 544 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 545 |
}, |
| 546 |
"method": { |
| 547 |
"shortName": "StartPhotoSequenceUpload", |
| 548 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.StartPhotoSequenceUpload", |
| 549 |
"service": { |
| 550 |
"shortName": "StreetViewPublishService", |
| 551 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 552 |
} |
| 553 |
} |
| 554 |
}, |
| 555 |
"origin": "API_DEFINITION", |
| 556 |
"segments": [ |
| 557 |
{ |
| 558 |
"start": 18, |
| 559 |
"end": 53, |
| 560 |
"type": "FULL" |
| 561 |
} |
| 562 |
] |
| 563 |
}, |
| 564 |
{ |
| 565 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_StartUpload_sync", |
| 566 |
"title": "streetviewpublish StartUpload Sample", |
| 567 |
"description": "StartUpload creates an upload session to start uploading photo bytes. The method uses\nthe upload URL of the returned\n[UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for\nthe [Photo][google.streetview.publish.v1.Photo].\n\nIn addition to the photo requirements shown in\nhttps: //support.google.com/maps/answer/7012050?ref_topic=6275604,\nthe photo must meet the following requirements: \n\n* Photo Sphere XMP metadata must be included in the photo metadata. See\nhttps: //developers.google.com/streetview/spherical-metadata for the\nrequired fields.\n* The pixel size of the photo must meet the size requirements listed in\nhttps: //support.google.com/maps/answer/7012050?ref_topic=6275604, and\nthe photo must be a full 360 horizontally.\n\nAfter the upload completes, the method uses\n[UploadRef][google.streetview.publish.v1.UploadRef] with\n[CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]\nto create the [Photo][google.streetview.publish.v1.Photo] object entry.", |
| 568 |
"file": "StreetViewPublishClient/StartUpload/main.go", |
| 569 |
"language": "GO", |
| 570 |
"clientMethod": { |
| 571 |
"shortName": "StartUpload", |
| 572 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.StartUpload", |
| 573 |
"parameters": [ |
| 574 |
{ |
| 575 |
"type": "context.Context", |
| 576 |
"name": "ctx" |
| 577 |
}, |
| 578 |
{ |
| 579 |
"type": "emptypb.Empty", |
| 580 |
"name": "req" |
| 581 |
}, |
| 582 |
{ |
| 583 |
"type": "...gax.CallOption", |
| 584 |
"name": "opts" |
| 585 |
} |
| 586 |
], |
| 587 |
"resultType": "*publishpb.UploadRef", |
| 588 |
"client": { |
| 589 |
"shortName": "StreetViewPublishClient", |
| 590 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 591 |
}, |
| 592 |
"method": { |
| 593 |
"shortName": "StartUpload", |
| 594 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.StartUpload", |
| 595 |
"service": { |
| 596 |
"shortName": "StreetViewPublishService", |
| 597 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 598 |
} |
| 599 |
} |
| 600 |
}, |
| 601 |
"origin": "API_DEFINITION", |
| 602 |
"segments": [ |
| 603 |
{ |
| 604 |
"start": 18, |
| 605 |
"end": 53, |
| 606 |
"type": "FULL" |
| 607 |
} |
| 608 |
] |
| 609 |
}, |
| 610 |
{ |
| 611 |
"regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_UpdatePhoto_sync", |
| 612 |
"title": "streetviewpublish UpdatePhoto Sample", |
| 613 |
"description": "UpdatePhoto updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such\nas pose, place association, connections, etc. Changing the pixels of a\nphoto is not supported.\n\nOnly the fields specified in the\n[updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]\nfield are used. If `updateMask` is not present, the update applies to all\nfields.\n\nThis method returns the following error codes: \n\n* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if\nthe requesting user did not create the requested photo.\n* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if\nthe request is malformed.\n* [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested\nphoto does not exist.\n* [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the\nrequested [Photo][google.streetview.publish.v1.Photo] is still being\nindexed.", |
| 614 |
"file": "StreetViewPublishClient/UpdatePhoto/main.go", |
| 615 |
"language": "GO", |
| 616 |
"clientMethod": { |
| 617 |
"shortName": "UpdatePhoto", |
| 618 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient.UpdatePhoto", |
| 619 |
"parameters": [ |
| 620 |
{ |
| 621 |
"type": "context.Context", |
| 622 |
"name": "ctx" |
| 623 |
}, |
| 624 |
{ |
| 625 |
"type": "publishpb.UpdatePhotoRequest", |
| 626 |
"name": "req" |
| 627 |
}, |
| 628 |
{ |
| 629 |
"type": "...gax.CallOption", |
| 630 |
"name": "opts" |
| 631 |
} |
| 632 |
], |
| 633 |
"resultType": "*publishpb.Photo", |
| 634 |
"client": { |
| 635 |
"shortName": "StreetViewPublishClient", |
| 636 |
"fullName": "google.streetview.publish.v1.StreetViewPublishClient" |
| 637 |
}, |
| 638 |
"method": { |
| 639 |
"shortName": "UpdatePhoto", |
| 640 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto", |
| 641 |
"service": { |
| 642 |
"shortName": "StreetViewPublishService", |
| 643 |
"fullName": "google.streetview.publish.v1.StreetViewPublishService" |
| 644 |
} |
| 645 |
} |
| 646 |
}, |
| 647 |
"origin": "API_DEFINITION", |
| 648 |
"segments": [ |
| 649 |
{ |
| 650 |
"start": 18, |
| 651 |
"end": 53, |
| 652 |
"type": "FULL" |
| 653 |
} |
| 654 |
] |
| 655 |
} |
| 656 |
] |
| 657 |
} |