Class: Google::Apis::PhotoslibraryV1::NewEnrichmentItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_enrichmentGoogle::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_enrichmentGoogle::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_enrichmentGoogle::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