public sealed class ImageOccurrence : IMessage<ImageOccurrence>, IEquatable<ImageOccurrence>, IDeepCloneable<ImageOccurrence>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class ImageOccurrence.
Details of the derived image portion of the DockerImage relationship. This
image would be produced from a Dockerfile with FROM <DockerImage.Basis in
attached Note>.
This contains layer-specific metadata, if populated it has length
"distance" and is ordered with [distance] being the layer immediately
following the base image and [1] being the final layer.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis document provides reference documentation and code samples for the \u003ccode\u003eImageOccurrence\u003c/code\u003e class within the Grafeas v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eImageOccurrence\u003c/code\u003e represents details of a derived image, specifically one produced from a Dockerfile using \u003ccode\u003eFROM <DockerImage.Basis>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImageOccurrence\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eImageOccurrence\u003c/code\u003e include \u003ccode\u003eBaseResourceUrl\u003c/code\u003e, \u003ccode\u003eDistance\u003c/code\u003e, \u003ccode\u003eFingerprint\u003c/code\u003e, and \u003ccode\u003eLayerInfo\u003c/code\u003e, providing information about the derived image's origin, layers, and uniqueness.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is for version 3.7.0 of the API, with previous versions dating back to 2.2.0 also available for reference.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class ImageOccurrence (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ImageOccurrence)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.ImageOccurrence)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.ImageOccurrence)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.ImageOccurrence)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.ImageOccurrence)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.ImageOccurrence)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.ImageOccurrence)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.ImageOccurrence)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.ImageOccurrence)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.ImageOccurrence)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.ImageOccurrence)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.ImageOccurrence)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.ImageOccurrence) \n\n public sealed class ImageOccurrence : IMessage\u003cImageOccurrence\u003e, IEquatable\u003cImageOccurrence\u003e, IDeepCloneable\u003cImageOccurrence\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class ImageOccurrence.\n\nDetails of the derived image portion of the DockerImage relationship. This\nimage would be produced from a Dockerfile with FROM \\\u003cDockerImage.Basis in\nattached Note\\\u003e. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ImageOccurrence \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ImageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ImageOccurrence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ImageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ImageOccurrence), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ImageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ImageOccurrence), [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[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### ImageOccurrence()\n\n public ImageOccurrence()\n\n### ImageOccurrence(ImageOccurrence)\n\n public ImageOccurrence(ImageOccurrence other)\n\nProperties\n----------\n\n### BaseResourceUrl\n\n public string BaseResourceUrl { get; set; }\n\nOutput only. This contains the base image URL for the derived image\noccurrence.\n\n### Distance\n\n public int Distance { get; set; }\n\nOutput only. The number of layers by which this image differs from the\nassociated image basis.\n\n### Fingerprint\n\n public Fingerprint Fingerprint { get; set; }\n\nRequired. The fingerprint of the derived image.\n\n### LayerInfo\n\n public RepeatedField\u003cLayer\u003e LayerInfo { get; }\n\nThis contains layer-specific metadata, if populated it has length\n\"distance\" and is ordered with \\[distance\\] being the layer immediately\nfollowing the base image and \\[1\\] being the final layer."]]