Class: Google::Apis::StreetviewpublishV1::Photo
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Photo
- 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
-
#capture_time ⇒ String
Optional.
-
#connections ⇒ Array<Google::Apis::StreetviewpublishV1::Connection>
Optional.
-
#download_url ⇒ String
Output only.
-
#maps_publish_status ⇒ String
Output only.
-
#photo_id ⇒ Google::Apis::StreetviewpublishV1::PhotoId
Identifier for a Photo.
-
#places ⇒ Array<Google::Apis::StreetviewpublishV1::Place>
Optional.
-
#pose ⇒ Google::Apis::StreetviewpublishV1::Pose
Raw pose measurement for an entity.
-
#share_link ⇒ String
Output only.
-
#thumbnail_url ⇒ String
Output only.
-
#transfer_status ⇒ String
Output only.
-
#upload_reference ⇒ Google::Apis::StreetviewpublishV1::UploadRef
Upload reference for media files.
-
#upload_time ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ Photo
Returns a new instance of Photo.
641 642 643 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capture_time ⇒ String
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
576 577 578 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 576 def capture_time @capture_time end |
#connections ⇒ Array<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
582 583 584 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 582 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
588 589 590 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 588 def download_url @download_url end |
#maps_publish_status ⇒ String
Output only. Status in Google Maps, whether this photo was published or
rejected.
Corresponds to the JSON property mapsPublishStatus
594 595 596 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 594 def maps_publish_status @maps_publish_status end |
#photo_id ⇒ Google::Apis::StreetviewpublishV1::PhotoId
Identifier for a Photo.
Corresponds to the JSON property photoId
599 600 601 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 599 def photo_id @photo_id end |
#places ⇒ Array<Google::Apis::StreetviewpublishV1::Place>
Optional. Places where this photo belongs.
Corresponds to the JSON property places
604 605 606 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 604 def places @places end |
#pose ⇒ Google::Apis::StreetviewpublishV1::Pose
Raw pose measurement for an entity.
Corresponds to the JSON property pose
609 610 611 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 609 def pose @pose end |
#share_link ⇒ String
Output only. The share link for the photo.
Corresponds to the JSON property shareLink
614 615 616 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 614 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
619 620 621 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 619 def thumbnail_url @thumbnail_url end |
#transfer_status ⇒ String
Output only. Status of rights transfer on this photo.
Corresponds to the JSON property transferStatus
624 625 626 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 624 def transfer_status @transfer_status end |
#upload_reference ⇒ Google::Apis::StreetviewpublishV1::UploadRef
Upload reference for media files.
Corresponds to the JSON property uploadReference
629 630 631 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 629 def upload_reference @upload_reference end |
#upload_time ⇒ String
Output only. Time when the image was uploaded.
Corresponds to the JSON property uploadTime
634 635 636 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 634 def upload_time @upload_time end |
#view_count ⇒ Fixnum
Output only. View count of the photo.
Corresponds to the JSON property viewCount
639 640 641 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 639 def view_count @view_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 646 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 |