Class InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder (2.4.3)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance>
Returns
TypeDescription
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
NameDescription
valueOSPolicyResourceCompliance
Returns
TypeDescription
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
NameDescription
builderForValueOSPolicyResourceCompliance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueOSPolicyResourceCompliance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOSPolicyResourceCompliance.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
OSPolicyResourceCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceOSPoliciesCompliance.OSPolicyCompliance build()
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance

buildPartial()

public InstanceOSPoliciesCompliance.OSPolicyCompliance buildPartial()
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance

clear()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clear()
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

clearOsPolicyId()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearOsPolicyId()

The OS policy id

string os_policy_id = 1;

Returns
TypeDescription
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
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

clearState()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clearState()

Compliance state of the OS policy.

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

Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

clone()

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder clone()
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder
Overrides

getDefaultInstanceForType()

public InstanceOSPoliciesCompliance.OSPolicyCompliance getDefaultInstanceForType()
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for osPolicyAssignment.

getOsPolicyId()

public String getOsPolicyId()

The OS policy id

string os_policy_id = 1;

Returns
TypeDescription
String

The osPolicyId.

getOsPolicyIdBytes()

public ByteString getOsPolicyIdBytes()

The OS policy id

string os_policy_id = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OSPolicyComplianceState

The state.

getStateValue()

public int getStateValue()

Compliance state of the OS policy.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceOSPoliciesCompliance.OSPolicyCompliance other)

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeFrom(InstanceOSPoliciesCompliance.OSPolicyCompliance other)
Parameter
NameDescription
otherInstanceOSPoliciesCompliance.OSPolicyCompliance
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The osPolicyAssignment to set.

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

The bytes for osPolicyAssignment to set.

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

The osPolicyId to set.

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

The bytes for osPolicyId to set.

Returns
TypeDescription
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
NameDescription
indexint
valueOSPolicyResourceCompliance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOSPolicyResourceCompliance.Builder
Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

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

public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueOSPolicyComplianceState

The state to set.

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

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

Returns
TypeDescription
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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