Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#image_style ⇒ String
The image's type (e.g. square border or circular border).
-
#image_url ⇒ String
The URL of the image in the card header.
-
#subtitle ⇒ String
The subtitle of the card header.
-
#title ⇒ String
The title must be specified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardHeader
constructor
A new instance of GoogleChatV1ContextualAddOnMarkupCardCardHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardHeader
Returns a new instance of GoogleChatV1ContextualAddOnMarkupCardCardHeader.
8944 8945 8946 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_style ⇒ String
The image's type (e.g. square border or circular border).
Corresponds to the JSON property imageStyle
8925 8926 8927 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8925 def image_style @image_style end |
#image_url ⇒ String
The URL of the image in the card header.
Corresponds to the JSON property imageUrl
8930 8931 8932 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8930 def image_url @image_url end |
#subtitle ⇒ String
The subtitle of the card header.
Corresponds to the JSON property subtitle
8935 8936 8937 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8935 def subtitle @subtitle end |
#title ⇒ String
The title must be specified. The header has a fixed height: if both a title
and subtitle is specified, each will take up 1 line. If only the title is
specified, it will take up both lines.
Corresponds to the JSON property title
8942 8943 8944 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8942 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8949 8950 8951 8952 8953 8954 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8949 def update!(**args) @image_style = args[:image_style] if args.key?(:image_style) @image_url = args[:image_url] if args.key?(:image_url) @subtitle = args[:subtitle] if args.key?(:subtitle) @title = args[:title] if args.key?(:title) end |