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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/streetviewpublish_v1/classes.rb,
generated/google/apis/streetviewpublish_v1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Photo

Returns a new instance of Photo



414
415
416
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 414

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

Instance Attribute Details

#capture_timeString

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)


362
363
364
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 362

def capture_time
  @capture_time
end

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

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



368
369
370
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 368

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)


377
378
379
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 377

def download_url
  @download_url
end

#photo_idGoogle::Apis::StreetviewpublishV1::PhotoId

Identifier for a Photo. Corresponds to the JSON property photoId



382
383
384
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 382

def photo_id
  @photo_id
end

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

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



387
388
389
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 387

def places
  @places
end

#poseGoogle::Apis::StreetviewpublishV1::Pose

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



392
393
394
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 392

def pose
  @pose
end

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

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 397

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)


402
403
404
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 402

def thumbnail_url
  @thumbnail_url
end

#upload_referenceGoogle::Apis::StreetviewpublishV1::UploadRef

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



407
408
409
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 407

def upload_reference
  @upload_reference
end

#view_countFixnum

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

Returns:

  • (Fixnum)


412
413
414
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 412

def view_count
  @view_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



419
420
421
422
423
424
425
426
427
428
429
430
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 419

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