The name of the file, for example:
"projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
If the file ID part contains slashes, they are escaped.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eFile\u003c/code\u003e class within the Artifact Registry v1beta2 API, which is used to store content potentially associated with Packages or Versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFile\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in handling message data and object manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFile\u003c/code\u003e class contains properties such as \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eFileName\u003c/code\u003e, \u003ccode\u003eHashes\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOwner\u003c/code\u003e, \u003ccode\u003eSizeBytes\u003c/code\u003e, and \u003ccode\u003eUpdateTime\u003c/code\u003e, allowing access to various attributes of the file.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this \u003ccode\u003eFile\u003c/code\u003e class is \u003ccode\u003e2.0.0-beta05\u003c/code\u003e, and it belongs to the \u003ccode\u003eGoogle.Cloud.ArtifactRegistry.V1Beta2\u003c/code\u003e namespace, with its implementation found in the \u003ccode\u003eGoogle.Cloud.ArtifactRegistry.V1Beta2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1beta2 API - Class File (2.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.File)\n- [2.0.0-beta04](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/2.0.0-beta04/Google.Cloud.ArtifactRegistry.V1Beta2.File)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/1.0.0-beta06/Google.Cloud.ArtifactRegistry.V1Beta2.File) \n\n public sealed class File : IMessage\u003cFile\u003e, IEquatable\u003cFile\u003e, IDeepCloneable\u003cFile\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Artifact Registry v1beta2 API class File.\n\nFiles store content that is potentially associated with Packages or Versions. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e File \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[File](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.File), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[File](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.File), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[File](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.File), [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.ArtifactRegistry.V1Beta2](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2)\n\nAssembly\n--------\n\nGoogle.Cloud.ArtifactRegistry.V1Beta2.dll\n\nConstructors\n------------\n\n### File()\n\n public File()\n\n### File(File)\n\n public File(File other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nThe time when the File was created.\n\n### FileName\n\n public FileName FileName { get; set; }\n\n[FileName](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.FileName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.File#Google_Cloud_ArtifactRegistry_V1Beta2_File_Name) resource name property.\n\n### Hashes\n\n public RepeatedField\u003cHash\u003e Hashes { get; }\n\nThe hashes of the file content.\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the file, for example:\n\"projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt\".\nIf the file ID part contains slashes, they are escaped.\n\n### Owner\n\n public string Owner { get; set; }\n\nThe name of the Package or Version that owns this file, if any.\n\n### SizeBytes\n\n public long SizeBytes { get; set; }\n\nThe size of the File in bytes.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nThe time when the File was last updated."]]