Class: Google::Apis::DocsV1::UpdateTableCellStyleRequest

Inherits:
Object
  • Object
show all
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

Updates the style of a range of table cells.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateTableCellStyleRequest

Returns a new instance of UpdateTableCellStyleRequest.



6630
6631
6632
# File 'lib/google/apis/docs_v1/classes.rb', line 6630

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

Instance Attribute Details

#fieldsString

The fields that should be updated. At least one field must be specified. The root tableCellStyle is implied and should not be specified. A single "*" can be used as short-hand for listing every field. For example to update the table cell background color, set fields to "backgroundColor". To reset a property to its default value, include its field name in the field mask but leave the field itself unset. Corresponds to the JSON property fields

Returns:

  • (String)


6607
6608
6609
# File 'lib/google/apis/docs_v1/classes.rb', line 6607

def fields
  @fields
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



6613
6614
6615
# File 'lib/google/apis/docs_v1/classes.rb', line 6613

def table_cell_style
  @table_cell_style
end

#table_rangeGoogle::Apis::DocsV1::TableRange

A table range represents a reference to a subset of a table. It's important to note that the cells specified by a table range do not necessarily form a rectangle. For example, let's say we have a 3 x 3 table where all the cells of the last row are merged together. The table looks like this: [ ] A table range with table cell location = (table_start_location, row = 0, column = 0), row span = 3 and column span = 2 specifies the following cells: x x [ x x x ] Corresponds to the JSON property tableRange



6623
6624
6625
# File 'lib/google/apis/docs_v1/classes.rb', line 6623

def table_range
  @table_range
end

#table_start_locationGoogle::Apis::DocsV1::Location

A particular location in the document. Corresponds to the JSON property tableStartLocation



6628
6629
6630
# File 'lib/google/apis/docs_v1/classes.rb', line 6628

def table_start_location
  @table_start_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6635
6636
6637
6638
6639
6640
# File 'lib/google/apis/docs_v1/classes.rb', line 6635

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @table_cell_style = args[:table_cell_style] if args.key?(:table_cell_style)
  @table_range = args[:table_range] if args.key?(:table_range)
  @table_start_location = args[:table_start_location] if args.key?(:table_start_location)
end