Class: Google::Apis::DocsV1::TableCell

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

The contents and style of a cell in a Table.

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

Returns a new instance of TableCell



4503
4504
4505
# File 'generated/google/apis/docs_v1/classes.rb', line 4503

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

Instance Attribute Details

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

The content of the cell. Corresponds to the JSON property content



4458
4459
4460
# File 'generated/google/apis/docs_v1/classes.rb', line 4458

def content
  @content
end

#end_indexFixnum

The zero-based end index of this cell, exclusive, in Unicode code units of the UTF-16 encoding. Unicode code units of the UTF-16 encoding means that surrogate pairs consume two indices. For example, the "GRINNING FACE" emoji would be represented as "\uD83D\uDE00" and would consume two indices. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


4467
4468
4469
# File 'generated/google/apis/docs_v1/classes.rb', line 4467

def end_index
  @end_index
end

#start_indexFixnum

The zero-based start index of this cell, in Unicode code units of the UTF-16 encoding. Unicode code units of the UTF-16 encoding means that surrogate pairs consume two indices. For example, the "GRINNING FACE" emoji would be represented as "\uD83D\uDE00" and would consume two indices. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


4476
4477
4478
# File 'generated/google/apis/docs_v1/classes.rb', line 4476

def start_index
  @start_index
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>)


4482
4483
4484
# File 'generated/google/apis/docs_v1/classes.rb', line 4482

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idsArray<String>

The suggested insertion IDs. A TableCell 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>)


4489
4490
4491
# File 'generated/google/apis/docs_v1/classes.rb', line 4489

def suggested_insertion_ids
  @suggested_insertion_ids
end

#suggested_table_cell_style_changesHash<String,Google::Apis::DocsV1::SuggestedTableCellStyle>

The suggested changes to the table cell style, keyed by suggestion ID. Corresponds to the JSON property suggestedTableCellStyleChanges



4494
4495
4496
# File 'generated/google/apis/docs_v1/classes.rb', line 4494

def suggested_table_cell_style_changes
  @suggested_table_cell_style_changes
end

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



4501
4502
4503
# File 'generated/google/apis/docs_v1/classes.rb', line 4501

def table_cell_style
  @table_cell_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4508
4509
4510
4511
4512
4513
4514
4515
4516
# File 'generated/google/apis/docs_v1/classes.rb', line 4508

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