Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardHeader

Returns a new instance of GoogleChatV1ContextualAddOnMarkupCardCardHeader.



8477
8478
8479
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8477

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_styleString

The image's type (e.g. square border or circular border). Corresponds to the JSON property imageStyle

Returns:

  • (String)


8458
8459
8460
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8458

def image_style
  @image_style
end

#image_urlString

The URL of the image in the card header. Corresponds to the JSON property imageUrl

Returns:

  • (String)


8463
8464
8465
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8463

def image_url
  @image_url
end

#subtitleString

The subtitle of the card header. Corresponds to the JSON property subtitle

Returns:

  • (String)


8468
8469
8470
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8468

def subtitle
  @subtitle
end

#titleString

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

Returns:

  • (String)


8475
8476
8477
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8475

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8482
8483
8484
8485
8486
8487
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8482

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