Class AttackExposure.Builder (2.57.0)

public static final class AttackExposure.Builder extends GeneratedMessageV3.Builder<AttackExposure.Builder> implements AttackExposureOrBuilder

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

Protobuf type google.cloud.securitycenter.v2.AttackExposure

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttackExposure.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttackExposure.Builder
Overrides

build()

public AttackExposure build()
Returns
Type Description
AttackExposure

buildPartial()

public AttackExposure buildPartial()
Returns
Type Description
AttackExposure

clear()

public AttackExposure.Builder clear()
Returns
Type Description
AttackExposure.Builder
Overrides

clearAttackExposureResult()

public AttackExposure.Builder clearAttackExposureResult()

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
AttackExposure.Builder

This builder for chaining.

clearExposedHighValueResourcesCount()

public AttackExposure.Builder clearExposedHighValueResourcesCount()

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
AttackExposure.Builder

This builder for chaining.

clearExposedLowValueResourcesCount()

public AttackExposure.Builder clearExposedLowValueResourcesCount()

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
AttackExposure.Builder

This builder for chaining.

clearExposedMediumValueResourcesCount()

public AttackExposure.Builder clearExposedMediumValueResourcesCount()

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
AttackExposure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttackExposure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttackExposure.Builder
Overrides

clearLatestCalculationTime()

public AttackExposure.Builder clearLatestCalculationTime()

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

.google.protobuf.Timestamp latest_calculation_time = 2;

Returns
Type Description
AttackExposure.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AttackExposure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttackExposure.Builder
Overrides

clearScore()

public AttackExposure.Builder clearScore()

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
AttackExposure.Builder

This builder for chaining.

clearState()

public AttackExposure.Builder clearState()

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.Builder

This builder for chaining.

clone()

public AttackExposure.Builder clone()
Returns
Type Description
AttackExposure.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getLatestCalculationTimeBuilder()

public Timestamp.Builder getLatestCalculationTimeBuilder()

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

.google.protobuf.Timestamp latest_calculation_time = 2;

Returns
Type Description
Builder

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttackExposure other)

public AttackExposure.Builder mergeFrom(AttackExposure other)
Parameter
Name Description
other AttackExposure
Returns
Type Description
AttackExposure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttackExposure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttackExposure.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttackExposure.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttackExposure.Builder
Overrides

mergeLatestCalculationTime(Timestamp value)

public AttackExposure.Builder mergeLatestCalculationTime(Timestamp value)

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

.google.protobuf.Timestamp latest_calculation_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AttackExposure.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttackExposure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttackExposure.Builder
Overrides

setAttackExposureResult(String value)

public AttackExposure.Builder setAttackExposureResult(String value)

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;

Parameter
Name Description
value String

The attackExposureResult to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setAttackExposureResultBytes(ByteString value)

public AttackExposure.Builder setAttackExposureResultBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for attackExposureResult to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setExposedHighValueResourcesCount(int value)

public AttackExposure.Builder setExposedHighValueResourcesCount(int value)

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

int32 exposed_high_value_resources_count = 5;

Parameter
Name Description
value int

The exposedHighValueResourcesCount to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setExposedLowValueResourcesCount(int value)

public AttackExposure.Builder setExposedLowValueResourcesCount(int value)

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

int32 exposed_low_value_resources_count = 7;

Parameter
Name Description
value int

The exposedLowValueResourcesCount to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setExposedMediumValueResourcesCount(int value)

public AttackExposure.Builder setExposedMediumValueResourcesCount(int value)

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

int32 exposed_medium_value_resources_count = 6;

Parameter
Name Description
value int

The exposedMediumValueResourcesCount to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttackExposure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttackExposure.Builder
Overrides

setLatestCalculationTime(Timestamp value)

public AttackExposure.Builder setLatestCalculationTime(Timestamp value)

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

.google.protobuf.Timestamp latest_calculation_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AttackExposure.Builder

setLatestCalculationTime(Timestamp.Builder builderForValue)

public AttackExposure.Builder setLatestCalculationTime(Timestamp.Builder builderForValue)

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

.google.protobuf.Timestamp latest_calculation_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AttackExposure.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttackExposure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttackExposure.Builder
Overrides

setScore(double value)

public AttackExposure.Builder setScore(double value)

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;

Parameter
Name Description
value double

The score to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setState(AttackExposure.State value)

public AttackExposure.Builder setState(AttackExposure.State value)

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];

Parameter
Name Description
value AttackExposure.State

The state to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setStateValue(int value)

public AttackExposure.Builder setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AttackExposure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttackExposure.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttackExposure.Builder
Overrides