Class OSPolicyResourceCompliance.Builder (2.20.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep>
Returns
TypeDescription
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
NameDescription
valueOSPolicyResourceConfigStep
Returns
TypeDescription
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
NameDescription
builderForValueOSPolicyResourceConfigStep.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueOSPolicyResourceConfigStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOSPolicyResourceConfigStep.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
OSPolicyResourceConfigStep.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OSPolicyResourceCompliance build()
Returns
TypeDescription
OSPolicyResourceCompliance

buildPartial()

public OSPolicyResourceCompliance buildPartial()
Returns
TypeDescription
OSPolicyResourceCompliance

clear()

public OSPolicyResourceCompliance.Builder clear()
Returns
TypeDescription
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
TypeDescription
OSPolicyResourceCompliance.Builder

clearExecResourceOutput()

public OSPolicyResourceCompliance.Builder clearExecResourceOutput()

ExecResource specific output.

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

Returns
TypeDescription
OSPolicyResourceCompliance.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyResourceId()

public OSPolicyResourceCompliance.Builder clearOsPolicyResourceId()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
OSPolicyResourceCompliance.Builder

This builder for chaining.

clearOutput()

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

clearState()

public OSPolicyResourceCompliance.Builder clearState()

Compliance state of the OS policy resource.

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

Returns
TypeDescription
OSPolicyResourceCompliance.Builder

This builder for chaining.

clone()

public OSPolicyResourceCompliance.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStepOrBuilder>

getDefaultInstanceForType()

public OSPolicyResourceCompliance getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyResourceCompliance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExecResourceOutput()

public OSPolicyResourceCompliance.ExecResourceOutput getExecResourceOutput()

ExecResource specific output.

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

Returns
TypeDescription
OSPolicyResourceCompliance.ExecResourceOutput

The execResourceOutput.

getExecResourceOutputBuilder()

public OSPolicyResourceCompliance.ExecResourceOutput.Builder getExecResourceOutputBuilder()

ExecResource specific output.

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

Returns
TypeDescription
OSPolicyResourceCompliance.ExecResourceOutput.Builder

getExecResourceOutputOrBuilder()

public OSPolicyResourceCompliance.ExecResourceOutputOrBuilder getExecResourceOutputOrBuilder()

ExecResource specific output.

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

Returns
TypeDescription
OSPolicyResourceCompliance.ExecResourceOutputOrBuilder

getOsPolicyResourceId()

public String getOsPolicyResourceId()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
String

The osPolicyResourceId.

getOsPolicyResourceIdBytes()

public ByteString getOsPolicyResourceIdBytes()

The id of the OS policy resource.

string os_policy_resource_id = 1;

Returns
TypeDescription
ByteString

The bytes for osPolicyResourceId.

getOutputCase()

public OSPolicyResourceCompliance.OutputCase getOutputCase()
Returns
TypeDescription
OSPolicyResourceCompliance.OutputCase

getState()

public OSPolicyComplianceState getState()

Compliance state of the OS policy resource.

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

Returns
TypeDescription
OSPolicyComplianceState

The state.

getStateValue()

public int getStateValue()

Compliance state of the OS policy resource.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the execResourceOutput field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueOSPolicyResourceCompliance.ExecResourceOutput
Returns
TypeDescription
OSPolicyResourceCompliance.Builder

mergeFrom(OSPolicyResourceCompliance other)

public OSPolicyResourceCompliance.Builder mergeFrom(OSPolicyResourceCompliance other)
Parameter
NameDescription
otherOSPolicyResourceCompliance
Returns
TypeDescription
OSPolicyResourceCompliance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyResourceCompliance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyResourceCompliance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyResourceCompliance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueOSPolicyResourceConfigStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOSPolicyResourceConfigStep.Builder
Returns
TypeDescription
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
NameDescription
valueOSPolicyResourceCompliance.ExecResourceOutput
Returns
TypeDescription
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
NameDescription
builderForValueOSPolicyResourceCompliance.ExecResourceOutput.Builder
Returns
TypeDescription
OSPolicyResourceCompliance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The osPolicyResourceId to set.

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

The bytes for osPolicyResourceId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueOSPolicyComplianceState

The state to set.

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

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

Returns
TypeDescription
OSPolicyResourceCompliance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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