generated/google/apis/sheets_v4/classes.rb in google-api-client-0.19.8 vs generated/google/apis/sheets_v4/classes.rb in google-api-client-0.20.0

- old
+ new

@@ -1154,11 +1154,11 @@ # Corresponds to the JSON property `series` # @return [Array<Google::Apis::SheetsV4::BasicChartSeries>] attr_accessor :series # The stacked type for charts that support vertical stacking. - # Applies to Area, Bar, Column, and Stepped Area charts. + # Applies to Area, Bar, Column, Combo, and Stepped Area charts. # Corresponds to the JSON property `stackedType` # @return [String] attr_accessor :stacked_type # True to make the chart 3D. @@ -1457,11 +1457,11 @@ # Corresponds to the JSON property `requests` # @return [Array<Google::Apis::SheetsV4::Request>] attr_accessor :requests # True if grid data should be returned. Meaningful only if - # if include_spreadsheet_response is 'true'. + # if include_spreadsheet_in_response is 'true'. # This parameter is ignored if a field mask was set in the request. # Corresponds to the JSON property `responseIncludeGridData` # @return [Boolean] attr_accessor :response_include_grid_data alias_method :response_include_grid_data?, :response_include_grid_data @@ -2538,11 +2538,12 @@ # Exactly one dimension must have a length of 1, # and all sources in the list must have the same dimension # with length 1. # The domain (if it exists) & all series must have the same number # of source ranges. If using more than one source range, then the source - # range at a given offset must be contiguous across the domain and series. + # range at a given offset must be in order and contiguous across the domain + # and series. # For example, these are valid configurations: # domain sources: A1:A5 # series1 sources: B1:B5 # series2 sources: D6:D10 # domain sources: A1:A5, C10:C12 @@ -2771,10 +2772,15 @@ # Position settings for text. # Corresponds to the JSON property `titleTextPosition` # @return [Google::Apis::SheetsV4::TextPosition] attr_accessor :title_text_position + # A <a href="/chart/interactive/docs/gallery/treemap">Treemap chart</a>. + # Corresponds to the JSON property `treemapChart` + # @return [Google::Apis::SheetsV4::TreemapChartSpec] + attr_accessor :treemap_chart + # A waterfall chart. # Corresponds to the JSON property `waterfallChart` # @return [Google::Apis::SheetsV4::WaterfallChartSpec] attr_accessor :waterfall_chart @@ -2799,10 +2805,11 @@ @subtitle_text_format = args[:subtitle_text_format] if args.key?(:subtitle_text_format) @subtitle_text_position = args[:subtitle_text_position] if args.key?(:subtitle_text_position) @title = args[:title] if args.key?(:title) @title_text_format = args[:title_text_format] if args.key?(:title_text_format) @title_text_position = args[:title_text_position] if args.key?(:title_text_position) + @treemap_chart = args[:treemap_chart] if args.key?(:treemap_chart) @waterfall_chart = args[:waterfall_chart] if args.key?(:waterfall_chart) end end # Clears the basic filter, if any exists on the sheet. @@ -3025,11 +3032,11 @@ # @return [String] attr_accessor :relative_date # A value the condition is based on. # The value will be parsed as if the user typed into a cell. - # Formulas are supported (and must begin with an `=`). + # Formulas are supported (and must begin with an `=` or a '+'). # Corresponds to the JSON property `userEnteredValue` # @return [String] attr_accessor :user_entered_value def initialize(**args) @@ -4822,23 +4829,25 @@ # | Grand Total | $29.12 | # +-------------+-------------------+ class HistogramRule include Google::Apis::Core::Hashable - # Optional. The maximum value at which items will be placed into buckets + # The maximum value at which items will be placed into buckets # of constant size. Values above end will be lumped into a single bucket. + # This field is optional. # Corresponds to the JSON property `end` # @return [Float] attr_accessor :end - # Required. The size of the buckets that will be created. Must be positive. + # The size of the buckets that will be created. Must be positive. # Corresponds to the JSON property `interval` # @return [Float] attr_accessor :interval - # Optional. The minimum value at which items will be placed into buckets + # The minimum value at which items will be placed into buckets # of constant size. Values below start will be lumped into a single bucket. + # This field is optional. # Corresponds to the JSON property `start` # @return [Float] attr_accessor :start def initialize(**args) @@ -7952,10 +7961,634 @@ @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type) @source = args[:source] if args.key?(:source) end end + # A color scale for a treemap chart. + class TreemapChartColorScale + include Google::Apis::Core::Hashable + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `maxValueColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :max_value_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `midValueColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :mid_value_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `minValueColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :min_value_color + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `noDataColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :no_data_color + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_value_color = args[:max_value_color] if args.key?(:max_value_color) + @mid_value_color = args[:mid_value_color] if args.key?(:mid_value_color) + @min_value_color = args[:min_value_color] if args.key?(:min_value_color) + @no_data_color = args[:no_data_color] if args.key?(:no_data_color) + end + end + + # A <a href="/chart/interactive/docs/gallery/treemap">Treemap chart</a>. + class TreemapChartSpec + include Google::Apis::Core::Hashable + + # The data included in a domain or series. + # Corresponds to the JSON property `colorData` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :color_data + + # A color scale for a treemap chart. + # Corresponds to the JSON property `colorScale` + # @return [Google::Apis::SheetsV4::TreemapChartColorScale] + attr_accessor :color_scale + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `headerColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :header_color + + # True to hide tooltips. + # Corresponds to the JSON property `hideTooltips` + # @return [Boolean] + attr_accessor :hide_tooltips + alias_method :hide_tooltips?, :hide_tooltips + + # The number of additional data levels beyond the labeled levels to be shown + # on the treemap chart. These levels are not interactive and are shown + # without their labels. Defaults to 0 if not specified. + # Corresponds to the JSON property `hintedLevels` + # @return [Fixnum] + attr_accessor :hinted_levels + + # The data included in a domain or series. + # Corresponds to the JSON property `labels` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :labels + + # The number of data levels to show on the treemap chart. These levels are + # interactive and are shown with their labels. Defaults to 2 if not + # specified. + # Corresponds to the JSON property `levels` + # @return [Fixnum] + attr_accessor :levels + + # The maximum possible data value. Cells with values greater than this will + # have the same color as cells with this value. If not specified, defaults + # to the actual maximum value from color_data, or the maximum value from + # size_data if color_data is not specified. + # Corresponds to the JSON property `maxValue` + # @return [Float] + attr_accessor :max_value + + # The minimum possible data value. Cells with values less than this will + # have the same color as cells with this value. If not specified, defaults + # to the actual minimum value from color_data, or the minimum value from + # size_data if color_data is not specified. + # Corresponds to the JSON property `minValue` + # @return [Float] + attr_accessor :min_value + + # The data included in a domain or series. + # Corresponds to the JSON property `parentLabels` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :parent_labels + + # The data included in a domain or series. + # Corresponds to the JSON property `sizeData` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :size_data + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + # Corresponds to the JSON property `textFormat` + # @return [Google::Apis::SheetsV4::TextFormat] + attr_accessor :text_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @color_data = args[:color_data] if args.key?(:color_data) + @color_scale = args[:color_scale] if args.key?(:color_scale) + @header_color = args[:header_color] if args.key?(:header_color) + @hide_tooltips = args[:hide_tooltips] if args.key?(:hide_tooltips) + @hinted_levels = args[:hinted_levels] if args.key?(:hinted_levels) + @labels = args[:labels] if args.key?(:labels) + @levels = args[:levels] if args.key?(:levels) + @max_value = args[:max_value] if args.key?(:max_value) + @min_value = args[:min_value] if args.key?(:min_value) + @parent_labels = args[:parent_labels] if args.key?(:parent_labels) + @size_data = args[:size_data] if args.key?(:size_data) + @text_format = args[:text_format] if args.key?(:text_format) + end + end + # Unmerges cells in the given range. class UnmergeCellsRequest include Google::Apis::Core::Hashable # A range on a sheet. @@ -8860,12 +9493,12 @@ # The 0-based index of a data point within the series. If # data_is_subtotal is true, the data point at this index is the # subtotal. Otherwise, the subtotal appears after the data point with # this index. A series can have multiple subtotals at arbitrary indices, # but subtotals do not affect the indices of the data points. For - # example, if a series has 3 data points, their indices will always be 0, - # 1, and 2, regardless of how many subtotals exist on the series or what - # data points they are associated with. + # example, if a series has three data points, their indices will always + # be 0, 1, and 2, regardless of how many subtotals exist on the series or + # what data points they are associated with. # Corresponds to the JSON property `subtotalIndex` # @return [Fixnum] attr_accessor :subtotal_index def initialize(**args)