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.



2994
2995
2996
# File 'lib/google/apis/chat_v1/classes.rb', line 2994

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)


2992
2993
2994
# File 'lib/google/apis/chat_v1/classes.rb', line 2992

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2999
3000
3001
# File 'lib/google/apis/chat_v1/classes.rb', line 2999

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