Google Cloud Support V2 Client - Class Attachment (0.1.2)

Reference documentation and code samples for the Google Cloud Support V2 Client class Attachment.

Represents a file attached to a support case.

Generated from protobuf message google.cloud.support.v2.Attachment

Namespace

Google \ Cloud \ Support \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the attachment.

↳ create_time Google\Protobuf\Timestamp

Output only. The time at which the attachment was created.

↳ creator Google\Cloud\Support\V2\Actor

Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

↳ filename string

The filename of the attachment (e.g. "graph.jpg").

↳ mime_type string

Output only. The MIME type of the attachment (e.g. text/plain).

↳ size_bytes int|string

Output only. The size of the attachment in bytes.

getName

Output only. The resource name of the attachment.

Returns
TypeDescription
string

setName

Output only. The resource name of the attachment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time at which the attachment was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which the attachment was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCreator

Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

Returns
TypeDescription
Google\Cloud\Support\V2\Actor|null

hasCreator

clearCreator

setCreator

Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.

Parameter
NameDescription
var Google\Cloud\Support\V2\Actor
Returns
TypeDescription
$this

getFilename

The filename of the attachment (e.g. "graph.jpg").

Returns
TypeDescription
string

setFilename

The filename of the attachment (e.g. "graph.jpg").

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMimeType

Output only. The MIME type of the attachment (e.g. text/plain).

Returns
TypeDescription
string

setMimeType

Output only. The MIME type of the attachment (e.g. text/plain).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSizeBytes

Output only. The size of the attachment in bytes.

Returns
TypeDescription
int|string

setSizeBytes

Output only. The size of the attachment in bytes.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this