Class ListVulnerabilityReportsResponse.Builder (2.22.0)

public static final class ListVulnerabilityReportsResponse.Builder extends GeneratedMessageV3.Builder<ListVulnerabilityReportsResponse.Builder> implements ListVulnerabilityReportsResponseOrBuilder

A response message for listing vulnerability reports for all VM instances in the specified location.

Protobuf type google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVulnerabilityReports(Iterable<? extends VulnerabilityReport> values)

public ListVulnerabilityReportsResponse.Builder addAllVulnerabilityReports(Iterable<? extends VulnerabilityReport> values)

List of vulnerabilityReport objects.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport>
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVulnerabilityReports(VulnerabilityReport value)

public ListVulnerabilityReportsResponse.Builder addVulnerabilityReports(VulnerabilityReport value)

List of vulnerabilityReport objects.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1;

Parameter
NameDescription
valueVulnerabilityReport
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

addVulnerabilityReports(VulnerabilityReport.Builder builderForValue)

public ListVulnerabilityReportsResponse.Builder addVulnerabilityReports(VulnerabilityReport.Builder builderForValue)

List of vulnerabilityReport objects.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1;

Parameter
NameDescription
builderForValueVulnerabilityReport.Builder
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

addVulnerabilityReports(int index, VulnerabilityReport value)

public ListVulnerabilityReportsResponse.Builder addVulnerabilityReports(int index, VulnerabilityReport value)

List of vulnerabilityReport objects.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1;

Parameters
NameDescription
indexint
valueVulnerabilityReport
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

addVulnerabilityReports(int index, VulnerabilityReport.Builder builderForValue)

public ListVulnerabilityReportsResponse.Builder addVulnerabilityReports(int index, VulnerabilityReport.Builder builderForValue)

List of vulnerabilityReport objects.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1;

Parameters
NameDescription
indexint
builderForValueVulnerabilityReport.Builder
Returns
Type