class Google::Apis::StreetviewpublishV1::Photo

Photo is used to store 360 photos along with photo metadata.

Attributes

capture_time[RW]

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. Corresponds to the JSON property `captureTime` @return [String]

connections[RW]

Connections to other photos. A connection represents the link from this photo to another photo. Corresponds to the JSON property `connections` @return [Array<Google::Apis::StreetviewpublishV1::Connection>]

download_url[RW]

Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. Corresponds to the JSON property `downloadUrl` @return [String]

maps_publish_status[RW]

Output only. Status in Google Maps, whether this photo was published or rejected. Not currently populated. Corresponds to the JSON property `mapsPublishStatus` @return [String]

photo_id[RW]

Identifier for a Photo. Corresponds to the JSON property `photoId` @return [Google::Apis::StreetviewpublishV1::PhotoId]

places[RW]

Places where this photo belongs. Corresponds to the JSON property `places` @return [Array<Google::Apis::StreetviewpublishV1::Place>]

pose[RW]

Raw pose measurement for an entity. Corresponds to the JSON property `pose` @return [Google::Apis::StreetviewpublishV1::Pose]

thumbnail_url[RW]

Output only. The thumbnail URL for showing a preview of the given photo. Corresponds to the JSON property `thumbnailUrl` @return [String]

transfer_status[RW]

Output only. Status of rights transfer on this photo. Corresponds to the JSON property `transferStatus` @return [String]

upload_reference[RW]

Upload reference for media files. Corresponds to the JSON property `uploadReference` @return [Google::Apis::StreetviewpublishV1::UploadRef]

view_count[RW]

Output only. View count of the photo. Corresponds to the JSON property `viewCount` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/streetviewpublish_v1/classes.rb, line 374
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/streetviewpublish_v1/classes.rb, line 379
def update!(**args)
  @capture_time = args[:capture_time] if args.key?(:capture_time)
  @connections = args[:connections] if args.key?(:connections)
  @download_url = args[:download_url] if args.key?(:download_url)
  @maps_publish_status = args[:maps_publish_status] if args.key?(:maps_publish_status)
  @photo_id = args[:photo_id] if args.key?(:photo_id)
  @places = args[:places] if args.key?(:places)
  @pose = args[:pose] if args.key?(:pose)
  @share_link = args[:share_link] if args.key?(:share_link)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
  @transfer_status = args[:transfer_status] if args.key?(:transfer_status)
  @upload_reference = args[:upload_reference] if args.key?(:upload_reference)
  @view_count = args[:view_count] if args.key?(:view_count)
end