class Google::Apis::BooksV1::Annotation

Attributes

after_selected_text[RW]

Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. Corresponds to the JSON property `afterSelectedText` @return [String]

before_selected_text[RW]

Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty. Corresponds to the JSON property `beforeSelectedText` @return [String]

client_version_ranges[RW]

Selection ranges sent from the client. Corresponds to the JSON property `clientVersionRanges` @return [Google::Apis::BooksV1::Annotation::ClientVersionRanges]

created[RW]

Timestamp for the created time of this annotation. Corresponds to the JSON property `created` @return [DateTime]

current_version_ranges[RW]

Selection ranges for the most recent content version. Corresponds to the JSON property `currentVersionRanges` @return [Google::Apis::BooksV1::Annotation::CurrentVersionRanges]

data[RW]

User-created data for this annotation. Corresponds to the JSON property `data` @return [String]

deleted[RW]

Indicates that this annotation is deleted. Corresponds to the JSON property `deleted` @return [Boolean]

deleted?[RW]

Indicates that this annotation is deleted. Corresponds to the JSON property `deleted` @return [Boolean]

highlight_style[RW]

The highlight style for this annotation. Corresponds to the JSON property `highlightStyle` @return [String]

id[RW]

Id of this annotation, in the form of a GUID. Corresponds to the JSON property `id` @return [String]

kind[RW]

Resource type. Corresponds to the JSON property `kind` @return [String]

layer_id[RW]

The layer this annotation is for. Corresponds to the JSON property `layerId` @return [String]

layer_summary[RW]

Corresponds to the JSON property `layerSummary` @return [Google::Apis::BooksV1::Annotation::LayerSummary]

page_ids[RW]

Pages that this annotation spans. Corresponds to the JSON property `pageIds` @return [Array<String>]

selected_text[RW]

Excerpt from the volume. Corresponds to the JSON property `selectedText` @return [String]

updated[RW]

Timestamp for the last time this annotation was modified. Corresponds to the JSON property `updated` @return [DateTime]

volume_id[RW]

The volume that this annotation belongs to. Corresponds to the JSON property `volumeId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/books_v1/classes.rb, line 117
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/books_v1/classes.rb, line 122
def update!(**args)
  @after_selected_text = args[:after_selected_text] if args.key?(:after_selected_text)
  @before_selected_text = args[:before_selected_text] if args.key?(:before_selected_text)
  @client_version_ranges = args[:client_version_ranges] if args.key?(:client_version_ranges)
  @created = args[:created] if args.key?(:created)
  @current_version_ranges = args[:current_version_ranges] if args.key?(:current_version_ranges)
  @data = args[:data] if args.key?(:data)
  @deleted = args[:deleted] if args.key?(:deleted)
  @highlight_style = args[:highlight_style] if args.key?(:highlight_style)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @layer_id = args[:layer_id] if args.key?(:layer_id)
  @layer_summary = args[:layer_summary] if args.key?(:layer_summary)
  @page_ids = args[:page_ids] if args.key?(:page_ids)
  @selected_text = args[:selected_text] if args.key?(:selected_text)
  @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