Class: Google::Apis::BooksV1::DictionaryAnnotationdata
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::DictionaryAnnotationdata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb
Instance Attribute Summary collapse
-
#annotation_type ⇒ String
The type of annotation this data is for.
-
#data ⇒ Google::Apis::BooksV1::DictLayerData
JSON encoded data for this dictionary annotation data.
-
#encoded_data ⇒ String
Base64 encoded data for this annotation data.
-
#id ⇒ String
Unique id for this annotation data.
-
#kind ⇒ String
Resource Type Corresponds to the JSON property
kind
. -
#layer_id ⇒ String
The Layer id for this data.
-
#self_link ⇒ String
URL for this resource.
-
#updated ⇒ String
Timestamp for the last time this data was updated.
-
#volume_id ⇒ String
The volume id for this data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DictionaryAnnotationdata
constructor
A new instance of DictionaryAnnotationdata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DictionaryAnnotationdata
Returns a new instance of DictionaryAnnotationdata.
790 791 792 |
# File 'generated/google/apis/books_v1/classes.rb', line 790 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_type ⇒ String
The type of annotation this data is for.
Corresponds to the JSON property annotationType
745 746 747 |
# File 'generated/google/apis/books_v1/classes.rb', line 745 def annotation_type @annotation_type end |
#data ⇒ Google::Apis::BooksV1::DictLayerData
JSON encoded data for this dictionary annotation data. Emitted with name 'data'
in JSON output. Either this or geo_data will be populated.
Corresponds to the JSON property data
751 752 753 |
# File 'generated/google/apis/books_v1/classes.rb', line 751 def data @data end |
#encoded_data ⇒ String
Base64 encoded data for this annotation data.
Corresponds to the JSON property encodedData
NOTE: Values are automatically base64 encoded/decoded in the client library.
757 758 759 |
# File 'generated/google/apis/books_v1/classes.rb', line 757 def encoded_data @encoded_data end |
#id ⇒ String
Unique id for this annotation data.
Corresponds to the JSON property id
762 763 764 |
# File 'generated/google/apis/books_v1/classes.rb', line 762 def id @id end |
#kind ⇒ String
Resource Type
Corresponds to the JSON property kind
767 768 769 |
# File 'generated/google/apis/books_v1/classes.rb', line 767 def kind @kind end |
#layer_id ⇒ String
The Layer id for this data. *
Corresponds to the JSON property layerId
772 773 774 |
# File 'generated/google/apis/books_v1/classes.rb', line 772 def layer_id @layer_id end |
#self_link ⇒ String
URL for this resource. *
Corresponds to the JSON property selfLink
777 778 779 |
# File 'generated/google/apis/books_v1/classes.rb', line 777 def self_link @self_link end |
#updated ⇒ String
Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
format).
Corresponds to the JSON property updated
783 784 785 |
# File 'generated/google/apis/books_v1/classes.rb', line 783 def updated @updated end |
#volume_id ⇒ String
The volume id for this data. *
Corresponds to the JSON property volumeId
788 789 790 |
# File 'generated/google/apis/books_v1/classes.rb', line 788 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
795 796 797 798 799 800 801 802 803 804 805 |
# File 'generated/google/apis/books_v1/classes.rb', line 795 def update!(**args) @annotation_type = args[:annotation_type] if args.key?(:annotation_type) @data = args[:data] if args.key?(:data) @encoded_data = args[:encoded_data] if args.key?(:encoded_data) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @layer_id = args[:layer_id] if args.key?(:layer_id) @self_link = args[:self_link] if args.key?(:self_link) @updated = args[:updated] if args.key?(:updated) @volume_id = args[:volume_id] if args.key?(:volume_id) end |