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
TypeDescription
ListVulnerabilityReportsResponse.Builder

addVulnerabilityReportsBuilder()

public VulnerabilityReport.Builder addVulnerabilityReportsBuilder()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
VulnerabilityReport.Builder

addVulnerabilityReportsBuilder(int index)

public VulnerabilityReport.Builder addVulnerabilityReportsBuilder(int index)

List of vulnerabilityReport objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Builder

build()

public ListVulnerabilityReportsResponse build()
Returns
TypeDescription
ListVulnerabilityReportsResponse

buildPartial()

public ListVulnerabilityReportsResponse buildPartial()
Returns
TypeDescription
ListVulnerabilityReportsResponse

clear()

public ListVulnerabilityReportsResponse.Builder clear()
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVulnerabilityReportsResponse.Builder clearNextPageToken()

The pagination token to retrieve the next page of vulnerabilityReports object.

string next_page_token = 2;

Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVulnerabilityReports()

public ListVulnerabilityReportsResponse.Builder clearVulnerabilityReports()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

clone()

public ListVulnerabilityReportsResponse.Builder clone()
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListVulnerabilityReportsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVulnerabilityReportsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The pagination token to retrieve the next page of vulnerabilityReports object.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The pagination token to retrieve the next page of vulnerabilityReports object.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getVulnerabilityReports(int index)

public VulnerabilityReport getVulnerabilityReports(int index)

List of vulnerabilityReport objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport

getVulnerabilityReportsBuilder(int index)

public VulnerabilityReport.Builder getVulnerabilityReportsBuilder(int index)

List of vulnerabilityReport objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Builder

getVulnerabilityReportsBuilderList()

public List<VulnerabilityReport.Builder> getVulnerabilityReportsBuilderList()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
List<Builder>

getVulnerabilityReportsCount()

public int getVulnerabilityReportsCount()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
int

getVulnerabilityReportsList()

public List<VulnerabilityReport> getVulnerabilityReportsList()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
List<VulnerabilityReport>

getVulnerabilityReportsOrBuilder(int index)

public VulnerabilityReportOrBuilder getVulnerabilityReportsOrBuilder(int index)

List of vulnerabilityReport objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReportOrBuilder

getVulnerabilityReportsOrBuilderList()

public List<? extends VulnerabilityReportOrBuilder> getVulnerabilityReportsOrBuilderList()

List of vulnerabilityReport objects.

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

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReportOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVulnerabilityReportsResponse other)

public ListVulnerabilityReportsResponse.Builder mergeFrom(ListVulnerabilityReportsResponse other)
Parameter
NameDescription
otherListVulnerabilityReportsResponse
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVulnerabilityReportsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder
Overrides

removeVulnerabilityReports(int index)

public ListVulnerabilityReportsResponse.Builder removeVulnerabilityReports(int index)

List of vulnerabilityReport objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListVulnerabilityReportsResponse.Builder setNextPageToken(String value)

The pagination token to retrieve the next page of vulnerabilityReports object.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVulnerabilityReportsResponse.Builder setNextPageTokenBytes(ByteString value)

The pagination token to retrieve the next page of vulnerabilityReports object.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVulnerabilityReports(int index, VulnerabilityReport value)

public ListVulnerabilityReportsResponse.Builder setVulnerabilityReports(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

setVulnerabilityReports(int index, VulnerabilityReport.Builder builderForValue)

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

List of vulnerabilityReport objects.

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

Parameters
NameDescription
indexint
builderForValueVulnerabilityReport.Builder
Returns
TypeDescription
ListVulnerabilityReportsResponse.Builder