Class AttackExposure.Builder (2.47.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttackExposure.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttackExposure.Builder
Overrides

build()

public AttackExposure build()
Returns
TypeDescription
AttackExposure

buildPartial()

public AttackExposure buildPartial()
Returns
TypeDescription
AttackExposure

clear()

public AttackExposure.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AttackExposure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttackExposure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AttackExposure.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AttackExposure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AttackExposure.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttackExposure other)

public AttackExposure.Builder mergeFrom(AttackExposure other)
Parameter
NameDescription
otherAttackExposure
Returns
TypeDescription
AttackExposure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttackExposure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttackExposure.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttackExposure.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AttackExposure.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttackExposure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The attackExposureResult to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attackExposureResult to set.

Returns
TypeDescription
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
NameDescription
valueint

The exposedHighValueResourcesCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The exposedLowValueResourcesCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The exposedMediumValueResourcesCount to set.

Returns
TypeDescription
AttackExposure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttackExposure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AttackExposure.Builder

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

public AttackExposure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuedouble

The score to set.

Returns
TypeDescription
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
NameDescription
valueAttackExposure.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AttackExposure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttackExposure.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttackExposure.Builder
Overrides