1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Attachment : IMessage<Attachment>, IEquatable<Attachment>, IDeepCloneable<Attachment>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Support v2 API 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Attachment

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Attachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Support.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.md.txt)

## Assembly

Google.Cloud.Support.V2.dll

## Constructors

### Attachment()

    public Attachment()

### Attachment(Attachment)

    public Attachment(Attachment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Attachment` |

## Properties

### AttachmentName

    public AttachmentName AttachmentName { get; set; }

[AttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.AttachmentName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment.md.txt#Google_Cloud_Support_V2_Attachment_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AttachmentName` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Creator

    public Actor Creator { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Actor` |   |

### Filename

    public string Filename { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### MimeType

    public string MimeType { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SizeBytes

    public long SizeBytes { get; set; }

Output only. The size of the attachment in bytes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |