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
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
clone()
public VulnerabilityReport.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public VulnerabilityReport getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
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
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
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
getUpdateTime()
public Timestamp getUpdateTime()
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
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
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
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
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
getVulnerabilities(int index)
public VulnerabilityReport.Vulnerability getVulnerabilities(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
getVulnerabilitiesBuilder(int index)
public VulnerabilityReport.Vulnerability.Builder getVulnerabilitiesBuilder(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
getVulnerabilitiesBuilderList()
public List<VulnerabilityReport.Vulnerability.Builder> getVulnerabilitiesBuilderList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getVulnerabilitiesCount()
public int getVulnerabilitiesCount()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getVulnerabilitiesList()
public List<VulnerabilityReport.Vulnerability> getVulnerabilitiesList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getVulnerabilitiesOrBuilder(int index)
public VulnerabilityReport.VulnerabilityOrBuilder getVulnerabilitiesOrBuilder(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
getVulnerabilitiesOrBuilderList()
public List<? extends VulnerabilityReport.VulnerabilityOrBuilder> getVulnerabilitiesOrBuilderList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport.VulnerabilityOrBuilder> | |
hasUpdateTime()
public boolean hasUpdateTime()
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
Type | Description |
boolean | Whether the updateTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(VulnerabilityReport other)
public VulnerabilityReport.Builder mergeFrom(VulnerabilityReport other)
Parameter
Returns
public VulnerabilityReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public VulnerabilityReport.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeUpdateTime(Timestamp value)
public VulnerabilityReport.Builder mergeUpdateTime(Timestamp value)
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];
Parameter
Returns
removeVulnerabilities(int index)
public VulnerabilityReport.Builder removeVulnerabilities(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
setField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public VulnerabilityReport.Builder setName(String value)
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];
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public VulnerabilityReport.Builder setNameBytes(ByteString value)
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];
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VulnerabilityReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUpdateTime(Timestamp value)
public VulnerabilityReport.Builder setUpdateTime(Timestamp value)
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];
Parameter
Returns
setUpdateTime(Timestamp.Builder builderForValue)
public VulnerabilityReport.Builder setUpdateTime(Timestamp.Builder builderForValue)
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];
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setVulnerabilities(int index, VulnerabilityReport.Vulnerability value)
public VulnerabilityReport.Builder setVulnerabilities(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
setVulnerabilities(int index, VulnerabilityReport.Vulnerability.Builder builderForValue)
public VulnerabilityReport.Builder setVulnerabilities(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