Class OSPolicyAssignmentReport

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

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

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • INSTANCE_FIELD_NUMBER

      public static final int INSTANCE_FIELD_NUMBER
      See Also:
    • OS_POLICY_ASSIGNMENT_FIELD_NUMBER

      public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
      See Also:
    • OS_POLICY_COMPLIANCES_FIELD_NUMBER

      public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LAST_RUN_ID_FIELD_NUMBER

      public static final int LAST_RUN_ID_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • getInstance

      public String getInstance()
       The Compute Engine VM instance name.
       
      string instance = 2;
      Specified by:
      getInstance in interface OSPolicyAssignmentReportOrBuilder
      Returns:
      The instance.
    • 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.
    • getOsPolicyCompliancesList

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

      public List<? extends OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesOrBuilderList in interface OSPolicyAssignmentReportOrBuilder
    • 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
    • getOsPolicyCompliances

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

      public OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index)
       Compliance data for each `OSPolicy` that is applied to the VM.
       
      repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
      Specified by:
      getOsPolicyCompliancesOrBuilder 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static OSPolicyAssignmentReport parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static OSPolicyAssignmentReport.Builder newBuilder()
    • newBuilder

      public static OSPolicyAssignmentReport.Builder newBuilder(OSPolicyAssignmentReport prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static OSPolicyAssignmentReport getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OSPolicyAssignmentReport> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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