Google Cloud Security Command Center V1 Client - Class RunAssetDiscoveryResponse (1.13.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class RunAssetDiscoveryResponse.

Response of asset discovery run

Generated from protobuf message google.cloud.securitycenter.v1.RunAssetDiscoveryResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

The state of an asset discovery run.

↳ duration Google\Protobuf\Duration

The duration between asset discovery run start and end

getState

The state of an asset discovery run.

Generated from protobuf field .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;

Returns
TypeDescription
int

setState

The state of an asset discovery run.

Generated from protobuf field .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDuration

The duration between asset discovery run start and end

Generated from protobuf field .google.protobuf.Duration duration = 2;

Returns
TypeDescription
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

The duration between asset discovery run start and end

Generated from protobuf field .google.protobuf.Duration duration = 2;

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