Class: Google::Apis::DocsV1::TableRow

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 row 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) ⇒ TableRow

Returns a new instance of TableRow



4883
4884
4885
# File 'generated/google/apis/docs_v1/classes.rb', line 4883

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

Instance Attribute Details

#end_indexFixnum

The zero-based end index of this row, 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)


4842
4843
4844
# File 'generated/google/apis/docs_v1/classes.rb', line 4842

def end_index
  @end_index
end

#start_indexFixnum

The zero-based start index of this row, 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)


4851
4852
4853
# File 'generated/google/apis/docs_v1/classes.rb', line 4851

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


4857
4858
4859
# File 'generated/google/apis/docs_v1/classes.rb', line 4857

def suggested_deletion_ids
  @suggested_deletion_ids
end

#suggested_insertion_idsArray<String>

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


4864
4865
4866
# File 'generated/google/apis/docs_v1/classes.rb', line 4864

def suggested_insertion_ids
  @suggested_insertion_ids
end

#suggested_table_row_style_changesHash<String,Google::Apis::DocsV1::SuggestedTableRowStyle>

The suggested style changes to this row, keyed by suggestion ID. Corresponds to the JSON property suggestedTableRowStyleChanges



4869
4870
4871
# File 'generated/google/apis/docs_v1/classes.rb', line 4869

def suggested_table_row_style_changes
  @suggested_table_row_style_changes
end

#table_cellsArray<Google::Apis::DocsV1::TableCell>

The contents and style of each cell in this row. It is possible for a table to be non-rectangular, so some rows may have a different number of cells than other rows in the same table. Corresponds to the JSON property tableCells



4876
4877
4878
# File 'generated/google/apis/docs_v1/classes.rb', line 4876

def table_cells
  @table_cells
end

#table_row_styleGoogle::Apis::DocsV1::TableRowStyle

Styles that apply to a table row. Corresponds to the JSON property tableRowStyle



4881
4882
4883
# File 'generated/google/apis/docs_v1/classes.rb', line 4881

def table_row_style
  @table_row_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4888
4889
4890
4891
4892
4893
4894
4895
4896
# File 'generated/google/apis/docs_v1/classes.rb', line 4888

def update!(**args)
  @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_row_style_changes = args[:suggested_table_row_style_changes] if args.key?(:suggested_table_row_style_changes)
  @table_cells = args[:table_cells] if args.key?(:table_cells)
  @table_row_style = args[:table_row_style] if args.key?(:table_row_style)
end