Class: Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

One suggested value that users can enter in a text input field. Google Workspace Add-ons and Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1SuggestionItem

Returns a new instance of GoogleAppsCardV1SuggestionItem.



2756
2757
2758
# File 'lib/google/apis/chat_v1/classes.rb', line 2756

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

Instance Attribute Details

#textString

The value of a suggested input to a text input field. This is equivalent to what users enter themselves. Corresponds to the JSON property text

Returns:

  • (String)


2754
2755
2756
# File 'lib/google/apis/chat_v1/classes.rb', line 2754

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2761
2762
2763
# File 'lib/google/apis/chat_v1/classes.rb', line 2761

def update!(**args)
  @text = args[:text] if args.key?(:text)
end