Show / Hide Table of Contents

Class WidgetMarkup.Types.KeyValue

A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick button.

Inheritance
object
WidgetMarkup.Types.KeyValue
Implements
IMessage<WidgetMarkup.Types.KeyValue>
IEquatable<WidgetMarkup.Types.KeyValue>
IDeepCloneable<WidgetMarkup.Types.KeyValue>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class WidgetMarkup.Types.KeyValue : IMessage<WidgetMarkup.Types.KeyValue>, IEquatable<WidgetMarkup.Types.KeyValue>, IDeepCloneable<WidgetMarkup.Types.KeyValue>, IBufferMessage, IMessage

Constructors

KeyValue()

Declaration
public KeyValue()

KeyValue(KeyValue)

Declaration
public KeyValue(WidgetMarkup.Types.KeyValue other)
Parameters
Type Name Description
WidgetMarkup.Types.KeyValue other

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
public string BottomLabel { get; set; }
Property Value
Type Description
string

Button

A button that can be clicked to trigger an action.

Declaration
public WidgetMarkup.Types.Button Button { get; set; }
Property Value
Type Description
WidgetMarkup.Types.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
public string Content { get; set; }
Property Value
Type Description
string

ContentMultiline

If the content should be multiline.

Declaration
public bool ContentMultiline { get; set; }
Property Value
Type Description
bool

ControlCase

Declaration
public WidgetMarkup.Types.KeyValue.ControlOneofCase ControlCase { get; }
Property Value
Type Description
WidgetMarkup.Types.KeyValue.ControlOneofCase

HasIcon

Gets whether the "icon" field is set

Declaration
public bool HasIcon { get; }
Property Value
Type Description
bool

HasIconUrl

Gets whether the "icon_url" field is set

Declaration
public bool HasIconUrl { get; }
Property Value
Type Description
bool

Icon

An enum value that's replaced by the Chat API with the corresponding icon image.

Declaration
public WidgetMarkup.Types.Icon Icon { get; set; }
Property Value
Type Description
WidgetMarkup.Types.Icon

IconUrl

The icon specified by a URL.

Declaration
public string IconUrl { get; set; }
Property Value
Type Description
string

IconsCase

Declaration
public WidgetMarkup.Types.KeyValue.IconsOneofCase IconsCase { get; }
Property Value
Type Description
WidgetMarkup.Types.KeyValue.IconsOneofCase

OnClick

The onclick action. Only the top label, bottom label, and content region are clickable.

Declaration
public WidgetMarkup.Types.OnClick OnClick { get; set; }
Property Value
Type Description
WidgetMarkup.Types.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
public string TopLabel { get; set; }
Property Value
Type Description
string
In this article
Back to top Generated by DocFX