Google Apps Chat V1 Client - Class ElementsImage (0.31.0)

Reference documentation and code samples for the Google Apps Chat V1 Client class ElementsImage.

An object encapsulating different ways of representing an image.

Currently supported representations:

  • An image fetched from a URI. Additional representations might be supported in the future.

Generated from protobuf message google.chat.v1.ElementsImage

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ image_uri string

Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it.

getImageUri

Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it.

Returns
Type Description
string

hasImageUri

setImageUri

Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it.

Parameter
Name Description
var string
Returns
Type Description
$this

getImage

Returns
Type Description
string