Class InstanceOSPoliciesCompliance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance
All Implemented Interfaces:
InstanceOSPoliciesComplianceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated @Deprecated public final class InstanceOSPoliciesCompliance extends com.google.protobuf.GeneratedMessage implements InstanceOSPoliciesComplianceOrBuilder
Deprecated.
 This API resource represents the OS policies compliance data for a Compute
 Engine virtual machine (VM) instance at a given point in time.

 A Compute Engine VM can have multiple OS policy assignments, and each
 assignment can have multiple OS policies. As a result, multiple OS policies
 could be applied to a single VM.

 You can use this API resource to determine both the compliance state of your
 VM as well as the compliance state of an individual OS policy.

 For more information, see [View
 compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
 
Protobuf type google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      Deprecated.
      See Also:
    • INSTANCE_FIELD_NUMBER

      public static final int INSTANCE_FIELD_NUMBER
      Deprecated.
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      Deprecated.
      See Also:
    • DETAILED_STATE_FIELD_NUMBER

      public static final int DETAILED_STATE_FIELD_NUMBER
      Deprecated.
      See Also:
    • DETAILED_STATE_REASON_FIELD_NUMBER

      public static final int DETAILED_STATE_REASON_FIELD_NUMBER
      Deprecated.
      See Also:
    • OS_POLICY_COMPLIANCES_FIELD_NUMBER

      public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
      Deprecated.
      See Also:
    • LAST_COMPLIANCE_CHECK_TIME_FIELD_NUMBER

      public static final int LAST_COMPLIANCE_CHECK_TIME_FIELD_NUMBER
      Deprecated.
      See Also:
    • LAST_COMPLIANCE_RUN_ID_FIELD_NUMBER

      public static final int LAST_COMPLIANCE_RUN_ID_FIELD_NUMBER
      Deprecated.
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      Deprecated.
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Deprecated.
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
      Deprecated.
       Output only. The `InstanceOSPoliciesCompliance` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      Deprecated.
       Output only. The `InstanceOSPoliciesCompliance` API resource name.
      
       Format:
       `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The bytes for name.
    • getInstance

      public String getInstance()
      Deprecated.
       Output only. The Compute Engine VM instance name.
       
      string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstance in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
      Deprecated.
       Output only. The Compute Engine VM instance name.
       
      string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceBytes in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The bytes for instance.
    • getStateValue

      public int getStateValue()
      Deprecated.
       Output only. Compliance state of the VM.
       
      .google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public OSPolicyComplianceState getState()
      Deprecated.
       Output only. Compliance state of the VM.
       
      .google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The state.
    • getDetailedState

      public String getDetailedState()
      Deprecated.
       Output only. Detailed compliance state of the VM.
       This field is populated only when compliance state is `UNKNOWN`.
      
       It may contain one of the following values:
      
       * `no-compliance-data`: Compliance data is not available for this VM.
       * `no-agent-detected`: OS Config agent is not detected for this VM.
       * `config-not-supported-by-agent`: The version of the OS Config agent
       running on this VM does not support configuration management.
       * `inactive`: VM is not running.
       * `internal-service-errors`: There were internal service errors encountered
       while enforcing compliance.
       * `agent-errors`: OS config agent encountered errors while enforcing
       compliance.
       
      string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailedState in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The detailedState.
    • getDetailedStateBytes

      public com.google.protobuf.ByteString getDetailedStateBytes()
      Deprecated.
       Output only. Detailed compliance state of the VM.
       This field is populated only when compliance state is `UNKNOWN`.
      
       It may contain one of the following values:
      
       * `no-compliance-data`: Compliance data is not available for this VM.
       * `no-agent-detected`: OS Config agent is not detected for this VM.
       * `config-not-supported-by-agent`: The version of the OS Config agent
       running on this VM does not support configuration management.
       * `inactive`: VM is not running.
       * `internal-service-errors`: There were internal service errors encountered
       while enforcing compliance.
       * `agent-errors`: OS config agent encountered errors while enforcing
       compliance.
       
      string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailedStateBytes in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The bytes for detailedState.
    • getDetailedStateReason

      public String getDetailedStateReason()
      Deprecated.
       Output only. The reason for the `detailed_state` of the VM (if any).
       
      string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailedStateReason in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The detailedStateReason.
    • getDetailedStateReasonBytes

      public com.google.protobuf.ByteString getDetailedStateReasonBytes()
      Deprecated.
       Output only. The reason for the `detailed_state` of the VM (if any).
       
      string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDetailedStateReasonBytes in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The bytes for detailedStateReason.
    • getOsPolicyCompliancesList

      public List<InstanceOSPoliciesCompliance.OSPolicyCompliance> getOsPolicyCompliancesList()
      Deprecated.
       Output only. Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsPolicyCompliancesList in interface InstanceOSPoliciesComplianceOrBuilder
    • getOsPolicyCompliancesOrBuilderList

      public List<? extends InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()
      Deprecated.
       Output only. Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsPolicyCompliancesOrBuilderList in interface InstanceOSPoliciesComplianceOrBuilder
    • getOsPolicyCompliancesCount

      public int getOsPolicyCompliancesCount()
      Deprecated.
       Output only. Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsPolicyCompliancesCount in interface InstanceOSPoliciesComplianceOrBuilder
    • getOsPolicyCompliances

      public InstanceOSPoliciesCompliance.OSPolicyCompliance getOsPolicyCompliances(int index)
      Deprecated.
       Output only. Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsPolicyCompliances in interface InstanceOSPoliciesComplianceOrBuilder
    • getOsPolicyCompliancesOrBuilder

      public InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index)
      Deprecated.
       Output only. Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOsPolicyCompliancesOrBuilder in interface InstanceOSPoliciesComplianceOrBuilder
    • hasLastComplianceCheckTime

      public boolean hasLastComplianceCheckTime()
      Deprecated.
       Output only. Timestamp of the last compliance check for the VM.
       
      .google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastComplianceCheckTime in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      Whether the lastComplianceCheckTime field is set.
    • getLastComplianceCheckTime

      public com.google.protobuf.Timestamp getLastComplianceCheckTime()
      Deprecated.
       Output only. Timestamp of the last compliance check for the VM.
       
      .google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastComplianceCheckTime in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The lastComplianceCheckTime.
    • getLastComplianceCheckTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastComplianceCheckTimeOrBuilder()
      Deprecated.
       Output only. Timestamp of the last compliance check for the VM.
       
      .google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastComplianceCheckTimeOrBuilder in interface InstanceOSPoliciesComplianceOrBuilder
    • getLastComplianceRunId

      public String getLastComplianceRunId()
      Deprecated.
       Output only. Unique identifier for the last compliance run.
       This id will be logged by the OS config agent during a compliance run and
       can be used for debugging and tracing purpose.
       
      string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastComplianceRunId in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The lastComplianceRunId.
    • getLastComplianceRunIdBytes

      public com.google.protobuf.ByteString getLastComplianceRunIdBytes()
      Deprecated.
       Output only. Unique identifier for the last compliance run.
       This id will be logged by the OS config agent during a compliance run and
       can be used for debugging and tracing purpose.
       
      string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastComplianceRunIdBytes in interface InstanceOSPoliciesComplianceOrBuilder
      Returns:
      The bytes for lastComplianceRunId.
    • isInitialized

      public final boolean isInitialized()
      Deprecated.
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Deprecated.
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Deprecated.
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Deprecated.
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(InputStream input) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstanceOSPoliciesCompliance parseDelimitedFrom(InputStream input) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstanceOSPoliciesCompliance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Deprecated.
      Throws:
      IOException
    • parseFrom

      public static InstanceOSPoliciesCompliance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Deprecated.
      Throws:
      IOException
    • newBuilderForType

      public InstanceOSPoliciesCompliance.Builder newBuilderForType()
      Deprecated.
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static InstanceOSPoliciesCompliance.Builder newBuilder()
      Deprecated.
    • newBuilder

      Deprecated.
    • toBuilder

      Deprecated.
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InstanceOSPoliciesCompliance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Deprecated.
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InstanceOSPoliciesCompliance getDefaultInstance()
      Deprecated.
    • parser

      public static com.google.protobuf.Parser<InstanceOSPoliciesCompliance> parser()
      Deprecated.
    • getParserForType

      public com.google.protobuf.Parser<InstanceOSPoliciesCompliance> getParserForType()
      Deprecated.
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public InstanceOSPoliciesCompliance getDefaultInstanceForType()
      Deprecated.
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder