Reference documentation and code samples for the Google Cloud Support V2 Client class Attachment.
An Attachment contains metadata about a file that was uploaded to a
case - it is NOT a file itself. That being said, the name of an Attachment
object can be used to download its accompanying file through the media.download
endpoint.
While attachments can be uploaded in the console at the same time as a comment, they're associated on a "case" level, not a "comment" level.
Generated from protobuf message google.cloud.support.v2.Attachment
Namespace
Google \ Cloud \ Support \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The resource name of the attachment.
↳ create_time
↳ creator
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. Identifier. The resource name of the attachment.
string
setName
Output only. Identifier. The resource name of the attachment.
var
string
$this
getCreateTime
Output only. The time at which the attachment was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the attachment was created.
$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.
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.
$this
getFilename
The filename of the attachment (e.g. "graph.jpg"
).
string
setFilename
The filename of the attachment (e.g. "graph.jpg"
).
var
string
$this
getMimeType
Output only. The MIME type of the attachment (e.g. text/plain).
string
setMimeType
Output only. The MIME type of the attachment (e.g. text/plain).
var
string
$this
getSizeBytes
Output only. The size of the attachment in bytes.
int|string
setSizeBytes
Output only. The size of the attachment in bytes.
var
int|string
$this