Reference documentation and code samples for the Grafeas V1 Client class SlsaRecipe.
Steps taken to build the artifact.
For a TaskRun, typically each container corresponds to one step in the
recipe.
Generated from protobuf messagegrafeas.v1.SlsaProvenance.SlsaRecipe
Namespace
Grafeas \ V1 \ SlsaProvenance
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ type
string
URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
↳ defined_in_material
int|string
Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.
↳ entry_point
string
String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.
Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.
Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.
getType
URI indicating what type of recipe was performed. It determines the
meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
materials.
Returns
Type
Description
string
setType
URI indicating what type of recipe was performed. It determines the
meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
materials.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDefinedInMaterial
Index in materials containing the recipe steps that are not implied by
recipe.type. For example, if the recipe type were "make", then this would
point to the source containing the Makefile, not the make program itself.
Set to -1 if the recipe doesn't come from a material, as zero is default
unset value for int64.
Returns
Type
Description
int|string
setDefinedInMaterial
Index in materials containing the recipe steps that are not implied by
recipe.type. For example, if the recipe type were "make", then this would
point to the source containing the Makefile, not the make program itself.
Set to -1 if the recipe doesn't come from a material, as zero is default
unset value for int64.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getEntryPoint
String identifying the entry point into the build.
This is often a path to a configuration file and/or a target label within
that file. The syntax and meaning are defined by recipe.type. For
example, if the recipe type were "make", then this would reference the
directory in which to run make as well as which target to use.
Returns
Type
Description
string
setEntryPoint
String identifying the entry point into the build.
This is often a path to a configuration file and/or a target label within
that file. The syntax and meaning are defined by recipe.type. For
example, if the recipe type were "make", then this would reference the
directory in which to run make as well as which target to use.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getArguments
Collection of all external inputs that influenced the build on top of
recipe.definedInMaterial and recipe.entryPoint. For example, if the
recipe type were "make", then this might be the flags passed to make
aside from the target, which is captured in recipe.entryPoint. Depending
on the recipe Type, the structure may be different.
Collection of all external inputs that influenced the build on top of
recipe.definedInMaterial and recipe.entryPoint. For example, if the
recipe type were "make", then this might be the flags passed to make
aside from the target, which is captured in recipe.entryPoint. Depending
on the recipe Type, the structure may be different.
Any other builder-controlled inputs necessary for correctly evaluating
the recipe. Usually only needed for reproducing the build but not
evaluated as part of policy. Depending on the recipe Type, the structure
may be different.
Any other builder-controlled inputs necessary for correctly evaluating
the recipe. Usually only needed for reproducing the build but not
evaluated as part of policy. Depending on the recipe Type, the structure
may be different.
[[["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 SlsaRecipe (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.SlsaProvenance.SlsaRecipe)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.SlsaProvenance.SlsaRecipe)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.SlsaProvenance.SlsaRecipe)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.SlsaProvenance.SlsaRecipe)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.SlsaProvenance.SlsaRecipe)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.SlsaProvenance.SlsaRecipe)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.SlsaProvenance.SlsaRecipe)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.SlsaProvenance.SlsaRecipe)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.SlsaProvenance.SlsaRecipe)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.SlsaProvenance.SlsaRecipe)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.SlsaProvenance.SlsaRecipe) \nReference documentation and code samples for the Grafeas V1 Client class SlsaRecipe.\n\nSteps taken to build the artifact.\n\nFor a TaskRun, typically each container corresponds to one step in the\nrecipe.\n\nGenerated from protobuf message `grafeas.v1.SlsaProvenance.SlsaRecipe`\n\nNamespace\n---------\n\nGrafeas \\\\ V1 \\\\ SlsaProvenance\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nURI indicating what type of recipe was performed. It determines the\nmeaning of recipe.entryPoint, recipe.arguments, recipe.environment, and\nmaterials.\n\n### setType\n\nURI indicating what type of recipe was performed. It determines the\nmeaning of recipe.entryPoint, recipe.arguments, recipe.environment, and\nmaterials.\n\n### getDefinedInMaterial\n\nIndex in materials containing the recipe steps that are not implied by\nrecipe.type. For example, if the recipe type were \"make\", then this would\npoint to the source containing the Makefile, not the make program itself.\n\nSet to -1 if the recipe doesn't come from a material, as zero is default\nunset value for int64.\n\n### setDefinedInMaterial\n\nIndex in materials containing the recipe steps that are not implied by\nrecipe.type. For example, if the recipe type were \"make\", then this would\npoint to the source containing the Makefile, not the make program itself.\n\nSet to -1 if the recipe doesn't come from a material, as zero is default\nunset value for int64.\n\n### getEntryPoint\n\nString identifying the entry point into the build.\n\nThis is often a path to a configuration file and/or a target label within\nthat file. The syntax and meaning are defined by recipe.type. For\nexample, if the recipe type were \"make\", then this would reference the\ndirectory in which to run make as well as which target to use.\n\n### setEntryPoint\n\nString identifying the entry point into the build.\n\nThis is often a path to a configuration file and/or a target label within\nthat file. The syntax and meaning are defined by recipe.type. For\nexample, if the recipe type were \"make\", then this would reference the\ndirectory in which to run make as well as which target to use.\n\n### getArguments\n\nCollection of all external inputs that influenced the build on top of\nrecipe.definedInMaterial and recipe.entryPoint. For example, if the\nrecipe type were \"make\", then this might be the flags passed to make\naside from the target, which is captured in recipe.entryPoint. Depending\non the recipe Type, the structure may be different.\n\n### hasArguments\n\n### clearArguments\n\n### setArguments\n\nCollection of all external inputs that influenced the build on top of\nrecipe.definedInMaterial and recipe.entryPoint. For example, if the\nrecipe type were \"make\", then this might be the flags passed to make\naside from the target, which is captured in recipe.entryPoint. Depending\non the recipe Type, the structure may be different.\n\n### getEnvironment\n\nAny other builder-controlled inputs necessary for correctly evaluating\nthe recipe. Usually only needed for reproducing the build but not\nevaluated as part of policy. Depending on the recipe Type, the structure\nmay be different.\n\n### hasEnvironment\n\n### clearEnvironment\n\n### setEnvironment\n\nAny other builder-controlled inputs necessary for correctly evaluating\nthe recipe. Usually only needed for reproducing the build but not\nevaluated as part of policy. Depending on the recipe Type, the structure\nmay be different."]]