Class GetInstanceOSPoliciesComplianceRequest.Builder (2.50.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetInstanceOSPoliciesComplianceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

build()

public GetInstanceOSPoliciesComplianceRequest build()
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest

buildPartial()

public GetInstanceOSPoliciesComplianceRequest buildPartial()
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest

clear()

public GetInstanceOSPoliciesComplianceRequest.Builder clear()
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetInstanceOSPoliciesComplianceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetInstanceOSPoliciesComplianceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

clone()

public GetInstanceOSPoliciesComplianceRequest.Builder clone()
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

getDefaultInstanceForType()

public GetInstanceOSPoliciesComplianceRequest getDefaultInstanceForType()
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetInstanceOSPoliciesComplianceRequest other)

public GetInstanceOSPoliciesComplianceRequest.Builder mergeFrom(GetInstanceOSPoliciesComplianceRequest other)
Parameter
Name Description
other GetInstanceOSPoliciesComplianceRequest
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetInstanceOSPoliciesComplianceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetInstanceOSPoliciesComplianceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetInstanceOSPoliciesComplianceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetInstanceOSPoliciesComplianceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

setName(String value)

public GetInstanceOSPoliciesComplianceRequest.Builder setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetInstanceOSPoliciesComplianceRequest.Builder setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder

This builder for chaining.

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

public GetInstanceOSPoliciesComplianceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetInstanceOSPoliciesComplianceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides