Class OSPolicyResourceCompliance.Builder (2.57.0)

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

Compliance data for an OS policy resource.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance

Static Methods

getDescriptor()

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

Methods

addAllConfigSteps(Iterable<? extends OSPolicyResourceConfigStep> values)

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

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

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

addConfigSteps(OSPolicyResourceConfigStep value)

public OSPolicyResourceCompliance.Builder addConfigSteps(OSPolicyResourceConfigStep value)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
value OSPolicyResourceConfigStep
Returns
Type Description
OSPolicyResourceCompliance.Builder

addConfigSteps(OSPolicyResourceConfigStep.Builder builderForValue)

public OSPolicyResourceCompliance.Builder addConfigSteps(OSPolicyResourceConfigStep.Builder builderForValue)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
builderForValue OSPolicyResourceConfigStep.Builder
Returns
Type Description
OSPolicyResourceCompliance.Builder

addConfigSteps(int index, OSPolicyResourceConfigStep value)

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

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameters
Name Description
index int
value OSPolicyResourceConfigStep
Returns
Type Description
OSPolicyResourceCompliance.Builder

addConfigSteps(int index, OSPolicyResourceConfigStep.Builder builderForValue)

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

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameters
Name Description
index int
builderForValue OSPolicyResourceConfigStep.Builder
Returns
Type Description
OSPolicyResourceCompliance.Builder

addConfigStepsBuilder()

public OSPolicyResourceConfigStep.Builder addConfigStepsBuilder()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Returns
Type Description
OSPolicyResourceConfigStep.Builder

addConfigStepsBuilder(int index)

public OSPolicyResourceConfigStep.Builder addConfigStepsBuilder(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceConfigStep.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyResourceCompliance build()
Returns
Type Description
OSPolicyResourceCompliance

buildPartial()

public OSPolicyResourceCompliance buildPartial()
Returns
Type Description
OSPolicyResourceCompliance

clear()

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

clearConfigSteps()

public OSPolicyResourceCompliance.Builder clearConfigSteps()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Returns
Type Description
OSPolicyResourceCompliance.Builder

clearExecResourceOutput()

public OSPolicyResourceCompliance.Builder clearExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Returns
Type Description
OSPolicyResourceCompliance.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyResourceId()

public OSPolicyResourceCompliance.Builder clearOsPolicyResourceId()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

clearOutput()

public OSPolicyResourceCompliance.Builder clearOutput()
Returns
Type Description
OSPolicyResourceCompliance.Builder

clearState()

public OSPolicyResourceCompliance.Builder clearState()

Compliance state of the OS policy resource.

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

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

clone()

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

getConfigSteps(int index)

public OSPolicyResourceConfigStep getConfigSteps(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceConfigStep

getConfigStepsBuilder(int index)

public OSPolicyResourceConfigStep.Builder getConfigStepsBuilder(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceConfigStep.Builder

getConfigStepsBuilderList()

public List<OSPolicyResourceConfigStep.Builder> getConfigStepsBuilderList()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Returns
Type Description
List<Builder>

getConfigStepsCount()

public int getConfigStepsCount()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Returns
Type Description
int

getConfigStepsList()

public List<OSPolicyResourceConfigStep> getConfigStepsList()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Returns
Type Description
List<OSPolicyResourceConfigStep>

getConfigStepsOrBuilder(int index)

public OSPolicyResourceConfigStepOrBuilder getConfigStepsOrBuilder(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceConfigStepOrBuilder

getConfigStepsOrBuilderList()

public List<? extends OSPolicyResourceConfigStepOrBuilder> getConfigStepsOrBuilderList()

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

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

getDefaultInstanceForType()

public OSPolicyResourceCompliance getDefaultInstanceForType()
Returns
Type Description
OSPolicyResourceCompliance

getDescriptorForType()

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

getExecResourceOutput()

public OSPolicyResourceCompliance.ExecResourceOutput getExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Returns
Type Description
OSPolicyResourceCompliance.ExecResourceOutput

The execResourceOutput.

getExecResourceOutputBuilder()

public OSPolicyResourceCompliance.ExecResourceOutput.Builder getExecResourceOutputBuilder()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Returns
Type Description
OSPolicyResourceCompliance.ExecResourceOutput.Builder

getExecResourceOutputOrBuilder()

public OSPolicyResourceCompliance.ExecResourceOutputOrBuilder getExecResourceOutputOrBuilder()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Returns
Type Description
OSPolicyResourceCompliance.ExecResourceOutputOrBuilder

getOsPolicyResourceId()

public String getOsPolicyResourceId()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
Type Description
String

The osPolicyResourceId.

getOsPolicyResourceIdBytes()

public ByteString getOsPolicyResourceIdBytes()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
Type Description
ByteString

The bytes for osPolicyResourceId.

getOutputCase()

public OSPolicyResourceCompliance.OutputCase getOutputCase()
Returns
Type Description
OSPolicyResourceCompliance.OutputCase

getState()

public OSPolicyComplianceState getState()

Compliance state of the OS policy resource.

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

Returns
Type Description
OSPolicyComplianceState

The state.

getStateValue()

public int getStateValue()

Compliance state of the OS policy resource.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

hasExecResourceOutput()

public boolean hasExecResourceOutput()

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Returns
Type Description
boolean

Whether the execResourceOutput field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput value)

public OSPolicyResourceCompliance.Builder mergeExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput value)

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Parameter
Name Description
value OSPolicyResourceCompliance.ExecResourceOutput
Returns
Type Description
OSPolicyResourceCompliance.Builder

mergeFrom(OSPolicyResourceCompliance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConfigSteps(int index)

public OSPolicyResourceCompliance.Builder removeConfigSteps(int index)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyResourceCompliance.Builder

setConfigSteps(int index, OSPolicyResourceConfigStep value)

public OSPolicyResourceCompliance.Builder setConfigSteps(int index, OSPolicyResourceConfigStep value)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameters
Name Description
index int
value OSPolicyResourceConfigStep
Returns
Type Description
OSPolicyResourceCompliance.Builder

setConfigSteps(int index, OSPolicyResourceConfigStep.Builder builderForValue)

public OSPolicyResourceCompliance.Builder setConfigSteps(int index, OSPolicyResourceConfigStep.Builder builderForValue)

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

repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2;

Parameters
Name Description
index int
builderForValue OSPolicyResourceConfigStep.Builder
Returns
Type Description
OSPolicyResourceCompliance.Builder

setExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput value)

public OSPolicyResourceCompliance.Builder setExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput value)

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Parameter
Name Description
value OSPolicyResourceCompliance.ExecResourceOutput
Returns
Type Description
OSPolicyResourceCompliance.Builder

setExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput.Builder builderForValue)

public OSPolicyResourceCompliance.Builder setExecResourceOutput(OSPolicyResourceCompliance.ExecResourceOutput.Builder builderForValue)

ExecResource specific output.

.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4;

Parameter
Name Description
builderForValue OSPolicyResourceCompliance.ExecResourceOutput.Builder
Returns
Type Description
OSPolicyResourceCompliance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOsPolicyResourceId(String value)

public OSPolicyResourceCompliance.Builder setOsPolicyResourceId(String value)

The id of the OS policy resource.

string os_policy_resource_id = 1;

Parameter
Name Description
value String

The osPolicyResourceId to set.

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

setOsPolicyResourceIdBytes(ByteString value)

public OSPolicyResourceCompliance.Builder setOsPolicyResourceIdBytes(ByteString value)

The id of the OS policy resource.

string os_policy_resource_id = 1;

Parameter
Name Description
value ByteString

The bytes for osPolicyResourceId to set.

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

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

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

setState(OSPolicyComplianceState value)

public OSPolicyResourceCompliance.Builder setState(OSPolicyComplianceState value)

Compliance state of the OS policy resource.

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

Parameter
Name Description
value OSPolicyComplianceState

The state to set.

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

setStateValue(int value)

public OSPolicyResourceCompliance.Builder setStateValue(int value)

Compliance state of the OS policy resource.

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

Parameter
Name Description
value int

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

Returns
Type Description
OSPolicyResourceCompliance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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