public static final class OSPolicyAssignmentReport.OSPolicyCompliance extends com.google.protobuf.GeneratedMessageV3 implements OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder
Compliance data for an OS policyProtobuf type
google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicyAssignmentReport.OSPolicyCompliance.Builder
Compliance data for an OS policy
|
static class |
OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState
Possible compliance states for an os policy.
|
static class |
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance
Compliance data for an OS policy resource.
|
static interface |
OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMPLIANCE_STATE_FIELD_NUMBER |
static int |
COMPLIANCE_STATE_REASON_FIELD_NUMBER |
static int |
OS_POLICY_ID_FIELD_NUMBER |
static int |
OS_POLICY_RESOURCE_COMPLIANCES_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int OS_POLICY_ID_FIELD_NUMBER
public static final int COMPLIANCE_STATE_FIELD_NUMBER
public static final int COMPLIANCE_STATE_REASON_FIELD_NUMBER
public static final int OS_POLICY_RESOURCE_COMPLIANCES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 int getComplianceStateValue()
The compliance state of the OS policy.
.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
getComplianceStateValue in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState getComplianceState()
The compliance state of the OS policy.
.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
getComplianceState in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic 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 List<OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance> getOsPolicyResourceCompliancesList()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesList 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.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesOrBuilderList in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic int getOsPolicyResourceCompliancesCount()
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1.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.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliances in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceComplianceOrBuilder getOsPolicyResourceCompliancesOrBuilder(int index)
Compliance data for each resource within the policy that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
getOsPolicyResourceCompliancesOrBuilder in interface OSPolicyAssignmentReport.OSPolicyComplianceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignmentReport.OSPolicyCompliance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicyAssignmentReport.OSPolicyCompliance.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicyAssignmentReport.OSPolicyCompliance.Builder newBuilder()
public static OSPolicyAssignmentReport.OSPolicyCompliance.Builder newBuilder(OSPolicyAssignmentReport.OSPolicyCompliance prototype)
public OSPolicyAssignmentReport.OSPolicyCompliance.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicyAssignmentReport.OSPolicyCompliance.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicyAssignmentReport.OSPolicyCompliance getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicyAssignmentReport.OSPolicyCompliance> parser()
public com.google.protobuf.Parser<OSPolicyAssignmentReport.OSPolicyCompliance> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicyAssignmentReport.OSPolicyCompliance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.