Class OSPolicyAssignmentReport

  • All Implemented Interfaces:
    OSPolicyAssignmentReportOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class OSPolicyAssignmentReport
    extends com.google.protobuf.GeneratedMessageV3
    implements OSPolicyAssignmentReportOrBuilder
     A report of the OS policy assignment status for a given instance.
     
    Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
    See Also:
    Serialized Form
    • Field Detail

      • OS_POLICY_ASSIGNMENT_FIELD_NUMBER

        public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OS_POLICY_COMPLIANCES_FIELD_NUMBER

        public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_RUN_ID_FIELD_NUMBER

        public static final int LAST_RUN_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

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

        public String getName()
         The `OSPolicyAssignmentReport` API resource name.
        
         Format:
         `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
         
        string name = 1;
        Specified by:
        getName in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The `OSPolicyAssignmentReport` API resource name.
        
         Format:
         `projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`
         
        string name = 1;
        Specified by:
        getNameBytes in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The bytes for name.
      • getInstanceBytes

        public com.google.protobuf.ByteString getInstanceBytes()
         The Compute Engine VM instance name.
         
        string instance = 2;
        Specified by:
        getInstanceBytes in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The bytes for instance.
      • 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 = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getOsPolicyAssignment in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The osPolicyAssignment.
      • getOsPolicyAssignmentBytes

        public com.google.protobuf.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 = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getOsPolicyAssignmentBytes in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The bytes for osPolicyAssignment.
      • getOsPolicyCompliancesCount

        public int getOsPolicyCompliancesCount()
         Compliance data for each `OSPolicy` that is applied to the VM.
         
        repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
        Specified by:
        getOsPolicyCompliancesCount in interface OSPolicyAssignmentReportOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Timestamp for when the report was last generated.
         
        .google.protobuf.Timestamp update_time = 5;
        Specified by:
        hasUpdateTime in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Timestamp for when the report was last generated.
         
        .google.protobuf.Timestamp update_time = 5;
        Specified by:
        getUpdateTime in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Timestamp for when the report was last generated.
         
        .google.protobuf.Timestamp update_time = 5;
        Specified by:
        getUpdateTimeOrBuilder in interface OSPolicyAssignmentReportOrBuilder
      • getLastRunId

        public String getLastRunId()
         Unique identifier of the last attempted run to apply the OS policies
         associated with this assignment on the VM.
        
         This ID is logged by the OS Config agent while applying the OS
         policies associated with this assignment on the VM.
         NOTE: If the service is unable to successfully connect to the agent for
         this run, then this id will not be available in the agent logs.
         
        string last_run_id = 6;
        Specified by:
        getLastRunId in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The lastRunId.
      • getLastRunIdBytes

        public com.google.protobuf.ByteString getLastRunIdBytes()
         Unique identifier of the last attempted run to apply the OS policies
         associated with this assignment on the VM.
        
         This ID is logged by the OS Config agent while applying the OS
         policies associated with this assignment on the VM.
         NOTE: If the service is unable to successfully connect to the agent for
         this run, then this id will not be available in the agent logs.
         
        string last_run_id = 6;
        Specified by:
        getLastRunIdBytes in interface OSPolicyAssignmentReportOrBuilder
        Returns:
        The bytes for lastRunId.
      • isInitialized

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

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

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

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

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

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

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

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

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

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

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

        public OSPolicyAssignmentReport.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OSPolicyAssignmentReport.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OSPolicyAssignmentReport.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OSPolicyAssignmentReport> getParserForType()
        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.GeneratedMessageV3
      • getDefaultInstanceForType

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