Class: Google::Apis::StreetviewpublishV1::Photo
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Photo
- 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
-
#capture_time ⇒ String
Absolute time when the photo was captured.
-
#connections ⇒ Array<Google::Apis::StreetviewpublishV1::Connection>
Connections to other photos.
-
#download_url ⇒ String
Output only.
-
#photo_id ⇒ Google::Apis::StreetviewpublishV1::PhotoId
Identifier for a Photo.
-
#places ⇒ Array<Google::Apis::StreetviewpublishV1::Place>
Places where this photo belongs.
-
#pose ⇒ Google::Apis::StreetviewpublishV1::Pose
Raw pose measurement for an entity.
-
#share_link ⇒ String
Output only.
-
#thumbnail_url ⇒ String
Output only.
-
#upload_reference ⇒ Google::Apis::StreetviewpublishV1::UploadRef
Upload reference for media files.
-
#view_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Photo
constructor
A new instance of Photo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Photo
Returns a new instance of Photo
416 417 418 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capture_time ⇒ String
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
362 363 364 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 362 def capture_time @capture_time end |
#connections ⇒ Array<Google::Apis::StreetviewpublishV1::Connection>
Connections to other photos. A connection represents the link from this
photo to another photo.
The maximum number of connections that can be set through an
google.streetview.publish.v1.UpdatePhotoRequest is 10.
Corresponds to the JSON property connections
370 371 372 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 370 def connections @connections end |
#download_url ⇒ String
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
379 380 381 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 379 def download_url @download_url end |
#photo_id ⇒ Google::Apis::StreetviewpublishV1::PhotoId
Identifier for a Photo.
Corresponds to the JSON property photoId
384 385 386 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 384 def photo_id @photo_id end |
#places ⇒ Array<Google::Apis::StreetviewpublishV1::Place>
Places where this photo belongs.
Corresponds to the JSON property places
389 390 391 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 389 def places @places end |
#pose ⇒ Google::Apis::StreetviewpublishV1::Pose
Raw pose measurement for an entity.
Corresponds to the JSON property pose
394 395 396 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 394 def pose @pose end |
#share_link ⇒ String
Output only. The share link for the photo.
Corresponds to the JSON property shareLink
399 400 401 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 399 def share_link @share_link end |
#thumbnail_url ⇒ String
Output only. The thumbnail URL for showing a preview of the given photo.
Corresponds to the JSON property thumbnailUrl
404 405 406 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 404 def thumbnail_url @thumbnail_url end |
#upload_reference ⇒ Google::Apis::StreetviewpublishV1::UploadRef
Upload reference for media files.
Corresponds to the JSON property uploadReference
409 410 411 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 409 def upload_reference @upload_reference end |
#view_count ⇒ Fixnum
Output only. View count of the photo.
Corresponds to the JSON property viewCount
414 415 416 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 414 def view_count @view_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
421 422 423 424 425 426 427 428 429 430 431 432 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 421 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 |