All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.sheets.v4.model.SortSpec.html Maven / Gradle / Ivy

There is a newer version: v4-rev20240423-2.0.0
Show newest version






SortSpec (Google Sheets API v4-rev20240312-2.0.0)












com.google.api.services.sheets.v4.model

Class SortSpec

    • Constructor Detail

      • SortSpec

        public SortSpec()
    • Method Detail

      • getBackgroundColor

        public Color getBackgroundColor()
        The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color. Deprecated: Use background_color_style.
        Returns:
        value or null for none
      • setBackgroundColor

        public SortSpec setBackgroundColor(Color backgroundColor)
        The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color. Deprecated: Use background_color_style.
        Parameters:
        backgroundColor - backgroundColor or null for none
      • getBackgroundColorStyle

        public ColorStyle getBackgroundColorStyle()
        The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color, and must be an RGB-type color. If background_color is also set, this field takes precedence.
        Returns:
        value or null for none
      • setBackgroundColorStyle

        public SortSpec setBackgroundColorStyle(ColorStyle backgroundColorStyle)
        The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color, and must be an RGB-type color. If background_color is also set, this field takes precedence.
        Parameters:
        backgroundColorStyle - backgroundColorStyle or null for none
      • getDataSourceColumnReference

        public DataSourceColumnReference getDataSourceColumnReference()
        Reference to a data source column.
        Returns:
        value or null for none
      • setDataSourceColumnReference

        public SortSpec setDataSourceColumnReference(DataSourceColumnReference dataSourceColumnReference)
        Reference to a data source column.
        Parameters:
        dataSourceColumnReference - dataSourceColumnReference or null for none
      • getDimensionIndex

        public Integer getDimensionIndex()
        The dimension the sort should be applied to.
        Returns:
        value or null for none
      • setDimensionIndex

        public SortSpec setDimensionIndex(Integer dimensionIndex)
        The dimension the sort should be applied to.
        Parameters:
        dimensionIndex - dimensionIndex or null for none
      • getForegroundColor

        public Color getForegroundColor()
        The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color. Deprecated: Use foreground_color_style.
        Returns:
        value or null for none
      • setForegroundColor

        public SortSpec setForegroundColor(Color foregroundColor)
        The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color. Deprecated: Use foreground_color_style.
        Parameters:
        foregroundColor - foregroundColor or null for none
      • getForegroundColorStyle

        public ColorStyle getForegroundColorStyle()
        The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color, and must be an RGB-type color. If foreground_color is also set, this field takes precedence.
        Returns:
        value or null for none
      • setForegroundColorStyle

        public SortSpec setForegroundColorStyle(ColorStyle foregroundColorStyle)
        The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color, and must be an RGB-type color. If foreground_color is also set, this field takes precedence.
        Parameters:
        foregroundColorStyle - foregroundColorStyle or null for none
      • getSortOrder

        public String getSortOrder()
        The order data should be sorted.
        Returns:
        value or null for none
      • setSortOrder

        public SortSpec setSortOrder(String sortOrder)
        The order data should be sorted.
        Parameters:
        sortOrder - sortOrder or null for none
      • set

        public SortSpec set(String fieldName,
                            Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public SortSpec clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy