Class VulnerabilityOccurrencesSummary.Builder (2.8.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest>
Returns
TypeDescription
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
NameDescription
valueVulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
TypeDescription
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
NameDescription
builderForValueVulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerabilityOccurrencesSummary build()
Returns
TypeDescription
VulnerabilityOccurrencesSummary

buildPartial()

public VulnerabilityOccurrencesSummary buildPartial()
Returns
TypeDescription
VulnerabilityOccurrencesSummary

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityOccurrencesSummary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityOccurrencesSummary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder
Overrides

clone()

public VulnerabilityOccurrencesSummary.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigestOrBuilder>

getDefaultInstanceForType()

public VulnerabilityOccurrencesSummary getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityOccurrencesSummary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VulnerabilityOccurrencesSummary other)

public VulnerabilityOccurrencesSummary.Builder mergeFrom(VulnerabilityOccurrencesSummary other)
Parameter
NameDescription
otherVulnerabilityOccurrencesSummary
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VulnerabilityOccurrencesSummary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityOccurrencesSummary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityOccurrencesSummary.FixableTotalByDigest
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityOccurrencesSummary.FixableTotalByDigest.Builder
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public VulnerabilityOccurrencesSummary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityOccurrencesSummary.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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