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.v1.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()
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addVulnerabilities(VulnerabilityReport.Vulnerability value)
public VulnerabilityReport.Builder addVulnerabilities(VulnerabilityReport.Vulnerability value)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addVulnerabilitiesBuilder()
public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
addVulnerabilitiesBuilder(int index)
public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
index | int
|
build()
public VulnerabilityReport build()
buildPartial()
public VulnerabilityReport buildPartial()
clear()
public VulnerabilityReport.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public VulnerabilityReport.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public VulnerabilityReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clearVulnerabilities()
public VulnerabilityReport.Builder clearVulnerabilities()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public VulnerabilityReport.Builder clone()
Overrides
getDefaultInstanceForType()
public VulnerabilityReport getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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 |
---|
Type | Description |
Timestamp | The updateTime.
|
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];
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];
getVulnerabilities(int index)
public VulnerabilityReport.Vulnerability getVulnerabilities(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
index | int
|
getVulnerabilitiesBuilder(int index)
public VulnerabilityReport.Vulnerability.Builder getVulnerabilitiesBuilder(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
index | int
|
getVulnerabilitiesBuilderList()
public List<VulnerabilityReport.Vulnerability.Builder> getVulnerabilitiesBuilderList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVulnerabilitiesCount()
public int getVulnerabilitiesCount()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
int | |
getVulnerabilitiesList()
public List<VulnerabilityReport.Vulnerability> getVulnerabilitiesList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVulnerabilitiesOrBuilder(int index)
public VulnerabilityReport.VulnerabilityOrBuilder getVulnerabilitiesOrBuilder(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
index | int
|
getVulnerabilitiesOrBuilderList()
public List<? extends VulnerabilityReport.VulnerabilityOrBuilder> getVulnerabilitiesOrBuilderList()
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
List<? extends com.google.cloud.osconfig.v1.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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(VulnerabilityReport other)
public VulnerabilityReport.Builder mergeFrom(VulnerabilityReport other)
public VulnerabilityReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public VulnerabilityReport.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
removeVulnerabilities(int index)
public VulnerabilityReport.Builder removeVulnerabilities(int index)
Output only. List of vulnerabilities affecting the VM.
repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public VulnerabilityReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VulnerabilityReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final VulnerabilityReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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
|
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];