Grafeas V1 Client - Class SlsaProvenanceZeroTwo (1.1.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
Name Description
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
Type Description
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder|null

hasBuilder

clearBuilder

setBuilder

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

Parameter
Name Description
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder
Returns
Type Description
$this

getBuildType

Generated from protobuf field string build_type = 2;

Returns
Type Description
string

setBuildType

Generated from protobuf field string build_type = 2;

Parameter
Name Description
var string
Returns
Type Description
$this

getInvocation

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

Returns
Type Description
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation|null

hasInvocation

clearInvocation

setInvocation

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

Parameter
Name Description
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation
Returns
Type Description
$this

getBuildConfig

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

Returns
Type Description
Google\Protobuf\Struct|null

hasBuildConfig

clearBuildConfig

setBuildConfig

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

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getMetadata

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

Returns
Type Description
Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata|null

hasMetadata

clearMetadata

setMetadata

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

Parameter
Name Description
var Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata
Returns
Type Description
$this

getMaterials

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMaterials

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

Parameter
Name Description
var array<Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>
Returns
Type Description
$this