Class: Google::Apis::DocsV1::TableCell
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::TableCell
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb
Overview
The contents and style of a cell in a Table.
Instance Attribute Summary collapse
-
#content ⇒ Array<Google::Apis::DocsV1::StructuralElement>
The content of the cell.
-
#end_index ⇒ Fixnum
The zero-based end index of this cell, exclusive, in UTF-16 code units.
-
#start_index ⇒ Fixnum
The zero-based start index of this cell, in UTF-16 code units.
-
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs.
-
#suggested_insertion_ids ⇒ Array<String>
The suggested insertion IDs.
-
#suggested_table_cell_style_changes ⇒ Hash<String,Google::Apis::DocsV1::SuggestedTableCellStyle>
The suggested changes to the table cell style, keyed by suggestion ID.
-
#table_cell_style ⇒ Google::Apis::DocsV1::TableCellStyle
The style of a TableCell.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableCell
constructor
A new instance of TableCell.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TableCell
Returns a new instance of TableCell.
5641 5642 5643 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ Array<Google::Apis::DocsV1::StructuralElement>
The content of the cell.
Corresponds to the JSON property content
5606 5607 5608 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5606 def content @content end |
#end_index ⇒ Fixnum
The zero-based end index of this cell, exclusive, in UTF-16 code units.
Corresponds to the JSON property endIndex
5611 5612 5613 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5611 def end_index @end_index end |
#start_index ⇒ Fixnum
The zero-based start index of this cell, in UTF-16 code units.
Corresponds to the JSON property startIndex
5616 5617 5618 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5616 def start_index @start_index end |
#suggested_deletion_ids ⇒ Array<String>
The suggested deletion IDs. If empty, then there are no suggested deletions of
this content.
Corresponds to the JSON property suggestedDeletionIds
5622 5623 5624 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5622 def suggested_deletion_ids @suggested_deletion_ids end |
#suggested_insertion_ids ⇒ Array<String>
The suggested insertion IDs. A TableCell may have multiple insertion IDs if it'
s a nested suggested change. If empty, then this is not a suggested insertion.
Corresponds to the JSON property suggestedInsertionIds
5628 5629 5630 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5628 def suggested_insertion_ids @suggested_insertion_ids end |
#suggested_table_cell_style_changes ⇒ Hash<String,Google::Apis::DocsV1::SuggestedTableCellStyle>
The suggested changes to the table cell style, keyed by suggestion ID.
Corresponds to the JSON property suggestedTableCellStyleChanges
5633 5634 5635 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5633 def suggested_table_cell_style_changes @suggested_table_cell_style_changes end |
#table_cell_style ⇒ Google::Apis::DocsV1::TableCellStyle
The style of a TableCell. Inherited table cell styles are represented as unset
fields in this message. A table cell style can inherit from the table's style.
Corresponds to the JSON property tableCellStyle
5639 5640 5641 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5639 def table_cell_style @table_cell_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5646 5647 5648 5649 5650 5651 5652 5653 5654 |
# File 'lib/google/apis/docs_v1/classes.rb', line 5646 def update!(**args) @content = args[:content] if args.key?(:content) @end_index = args[:end_index] if args.key?(:end_index) @start_index = args[:start_index] if args.key?(:start_index) @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) @suggested_table_cell_style_changes = args[:suggested_table_cell_style_changes] if args.key?(:suggested_table_cell_style_changes) @table_cell_style = args[:table_cell_style] if args.key?(:table_cell_style) end |