Class ToxicCombination.Builder (2.91.0)

public static final class ToxicCombination.Builder extends GeneratedMessage.Builder<ToxicCombination.Builder> implements ToxicCombinationOrBuilder

Contains details about a group of security issues that, when the issues occur together, represent a greater risk than when the issues occur independently. A group of such issues is referred to as a toxic combination.

Protobuf type google.cloud.securitycenter.v1.ToxicCombination

Static Methods

getDescriptor()

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

Methods

addAllRelatedFindings(Iterable<String> values)

public ToxicCombination.Builder addAllRelatedFindings(Iterable<String> values)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameter
Name Description
values Iterable<String>

The relatedFindings to add.

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

addRelatedFindings(String value)

public ToxicCombination.Builder addRelatedFindings(String value)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameter
Name Description
value String

The relatedFindings to add.

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

addRelatedFindingsBytes(ByteString value)

public ToxicCombination.Builder addRelatedFindingsBytes(ByteString value)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameter
Name Description
value ByteString

The bytes of the relatedFindings to add.

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

build()

public ToxicCombination build()
Returns
Type Description
ToxicCombination

buildPartial()

public ToxicCombination buildPartial()
Returns
Type Description
ToxicCombination

clear()

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

clearAttackExposureScore()

public ToxicCombination.Builder clearAttackExposureScore()

The Attack exposure score of this toxic combination. The score is a measure of how much this toxic combination exposes one or more high-value resources to potential attack.

double attack_exposure_score = 1;

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

clearRelatedFindings()

public ToxicCombination.Builder clearRelatedFindings()

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

getAttackExposureScore()

public double getAttackExposureScore()

The Attack exposure score of this toxic combination. The score is a measure of how much this toxic combination exposes one or more high-value resources to potential attack.

double attack_exposure_score = 1;

Returns
Type Description
double

The attackExposureScore.

getDefaultInstanceForType()

public ToxicCombination getDefaultInstanceForType()
Returns
Type Description
ToxicCombination

getDescriptorForType()

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

getRelatedFindings(int index)

public String getRelatedFindings(int index)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedFindings at the given index.

getRelatedFindingsBytes(int index)

public ByteString getRelatedFindingsBytes(int index)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedFindings at the given index.

getRelatedFindingsCount()

public int getRelatedFindingsCount()

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Returns
Type Description
int

The count of relatedFindings.

getRelatedFindingsList()

public ProtocolStringList getRelatedFindingsList()

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Returns
Type Description
ProtocolStringList

A list containing the relatedFindings.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToxicCombination other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAttackExposureScore(double value)

public ToxicCombination.Builder setAttackExposureScore(double value)

The Attack exposure score of this toxic combination. The score is a measure of how much this toxic combination exposes one or more high-value resources to potential attack.

double attack_exposure_score = 1;

Parameter
Name Description
value double

The attackExposureScore to set.

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.

setRelatedFindings(int index, String value)

public ToxicCombination.Builder setRelatedFindings(int index, String value)

List of resource names of findings associated with this toxic combination. For example, organizations/123/sources/456/findings/789.

repeated string related_findings = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The relatedFindings to set.

Returns
Type Description
ToxicCombination.Builder

This builder for chaining.