Class GetVulnerabilityReportRequest.Builder (2.11.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.v1alpha.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
GetVulnerabilityReportRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetVulnerabilityReportRequest.Builder setName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetVulnerabilityReportRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetVulnerabilityReportRequest.Builder setNameBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetVulnerabilityReportRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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