public static final class OSPolicyAssignmentReport.OSPolicyCompliance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder> implements OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder
Compliance data for an OS policyProtobuf type
google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliancegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OSPolicyAssignmentReport.OSPolicyCompliance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder mergeFrom(OSPolicyAssignmentReport.OSPolicyCompliance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public OSPolicyAssignmentReport.OSPolicyCompliance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>IOExceptionpublic String getOsPolicyId()
The OS policy id
string os_policy_id = 1;getOsPolicyId in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic com.google.protobuf.ByteString getOsPolicyIdBytes()
The OS policy id
string os_policy_id = 1;getOsPolicyIdBytes in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder setOsPolicyId(String value)
The OS policy id
string os_policy_id = 1;value - The osPolicyId to set.public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearOsPolicyId()
The OS policy id
string os_policy_id = 1;public OSPolicyAssignmentReport.OSPolicyCompliance.Builder setOsPolicyIdBytes(com.google.protobuf.ByteString value)
The OS policy id
string os_policy_id = 1;value - The bytes for osPolicyId to set.public int getComplianceStateValue()
The compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
getComplianceStateValue in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder setComplianceStateValue(int value)
The compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
value - The enum numeric value on the wire for complianceState to set.public OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState getComplianceState()
The compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
getComplianceState in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder setComplianceState(OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState value)
The compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
value - The complianceState to set.public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearComplianceState()
The compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
public String getComplianceStateReason()
The reason for the OS policy to be in an unknown compliance state. This field is always populated when `compliance_state` is `UNKNOWN`. If populated, the field can contain one of the following values: * `vm-not-running`: The VM was not running. * `os-policies-not-supported-by-agent`: The version of the OS Config agent running on the VM does not support running OS policies. * `no-agent-detected`: The OS Config agent is not detected for the VM. * `resource-execution-errors`: The OS Config agent encountered errors while executing one or more resources in the policy. See `os_policy_resource_compliances` for details. * `task-timeout`: The task sent to the agent to apply the policy timed out. * `unexpected-agent-state`: The OS Config agent did not report the final status of the task that attempted to apply the policy. Instead, the agent unexpectedly started working on a different task. This mostly happens when the agent or VM unexpectedly restarts while applying OS policies. * `internal-service-errors`: Internal service errors were encountered while attempting to apply the policy.
string compliance_state_reason = 3;getComplianceStateReason in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic com.google.protobuf.ByteString getComplianceStateReasonBytes()
The reason for the OS policy to be in an unknown compliance state. This field is always populated when `compliance_state` is `UNKNOWN`. If populated, the field can contain one of the following values: * `vm-not-running`: The VM was not running. * `os-policies-not-supported-by-agent`: The version of the OS Config agent running on the VM does not support running OS policies. * `no-agent-detected`: The OS Config agent is not detected for the VM. * `resource-execution-errors`: The OS Config agent encountered errors while executing one or more resources in the policy. See `os_policy_resource_compliances` for details. * `task-timeout`: The task sent to the agent to apply the policy timed out. * `unexpected-agent-state`: The OS Config agent did not report the final status of the task that attempted to apply the policy. Instead, the agent unexpectedly started working on a different task. This mostly happens when the agent or VM unexpectedly restarts while applying OS policies. * `internal-service-errors`: Internal service errors were encountered while attempting to apply the policy.
string compliance_state_reason = 3;getComplianceStateReasonBytes in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder setComplianceStateReason(String value)
The reason for the OS policy to be in an unknown compliance state. This field is always populated when `compliance_state` is `UNKNOWN`. If populated, the field can contain one of the following values: * `vm-not-running`: The VM was not running. * `os-policies-not-supported-by-agent`: The version of the OS Config agent running on the VM does not support running OS policies. * `no-agent-detected`: The OS Config agent is not detected for the VM. * `resource-execution-errors`: The OS Config agent encountered errors while executing one or more resources in the policy. See `os_policy_resource_compliances` for details. * `task-timeout`: The task sent to the agent to apply the policy timed out. * `unexpected-agent-state`: The OS Config agent did not report the final status of the task that attempted to apply the policy. Instead, the agent unexpectedly started working on a different task. This mostly happens when the agent or VM unexpectedly restarts while applying OS policies. * `internal-service-errors`: Internal service errors were encountered while attempting to apply the policy.
string compliance_state_reason = 3;value - The complianceStateReason to set.public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearComplianceStateReason()
The reason for the OS policy to be in an unknown compliance state. This field is always populated when `compliance_state` is `UNKNOWN`. If populated, the field can contain one of the following values: * `vm-not-running`: The VM was not running. * `os-policies-not-supported-by-agent`: The version of the OS Config agent running on the VM does not support running OS policies. * `no-agent-detected`: The OS Config agent is not detected for the VM. * `resource-execution-errors`: The OS Config agent encountered errors while executing one or more resources in the policy. See `os_policy_resource_compliances` for details. * `task-timeout`: The task sent to the agent to apply the policy timed out. * `unexpected-agent-state`: The OS Config agent did not report the final status of the task that attempted to apply the policy. Instead, the agent unexpectedly started working on a different task. This mostly happens when the agent or VM unexpectedly restarts while applying OS policies. * `internal-service-errors`: Internal service errors were encountered while attempting to apply the policy.
string compliance_state_reason = 3;public OSPolicyAssignmentReport.OSPolicyCompliance.Builder setComplianceStateReasonBytes(com.google.protobuf.ByteString value)
The reason for the OS policy to be in an unknown compliance state. This field is always populated when `compliance_state` is `UNKNOWN`. If populated, the field can contain one of the following values: * `vm-not-running`: The VM was not running. * `os-policies-not-supported-by-agent`: The version of the OS Config agent running on the VM does not support running OS policies. * `no-agent-detected`: The OS Config agent is not detected for the VM. * `resource-execution-errors`: The OS Config agent encountered errors while executing one or more resources in the policy. See `os_policy_resource_compliances` for details. * `task-timeout`: The task sent to the agent to apply the policy timed out. * `unexpected-agent-state`: The OS Config agent did not report the final status of the task that attempted to apply the policy. Instead, the agent unexpectedly started working on a different task. This mostly happens when the agent or VM unexpectedly restarts while applying OS policies. * `internal-service-errors`: Internal service errors were encountered while attempting to apply the policy.
string compliance_state_reason = 3;value - The bytes for complianceStateReason to set.public List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance> getOsPolicyResourceCompliancesList()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesList in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic int getOsPolicyResourceCompliancesCount()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesCount in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance getOsPolicyResourceCompliances(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliances in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance value)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder setOsPolicyResourceCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance value)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance value)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyResourceCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder builderForValue)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addAllOsPolicyResourceCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance> values)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder clearOsPolicyResourceCompliances()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder removeOsPolicyResourceCompliances(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder getOsPolicyResourceCompliancesBuilder(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder getOsPolicyResourceCompliancesOrBuilder(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesOrBuilder in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic List<? extends OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder> getOsPolicyResourceCompliancesOrBuilderList()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesOrBuilderList in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder addOsPolicyResourceCompliancesBuilder(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.Builder> getOsPolicyResourceCompliancesBuilderList()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
public final OSPolicyAssignmentReport.OSPolicyCompliance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>public final OSPolicyAssignmentReport.OSPolicyCompliance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignmentReport.OSPolicyCompliance.Builder>Copyright © 2024 Google LLC. All rights reserved.