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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eAttachment\u003c/code\u003e class within the Google Cloud Support v2 API, which represents a file attached to a support case.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttachment\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Support.V2\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.Support.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAttachment\u003c/code\u003e class is 1.3.0, and there are 3 prior versions, 1.2.0, 1.1.0 and 1.0.0, also available.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eAttachment\u003c/code\u003e class include \u003ccode\u003eAttachmentName\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eCreator\u003c/code\u003e, \u003ccode\u003eFilename\u003c/code\u003e, \u003ccode\u003eMimeType\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eSizeBytes\u003c/code\u003e, providing information about the attached file.\u003c/p\u003e\n"],["\u003cp\u003eThe Attachment class implements interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage, allowing it to be used to represent messages and also manage memory in a buffer.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Support v2 API - Class Attachment (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.3.0/Google.Cloud.Support.V2.Attachment)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.2.0/Google.Cloud.Support.V2.Attachment)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.1.0/Google.Cloud.Support.V2.Attachment)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.0.0/Google.Cloud.Support.V2.Attachment) \n\n public sealed class Attachment : IMessage\u003cAttachment\u003e, IEquatable\u003cAttachment\u003e, IDeepCloneable\u003cAttachment\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Support v2 API class Attachment.\n\nAn Attachment contains metadata about a file that was uploaded to a\ncase - it is NOT a file itself. That being said, the name of an Attachment\nobject can be used to download its accompanying file through the\n`media.download` endpoint.\n\nWhile attachments can be uploaded in the console at the\nsame time as a comment, they're associated on a \"case\" level, not a\n\"comment\" level. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Attachment \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Attachment](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Attachment](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Attachment](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Support.V2](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Support.V2.dll\n\nConstructors\n------------\n\n### Attachment()\n\n public Attachment()\n\n### Attachment(Attachment)\n\n public Attachment(Attachment other)\n\nProperties\n----------\n\n### AttachmentName\n\n public AttachmentName AttachmentName { get; set; }\n\n[AttachmentName](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.AttachmentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.Attachment#Google_Cloud_Support_V2_Attachment_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time at which the attachment was created.\n\n### Creator\n\n public Actor Creator { get; set; }\n\nOutput only. The user who uploaded the attachment. Note, the name and email\nwill be obfuscated if the attachment was uploaded by Google support.\n\n### Filename\n\n public string Filename { get; set; }\n\nThe filename of the attachment (e.g. `\"graph.jpg\"`).\n\n### MimeType\n\n public string MimeType { get; set; }\n\nOutput only. The MIME type of the attachment (e.g. text/plain).\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. The resource name of the attachment.\n\n### SizeBytes\n\n public long SizeBytes { get; set; }\n\nOutput only. The size of the attachment in bytes."]]