Class InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder (2.44.0)

public static final class InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder extends GeneratedMessageV3.Builder<InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder> implements InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder

Compliance data for an OS policy

Protobuf type google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOsPolicyResourceCompliances(Iterable<? extends OSPolicyResourceCompliance> values)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addAllOsPolicyResourceCompliances(Iterable<? extends OSPolicyResourceCompliance> values)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance>
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

addOsPolicyResourceCompliances(OSPolicyResourceCompliance value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyResourceCompliance value)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
value OSPolicyResourceCompliance
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

addOsPolicyResourceCompliances(OSPolicyResourceCompliance.Builder builderForValue)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyResourceCompliance.Builder builderForValue)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
builderForValue OSPolicyResourceCompliance.Builder
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameters
Name Description
index int
value OSPolicyResourceCompliance
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameters
Name Description
index int
builderForValue OSPolicyResourceCompliance.Builder
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

addOsPolicyResourceCompliancesBuilder()

public OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
OSPolicyResourceCompliance.Builder

addOsPolicyResourceCompliancesBuilder(int index)

public OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder(int index)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceOSPoliciesCompliance.OSPolicyCompliance build()
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance

buildPartial()

public InstanceOSPoliciesCompliance.OSPolicyCompliance buildPartial()
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance

clear()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clear()
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyAssignment()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyAssignment()

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

clearOsPolicyId()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyId()

The OS policy id

string os_policy_id = 1;

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

clearOsPolicyResourceCompliances()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyResourceCompliances()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

clearState()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearState()

Compliance state of the OS policy.

.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

clone()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clone()
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder
Overrides

getDefaultInstanceForType()

public InstanceOSPoliciesCompliance.OSPolicyCompliance getDefaultInstanceForType()
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOsPolicyAssignment()

public String getOsPolicyAssignment()

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The osPolicyAssignment.

getOsPolicyAssignmentBytes()

public ByteString getOsPolicyAssignmentBytes()

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for osPolicyAssignment.

getOsPolicyId()

public String getOsPolicyId()

The OS policy id

string os_policy_id = 1;

Returns
Type Description
String

The osPolicyId.

getOsPolicyIdBytes()

public ByteString getOsPolicyIdBytes()

The OS policy id

string os_policy_id = 1;

Returns
Type Description
ByteString

The bytes for osPolicyId.

getOsPolicyResourceCompliances(int index)

public OSPolicyResourceCompliance getOsPolicyResourceCompliances(int index)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceCompliance

getOsPolicyResourceCompliancesBuilder(int index)

public OSPolicyResourceCompliance.Builder getOsPolicyResourceCompliancesBuilder(int index)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceCompliance.Builder

getOsPolicyResourceCompliancesBuilderList()

public List<OSPolicyResourceCompliance.Builder> getOsPolicyResourceCompliancesBuilderList()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
List<Builder>

getOsPolicyResourceCompliancesCount()

public int getOsPolicyResourceCompliancesCount()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
int

getOsPolicyResourceCompliancesList()

public List<OSPolicyResourceCompliance> getOsPolicyResourceCompliancesList()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
List<OSPolicyResourceCompliance>

getOsPolicyResourceCompliancesOrBuilder(int index)

public OSPolicyResourceComplianceOrBuilder getOsPolicyResourceCompliancesOrBuilder(int index)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceComplianceOrBuilder

getOsPolicyResourceCompliancesOrBuilderList()

public List<? extends OSPolicyResourceComplianceOrBuilder> getOsPolicyResourceCompliancesOrBuilderList()

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceComplianceOrBuilder>

getState()

public OSPolicyComplianceState getState()

Compliance state of the OS policy.

.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;

Returns
Type Description
OSPolicyComplianceState

The state.

getStateValue()

public int getStateValue()

Compliance state of the OS policy.

.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceOSPoliciesCompliance.OSPolicyCompliance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOsPolicyResourceCompliances(int index)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder removeOsPolicyResourceCompliances(int index)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameter
Name Description
index int
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOsPolicyAssignment(String value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyAssignment(String value)

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The osPolicyAssignment to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setOsPolicyAssignmentBytes(ByteString value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyAssignmentBytes(ByteString value)

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for osPolicyAssignment to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setOsPolicyId(String value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyId(String value)

The OS policy id

string os_policy_id = 1;

Parameter
Name Description
value String

The osPolicyId to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setOsPolicyIdBytes(ByteString value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyIdBytes(ByteString value)

The OS policy id

string os_policy_id = 1;

Parameter
Name Description
value ByteString

The bytes for osPolicyId to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance value)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameters
Name Description
index int
value OSPolicyResourceCompliance
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyResourceCompliance.Builder builderForValue)

Compliance data for each OSPolicyResource that is applied to the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;

Parameters
Name Description
index int
builderForValue OSPolicyResourceCompliance.Builder
Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

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

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

setState(OSPolicyComplianceState value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setState(OSPolicyComplianceState value)

Compliance state of the OS policy.

.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;

Parameter
Name Description
value OSPolicyComplianceState

The state to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setStateValue(int value)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setStateValue(int value)

Compliance state of the OS policy.

.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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