Class KeyValue
A UI element contains a key (label) and a value (content). This element can also contain some actions such as
onclick
button.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class KeyValue : IDirectResponseSchema
Properties
BottomLabel
The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
Declaration
[JsonProperty("bottomLabel")]
public virtual string BottomLabel { get; set; }
Property Value
Type | Description |
---|---|
string |
Button
A button that can be clicked to trigger an action.
Declaration
[JsonProperty("button")]
public virtual Button Button { get; set; }
Property Value
Type | Description |
---|---|
Button |
Content
The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
ContentMultiline
If the content should be multiline.
Declaration
[JsonProperty("contentMultiline")]
public virtual bool? ContentMultiline { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Icon
An enum value that's replaced by the Chat API with the corresponding icon image.
Declaration
[JsonProperty("icon")]
public virtual string Icon { get; set; }
Property Value
Type | Description |
---|---|
string |
IconUrl
The icon specified by a URL.
Declaration
[JsonProperty("iconUrl")]
public virtual string IconUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
OnClick
The onclick
action. Only the top label, bottom label, and content region are clickable.
Declaration
[JsonProperty("onClick")]
public virtual OnClick OnClick { get; set; }
Property Value
Type | Description |
---|---|
OnClick |
TopLabel
The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
Declaration
[JsonProperty("topLabel")]
public virtual string TopLabel { get; set; }
Property Value
Type | Description |
---|---|
string |