class Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText

A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.

Attributes

bottom_label[RW]

The formatted text label that shows below the main text. Corresponds to the JSON property `bottomLabel` @return [String]

button[RW]

A button. Can be a text button or an image button. Corresponds to the JSON property `button` @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]

end_icon[RW]

An icon displayed after the text. Corresponds to the JSON property `endIcon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]

icon[RW]

Deprecated in favor of start_icon. Corresponds to the JSON property `icon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]

on_click[RW]

Only the top and bottom label and content region are clickable. Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]

start_icon[RW]

The icon displayed in front of the text. Corresponds to the JSON property `startIcon` @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]

switch_control[RW]

A switch widget can be clicked to change its state or trigger an action. Corresponds to the JSON property `switchControl` @return [Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl]

text[RW]

Required. The main widget formatted text. See Text formatting for details. Corresponds to the JSON property `text` @return [String]

top_label[RW]

The formatted text label that shows above the main text. Corresponds to the JSON property `topLabel` @return [String]

wrap_text[RW]

The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated. Corresponds to the JSON property `wrapText` @return [Boolean]

wrap_text?[RW]

The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated. Corresponds to the JSON property `wrapText` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 1370
def update!(**args)
  @bottom_label = args[:bottom_label] if args.key?(:bottom_label)
  @button = args[:button] if args.key?(:button)
  @end_icon = args[:end_icon] if args.key?(:end_icon)
  @icon = args[:icon] if args.key?(:icon)
  @on_click = args[:on_click] if args.key?(:on_click)
  @start_icon = args[:start_icon] if args.key?(:start_icon)
  @switch_control = args[:switch_control] if args.key?(:switch_control)
  @text = args[:text] if args.key?(:text)
  @top_label = args[:top_label] if args.key?(:top_label)
  @wrap_text = args[:wrap_text] if args.key?(:wrap_text)
end