Google Apps Chat V1 Client - Class AttachmentDataRef (0.6.1)

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

A reference to the attachment data.

Generated from protobuf message google.chat.v1.AttachmentDataRef

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_name string

The resource name of the attachment data. This field is used with the media API to download the attachment data.

↳ attachment_upload_token string

Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.

getResourceName

The resource name of the attachment data. This field is used with the media API to download the attachment data.

Returns
Type Description
string

setResourceName

The resource name of the attachment data. This field is used with the media API to download the attachment data.

Parameter
Name Description
var string
Returns
Type Description
$this

getAttachmentUploadToken

Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.

Returns
Type Description
string

setAttachmentUploadToken

Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.

Parameter
Name Description
var string
Returns
Type Description
$this