Class ToxicCombination.Builder (2.60.0)

public static final class ToxicCombination.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToxicCombination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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