final case class Icon(icons: Icons = com.google.apps.card.v1.card.Icon.Icons.Empty, altText: String = "", imageType: ImageType = com.google.apps.card.v1.card.Widget.ImageType.SQUARE, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Icon] with Product with Serializable
An icon displayed in a widget on a card. For an example in Google Chat apps, see [Add an icon](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_icon).
Supports [built-in](https://developers.google.com/workspace/chat/format-messages#builtinicons) and [custom](https://developers.google.com/workspace/chat/format-messages#customicons) icons.
[Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
- altText
Optional. A description of the icon used for accessibility. If unspecified, the default value
Button
is provided. As a best practice, you should set a helpful description for what the icon displays, and if applicable, what it does. For example,A user's account portrait
, orOpens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat
. If the icon is set in a [Button
][google.apps.card.v1.Button], thealtText
appears as helper text when the user hovers over the button. However, if the button also setstext
, the icon'saltText
is ignored.- imageType
The crop style applied to the image. In some cases, applying a
CIRCLE
crop causes the image to be drawn larger than a built-in icon.
- Annotations
- @SerialVersionUID()
- Source
- Icon.scala
- Alphabetic
- By Inheritance
- Icon
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Icon(icons: Icons = com.google.apps.card.v1.card.Icon.Icons.Empty, altText: String = "", imageType: ImageType = com.google.apps.card.v1.card.Widget.ImageType.SQUARE, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- altText
Optional. A description of the icon used for accessibility. If unspecified, the default value
Button
is provided. As a best practice, you should set a helpful description for what the icon displays, and if applicable, what it does. For example,A user's account portrait
, orOpens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat
. If the icon is set in a [Button
][google.apps.card.v1.Button], thealtText
appears as helper text when the user hovers over the button. However, if the button also setstext
, the icon'saltText
is ignored.- imageType
The crop style applied to the image. In some cases, applying a
CIRCLE
crop causes the image to be drawn larger than a built-in icon.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val altText: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearIcons: Icon
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: Icon.type
- Definition Classes
- Icon → GeneratedMessage
- def discardUnknownFields: Icon
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- Icon → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Icon → GeneratedMessage
- def getIconUrl: String
- def getKnownIcon: String
- def getMaterialIcon: MaterialIcon
- val icons: Icons
- val imageType: ImageType
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- Icon → GeneratedMessage
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- Icon → GeneratedMessage
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[Icon, Icon]) => Mutation[Icon]*): Icon
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAltText(__v: String): Icon
- def withIconUrl(__v: String): Icon
- def withIcons(__v: Icons): Icon
- def withImageType(__v: ImageType): Icon
- def withKnownIcon(__v: String): Icon
- def withMaterialIcon(__v: MaterialIcon): Icon
- def withUnknownFields(__v: UnknownFieldSet): Icon
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Icon → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage