Class AttackExposure (2.55.0)

public final class AttackExposure extends GeneratedMessageV3 implements AttackExposureOrBuilder

An attack exposure contains the results of an attack path simulation run.

Protobuf type google.cloud.securitycenter.v2.AttackExposure

Static Fields

ATTACK_EXPOSURE_RESULT_FIELD_NUMBER

public static final int ATTACK_EXPOSURE_RESULT_FIELD_NUMBER
Field Value
Type Description
int

EXPOSED_HIGH_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_HIGH_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
Type Description
int

EXPOSED_LOW_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_LOW_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
Type Description
int

EXPOSED_MEDIUM_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_MEDIUM_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
Type Description
int

LATEST_CALCULATION_TIME_FIELD_NUMBER

public static final int LATEST_CALCULATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AttackExposure getDefaultInstance()
Returns
Type Description
AttackExposure

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AttackExposure.Builder newBuilder()
Returns
Type Description
AttackExposure.Builder

newBuilder(AttackExposure prototype)

public static AttackExposure.Builder newBuilder(AttackExposure prototype)
Parameter
Name Description
prototype AttackExposure
Returns
Type Description
AttackExposure.Builder

parseDelimitedFrom(InputStream input)

public static AttackExposure parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AttackExposure parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttackExposure parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttackExposure parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AttackExposure parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AttackExposure parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AttackExposure> parser()
Returns
Type Description
Parser<AttackExposure>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttackExposureResult()

public String getAttackExposureResult()

The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/simulations/456/attackExposureResults/789

string attack_exposure_result = 3;

Returns
Type Description
String

The attackExposureResult.

getAttackExposureResultBytes()

public ByteString getAttackExposureResultBytes()

The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/simulations/456/attackExposureResults/789

string attack_exposure_result = 3;

Returns
Type Description
ByteString

The bytes for attackExposureResult.

getDefaultInstanceForType()

public AttackExposure getDefaultInstanceForType()
Returns
Type Description
AttackExposure

getExposedHighValueResourcesCount()

public int getExposedHighValueResourcesCount()

The number of high value resources that are exposed as a result of this finding.

int32 exposed_high_value_resources_count = 5;

Returns
Type Description
int

The exposedHighValueResourcesCount.

getExposedLowValueResourcesCount()

public int getExposedLowValueResourcesCount()

The number of high value resources that are exposed as a result of this finding.

int32 exposed_low_value_resources_count = 7;

Returns
Type Description
int

The exposedLowValueResourcesCount.

getExposedMediumValueResourcesCount()

public int getExposedMediumValueResourcesCount()

The number of medium value resources that are exposed as a result of this finding.

int32 exposed_medium_value_resources_count = 6;

Returns
Type Description
int

The exposedMediumValueResourcesCount.

getLatestCalculationTime()

public Timestamp getLatestCalculationTime()

The most recent time the attack exposure was updated on this finding.

.google.protobuf.Timestamp latest_calculation_time = 2;

Returns
Type Description
Timestamp

The latestCalculationTime.

getLatestCalculationTimeOrBuilder()

public TimestampOrBuilder getLatestCalculationTimeOrBuilder()

The most recent time the attack exposure was updated on this finding.

.google.protobuf.Timestamp latest_calculation_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<AttackExposure> getParserForType()
Returns
Type Description
Parser<AttackExposure>
Overrides

getScore()

public double getScore()

A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate.

double score = 1;

Returns
Type Description
double

The score.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AttackExposure.State getState()

Output only. What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.

.google.cloud.securitycenter.v2.AttackExposure.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AttackExposure.State

The state.

getStateValue()

public int getStateValue()

Output only. What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.

.google.cloud.securitycenter.v2.AttackExposure.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasLatestCalculationTime()

public boolean hasLatestCalculationTime()

The most recent time the attack exposure was updated on this finding.

.google.protobuf.Timestamp latest_calculation_time = 2;

Returns
Type Description
boolean

Whether the latestCalculationTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AttackExposure.Builder newBuilderForType()
Returns
Type Description
AttackExposure.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttackExposure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AttackExposure.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AttackExposure.Builder toBuilder()
Returns
Type Description
AttackExposure.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException