Reference documentation and code samples for the Google Apps Chat V1 Client class ImageComponent.
Represents an image.
Google Workspace Add-ons and Chat apps :
Generated from protobuf message google.apps.card.v1.ImageComponent
Namespace
Google \ Apps \ Card \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ image_uri
string
The image URL.
↳ alt_text
string
The accessibility label for the image.
↳ crop_style
↳ border_style
getImageUri
The image URL.
string
setImageUri
The image URL.
var
string
$this
getAltText
The accessibility label for the image.
string
setAltText
The accessibility label for the image.
var
string
$this
getCropStyle
The crop style to apply to the image.
hasCropStyle
clearCropStyle
setCropStyle
The crop style to apply to the image.
$this
getBorderStyle
The border style to apply to the image.
hasBorderStyle
clearBorderStyle
setBorderStyle
The border style to apply to the image.
$this