Class AttackExposure (2.48.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
TypeDescription
int

EXPOSED_HIGH_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_HIGH_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

EXPOSED_LOW_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_LOW_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

EXPOSED_MEDIUM_VALUE_RESOURCES_COUNT_FIELD_NUMBER

public static final int EXPOSED_MEDIUM_VALUE_RESOURCES_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

LATEST_CALCULATION_TIME_FIELD_NUMBER

public static final int LATEST_CALCULATION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttackExposure getDefaultInstance()
Returns
TypeDescription
AttackExposure

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AttackExposure.Builder newBuilder()
Returns
TypeDescription
AttackExposure.Builder

newBuilder(AttackExposure prototype)

public static AttackExposure.Builder newBuilder(AttackExposure prototype)
Parameter
NameDescription
prototypeAttackExposure
Returns
TypeDescription
AttackExposure.Builder

parseDelimitedFrom(InputStream input)

public static AttackExposure parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttackExposure parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttackExposure parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttackExposure parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttackExposure parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttackExposure parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttackExposure parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttackExposure> parser()
Returns
TypeDescription
Parser<AttackExposure>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for attackExposureResult.

getDefaultInstanceForType()

public AttackExposure getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<AttackExposure> getParserForType()
Returns
TypeDescription
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
TypeDescription
double

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the latestCalculationTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttackExposure.Builder newBuilderForType()
Returns
TypeDescription
AttackExposure.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttackExposure.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttackExposure.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttackExposure.Builder toBuilder()
Returns
TypeDescription
AttackExposure.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException