Class GetInstanceOSPoliciesComplianceRequest.Builder (2.5.1)

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
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetInstanceOSPoliciesComplianceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetInstanceOSPoliciesComplianceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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