NAME

Google::Cloud::Support::V2beta::Attachment - Compiled Protocol Buffers messages for google/cloud/support/v2beta/attachment.proto

SYNOPSIS

use Google::Cloud::Support::V2beta::Attachment;

my $msg = Google::Cloud::Support::V2beta::Attachment::Attachment->new({
    name => $name,
    create_time => $create_time,
    creator => $creator,
    filename => $filename,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Support::V2beta::Attachment::Attachment->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/support/v2beta/attachment.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Support::V2beta::Attachment::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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. Identifier. The resource name of the attachment.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->creator() / $msg->creator($value)

    Type: Message (Google::Cloud::Support::V2beta::Actor::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.

  • $msg->filename() / $msg->filename($value)

    Type: String

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

  • $msg->mime_type() / $msg->mime_type($value)

    Type: String

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

  • $msg->size_bytes() / $msg->size_bytes($value)

    Type: Int64

    Output only. The size of the attachment in bytes.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Support::V2beta::Attachment::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.