Class OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder (2.5.0)

public static final class OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder> implements OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder

Compliance data for an OS policy resource.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addAllConfigSteps(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep> values)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addAllConfigSteps(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep> values)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

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

addConfigSteps(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep value)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addConfigSteps(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep value)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
valueOSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

addConfigSteps(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder builderForValue)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addConfigSteps(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder builderForValue)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

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

addConfigSteps(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep value)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addConfigSteps(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep value)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

addConfigSteps(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder builderForValue)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addConfigSteps(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder builderForValue)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

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

addConfigStepsBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder addConfigStepsBuilder()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder

addConfigStepsBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder addConfigStepsBuilder(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance build()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance

buildPartial()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance buildPartial()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance

clear()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clear()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder
Overrides

clearComplianceState()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearComplianceState()

The compliance state of the resource.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

This builder for chaining.

clearComplianceStateReason()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearComplianceStateReason()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN. The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

This builder for chaining.

clearConfigSteps()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearConfigSteps()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

clearExecResourceOutput()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder
Overrides

clearOsPolicyResourceId()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearOsPolicyResourceId()

The ID of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

This builder for chaining.

clearOutput()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clearOutput()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder

clone()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder clone()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder
Overrides

getComplianceState()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState getComplianceState()

The compliance state of the resource.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState

The complianceState.

getComplianceStateReason()

public String getComplianceStateReason()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN. The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
TypeDescription
String

The complianceStateReason.

getComplianceStateReasonBytes()

public ByteString getComplianceStateReasonBytes()

A reason for the resource to be in the given compliance state. This field is always populated when compliance_state is UNKNOWN. The following values are supported when compliance_state == UNKNOWN

  • execution-errors: Errors were encountered by the agent while executing the resource and the compliance state couldn't be determined.
  • execution-skipped-by-agent: Resource execution was skipped by the agent because errors were encountered while executing prior resources in the OS policy.
  • os-policy-execution-attempt-failed: The execution of the OS policy containing this resource failed and the compliance state couldn't be determined.

string compliance_state_reason = 4;

Returns
TypeDescription
ByteString

The bytes for complianceStateReason.

getComplianceStateValue()

public int getComplianceStateValue()

The compliance state of the resource.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for complianceState.

getConfigSteps(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep getConfigSteps(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep

getConfigStepsBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder getConfigStepsBuilder(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder

getConfigStepsBuilderList()

public List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder> getConfigStepsBuilderList()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
List<Builder>

getConfigStepsCount()

public int getConfigStepsCount()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
int

getConfigStepsList()

public List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep> getConfigStepsList()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
List<OSPolicyResourceConfigStep>

getConfigStepsOrBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder getConfigStepsOrBuilder(int index)

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder

getConfigStepsOrBuilderList()

public List<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder> getConfigStepsOrBuilderList()

Ordered list of configuration completed by the agent for the OS policy resource.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>

getDefaultInstanceForType()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExecResourceOutput()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput getExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput

The execResourceOutput.

getExecResourceOutputBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.Builder getExecResourceOutputBuilder()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput.Builder

getExecResourceOutputOrBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutputOrBuilder getExecResourceOutputOrBuilder()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;

Returns