Class: Google::Apis::StreetviewpublishV1::Photo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/streetviewpublish_v1/classes.rb,
lib/google/apis/streetviewpublish_v1/representations.rb,
lib/google/apis/streetviewpublish_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Photo

Returns a new instance of Photo.



378
379
380
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#capture_timeString

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. Corresponds to the JSON property captureTime

Returns:

  • (String)


313
314
315
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 313

def capture_time
  @capture_time
end

#connectionsArray<Google::Apis::StreetviewpublishV1::Connection>

Optional. Connections to other photos. A connection represents the link from this photo to another photo. Corresponds to the JSON property connections



319
320
321
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 319

def connections
  @connections
end

#download_urlString

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

Returns:

  • (String)


325
326
327
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 325

def download_url
  @download_url
end

#maps_publish_statusString

Output only. Status in Google Maps, whether this photo was published or rejected. Corresponds to the JSON property mapsPublishStatus

Returns:

  • (String)


331
332
333
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 331

def maps_publish_status
  @maps_publish_status
end

#photo_idGoogle::Apis::StreetviewpublishV1::PhotoId

Identifier for a Photo. Corresponds to the JSON property photoId



336
337
338
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 336

def photo_id
  @photo_id
end

#placesArray<Google::Apis::StreetviewpublishV1::Place>

Optional. Places where this photo belongs. Corresponds to the JSON property places



341
342
343
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 341

def places
  @places
end

#poseGoogle::Apis::StreetviewpublishV1::Pose

Raw pose measurement for an entity. Corresponds to the JSON property pose



346
347
348
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 346

def pose
  @pose
end

Output only. The share link for the photo. Corresponds to the JSON property shareLink

Returns:

  • (String)


351
352
353
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 351

def share_link
  @share_link
end

#thumbnail_urlString

Output only. The thumbnail URL for showing a preview of the given photo. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


356
357
358
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 356

def thumbnail_url
  @thumbnail_url
end

#transfer_statusString

Output only. Status of rights transfer on this photo. Corresponds to the JSON property transferStatus

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 361

def transfer_status
  @transfer_status
end

#upload_referenceGoogle::Apis::StreetviewpublishV1::UploadRef

Upload reference for media files. Corresponds to the JSON property uploadReference



366
367
368
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 366

def upload_reference
  @upload_reference
end

#upload_timeString

Output only. Time when the image was uploaded. Corresponds to the JSON property uploadTime

Returns:

  • (String)


371
372
373
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 371

def upload_time
  @upload_time
end

#view_countFixnum

Output only. View count of the photo. Corresponds to the JSON property viewCount

Returns:

  • (Fixnum)


376
377
378
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 376

def view_count
  @view_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 383

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)
  @upload_time = args[:upload_time] if args.key?(:upload_time)
  @view_count = args[:view_count] if args.key?(:view_count)
end