class Google::Apis::SheetsV4::PivotFilterCriteria

Criteria for showing/hiding rows in a pivot table.

Attributes

condition[RW]

A condition that can evaluate to true or false. BooleanConditions are used by conditional formatting, data validation, and the criteria in filters. Corresponds to the JSON property `condition` @return [Google::Apis::SheetsV4::BooleanCondition]

visible_by_default[RW]

Whether values are visible by default. If true, the visible_values are ignored, all values that meet condition (if specified) are shown. If false, values that are both in visible_values and meet condition are shown. Corresponds to the JSON property `visibleByDefault` @return [Boolean]

visible_by_default?[RW]

Whether values are visible by default. If true, the visible_values are ignored, all values that meet condition (if specified) are shown. If false, values that are both in visible_values and meet condition are shown. Corresponds to the JSON property `visibleByDefault` @return [Boolean]

visible_values[RW]

Values that should be included. Values not listed here are excluded. Corresponds to the JSON property `visibleValues` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 7123
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 7128
def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @visible_by_default = args[:visible_by_default] if args.key?(:visible_by_default)
  @visible_values = args[:visible_values] if args.key?(:visible_values)
end