public static final class VulnerabilityReport.Builder extends GeneratedMessageV3.Builder<VulnerabilityReport.Builder> implements VulnerabilityReportOrBuilder
This API resource represents the vulnerability report for a specified
Compute Engine virtual machine (VM) instance at a given point in time.
For more information, see Vulnerability
reports.
Protobuf type google.cloud.osconfig.v1alpha.VulnerabilityReport
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllVulnerabilities(Iterable<? extends VulnerabilityReport.Vulnerability> values)
public VulnerabilityReport.Builder addAllVulnerabilities(Iterable<? extends VulnerabilityReport.Vulnerability> values)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addVulnerabilities(VulnerabilityReport.Vulnerability value)
public VulnerabilityReport.Builder addVulnerabilities(VulnerabilityReport.Vulnerability value)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
addVulnerabilities(VulnerabilityReport.Vulnerability.Builder builderForValue)
public VulnerabilityReport.Builder addVulnerabilities(VulnerabilityReport.Vulnerability.Builder builderForValue)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
addVulnerabilities(int index, VulnerabilityReport.Vulnerability value)
public VulnerabilityReport.Builder addVulnerabilities(int index, VulnerabilityReport.Vulnerability value)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
addVulnerabilities(int index, VulnerabilityReport.Vulnerability.Builder builderForValue)
public VulnerabilityReport.Builder addVulnerabilities(int index, VulnerabilityReport.Vulnerability.Builder builderForValue)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
addVulnerabilitiesBuilder()
public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
addVulnerabilitiesBuilder(int index)
public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
build()
public VulnerabilityReport build()
Returns
buildPartial()
public VulnerabilityReport buildPartial()
Returns
clear()
public VulnerabilityReport.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public VulnerabilityReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public VulnerabilityReport.Builder clearName()
Output only. The vulnerabilityReport
API resource name.
Format:
projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public VulnerabilityReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUpdateTime()
public VulnerabilityReport.Builder clearUpdateTime()
Output only. The timestamp for when the last vulnerability report was generated for the
VM.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearVulnerabilities()
public VulnerabilityReport.Builder clearVulnerabilities()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns