Grafeas V1 Client - Class SlsaProvenanceZeroTwo (0.9.0)

Reference documentation and code samples for the Grafeas V1 Client class SlsaProvenanceZeroTwo.

See full explanation of fields at slsa.dev/provenance/v0.2.

Generated from protobuf message grafeas.v1.SlsaProvenanceZeroTwo

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ builder Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder
↳ build_type string
↳ invocation Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation
↳ build_config Google\Protobuf\Struct
↳ metadata Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata
↳ materials array<Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>

getBuilder

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
TypeDescription
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder|null

hasBuilder

clearBuilder

setBuilder

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Parameter
NameDescription
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder
Returns
TypeDescription
$this

getBuildType

Generated from protobuf field string build_type = 2;

Returns
TypeDescription
string

setBuildType

Generated from protobuf field string build_type = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInvocation

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
TypeDescription
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation|null

hasInvocation

clearInvocation

setInvocation

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Parameter
NameDescription
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation
Returns
TypeDescription
$this

getBuildConfig

Generated from protobuf field .google.protobuf.Struct build_config = 4;

Returns
TypeDescription
Google\Protobuf\Struct|null

hasBuildConfig

clearBuildConfig

setBuildConfig

Generated from protobuf field .google.protobuf.Struct build_config = 4;

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getMetadata

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
TypeDescription
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata|null

hasMetadata

clearMetadata

setMetadata

Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Parameter
NameDescription
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata
Returns
TypeDescription
$this

getMaterials

Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMaterials

Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
NameDescription
var array<Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>
Returns
TypeDescription
$this