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.



2717
2718
2719
# File 'lib/google/apis/chat_v1/classes.rb', line 2717

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)


2715
2716
2717
# File 'lib/google/apis/chat_v1/classes.rb', line 2715

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2722
2723
2724
# File 'lib/google/apis/chat_v1/classes.rb', line 2722

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