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

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

Updates the style of a range of table cells.

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

Returns a new instance of UpdateTableCellStyleRequest.



5919
5920
5921
# File 'generated/google/apis/docs_v1/classes.rb', line 5919

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)


5896
5897
5898
# File 'generated/google/apis/docs_v1/classes.rb', line 5896

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



5902
5903
5904
# File 'generated/google/apis/docs_v1/classes.rb', line 5902

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



5912
5913
5914
# File 'generated/google/apis/docs_v1/classes.rb', line 5912

def table_range
  @table_range
end

#table_start_locationGoogle::Apis::DocsV1::Location

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



5917
5918
5919
# File 'generated/google/apis/docs_v1/classes.rb', line 5917

def table_start_location
  @table_start_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5924
5925
5926
5927
5928
5929
# File 'generated/google/apis/docs_v1/classes.rb', line 5924

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