Grafeas V1 Client - Class ResourceDescriptor (1.1.0)

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

Generated from protobuf message grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor

Namespace

Grafeas \ V1 \ InTotoSlsaProvenanceV1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string
↳ uri string
↳ digest array|Google\Protobuf\Internal\MapField
↳ content string
↳ download_location string
↳ media_type string
↳ annotations array|Google\Protobuf\Internal\MapField

getName

Generated from protobuf field string name = 1;

Returns
Type Description
string

setName

Generated from protobuf field string name = 1;

Parameter
Name Description
var string
Returns
Type Description
$this

getUri

Generated from protobuf field string uri = 2;

Returns
Type Description
string

setUri

Generated from protobuf field string uri = 2;

Parameter
Name Description
var string
Returns
Type Description
$this

getDigest

Generated from protobuf field map<string, string> digest = 3;

Returns
Type Description
Google\Protobuf\Internal\MapField

setDigest

Generated from protobuf field map<string, string> digest = 3;

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getContent

Generated from protobuf field bytes content = 4;

Returns
Type Description
string

setContent

Generated from protobuf field bytes content = 4;

Parameter
Name Description
var string
Returns
Type Description
$this

getDownloadLocation

Generated from protobuf field string download_location = 5;

Returns
Type Description
string

setDownloadLocation

Generated from protobuf field string download_location = 5;

Parameter
Name Description
var string
Returns
Type Description
$this

getMediaType

Generated from protobuf field string media_type = 6;

Returns
Type Description
string

setMediaType

Generated from protobuf field string media_type = 6;

Parameter
Name Description
var string
Returns
Type Description
$this

getAnnotations

Generated from protobuf field map<string, .google.protobuf.Value> annotations = 7;

Returns
Type Description
Google\Protobuf\Internal\MapField

setAnnotations

Generated from protobuf field map<string, .google.protobuf.Value> annotations = 7;

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this