2.15.0 (latest) 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Artifact Registry v1 API class File.

Files store content that is potentially associated with Packages or Versions.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[File](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.File.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[File](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.File.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[File](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.File.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.ArtifactRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.md.txt)

## Assembly

Google.Cloud.ArtifactRegistry.V1.dll

## Constructors

### File()

    public File()

### File(File)

    public File(File other)

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

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Client specified annotations.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the File was created.

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

### FetchTime

    public Timestamp FetchTime { get; set; }

Output only. The time when the last attempt to refresh the file's data was
made. Only set when the repository is remote.

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

### FileName

    public FileName FileName { get; set; }

[FileName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.FileName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.File.md.txt#Google_Cloud_ArtifactRegistry_V1_File_Name) resource name property.

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

### Hashes

    public RepeatedField<Hash> Hashes { get; }

The hashes of the file content.

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

### Name

    public string Name { get; set; }

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.

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

### Owner

    public string Owner { get; set; }

The name of the Package or Version that owns this file, if any.

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

### SizeBytes

    public long SizeBytes { get; set; }

The size of the File in bytes.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the File was last updated.

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