Class: Google::Apis::PhotoslibraryV1::NewEnrichmentItem
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PhotoslibraryV1::NewEnrichmentItem
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
 generated/google/apis/photoslibrary_v1/representations.rb,
 generated/google/apis/photoslibrary_v1/representations.rb
Overview
A new enrichment item to be added to an album, used by the AddEnrichmentToAlbum call.
Instance Attribute Summary collapse
- 
  
    
      #location_enrichment  ⇒ Google::Apis::PhotoslibraryV1::LocationEnrichment 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An enrichment containing a single location. 
- 
  
    
      #map_enrichment  ⇒ Google::Apis::PhotoslibraryV1::MapEnrichment 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An enrichment containing a map, showing origin and destination locations. 
- 
  
    
      #text_enrichment  ⇒ Google::Apis::PhotoslibraryV1::TextEnrichment 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An enrichment containing text. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NewEnrichmentItem 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NewEnrichmentItem. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NewEnrichmentItem
Returns a new instance of NewEnrichmentItem
| 839 840 841 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 839 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#location_enrichment ⇒ Google::Apis::PhotoslibraryV1::LocationEnrichment
An enrichment containing a single location.
Corresponds to the JSON property locationEnrichment
| 827 828 829 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 827 def location_enrichment @location_enrichment end | 
#map_enrichment ⇒ Google::Apis::PhotoslibraryV1::MapEnrichment
An enrichment containing a map, showing origin and destination locations.
Corresponds to the JSON property mapEnrichment
| 832 833 834 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 832 def map_enrichment @map_enrichment end | 
#text_enrichment ⇒ Google::Apis::PhotoslibraryV1::TextEnrichment
An enrichment containing text.
Corresponds to the JSON property textEnrichment
| 837 838 839 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 837 def text_enrichment @text_enrichment end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 844 845 846 847 848 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 844 def update!(**args) @location_enrichment = args[:location_enrichment] if args.key?(:location_enrichment) @map_enrichment = args[:map_enrichment] if args.key?(:map_enrichment) @text_enrichment = args[:text_enrichment] if args.key?(:text_enrichment) end |