Class: Google::Apis::BooksV1::DictionaryAnnotationdata

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DictionaryAnnotationdata

Returns a new instance of DictionaryAnnotationdata.



793
794
795
# File 'generated/google/apis/books_v1/classes.rb', line 793

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotation_typeString

The type of annotation this data is for. Corresponds to the JSON property annotationType

Returns:

  • (String)


747
748
749
# File 'generated/google/apis/books_v1/classes.rb', line 747

def annotation_type
  @annotation_type
end

#dataGoogle::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



754
755
756
# File 'generated/google/apis/books_v1/classes.rb', line 754

def data
  @data
end

#encoded_dataString

Base64 encoded data for this annotation data. Corresponds to the JSON property encodedData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


760
761
762
# File 'generated/google/apis/books_v1/classes.rb', line 760

def encoded_data
  @encoded_data
end

#idString

Unique id for this annotation data. Corresponds to the JSON property id

Returns:

  • (String)


765
766
767
# File 'generated/google/apis/books_v1/classes.rb', line 765

def id
  @id
end

#kindString

Resource Type Corresponds to the JSON property kind

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/books_v1/classes.rb', line 770

def kind
  @kind
end

#layer_idString

The Layer id for this data. * Corresponds to the JSON property layerId

Returns:

  • (String)


775
776
777
# File 'generated/google/apis/books_v1/classes.rb', line 775

def layer_id
  @layer_id
end

URL for this resource. * Corresponds to the JSON property selfLink

Returns:

  • (String)


780
781
782
# File 'generated/google/apis/books_v1/classes.rb', line 780

def self_link
  @self_link
end

#updatedString

Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format). Corresponds to the JSON property updated

Returns:

  • (String)


786
787
788
# File 'generated/google/apis/books_v1/classes.rb', line 786

def updated
  @updated
end

#volume_idString

The volume id for this data. * Corresponds to the JSON property volumeId

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/books_v1/classes.rb', line 791

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



798
799
800
801
802
803
804
805
806
807
808
# File 'generated/google/apis/books_v1/classes.rb', line 798

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