Class: Google::Apps::Card::V1::Grid::GridItem

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

Represents an item in a grid layout. Items can contain text, an image, or both text and an image.

Google Workspace Add-ons and Chat apps:

Defined Under Namespace

Modules: GridItemLayout

Instance Attribute Summary collapse

Instance Attribute Details

#id::String

A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

Returns:

  • (::String)

    A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'proto_docs/google/apps/card/v1/card.rb', line 1723

class GridItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace Add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#image::Google::Apps::Card::V1::ImageComponent

Returns The image that displays in the grid item.

Returns:



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'proto_docs/google/apps/card/v1/card.rb', line 1723

class GridItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace Add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#layout::Google::Apps::Card::V1::Grid::GridItem::GridItemLayout

Returns The layout to use for the grid item.

Returns:



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'proto_docs/google/apps/card/v1/card.rb', line 1723

class GridItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace Add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#subtitle::String

Returns The grid item's subtitle.

Returns:

  • (::String)

    The grid item's subtitle.



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'proto_docs/google/apps/card/v1/card.rb', line 1723

class GridItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace Add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end

#title::String

Returns The grid item's title.

Returns:

  • (::String)

    The grid item's title.



1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'proto_docs/google/apps/card/v1/card.rb', line 1723

class GridItem
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents the various layout options available for a grid item.
  #
  # [Google Workspace Add-ons and Chat
  # apps](https://developers.google.com/workspace/extend):
  module GridItemLayout
    # Don't use. Unspecified.
    GRID_ITEM_LAYOUT_UNSPECIFIED = 0

    # The title and subtitle are shown below the grid item's image.
    TEXT_BELOW = 1

    # The title and subtitle are shown above the grid item's image.
    TEXT_ABOVE = 2
  end
end