UpdatePhotoRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\StreetViewPublish;
  18. class UpdatePhotoRequest extends \Google\Model
  19. {
  20. protected $photoType = Photo::class;
  21. protected $photoDataType = '';
  22. /**
  23. * Required. Mask that identifies fields on the photo metadata to update. If
  24. * not present, the old Photo metadata is entirely replaced with the new Photo
  25. * metadata in this request. The update fails if invalid fields are specified.
  26. * Multiple fields can be specified in a comma-delimited list. The following
  27. * fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` *
  28. * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` >
  29. * Note: When updateMask contains repeated fields, the entire set of repeated
  30. * values get replaced with the new contents. For example, if updateMask
  31. * contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
  32. * all connections are removed.
  33. *
  34. * @var string
  35. */
  36. public $updateMask;
  37. /**
  38. * Required. Photo object containing the new metadata.
  39. *
  40. * @param Photo $photo
  41. */
  42. public function setPhoto(Photo $photo)
  43. {
  44. $this->photo = $photo;
  45. }
  46. /**
  47. * @return Photo
  48. */
  49. public function getPhoto()
  50. {
  51. return $this->photo;
  52. }
  53. /**
  54. * Required. Mask that identifies fields on the photo metadata to update. If
  55. * not present, the old Photo metadata is entirely replaced with the new Photo
  56. * metadata in this request. The update fails if invalid fields are specified.
  57. * Multiple fields can be specified in a comma-delimited list. The following
  58. * fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` *
  59. * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` >
  60. * Note: When updateMask contains repeated fields, the entire set of repeated
  61. * values get replaced with the new contents. For example, if updateMask
  62. * contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
  63. * all connections are removed.
  64. *
  65. * @param string $updateMask
  66. */
  67. public function setUpdateMask($updateMask)
  68. {
  69. $this->updateMask = $updateMask;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getUpdateMask()
  75. {
  76. return $this->updateMask;
  77. }
  78. }
  79. // Adding a class alias for backwards compatibility with the previous class name.
  80. class_alias(UpdatePhotoRequest::class, 'Google_Service_StreetViewPublish_UpdatePhotoRequest');