Class GetInstanceOSPoliciesComplianceRequest.Builder (2.26.0)

public static final class GetInstanceOSPoliciesComplianceRequest.Builder extends GeneratedMessageV3.Builder<GetInstanceOSPoliciesComplianceRequest.Builder> implements GetInstanceOSPoliciesComplianceRequestOrBuilder

A request message for getting OS policies compliance data for the given Compute Engine VM instance.

Protobuf type google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetInstanceOSPoliciesComplianceRequest build()
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest

buildPartial()

public GetInstanceOSPoliciesComplianceRequest buildPartial()
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetInstanceOSPoliciesComplianceRequest.Builder clearName()

Required. API resource name for instance OS policies compliance resource.

Format: projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}

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

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

Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetInstanceOSPoliciesComplianceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. API resource name for instance OS policies compliance resource.

Format: projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}

For {project}, either Compute Engine project-number or project-id can be provided. For {instance}, either Compute Engine VM 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 instance OS policies compliance resource.

Format: projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}

For {project}, either Compute Engine project-number or project-id can be provided. For {instance}, either Compute Engine VM 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(GetInstanceOSPoliciesComplianceRequest other)

public GetInstanceOSPoliciesComplianceRequest.Builder mergeFrom(GetInstanceOSPoliciesComplianceRequest other)
Parameter
NameDescription
otherGetInstanceOSPoliciesComplianceRequest
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetInstanceOSPoliciesComplianceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
input