Google Chat V1 API - Class Google::Apps::Card::V1::Chip (v0.18.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Chip.
A text, icon, or text and icon chip that users can click.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#alt_text
defalt_text()->::String- (::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. Forexample, if a chip opens a hyperlink, write: "Opens a newbrowser tab and navigates to the Google Chat developer documentation athttps://developers.google.com/workspace/chat".
#alt_text=
defalt_text=(value)->::String- value (::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. Forexample, if a chip opens a hyperlink, write: "Opens a newbrowser tab and navigates to the Google Chat developer documentation athttps://developers.google.com/workspace/chat".
- (::String) — The alternative text that's used for accessibility.
Set descriptive text that lets users know what the chip does. Forexample, if a chip opens a hyperlink, write: "Opens a newbrowser tab and navigates to the Google Chat developer documentation athttps://developers.google.com/workspace/chat".
#disabled
defdisabled()->::Boolean- (::Boolean) — Whether the chip is in an inactive state and ignores user actions.Defaults to
false.
#disabled=
defdisabled=(value)->::Boolean- value (::Boolean) — Whether the chip is in an inactive state and ignores user actions.Defaults to
false.
- (::Boolean) — Whether the chip is in an inactive state and ignores user actions.Defaults to
false.
#enabled
defenabled()->::Boolean- (::Boolean) — Whether the chip is in an active state and responds to user actions.Defaults to
true.Deprecated. Usedisabledinstead.
#enabled=
defenabled=(value)->::Boolean- value (::Boolean) — Whether the chip is in an active state and responds to user actions.Defaults to
true.Deprecated. Usedisabledinstead.
- (::Boolean) — Whether the chip is in an active state and responds to user actions.Defaults to
true.Deprecated. Usedisabledinstead.
#icon
deficon()->::Google::Apps::Card::V1::Icon- (::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appearsbefore the text.
#icon=
deficon=(value)->::Google::Apps::Card::V1::Icon- value (::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appearsbefore the text.
- (::Google::Apps::Card::V1::Icon) — The icon image. If both
iconandtextare set, then the icon appearsbefore the text.
#label
deflabel()->::String- (::String) — The text displayed inside the chip.
#label=
deflabel=(value)->::String- value (::String) — The text displayed inside the chip.
- (::String) — The text displayed inside the chip.
#on_click
defon_click()->::Google::Apps::Card::V1::OnClick- (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such asopening a hyperlink or running a custom function.
#on_click=
defon_click=(value)->::Google::Apps::Card::V1::OnClick- value (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such asopening a hyperlink or running a custom function.
- (::Google::Apps::Card::V1::OnClick) — Optional. The action to perform when a user clicks the chip, such asopening a hyperlink or running a custom function.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-16 UTC.