Reference documentation and code samples for the Grafeas V1 Client 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>.
Generated from protobuf messagegrafeas.v1.ImageOccurrence
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.
↳ base_resource_url
string
Output only. This contains the base image URL for the derived image occurrence.
Output only. The number of layers by which this image differs from the
associated image basis.
Returns
Type
Description
int
setDistance
Output only. The number of layers by which this image differs from the
associated image basis.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getLayerInfo
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.
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."],[],[],null,["# Grafeas V1 Client - Class ImageOccurrence (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.ImageOccurrence)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.ImageOccurrence)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.ImageOccurrence)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.ImageOccurrence)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.ImageOccurrence)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.ImageOccurrence)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.ImageOccurrence)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.ImageOccurrence)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.ImageOccurrence)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.ImageOccurrence)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.ImageOccurrence) \nReference documentation and code samples for the Grafeas V1 Client 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\nGenerated from protobuf message `grafeas.v1.ImageOccurrence`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFingerprint\n\nRequired. The fingerprint of the derived image.\n\n### hasFingerprint\n\n### clearFingerprint\n\n### setFingerprint\n\nRequired. The fingerprint of the derived image.\n\n### getDistance\n\nOutput only. The number of layers by which this image differs from the\nassociated image basis.\n\n### setDistance\n\nOutput only. The number of layers by which this image differs from the\nassociated image basis.\n\n### getLayerInfo\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.\n\n### setLayerInfo\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.\n\n### getBaseResourceUrl\n\nOutput only. This contains the base image URL for the derived image\noccurrence.\n\n### setBaseResourceUrl\n\nOutput only. This contains the base image URL for the derived image\noccurrence."]]