- 2.63.0 (latest)
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.6.0
- 2.5.6
- 2.3.2
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttackExposure.BuilderImplements
AttackExposureOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AttackExposure.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AttackExposure.Builder |
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 |
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 |
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 |
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 |