Class GetVulnerabilityReportRequest.Builder (2.25.0)

public static final class GetVulnerabilityReportRequest.Builder extends GeneratedMessageV3.Builder<GetVulnerabilityReportRequest.Builder> implements GetVulnerabilityReportRequestOrBuilder

A request message for getting the vulnerability report for the specified VM.

Protobuf type google.cloud.osconfig.v1.GetVulnerabilityReportRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetVulnerabilityReportRequest build()
Returns
TypeDescription
GetVulnerabilityReportRequest

buildPartial()

public GetVulnerabilityReportRequest buildPartial()
Returns
TypeDescription
GetVulnerabilityReportRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetVulnerabilityReportRequest.Builder clearName()

Required. API resource name for vulnerability resource.

Format: projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport

For {project}, either project-number or project-id can be provided. For {instance}, either Compute Engine instance-id or instance-name can be provided.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetVulnerabilityReportRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetVulnerabilityReportRequest getDefaultInstanceForType()
Returns
TypeDescription
GetVulnerabilityReportRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. API resource name for vulnerability resource.

Format: projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport

For {project}, either project-number or project-id can be provided. For {instance}, either Compute Engine instance-id or instance-name can be provided.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. API resource name for vulnerability resource.

Format: projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport

For {project}, either project-number or project-id can be provided. For {instance}, either Compute Engine instance-id or instance-name can be provided.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetVulnerabilityReportRequest other)

public GetVulnerabilityReportRequest.Builder mergeFrom(GetVulnerabilityReportRequest other)
Parameter
NameDescription
otherGetVulnerabilityReportRequest
Returns
TypeDescription