gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class BatchDeletePhotosRequest extends \Google\Collection
{
protected $collection_key = 'photoIds';
/**
* @var string[]
*/
public $photoIds;
/**
* @param string[] $photoIds
*/
public function setPhotoIds($photoIds)
{
$this->photoIds = $photoIds;
}
/**
* @return string[]
*/
public function getPhotoIds()
{
return $this->photoIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePhotosRequest::class, 'Google_Service_StreetViewPublish_BatchDeletePhotosRequest');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class BatchDeletePhotosResponse extends \Google\Collection
{
protected $collection_key = 'status';
protected $statusType = Status::class;
protected $statusDataType = 'array';
/**
* The status for the operation to delete a single Photo in the batch request.
*
* @param Status[] $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return Status[]
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePhotosResponse::class, 'Google_Service_StreetViewPublish_BatchDeletePhotosResponse');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class BatchGetPhotosResponse extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = PhotoResponse::class;
protected $resultsDataType = 'array';
/**
* List of results for each individual Photo requested, in the same order as
* the requests in BatchGetPhotos.
*
* @param PhotoResponse[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return PhotoResponse[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetPhotosResponse::class, 'Google_Service_StreetViewPublish_BatchGetPhotosResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class BatchUpdatePhotosRequest extends \Google\Collection
{
protected $collection_key = 'updatePhotoRequests';
protected $updatePhotoRequestsType = UpdatePhotoRequest::class;
protected $updatePhotoRequestsDataType = 'array';
/**
* Required. List of UpdatePhotoRequests.
*
* @param UpdatePhotoRequest[] $updatePhotoRequests
*/
public function setUpdatePhotoRequests($updatePhotoRequests)
{
$this->updatePhotoRequests = $updatePhotoRequests;
}
/**
* @return UpdatePhotoRequest[]
*/
public function getUpdatePhotoRequests()
{
return $this->updatePhotoRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdatePhotosRequest::class, 'Google_Service_StreetViewPublish_BatchUpdatePhotosRequest');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class BatchUpdatePhotosResponse extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = PhotoResponse::class;
protected $resultsDataType = 'array';
/**
* List of results for each individual Photo updated, in the same order as the
* request.
*
* @param PhotoResponse[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return PhotoResponse[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdatePhotosResponse::class, 'Google_Service_StreetViewPublish_BatchUpdatePhotosResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Connection extends \Google\Model
{
protected $targetType = PhotoId::class;
protected $targetDataType = '';
/**
* Required. The destination of the connection from the containing photo to
* another photo.
*
* @param PhotoId $target
*/
public function setTarget(PhotoId $target)
{
$this->target = $target;
}
/**
* @return PhotoId
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connection::class, 'Google_Service_StreetViewPublish_Connection');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class GpsDataGapFailureDetails extends \Google\Model
{
/**
* The duration of the gap in GPS data that was found.
*
* @var string
*/
public $gapDuration;
/**
* Relative time (from the start of the video stream) when the gap started.
*
* @var string
*/
public $gapStartTime;
/**
* The duration of the gap in GPS data that was found.
*
* @param string $gapDuration
*/
public function setGapDuration($gapDuration)
{
$this->gapDuration = $gapDuration;
}
/**
* @return string
*/
public function getGapDuration()
{
return $this->gapDuration;
}
/**
* Relative time (from the start of the video stream) when the gap started.
*
* @param string $gapStartTime
*/
public function setGapStartTime($gapStartTime)
{
$this->gapStartTime = $gapStartTime;
}
/**
* @return string
*/
public function getGapStartTime()
{
return $this->gapStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GpsDataGapFailureDetails::class, 'Google_Service_StreetViewPublish_GpsDataGapFailureDetails');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Imu extends \Google\Collection
{
protected $collection_key = 'magUt';
protected $accelMpspsType = Measurement3d::class;
protected $accelMpspsDataType = 'array';
protected $gyroRpsType = Measurement3d::class;
protected $gyroRpsDataType = 'array';
protected $magUtType = Measurement3d::class;
protected $magUtDataType = 'array';
/**
* The accelerometer measurements in meters/sec^2 with increasing timestamps
* from devices.
*
* @param Measurement3d[] $accelMpsps
*/
public function setAccelMpsps($accelMpsps)
{
$this->accelMpsps = $accelMpsps;
}
/**
* @return Measurement3d[]
*/
public function getAccelMpsps()
{
return $this->accelMpsps;
}
/**
* The gyroscope measurements in radians/sec with increasing timestamps from
* devices.
*
* @param Measurement3d[] $gyroRps
*/
public function setGyroRps($gyroRps)
{
$this->gyroRps = $gyroRps;
}
/**
* @return Measurement3d[]
*/
public function getGyroRps()
{
return $this->gyroRps;
}
/**
* The magnetometer measurements of the magnetic field in microtesla (uT) with
* increasing timestamps from devices.
*
* @param Measurement3d[] $magUt
*/
public function setMagUt($magUt)
{
$this->magUt = $magUt;
}
/**
* @return Measurement3d[]
*/
public function getMagUt()
{
return $this->magUt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Imu::class, 'Google_Service_StreetViewPublish_Imu');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class ImuDataGapFailureDetails extends \Google\Model
{
/**
* The duration of the gap in IMU data that was found.
*
* @var string
*/
public $gapDuration;
/**
* Relative time (from the start of the video stream) when the gap started.
*
* @var string
*/
public $gapStartTime;
/**
* The duration of the gap in IMU data that was found.
*
* @param string $gapDuration
*/
public function setGapDuration($gapDuration)
{
$this->gapDuration = $gapDuration;
}
/**
* @return string
*/
public function getGapDuration()
{
return $this->gapDuration;
}
/**
* Relative time (from the start of the video stream) when the gap started.
*
* @param string $gapStartTime
*/
public function setGapStartTime($gapStartTime)
{
$this->gapStartTime = $gapStartTime;
}
/**
* @return string
*/
public function getGapStartTime()
{
return $this->gapStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImuDataGapFailureDetails::class, 'Google_Service_StreetViewPublish_ImuDataGapFailureDetails');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class InsufficientGpsFailureDetails extends \Google\Model
{
/**
* The number of GPS points that were found in the video.
*
* @var int
*/
public $gpsPointsFound;
/**
* The number of GPS points that were found in the video.
*
* @param int $gpsPointsFound
*/
public function setGpsPointsFound($gpsPointsFound)
{
$this->gpsPointsFound = $gpsPointsFound;
}
/**
* @return int
*/
public function getGpsPointsFound()
{
return $this->gpsPointsFound;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InsufficientGpsFailureDetails::class, 'Google_Service_StreetViewPublish_InsufficientGpsFailureDetails');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class LatLng extends \Google\Model
{
/**
* The latitude in degrees. It must be in the range [-90.0, +90.0].
*
* @var
*/
public $latitude;
/**
* The longitude in degrees. It must be in the range [-180.0, +180.0].
*
* @var
*/
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLng::class, 'Google_Service_StreetViewPublish_LatLng');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class LatLngBounds extends \Google\Model
{
protected $northeastType = LatLng::class;
protected $northeastDataType = '';
protected $southwestType = LatLng::class;
protected $southwestDataType = '';
/**
* The northeast corner of these bounds.
*
* @param LatLng $northeast
*/
public function setNortheast(LatLng $northeast)
{
$this->northeast = $northeast;
}
/**
* @return LatLng
*/
public function getNortheast()
{
return $this->northeast;
}
/**
* The southwest corner of these bounds.
*
* @param LatLng $southwest
*/
public function setSouthwest(LatLng $southwest)
{
$this->southwest = $southwest;
}
/**
* @return LatLng
*/
public function getSouthwest()
{
return $this->southwest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLngBounds::class, 'Google_Service_StreetViewPublish_LatLngBounds');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Level extends \Google\Model
{
/**
* Required. A name assigned to this Level, restricted to 3 characters.
* Consider how the elevator buttons would be labeled for this level if there
* was an elevator.
*
* @var string
*/
public $name;
/**
* Optional. Floor number, used for ordering. 0 indicates the ground level, 1
* indicates the first level above ground level, -1 indicates the first level
* under ground level. Non-integer values are OK.
*
* @var
*/
public $number;
/**
* Required. A name assigned to this Level, restricted to 3 characters.
* Consider how the elevator buttons would be labeled for this level if there
* was an elevator.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
public function setNumber($number)
{
$this->number = $number;
}
public function getNumber()
{
return $this->number;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Level::class, 'Google_Service_StreetViewPublish_Level');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class ListPhotoSequencesResponse extends \Google\Collection
{
protected $collection_key = 'photoSequences';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @var string
*/
public $nextPageToken;
protected $photoSequencesType = Operation::class;
protected $photoSequencesDataType = 'array';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of photo sequences via Operation interface. The maximum number of
* items returned is based on the pageSize field in the request. Each item in
* the list can have three possible states, * `Operation.done` = false, if the
* processing of PhotoSequence is not finished yet. * `Operation.done` = true
* and `Operation.error` is populated, if there was an error in processing. *
* `Operation.done` = true and `Operation.response` contains a PhotoSequence
* message, In each sequence, only Id is populated.
*
* @param Operation[] $photoSequences
*/
public function setPhotoSequences($photoSequences)
{
$this->photoSequences = $photoSequences;
}
/**
* @return Operation[]
*/
public function getPhotoSequences()
{
return $this->photoSequences;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPhotoSequencesResponse::class, 'Google_Service_StreetViewPublish_ListPhotoSequencesResponse');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class ListPhotosResponse extends \Google\Collection
{
protected $collection_key = 'photos';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @var string
*/
public $nextPageToken;
protected $photosType = Photo::class;
protected $photosDataType = 'array';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of photos. The pageSize field in the request determines the number of
* items returned.
*
* @param Photo[] $photos
*/
public function setPhotos($photos)
{
$this->photos = $photos;
}
/**
* @return Photo[]
*/
public function getPhotos()
{
return $this->photos;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPhotosResponse::class, 'Google_Service_StreetViewPublish_ListPhotosResponse');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Measurement3d extends \Google\Model
{
/**
* The timestamp of the IMU measurement.
*
* @var string
*/
public $captureTime;
/**
* The sensor measurement in the x axis.
*
* @var float
*/
public $x;
/**
* The sensor measurement in the y axis.
*
* @var float
*/
public $y;
/**
* The sensor measurement in the z axis.
*
* @var float
*/
public $z;
/**
* The timestamp of the IMU measurement.
*
* @param string $captureTime
*/
public function setCaptureTime($captureTime)
{
$this->captureTime = $captureTime;
}
/**
* @return string
*/
public function getCaptureTime()
{
return $this->captureTime;
}
/**
* The sensor measurement in the x axis.
*
* @param float $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return float
*/
public function getX()
{
return $this->x;
}
/**
* The sensor measurement in the y axis.
*
* @param float $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return float
*/
public function getY()
{
return $this->y;
}
/**
* The sensor measurement in the z axis.
*
* @param float $z
*/
public function setZ($z)
{
$this->z = $z;
}
/**
* @return float
*/
public function getZ()
{
return $this->z;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Measurement3d::class, 'Google_Service_StreetViewPublish_Measurement3d');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class NoOverlapGpsFailureDetails extends \Google\Model
{
/**
* Time of last recorded GPS point.
*
* @var string
*/
public $gpsEndTime;
/**
* Time of first recorded GPS point.
*
* @var string
*/
public $gpsStartTime;
/**
* End time of video.
*
* @var string
*/
public $videoEndTime;
/**
* Start time of video.
*
* @var string
*/
public $videoStartTime;
/**
* Time of last recorded GPS point.
*
* @param string $gpsEndTime
*/
public function setGpsEndTime($gpsEndTime)
{
$this->gpsEndTime = $gpsEndTime;
}
/**
* @return string
*/
public function getGpsEndTime()
{
return $this->gpsEndTime;
}
/**
* Time of first recorded GPS point.
*
* @param string $gpsStartTime
*/
public function setGpsStartTime($gpsStartTime)
{
$this->gpsStartTime = $gpsStartTime;
}
/**
* @return string
*/
public function getGpsStartTime()
{
return $this->gpsStartTime;
}
/**
* End time of video.
*
* @param string $videoEndTime
*/
public function setVideoEndTime($videoEndTime)
{
$this->videoEndTime = $videoEndTime;
}
/**
* @return string
*/
public function getVideoEndTime()
{
return $this->videoEndTime;
}
/**
* Start time of video.
*
* @param string $videoStartTime
*/
public function setVideoStartTime($videoStartTime)
{
$this->videoStartTime = $videoStartTime;
}
/**
* @return string
*/
public function getVideoStartTime()
{
return $this->videoStartTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NoOverlapGpsFailureDetails::class, 'Google_Service_StreetViewPublish_NoOverlapGpsFailureDetails');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class NotOutdoorsFailureDetails extends \Google\Model
{
/**
* Relative time (from the start of the video stream) when an indoor frame was
* found.
*
* @var string
*/
public $startTime;
/**
* Relative time (from the start of the video stream) when an indoor frame was
* found.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NotOutdoorsFailureDetails::class, 'Google_Service_StreetViewPublish_NotOutdoorsFailureDetails');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_StreetViewPublish_Operation');
@@ -0,0 +1,355 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Photo extends \Google\Collection
{
/**
* The status of the photo is unknown.
*/
public const MAPS_PUBLISH_STATUS_UNSPECIFIED_MAPS_PUBLISH_STATUS = 'UNSPECIFIED_MAPS_PUBLISH_STATUS';
/**
* The photo is published to the public through Google Maps.
*/
public const MAPS_PUBLISH_STATUS_PUBLISHED = 'PUBLISHED';
/**
* The photo has been rejected for an unknown reason.
*/
public const MAPS_PUBLISH_STATUS_REJECTED_UNKNOWN = 'REJECTED_UNKNOWN';
/**
* The status of this transfer is unspecified.
*/
public const TRANSFER_STATUS_TRANSFER_STATUS_UNKNOWN = 'TRANSFER_STATUS_UNKNOWN';
/**
* This photo has never been in a transfer.
*/
public const TRANSFER_STATUS_NEVER_TRANSFERRED = 'NEVER_TRANSFERRED';
/**
* This photo transfer has been initiated, but the receiver has not yet
* responded.
*/
public const TRANSFER_STATUS_PENDING = 'PENDING';
/**
* The photo transfer has been completed, and this photo has been transferred
* to the recipient.
*/
public const TRANSFER_STATUS_COMPLETED = 'COMPLETED';
/**
* The recipient rejected this photo transfer.
*/
public const TRANSFER_STATUS_REJECTED = 'REJECTED';
/**
* The photo transfer expired before the recipient took any action.
*/
public const TRANSFER_STATUS_EXPIRED = 'EXPIRED';
/**
* The sender cancelled this photo transfer.
*/
public const TRANSFER_STATUS_CANCELLED = 'CANCELLED';
/**
* The recipient owns this photo due to a rights transfer.
*/
public const TRANSFER_STATUS_RECEIVED_VIA_TRANSFER = 'RECEIVED_VIA_TRANSFER';
protected $collection_key = 'places';
/**
* Optional. Absolute time when the photo was captured. When the photo has no
* exif timestamp, this is used to set a timestamp in the photo metadata.
*
* @var string
*/
public $captureTime;
protected $connectionsType = Connection::class;
protected $connectionsDataType = 'array';
/**
* Output only. The download URL for the photo bytes. This field is set only
* when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
*
* @var string
*/
public $downloadUrl;
/**
* Output only. Status in Google Maps, whether this photo was published or
* rejected.
*
* @var string
*/
public $mapsPublishStatus;
protected $photoIdType = PhotoId::class;
protected $photoIdDataType = '';
protected $placesType = Place::class;
protected $placesDataType = 'array';
protected $poseType = Pose::class;
protected $poseDataType = '';
/**
* Output only. The share link for the photo.
*
* @var string
*/
public $shareLink;
/**
* Output only. The thumbnail URL for showing a preview of the given photo.
*
* @var string
*/
public $thumbnailUrl;
/**
* Output only. Status of rights transfer on this photo.
*
* @var string
*/
public $transferStatus;
protected $uploadReferenceType = UploadRef::class;
protected $uploadReferenceDataType = '';
/**
* Output only. Time when the image was uploaded.
*
* @var string
*/
public $uploadTime;
/**
* Output only. View count of the photo.
*
* @var string
*/
public $viewCount;
/**
* Optional. Absolute time when the photo was captured. When the photo has no
* exif timestamp, this is used to set a timestamp in the photo metadata.
*
* @param string $captureTime
*/
public function setCaptureTime($captureTime)
{
$this->captureTime = $captureTime;
}
/**
* @return string
*/
public function getCaptureTime()
{
return $this->captureTime;
}
/**
* Optional. Connections to other photos. A connection represents the link
* from this photo to another photo.
*
* @param Connection[] $connections
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return Connection[]
*/
public function getConnections()
{
return $this->connections;
}
/**
* Output only. The download URL for the photo bytes. This field is set only
* when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
*
* @param string $downloadUrl
*/
public function setDownloadUrl($downloadUrl)
{
$this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
public function getDownloadUrl()
{
return $this->downloadUrl;
}
/**
* Output only. Status in Google Maps, whether this photo was published or
* rejected.
*
* Accepted values: UNSPECIFIED_MAPS_PUBLISH_STATUS, PUBLISHED,
* REJECTED_UNKNOWN
*
* @param self::MAPS_PUBLISH_STATUS_* $mapsPublishStatus
*/
public function setMapsPublishStatus($mapsPublishStatus)
{
$this->mapsPublishStatus = $mapsPublishStatus;
}
/**
* @return self::MAPS_PUBLISH_STATUS_*
*/
public function getMapsPublishStatus()
{
return $this->mapsPublishStatus;
}
/**
* Required. Output only. Required when updating a photo. Output only when
* creating a photo. Identifier for the photo, which is unique among all
* photos in Google.
*
* @param PhotoId $photoId
*/
public function setPhotoId(PhotoId $photoId)
{
$this->photoId = $photoId;
}
/**
* @return PhotoId
*/
public function getPhotoId()
{
return $this->photoId;
}
/**
* Optional. Places where this photo belongs.
*
* @param Place[] $places
*/
public function setPlaces($places)
{
$this->places = $places;
}
/**
* @return Place[]
*/
public function getPlaces()
{
return $this->places;
}
/**
* Optional. Pose of the photo.
*
* @param Pose $pose
*/
public function setPose(Pose $pose)
{
$this->pose = $pose;
}
/**
* @return Pose
*/
public function getPose()
{
return $this->pose;
}
/**
* Output only. The share link for the photo.
*
* @param string $shareLink
*/
public function setShareLink($shareLink)
{
$this->shareLink = $shareLink;
}
/**
* @return string
*/
public function getShareLink()
{
return $this->shareLink;
}
/**
* Output only. The thumbnail URL for showing a preview of the given photo.
*
* @param string $thumbnailUrl
*/
public function setThumbnailUrl($thumbnailUrl)
{
$this->thumbnailUrl = $thumbnailUrl;
}
/**
* @return string
*/
public function getThumbnailUrl()
{
return $this->thumbnailUrl;
}
/**
* Output only. Status of rights transfer on this photo.
*
* Accepted values: TRANSFER_STATUS_UNKNOWN, NEVER_TRANSFERRED, PENDING,
* COMPLETED, REJECTED, EXPIRED, CANCELLED, RECEIVED_VIA_TRANSFER
*
* @param self::TRANSFER_STATUS_* $transferStatus
*/
public function setTransferStatus($transferStatus)
{
$this->transferStatus = $transferStatus;
}
/**
* @return self::TRANSFER_STATUS_*
*/
public function getTransferStatus()
{
return $this->transferStatus;
}
/**
* Input only. Required when creating a photo. Input only. The resource URL
* where the photo bytes are uploaded to.
*
* @param UploadRef $uploadReference
*/
public function setUploadReference(UploadRef $uploadReference)
{
$this->uploadReference = $uploadReference;
}
/**
* @return UploadRef
*/
public function getUploadReference()
{
return $this->uploadReference;
}
/**
* Output only. Time when the image was uploaded.
*
* @param string $uploadTime
*/
public function setUploadTime($uploadTime)
{
$this->uploadTime = $uploadTime;
}
/**
* @return string
*/
public function getUploadTime()
{
return $this->uploadTime;
}
/**
* Output only. View count of the photo.
*
* @param string $viewCount
*/
public function setViewCount($viewCount)
{
$this->viewCount = $viewCount;
}
/**
* @return string
*/
public function getViewCount()
{
return $this->viewCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Photo::class, 'Google_Service_StreetViewPublish_Photo');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class PhotoId extends \Google\Model
{
/**
* A unique identifier for a photo.
*
* @var string
*/
public $id;
/**
* A unique identifier for a photo.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhotoId::class, 'Google_Service_StreetViewPublish_PhotoId');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class PhotoResponse extends \Google\Model
{
protected $photoType = Photo::class;
protected $photoDataType = '';
protected $statusType = Status::class;
protected $statusDataType = '';
/**
* The Photo resource, if the request was successful.
*
* @param Photo $photo
*/
public function setPhoto(Photo $photo)
{
$this->photo = $photo;
}
/**
* @return Photo
*/
public function getPhoto()
{
return $this->photo;
}
/**
* The status for the operation to get or update a single photo in the batch
* request.
*
* @param Status $status
*/
public function setStatus(Status $status)
{
$this->status = $status;
}
/**
* @return Status
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhotoResponse::class, 'Google_Service_StreetViewPublish_PhotoResponse');
@@ -0,0 +1,503 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class PhotoSequence extends \Google\Collection
{
/**
* The failure reason is unspecified, this is the default value.
*/
public const FAILURE_REASON_PROCESSING_FAILURE_REASON_UNSPECIFIED = 'PROCESSING_FAILURE_REASON_UNSPECIFIED';
/**
* Video frame's resolution is too small.
*/
public const FAILURE_REASON_LOW_RESOLUTION = 'LOW_RESOLUTION';
/**
* This video has been uploaded before.
*/
public const FAILURE_REASON_DUPLICATE = 'DUPLICATE';
/**
* Too few GPS points.
*/
public const FAILURE_REASON_INSUFFICIENT_GPS = 'INSUFFICIENT_GPS';
/**
* No overlap between the time frame of GPS track and the time frame of video.
*/
public const FAILURE_REASON_NO_OVERLAP_GPS = 'NO_OVERLAP_GPS';
/**
* GPS is invalid (e.x. all GPS points are at (0,0))
*/
public const FAILURE_REASON_INVALID_GPS = 'INVALID_GPS';
/**
* The sequence of photos could not be accurately located in the world.
*/
public const FAILURE_REASON_FAILED_TO_REFINE_POSITIONS = 'FAILED_TO_REFINE_POSITIONS';
/**
* The sequence was taken down for policy reasons.
*/
public const FAILURE_REASON_TAKEDOWN = 'TAKEDOWN';
/**
* The video file was corrupt or could not be decoded.
*/
public const FAILURE_REASON_CORRUPT_VIDEO = 'CORRUPT_VIDEO';
/**
* A permanent failure in the underlying system occurred.
*/
public const FAILURE_REASON_INTERNAL = 'INTERNAL';
/**
* The video format is invalid or unsupported.
*/
public const FAILURE_REASON_INVALID_VIDEO_FORMAT = 'INVALID_VIDEO_FORMAT';
/**
* Invalid image aspect ratio found.
*/
public const FAILURE_REASON_INVALID_VIDEO_DIMENSIONS = 'INVALID_VIDEO_DIMENSIONS';
/**
* Invalid capture time. Timestamps were from the future.
*/
public const FAILURE_REASON_INVALID_CAPTURE_TIME = 'INVALID_CAPTURE_TIME';
/**
* GPS data contains a gap greater than 5 seconds in duration.
*/
public const FAILURE_REASON_GPS_DATA_GAP = 'GPS_DATA_GAP';
/**
* GPS data is too erratic to be processed.
*/
public const FAILURE_REASON_JUMPY_GPS = 'JUMPY_GPS';
/**
* IMU (Accelerometer, Gyroscope, etc.) data are not valid. They may be
* missing required fields (x, y, z or time), may not be formatted correctly,
* or any other issue that prevents our systems from parsing it.
*/
public const FAILURE_REASON_INVALID_IMU = 'INVALID_IMU';
/**
* Too few IMU points.
*/
public const FAILURE_REASON_INSUFFICIENT_IMU = 'INSUFFICIENT_IMU';
/**
* Insufficient overlap in the time frame between GPS, IMU, and other time
* series data.
*/
public const FAILURE_REASON_INSUFFICIENT_OVERLAP_TIME_SERIES = 'INSUFFICIENT_OVERLAP_TIME_SERIES';
/**
* IMU (Accelerometer, Gyroscope, etc.) data contain gaps greater than 0.1
* seconds in duration.
*/
public const FAILURE_REASON_IMU_DATA_GAP = 'IMU_DATA_GAP';
/**
* The camera is not supported.
*/
public const FAILURE_REASON_UNSUPPORTED_CAMERA = 'UNSUPPORTED_CAMERA';
/**
* Some frames were indoors, which is unsupported.
*/
public const FAILURE_REASON_NOT_OUTDOORS = 'NOT_OUTDOORS';
/**
* Not enough video frames.
*/
public const FAILURE_REASON_INSUFFICIENT_VIDEO_FRAMES = 'INSUFFICIENT_VIDEO_FRAMES';
/**
* Not enough moving data.
*/
public const FAILURE_REASON_INSUFFICIENT_MOVEMENT = 'INSUFFICIENT_MOVEMENT';
/**
* Mast is down.
*/
public const FAILURE_REASON_MAST_DOWN = 'MAST_DOWN';
/**
* Camera is covered.
*/
public const FAILURE_REASON_CAMERA_COVERED = 'CAMERA_COVERED';
/**
* GPS in raw_gps_timeline takes precedence if it exists.
*/
public const GPS_SOURCE_PHOTO_SEQUENCE = 'PHOTO_SEQUENCE';
/**
* GPS in Camera Motion Metadata Track (CAMM) takes precedence if it exists.
*/
public const GPS_SOURCE_CAMERA_MOTION_METADATA_TRACK = 'CAMERA_MOTION_METADATA_TRACK';
/**
* The state is unspecified, this is the default value.
*/
public const PROCESSING_STATE_PROCESSING_STATE_UNSPECIFIED = 'PROCESSING_STATE_UNSPECIFIED';
/**
* The sequence has not yet started processing.
*/
public const PROCESSING_STATE_PENDING = 'PENDING';
/**
* The sequence is currently in processing.
*/
public const PROCESSING_STATE_PROCESSING = 'PROCESSING';
/**
* The sequence has finished processing including refining position.
*/
public const PROCESSING_STATE_PROCESSED = 'PROCESSED';
/**
* The sequence failed processing. See FailureReason for more details.
*/
public const PROCESSING_STATE_FAILED = 'FAILED';
protected $collection_key = 'rawGpsTimeline';
/**
* Optional. Absolute time when the photo sequence starts to be captured. If
* the photo sequence is a video, this is the start time of the video. If this
* field is populated in input, it overrides the capture time in the video or
* XDM file.
*
* @var string
*/
public $captureTimeOverride;
/**
* Output only. The computed distance of the photo sequence in meters.
*
* @var
*/
public $distanceMeters;
protected $failureDetailsType = ProcessingFailureDetails::class;
protected $failureDetailsDataType = '';
/**
* Output only. If this sequence has processing_state = FAILED, this will
* contain the reason why it failed. If the processing_state is any other
* value, this field will be unset.
*
* @var string
*/
public $failureReason;
/**
* Output only. The filename of the upload. Does not include the directory
* path. Only available if the sequence was uploaded on a platform that
* provides the filename.
*
* @var string
*/
public $filename;
/**
* Input only. If both raw_gps_timeline and the Camera Motion Metadata Track
* (CAMM) contain GPS measurements, indicate which takes precedence.
*
* @var string
*/
public $gpsSource;
/**
* Output only. Unique identifier for the photo sequence. This also acts as a
* long running operation ID if uploading is performed asynchronously.
*
* @var string
*/
public $id;
protected $imuType = Imu::class;
protected $imuDataType = '';
protected $photosType = Photo::class;
protected $photosDataType = 'array';
/**
* Output only. The processing state of this sequence.
*
* @var string
*/
public $processingState;
protected $rawGpsTimelineType = Pose::class;
protected $rawGpsTimelineDataType = 'array';
protected $sequenceBoundsType = LatLngBounds::class;
protected $sequenceBoundsDataType = '';
protected $uploadReferenceType = UploadRef::class;
protected $uploadReferenceDataType = '';
/**
* Output only. The time this photo sequence was created in uSV Store service.
*
* @var string
*/
public $uploadTime;
/**
* Output only. The total number of views that all the published images in
* this PhotoSequence have received.
*
* @var string
*/
public $viewCount;
/**
* Optional. Absolute time when the photo sequence starts to be captured. If
* the photo sequence is a video, this is the start time of the video. If this
* field is populated in input, it overrides the capture time in the video or
* XDM file.
*
* @param string $captureTimeOverride
*/
public function setCaptureTimeOverride($captureTimeOverride)
{
$this->captureTimeOverride = $captureTimeOverride;
}
/**
* @return string
*/
public function getCaptureTimeOverride()
{
return $this->captureTimeOverride;
}
public function setDistanceMeters($distanceMeters)
{
$this->distanceMeters = $distanceMeters;
}
public function getDistanceMeters()
{
return $this->distanceMeters;
}
/**
* Output only. If this sequence has `failure_reason` set, this may contain
* additional details about the failure.
*
* @param ProcessingFailureDetails $failureDetails
*/
public function setFailureDetails(ProcessingFailureDetails $failureDetails)
{
$this->failureDetails = $failureDetails;
}
/**
* @return ProcessingFailureDetails
*/
public function getFailureDetails()
{
return $this->failureDetails;
}
/**
* Output only. If this sequence has processing_state = FAILED, this will
* contain the reason why it failed. If the processing_state is any other
* value, this field will be unset.
*
* Accepted values: PROCESSING_FAILURE_REASON_UNSPECIFIED, LOW_RESOLUTION,
* DUPLICATE, INSUFFICIENT_GPS, NO_OVERLAP_GPS, INVALID_GPS,
* FAILED_TO_REFINE_POSITIONS, TAKEDOWN, CORRUPT_VIDEO, INTERNAL,
* INVALID_VIDEO_FORMAT, INVALID_VIDEO_DIMENSIONS, INVALID_CAPTURE_TIME,
* GPS_DATA_GAP, JUMPY_GPS, INVALID_IMU, INSUFFICIENT_IMU,
* INSUFFICIENT_OVERLAP_TIME_SERIES, IMU_DATA_GAP, UNSUPPORTED_CAMERA,
* NOT_OUTDOORS, INSUFFICIENT_VIDEO_FRAMES, INSUFFICIENT_MOVEMENT, MAST_DOWN,
* CAMERA_COVERED
*
* @param self::FAILURE_REASON_* $failureReason
*/
public function setFailureReason($failureReason)
{
$this->failureReason = $failureReason;
}
/**
* @return self::FAILURE_REASON_*
*/
public function getFailureReason()
{
return $this->failureReason;
}
/**
* Output only. The filename of the upload. Does not include the directory
* path. Only available if the sequence was uploaded on a platform that
* provides the filename.
*
* @param string $filename
*/
public function setFilename($filename)
{
$this->filename = $filename;
}
/**
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* Input only. If both raw_gps_timeline and the Camera Motion Metadata Track
* (CAMM) contain GPS measurements, indicate which takes precedence.
*
* Accepted values: PHOTO_SEQUENCE, CAMERA_MOTION_METADATA_TRACK
*
* @param self::GPS_SOURCE_* $gpsSource
*/
public function setGpsSource($gpsSource)
{
$this->gpsSource = $gpsSource;
}
/**
* @return self::GPS_SOURCE_*
*/
public function getGpsSource()
{
return $this->gpsSource;
}
/**
* Output only. Unique identifier for the photo sequence. This also acts as a
* long running operation ID if uploading is performed asynchronously.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Input only. Three axis IMU data for the collection. If this data is too
* large to put in the request, then it should be put in the CAMM track for
* the video. This data always takes precedence over the equivalent CAMM data,
* if it exists.
*
* @param Imu $imu
*/
public function setImu(Imu $imu)
{
$this->imu = $imu;
}
/**
* @return Imu
*/
public function getImu()
{
return $this->imu;
}
/**
* Output only. Photos with increasing timestamps.
*
* @param Photo[] $photos
*/
public function setPhotos($photos)
{
$this->photos = $photos;
}
/**
* @return Photo[]
*/
public function getPhotos()
{
return $this->photos;
}
/**
* Output only. The processing state of this sequence.
*
* Accepted values: PROCESSING_STATE_UNSPECIFIED, PENDING, PROCESSING,
* PROCESSED, FAILED
*
* @param self::PROCESSING_STATE_* $processingState
*/
public function setProcessingState($processingState)
{
$this->processingState = $processingState;
}
/**
* @return self::PROCESSING_STATE_*
*/
public function getProcessingState()
{
return $this->processingState;
}
/**
* Input only. Raw GPS measurements with increasing timestamps from the device
* that aren't time synced with each photo. These raw measurements will be
* used to infer the pose of each frame. Required in input when InputType is
* VIDEO and raw GPS measurements are not in Camera Motion Metadata Track
* (CAMM). User can indicate which takes precedence using gps_source if raw
* GPS measurements are provided in both raw_gps_timeline and Camera Motion
* Metadata Track (CAMM).
*
* @param Pose[] $rawGpsTimeline
*/
public function setRawGpsTimeline($rawGpsTimeline)
{
$this->rawGpsTimeline = $rawGpsTimeline;
}
/**
* @return Pose[]
*/
public function getRawGpsTimeline()
{
return $this->rawGpsTimeline;
}
/**
* Output only. A rectangular box that encapsulates every image in this photo
* sequence.
*
* @param LatLngBounds $sequenceBounds
*/
public function setSequenceBounds(LatLngBounds $sequenceBounds)
{
$this->sequenceBounds = $sequenceBounds;
}
/**
* @return LatLngBounds
*/
public function getSequenceBounds()
{
return $this->sequenceBounds;
}
/**
* Input only. Required when creating photo sequence. The resource name where
* the bytes of the photo sequence (in the form of video) are uploaded.
*
* @param UploadRef $uploadReference
*/
public function setUploadReference(UploadRef $uploadReference)
{
$this->uploadReference = $uploadReference;
}
/**
* @return UploadRef
*/
public function getUploadReference()
{
return $this->uploadReference;
}
/**
* Output only. The time this photo sequence was created in uSV Store service.
*
* @param string $uploadTime
*/
public function setUploadTime($uploadTime)
{
$this->uploadTime = $uploadTime;
}
/**
* @return string
*/
public function getUploadTime()
{
return $this->uploadTime;
}
/**
* Output only. The total number of views that all the published images in
* this PhotoSequence have received.
*
* @param string $viewCount
*/
public function setViewCount($viewCount)
{
$this->viewCount = $viewCount;
}
/**
* @return string
*/
public function getViewCount()
{
return $this->viewCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhotoSequence::class, 'Google_Service_StreetViewPublish_PhotoSequence');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Place extends \Google\Model
{
/**
* Output only. The language_code that the name is localized with. This should
* be the language_code specified in the request, but may be a fallback.
*
* @var string
*/
public $languageCode;
/**
* Output only. The name of the place, localized to the language_code.
*
* @var string
*/
public $name;
/**
* Place identifier, as described in
* https://developers.google.com/places/place-id.
*
* @var string
*/
public $placeId;
/**
* Output only. The language_code that the name is localized with. This should
* be the language_code specified in the request, but may be a fallback.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Output only. The name of the place, localized to the language_code.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Place identifier, as described in
* https://developers.google.com/places/place-id.
*
* @param string $placeId
*/
public function setPlaceId($placeId)
{
$this->placeId = $placeId;
}
/**
* @return string
*/
public function getPlaceId()
{
return $this->placeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Place::class, 'Google_Service_StreetViewPublish_Place');
@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Pose extends \Google\Model
{
/**
* The estimated horizontal accuracy of this pose in meters with 68%
* confidence (one standard deviation). For example, on Android, this value is
* available from this method: https://developer.android.com/reference/android
* /location/Location#getAccuracy(). Other platforms have different methods of
* obtaining similar accuracy estimations.
*
* @var float
*/
public $accuracyMeters;
/**
* Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an
* unmeasured quantity.
*
* @var
*/
public $altitude;
/**
* Time of the GPS record since UTC epoch.
*
* @var string
*/
public $gpsRecordTimestampUnixEpoch;
/**
* The following pose parameters pertain to the center of the photo. They
* match https://developers.google.com/streetview/spherical-metadata. Compass
* heading, measured at the center of the photo in degrees clockwise from
* North. Value must be >=0 and <360. NaN indicates an unmeasured quantity.
*
* @var
*/
public $heading;
protected $latLngPairType = LatLng::class;
protected $latLngPairDataType = '';
protected $levelType = Level::class;
protected $levelDataType = '';
/**
* Pitch, measured at the center of the photo in degrees. Value must be >=-90
* and <= 90. A value of -90 means looking directly down, and a value of 90
* means looking directly up. NaN indicates an unmeasured quantity.
*
* @var
*/
public $pitch;
/**
* Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means
* level with the horizon. NaN indicates an unmeasured quantity.
*
* @var
*/
public $roll;
/**
* The estimated horizontal accuracy of this pose in meters with 68%
* confidence (one standard deviation). For example, on Android, this value is
* available from this method: https://developer.android.com/reference/android
* /location/Location#getAccuracy(). Other platforms have different methods of
* obtaining similar accuracy estimations.
*
* @param float $accuracyMeters
*/
public function setAccuracyMeters($accuracyMeters)
{
$this->accuracyMeters = $accuracyMeters;
}
/**
* @return float
*/
public function getAccuracyMeters()
{
return $this->accuracyMeters;
}
public function setAltitude($altitude)
{
$this->altitude = $altitude;
}
public function getAltitude()
{
return $this->altitude;
}
/**
* Time of the GPS record since UTC epoch.
*
* @param string $gpsRecordTimestampUnixEpoch
*/
public function setGpsRecordTimestampUnixEpoch($gpsRecordTimestampUnixEpoch)
{
$this->gpsRecordTimestampUnixEpoch = $gpsRecordTimestampUnixEpoch;
}
/**
* @return string
*/
public function getGpsRecordTimestampUnixEpoch()
{
return $this->gpsRecordTimestampUnixEpoch;
}
public function setHeading($heading)
{
$this->heading = $heading;
}
public function getHeading()
{
return $this->heading;
}
/**
* Latitude and longitude pair of the pose, as explained here:
* https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
* When creating a Photo, if the latitude and longitude pair are not provided,
* the geolocation from the exif header is used. A latitude and longitude pair
* not provided in the photo or exif header causes the photo process to fail.
*
* @param LatLng $latLngPair
*/
public function setLatLngPair(LatLng $latLngPair)
{
$this->latLngPair = $latLngPair;
}
/**
* @return LatLng
*/
public function getLatLngPair()
{
return $this->latLngPair;
}
/**
* Level (the floor in a building) used to configure vertical navigation.
*
* @param Level $level
*/
public function setLevel(Level $level)
{
$this->level = $level;
}
/**
* @return Level
*/
public function getLevel()
{
return $this->level;
}
public function setPitch($pitch)
{
$this->pitch = $pitch;
}
public function getPitch()
{
return $this->pitch;
}
public function setRoll($roll)
{
$this->roll = $roll;
}
public function getRoll()
{
return $this->roll;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pose::class, 'Google_Service_StreetViewPublish_Pose');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class ProcessingFailureDetails extends \Google\Model
{
protected $gpsDataGapDetailsType = GpsDataGapFailureDetails::class;
protected $gpsDataGapDetailsDataType = '';
protected $imuDataGapDetailsType = ImuDataGapFailureDetails::class;
protected $imuDataGapDetailsDataType = '';
protected $insufficientGpsDetailsType = InsufficientGpsFailureDetails::class;
protected $insufficientGpsDetailsDataType = '';
protected $noOverlapGpsDetailsType = NoOverlapGpsFailureDetails::class;
protected $noOverlapGpsDetailsDataType = '';
protected $notOutdoorsDetailsType = NotOutdoorsFailureDetails::class;
protected $notOutdoorsDetailsDataType = '';
/**
* See GpsDataGapFailureDetails.
*
* @param GpsDataGapFailureDetails $gpsDataGapDetails
*/
public function setGpsDataGapDetails(GpsDataGapFailureDetails $gpsDataGapDetails)
{
$this->gpsDataGapDetails = $gpsDataGapDetails;
}
/**
* @return GpsDataGapFailureDetails
*/
public function getGpsDataGapDetails()
{
return $this->gpsDataGapDetails;
}
/**
* See ImuDataGapFailureDetails.
*
* @param ImuDataGapFailureDetails $imuDataGapDetails
*/
public function setImuDataGapDetails(ImuDataGapFailureDetails $imuDataGapDetails)
{
$this->imuDataGapDetails = $imuDataGapDetails;
}
/**
* @return ImuDataGapFailureDetails
*/
public function getImuDataGapDetails()
{
return $this->imuDataGapDetails;
}
/**
* See InsufficientGpsFailureDetails.
*
* @param InsufficientGpsFailureDetails $insufficientGpsDetails
*/
public function setInsufficientGpsDetails(InsufficientGpsFailureDetails $insufficientGpsDetails)
{
$this->insufficientGpsDetails = $insufficientGpsDetails;
}
/**
* @return InsufficientGpsFailureDetails
*/
public function getInsufficientGpsDetails()
{
return $this->insufficientGpsDetails;
}
/**
* See NoOverlapGpsFailureDetails.
*
* @param NoOverlapGpsFailureDetails $noOverlapGpsDetails
*/
public function setNoOverlapGpsDetails(NoOverlapGpsFailureDetails $noOverlapGpsDetails)
{
$this->noOverlapGpsDetails = $noOverlapGpsDetails;
}
/**
* @return NoOverlapGpsFailureDetails
*/
public function getNoOverlapGpsDetails()
{
return $this->noOverlapGpsDetails;
}
/**
* See NotOutdoorsFailureDetails.
*
* @param NotOutdoorsFailureDetails $notOutdoorsDetails
*/
public function setNotOutdoorsDetails(NotOutdoorsFailureDetails $notOutdoorsDetails)
{
$this->notOutdoorsDetails = $notOutdoorsDetails;
}
/**
* @return NotOutdoorsFailureDetails
*/
public function getNotOutdoorsDetails()
{
return $this->notOutdoorsDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProcessingFailureDetails::class, 'Google_Service_StreetViewPublish_ProcessingFailureDetails');
@@ -0,0 +1,164 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish\Resource;
use Google\Service\StreetViewPublish\Photo as PhotoModel;
use Google\Service\StreetViewPublish\StreetviewpublishEmpty;
use Google\Service\StreetViewPublish\UploadRef;
/**
* The "photo" collection of methods.
* Typical usage is:
* <code>
* $streetviewpublishService = new Google\Service\StreetViewPublish(...);
* $photo = $streetviewpublishService->photo;
* </code>
*/
class Photo extends \Google\Service\Resource
{
/**
* After the client finishes uploading the photo with the returned UploadRef,
* CreatePhoto publishes the uploaded Photo to Street View on Google Maps.
* Currently, the only way to set heading, pitch, and roll in CreatePhoto is
* through the [Photo Sphere XMP
* metadata](https://developers.google.com/streetview/spherical-metadata) in the
* photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
* `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method
* returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the
* request is malformed or if the uploaded photo is not a 360 photo. *
* google.rpc.Code.NOT_FOUND if the upload reference does not exist. *
* google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage
* limit. (photo.create)
*
* @param PhotoModel $postBody
* @param array $optParams Optional parameters.
* @return PhotoModel
* @throws \Google\Service\Exception
*/
public function create(PhotoModel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PhotoModel::class);
}
/**
* Deletes a Photo and its metadata. This method returns the following error
* codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not
* create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does
* not exist. (photo.delete)
*
* @param string $photoId Required. ID of the Photo.
* @param array $optParams Optional parameters.
* @return StreetviewpublishEmpty
* @throws \Google\Service\Exception
*/
public function delete($photoId, $optParams = [])
{
$params = ['photoId' => $photoId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StreetviewpublishEmpty::class);
}
/**
* Gets the metadata of the specified Photo. This method returns the following
* error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
* not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested
* Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is
* still being indexed. (photo.get)
*
* @param string $photoId Required. ID of the Photo.
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The BCP-47 language code, such as "en-US" or
* "sr-Latn". For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
* language_code is unspecified, the user's language preference for Google
* services is used.
* @opt_param string view Required. Specifies if a download URL for the photo
* bytes should be returned in the Photo response.
* @return PhotoModel
* @throws \Google\Service\Exception
*/
public function get($photoId, $optParams = [])
{
$params = ['photoId' => $photoId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PhotoModel::class);
}
/**
* Creates an upload session to start uploading photo bytes. The method uses the
* upload URL of the returned UploadRef to upload the bytes for the Photo. In
* addition to the photo requirements shown in
* https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo
* must meet the following requirements: * Photo Sphere XMP metadata must be
* included in the photo metadata. See
* https://developers.google.com/streetview/spherical-metadata for the required
* fields. * The pixel size of the photo must meet the size requirements listed
* in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the
* photo must be a full 360 horizontally. After the upload completes, the method
* uses UploadRef with CreatePhoto to create the Photo object entry.
* (photo.startUpload)
*
* @param StreetviewpublishEmpty $postBody
* @param array $optParams Optional parameters.
* @return UploadRef
* @throws \Google\Service\Exception
*/
public function startUpload(StreetviewpublishEmpty $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startUpload', [$params], UploadRef::class);
}
/**
* Updates the metadata of a Photo, such as pose, place association,
* connections, etc. Changing the pixels of a photo is not supported. Only the
* fields specified in the updateMask field are used. If `updateMask` is not
* present, the update applies to all fields. This method returns the following
* error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
* not create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the
* request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does
* not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still
* being indexed. (photo.update)
*
* @param string $id A unique identifier for a photo.
* @param PhotoModel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask that identifies fields on the
* photo metadata to update. If not present, the old Photo metadata is entirely
* replaced with the new Photo metadata in this request. The update fails if
* invalid fields are specified. Multiple fields can be specified in a comma-
* delimited list. The following fields are valid: * `pose.heading` *
* `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` *
* `pose.altitude` * `connections` * `places` > Note: When updateMask contains
* repeated fields, the entire set of repeated values get replaced with the new
* contents. For example, if updateMask contains `connections` and
* `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.
* @return PhotoModel
* @throws \Google\Service\Exception
*/
public function update($id, PhotoModel $postBody, $optParams = [])
{
$params = ['id' => $id, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], PhotoModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Photo::class, 'Google_Service_StreetViewPublish_Resource_Photo');
@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish\Resource;
use Google\Service\StreetViewPublish\Operation;
use Google\Service\StreetViewPublish\PhotoSequence as PhotoSequenceModel;
use Google\Service\StreetViewPublish\StreetviewpublishEmpty;
use Google\Service\StreetViewPublish\UploadRef;
/**
* The "photoSequence" collection of methods.
* Typical usage is:
* <code>
* $streetviewpublishService = new Google\Service\StreetViewPublish(...);
* $photoSequence = $streetviewpublishService->photoSequence;
* </code>
*/
class PhotoSequence extends \Google\Service\Resource
{
/**
* After the client finishes uploading the PhotoSequence with the returned
* UploadRef, CreatePhotoSequence extracts a sequence of 360 photos from a video
* or Extensible Device Metadata (XDM, http://www.xdm.org/) to be published to
* Street View on Google Maps. `CreatePhotoSequence` returns an Operation, with
* the PhotoSequence Id set in the `Operation.name` field. This method returns
* the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request
* is malformed. * google.rpc.Code.NOT_FOUND if the upload reference does not
* exist. (photoSequence.create)
*
* @param PhotoSequenceModel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string inputType Required. The input form of PhotoSequence.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(PhotoSequenceModel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a PhotoSequence and its metadata. This method returns the following
* error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did
* not create the requested photo sequence. * google.rpc.Code.NOT_FOUND if the
* photo sequence ID does not exist. * google.rpc.Code.FAILED_PRECONDITION if
* the photo sequence ID is not yet finished processing. (photoSequence.delete)
*
* @param string $sequenceId Required. ID of the PhotoSequence.
* @param array $optParams Optional parameters.
* @return StreetviewpublishEmpty
* @throws \Google\Service\Exception
*/
public function delete($sequenceId, $optParams = [])
{
$params = ['sequenceId' => $sequenceId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StreetviewpublishEmpty::class);
}
/**
* Gets the metadata of the specified PhotoSequence via the Operation interface.
* This method returns the following three types of responses: *
* `Operation.done` = false, if the processing of PhotoSequence is not finished
* yet. * `Operation.done` = true and `Operation.error` is populated, if there
* was an error in processing. * `Operation.done` = true and
* `Operation.response` is poulated, which contains a PhotoSequence message.
* This method returns the following error codes: *
* google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the
* requested PhotoSequence. * google.rpc.Code.NOT_FOUND if the requested
* PhotoSequence does not exist. (photoSequence.get)
*
* @param string $sequenceId Required. ID of the photo sequence.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter expression. For example:
* `published_status=PUBLISHED`. The filters supported are: `published_status`.
* See https://google.aip.dev/160 for more information.
* @opt_param string view Specifies if a download URL for the photo sequence
* should be returned in `download_url` of individual photos in the
* PhotoSequence response. > Note: Currently not implemented.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($sequenceId, $optParams = [])
{
$params = ['sequenceId' => $sequenceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Creates an upload session to start uploading photo sequence data. The upload
* URL of the returned UploadRef is used to upload the data for the
* `photoSequence`. After the upload is complete, the UploadRef is used with
* CreatePhotoSequence to create the PhotoSequence object entry.
* (photoSequence.startUpload)
*
* @param StreetviewpublishEmpty $postBody
* @param array $optParams Optional parameters.
* @return UploadRef
* @throws \Google\Service\Exception
*/
public function startUpload(StreetviewpublishEmpty $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('startUpload', [$params], UploadRef::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhotoSequence::class, 'Google_Service_StreetViewPublish_Resource_PhotoSequence');
@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish\Resource;
use Google\Service\StreetViewPublish\ListPhotoSequencesResponse;
/**
* The "photoSequences" collection of methods.
* Typical usage is:
* <code>
* $streetviewpublishService = new Google\Service\StreetViewPublish(...);
* $photoSequences = $streetviewpublishService->photoSequences;
* </code>
*/
class PhotoSequences extends \Google\Service\Resource
{
/**
* Lists all the PhotoSequences that belong to the user, in descending
* CreatePhotoSequence timestamp order. (photoSequences.listPhotoSequences)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter expression. For example:
* `imagery_type=SPHERICAL`. The filters supported are: `imagery_type`,
* `processing_state`, `min_latitude`, `max_latitude`, `min_longitude`,
* `max_longitude`, `filename_query`, `min_capture_time_seconds`,
* `max_capture_time_seconds. See https://google.aip.dev/160 for more
* information. Filename queries should sent as a Phrase in order to support
* multiple words and special characters by adding escaped quotes. Ex:
* filename_query="example of a phrase.mp4"
* @opt_param int pageSize Optional. The maximum number of photo sequences to
* return. `pageSize` must be non-negative. If `pageSize` is zero or is not
* provided, the default page size of 100 is used. The number of photo sequences
* returned in the response may be less than `pageSize` if the number of matches
* is less than `pageSize`. This is currently unimplemented but is in process.
* @opt_param string pageToken Optional. The nextPageToken value returned from a
* previous ListPhotoSequences request, if any.
* @return ListPhotoSequencesResponse
* @throws \Google\Service\Exception
*/
public function listPhotoSequences($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPhotoSequencesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhotoSequences::class, 'Google_Service_StreetViewPublish_Resource_PhotoSequences');
@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish\Resource;
use Google\Service\StreetViewPublish\BatchDeletePhotosRequest;
use Google\Service\StreetViewPublish\BatchDeletePhotosResponse;
use Google\Service\StreetViewPublish\BatchGetPhotosResponse;
use Google\Service\StreetViewPublish\BatchUpdatePhotosRequest;
use Google\Service\StreetViewPublish\BatchUpdatePhotosResponse;
use Google\Service\StreetViewPublish\ListPhotosResponse;
/**
* The "photos" collection of methods.
* Typical usage is:
* <code>
* $streetviewpublishService = new Google\Service\StreetViewPublish(...);
* $photos = $streetviewpublishService->photos;
* </code>
*/
class Photos extends \Google\Service\Resource
{
/**
* Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos
* fails, either critical fields are missing or there is an authentication
* error. Even if BatchDeletePhotos succeeds, individual photos in the batch may
* have failures. These failures are specified in each PhotoResponse.status in
* BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that
* can occur per photo. (photos.batchDelete)
*
* @param BatchDeletePhotosRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchDeletePhotosResponse
* @throws \Google\Service\Exception
*/
public function batchDelete(BatchDeletePhotosRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], BatchDeletePhotosResponse::class);
}
/**
* Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos
* fails, either critical fields are missing or there is an authentication
* error. Even if BatchGetPhotos succeeds, individual photos in the batch may
* have failures. These failures are specified in each PhotoResponse.status in
* BatchGetPhotosResponse.results. See GetPhoto for specific failures that can
* occur per photo. (photos.batchGet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode Optional. The BCP-47 language code, such as
* "en-US" or "sr-Latn". For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
* language_code is unspecified, the user's language preference for Google
* services is used.
* @opt_param string photoIds
* @opt_param string view Required. Specifies if a download URL for the photo
* bytes should be returned in the Photo response.
* @return BatchGetPhotosResponse
* @throws \Google\Service\Exception
*/
public function batchGet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], BatchGetPhotosResponse::class);
}
/**
* Updates the metadata of Photos, such as pose, place association, connections,
* etc. Changing the pixels of photos is not supported. Note that if
* BatchUpdatePhotos fails, either critical fields are missing or there is an
* authentication error. Even if BatchUpdatePhotos succeeds, individual photos
* in the batch may have failures. These failures are specified in each
* PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto
* for specific failures that can occur per photo. Only the fields specified in
* updateMask field are used. If `updateMask` is not present, the update applies
* to all fields. The number of UpdatePhotoRequest messages in a
* BatchUpdatePhotosRequest must not exceed 20. > Note: To update Pose.altitude,
* Pose.latLngPair has to be filled as well. Otherwise, the request will fail.
* (photos.batchUpdate)
*
* @param BatchUpdatePhotosRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUpdatePhotosResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate(BatchUpdatePhotosRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], BatchUpdatePhotosResponse::class);
}
/**
* Lists all the Photos that belong to the user. > Note: Recently created photos
* that are still being indexed are not returned in the response.
* (photos.listPhotos)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter expression. For example:
* `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The filters supported are: `placeId`,
* `min_latitude`, `max_latitude`, `min_longitude`, `max_longitude`. See
* https://google.aip.dev/160 for more information.
* @opt_param string languageCode Optional. The BCP-47 language code, such as
* "en-US" or "sr-Latn". For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If
* language_code is unspecified, the user's language preference for Google
* services is used.
* @opt_param int pageSize Optional. The maximum number of photos to return.
* `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
* the default page size of 100 is used. The number of photos returned in the
* response may be less than `pageSize` if the number of photos that belong to
* the user is less than `pageSize`.
* @opt_param string pageToken Optional. The nextPageToken value returned from a
* previous ListPhotos request, if any.
* @opt_param string view Required. Specifies if a download URL for the photos
* bytes should be returned in the Photos response.
* @return ListPhotosResponse
* @throws \Google\Service\Exception
*/
public function listPhotos($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPhotosResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Photos::class, 'Google_Service_StreetViewPublish_Resource_Photos');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_StreetViewPublish_Status');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class StreetviewpublishEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StreetviewpublishEmpty::class, 'Google_Service_StreetViewPublish_StreetviewpublishEmpty');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class UpdatePhotoRequest extends \Google\Model
{
protected $photoType = Photo::class;
protected $photoDataType = '';
/**
* Required. Mask that identifies fields on the photo metadata to update. If
* not present, the old Photo metadata is entirely replaced with the new Photo
* metadata in this request. The update fails if invalid fields are specified.
* Multiple fields can be specified in a comma-delimited list. The following
* fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` *
* `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` >
* Note: When updateMask contains repeated fields, the entire set of repeated
* values get replaced with the new contents. For example, if updateMask
* contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
* all connections are removed.
*
* @var string
*/
public $updateMask;
/**
* Required. Photo object containing the new metadata.
*
* @param Photo $photo
*/
public function setPhoto(Photo $photo)
{
$this->photo = $photo;
}
/**
* @return Photo
*/
public function getPhoto()
{
return $this->photo;
}
/**
* Required. Mask that identifies fields on the photo metadata to update. If
* not present, the old Photo metadata is entirely replaced with the new Photo
* metadata in this request. The update fails if invalid fields are specified.
* Multiple fields can be specified in a comma-delimited list. The following
* fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` *
* `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` >
* Note: When updateMask contains repeated fields, the entire set of repeated
* values get replaced with the new contents. For example, if updateMask
* contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
* all connections are removed.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdatePhotoRequest::class, 'Google_Service_StreetViewPublish_UpdatePhotoRequest');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\StreetViewPublish;
class UploadRef extends \Google\Model
{
/**
* An upload reference should be unique for each user. It follows the form: "h
* ttps://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{uplo
* ad_reference}"
*
* @var string
*/
public $uploadUrl;
/**
* An upload reference should be unique for each user. It follows the form: "h
* ttps://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{uplo
* ad_reference}"
*
* @param string $uploadUrl
*/
public function setUploadUrl($uploadUrl)
{
$this->uploadUrl = $uploadUrl;
}
/**
* @return string
*/
public function getUploadUrl()
{
return $this->uploadUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UploadRef::class, 'Google_Service_StreetViewPublish_UploadRef');