Google Cloud Ces V1 Client - Class Image (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class Image.

Represents an image input or output in the conversation.

Generated from protobuf message google.cloud.ces.v1.Image

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mime_type string

Required. The IANA standard MIME type of the source data. Supported image types includes: * * image/png * * image/jpeg * * image/webp

↳ data string

Required. Raw bytes of the image.

getMimeType

Required. The IANA standard MIME type of the source data.

Supported image types includes:

  • image/png
  • image/jpeg
  • image/webp
Returns
Type Description
string

setMimeType

Required. The IANA standard MIME type of the source data.

Supported image types includes:

  • image/png
  • image/jpeg
  • image/webp
Parameter
Name Description
var string
Returns
Type Description
$this

getData

Required. Raw bytes of the image.

Returns
Type Description
string

setData

Required. Raw bytes of the image.

Parameter
Name Description
var string
Returns
Type Description
$this