Class OSPolicyAssignmentReport.Builder (2.21.0)

public static final class OSPolicyAssignmentReport.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder> implements OSPolicyAssignmentReportOrBuilder

A report of the OS policy assignment status for a given instance.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport

Static Methods

getDescriptor()

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

Methods

addAllOsPolicyCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance> values)

public OSPolicyAssignmentReport.Builder addAllOsPolicyCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance> values)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance>
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance value)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance value)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
valueOSPolicyAssignmentReport.OSPolicyCompliance
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
builderForValueOSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport.OSPolicyCompliance
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliancesBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

addOsPolicyCompliancesBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyAssignmentReport build()
Returns
Type