Grafeas V1 Client - Class SecretOccurrence (1.4.0)

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

The occurrence provides details of a secret.

Generated from protobuf message grafeas.v1.SecretOccurrence

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ kind int

Type of secret.

↳ locations array<SecretLocation>

Locations where the secret is detected.

↳ statuses array<SecretStatus>

Status of the secret.

↳ data Google\Protobuf\Any

Scan result of the secret.

↳ digest Digest

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

getKind

Type of secret.

Returns
Type Description
int

setKind

Type of secret.

Parameter
Name Description
var int
Returns
Type Description
$this

getLocations

Locations where the secret is detected.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLocations

Locations where the secret is detected.

Parameter
Name Description
var array<SecretLocation>
Returns
Type Description
$this

getStatuses

Status of the secret.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setStatuses

Status of the secret.

Parameter
Name Description
var array<SecretStatus>
Returns
Type Description
$this

getData

Scan result of the secret.

Returns
Type Description
Google\Protobuf\Any|null

hasData

clearData

setData

Scan result of the secret.

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

getDigest

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

Returns
Type Description
Digest|null

hasDigest

clearDigest

setDigest

Hash value, typically a digest for the secret data, that allows unique identification of a specific secret.

Parameter
Name Description
var Digest
Returns
Type Description
$this