Class VulnerabilityOccurrencesSummary.Builder (2.55.0)

public static final class VulnerabilityOccurrencesSummary.Builder extends GeneratedMessageV3.Builder<VulnerabilityOccurrencesSummary.Builder> implements VulnerabilityOccurrencesSummaryOrBuilder

A summary of how many vulnerability occurrences there are per resource and severity type.

Protobuf type google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary

Static Methods

getDescriptor()

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

Methods

addAllCounts(Iterable<? extends VulnerabilityOccurrencesSummary.FixableTotalByDigest> values)

public VulnerabilityOccurrencesSummary.Builder addAllCounts(Iterable<? extends VulnerabilityOccurrencesSummary.FixableTotalByDigest> values)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
values Iterable<? extends com.google.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest>
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

addCounts(VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

public VulnerabilityOccurrencesSummary.Builder addCounts(VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
value VulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

addCounts(VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

public VulnerabilityOccurrencesSummary.Builder addCounts(VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
builderForValue VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

addCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

public VulnerabilityOccurrencesSummary.Builder addCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameters
Name Description
index int
value VulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

addCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

public VulnerabilityOccurrencesSummary.Builder addCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameters
Name Description
index int
builderForValue VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

addCountsBuilder()

public VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder addCountsBuilder()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder

addCountsBuilder(int index)

public VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder addCountsBuilder(int index)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerabilityOccurrencesSummary build()
Returns
Type Description
VulnerabilityOccurrencesSummary

buildPartial()

public VulnerabilityOccurrencesSummary buildPartial()
Returns
Type Description
VulnerabilityOccurrencesSummary

clear()

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

clearCounts()

public VulnerabilityOccurrencesSummary.Builder clearCounts()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCounts(int index)

public VulnerabilityOccurrencesSummary.FixableTotalByDigest getCounts(int index)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrencesSummary.FixableTotalByDigest

getCountsBuilder(int index)

public VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder getCountsBuilder(int index)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder

getCountsBuilderList()

public List<VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder> getCountsBuilderList()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
List<Builder>

getCountsCount()

public int getCountsCount()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
int

getCountsList()

public List<VulnerabilityOccurrencesSummary.FixableTotalByDigest> getCountsList()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
List<FixableTotalByDigest>

getCountsOrBuilder(int index)

public VulnerabilityOccurrencesSummary.FixableTotalByDigestOrBuilder getCountsOrBuilder(int index)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrencesSummary.FixableTotalByDigestOrBuilder

getCountsOrBuilderList()

public List<? extends VulnerabilityOccurrencesSummary.FixableTotalByDigestOrBuilder> getCountsOrBuilderList()

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Returns
Type Description
List<? extends com.google.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigestOrBuilder>

getDefaultInstanceForType()

public VulnerabilityOccurrencesSummary getDefaultInstanceForType()
Returns
Type Description
VulnerabilityOccurrencesSummary

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VulnerabilityOccurrencesSummary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCounts(int index)

public VulnerabilityOccurrencesSummary.Builder removeCounts(int index)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

setCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

public VulnerabilityOccurrencesSummary.Builder setCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest value)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameters
Name Description
index int
value VulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

setCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

public VulnerabilityOccurrencesSummary.Builder setCounts(int index, VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder builderForValue)

A listing by resource of the number of fixable and total vulnerabilities.

repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1;

Parameters
Name Description
index int
builderForValue VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
Type Description
VulnerabilityOccurrencesSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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