Class: Google::Apis::DocsV1::TableOfContents

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb

Overview

A StructuralElement representing a table of contents.

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) ⇒ TableOfContents

Returns a new instance of TableOfContents.



5598
5599
5600
# File 'generated/google/apis/docs_v1/classes.rb', line 5598

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

Instance Attribute Details

#contentArray<Google::Apis::DocsV1::StructuralElement>

The content of the table of contents. Corresponds to the JSON property content



5582
5583
5584
# File 'generated/google/apis/docs_v1/classes.rb', line 5582

def content
  @content
end

#suggested_deletion_idsArray<String>

The suggested deletion IDs. If empty, then there are no suggested deletions of this content. Corresponds to the JSON property suggestedDeletionIds

Returns:

  • (Array<String>)


5588
5589
5590
# File 'generated/google/apis/docs_v1/classes.rb', line 5588

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idsArray<String>

The suggested insertion IDs. A TableOfContents may have multiple insertion IDs if it is a nested suggested change. If empty, then this is not a suggested insertion. Corresponds to the JSON property suggestedInsertionIds

Returns:

  • (Array<String>)


5596
5597
5598
# File 'generated/google/apis/docs_v1/classes.rb', line 5596

def suggested_insertion_ids
  @suggested_insertion_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5603
5604
5605
5606
5607
# File 'generated/google/apis/docs_v1/classes.rb', line 5603

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @suggested_deletion_ids = args[:suggested_deletion_ids] if args.key?(:suggested_deletion_ids)
  @suggested_insertion_ids = args[:suggested_insertion_ids] if args.key?(:suggested_insertion_ids)
end