Class OSPolicyAssignmentReport (2.47.0)

public final class OSPolicyAssignmentReport extends GeneratedMessageV3 implements OSPolicyAssignmentReportOrBuilder

A report of the OS policy assignment status for a given instance.

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport

Static Fields

INSTANCE_FIELD_NUMBER

public static final int INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

LAST_RUN_ID_FIELD_NUMBER

public static final int LAST_RUN_ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OS_POLICY_ASSIGNMENT_FIELD_NUMBER

public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
Type Description
int

OS_POLICY_COMPLIANCES_FIELD_NUMBER

public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OSPolicyAssignmentReport getDefaultInstance()
Returns
Type Description
OSPolicyAssignmentReport

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OSPolicyAssignmentReport.Builder newBuilder()
Returns
Type Description
OSPolicyAssignmentReport.Builder

newBuilder(OSPolicyAssignmentReport prototype)

public static OSPolicyAssignmentReport.Builder newBuilder(OSPolicyAssignmentReport prototype)
Parameter
Name Description
prototype OSPolicyAssignmentReport
Returns
Type Description
OSPolicyAssignmentReport.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OSPolicyAssignmentReport parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicyAssignmentReport parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicyAssignmentReport parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OSPolicyAssignmentReport parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OSPolicyAssignmentReport parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OSPolicyAssignmentReport> parser()
Returns
Type Description
Parser<OSPolicyAssignmentReport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public OSPolicyAssignmentReport getDefaultInstanceForType()
Returns
Type Description
OSPolicyAssignmentReport

getInstance()

public String getInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
ByteString

The bytes for instance.

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;

Returns
Type Description
String

The lastRunId.

getLastRunIdBytes()

public 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;

Returns
Type Description
ByteString

The bytes for lastRunId.

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;

Returns
Type Description
String

The name.

getNameBytes()

public 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;

Returns
Type Description
ByteString

The bytes for name.

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) = { ... }

Returns
Type Description
String

The osPolicyAssignment.

getOsPolicyAssignmentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for osPolicyAssignment.

getOsPolicyCompliances(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyCompliance

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;

Returns
Type Description
int

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;

Returns
Type Description
List<OSPolicyCompliance>

getOsPolicyCompliancesOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder>

getParserForType()

public Parser<OSPolicyAssignmentReport> getParserForType()
Returns
Type Description
Parser<OSPolicyAssignmentReport>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OSPolicyAssignmentReport.Builder newBuilderForType()
Returns
Type Description
OSPolicyAssignmentReport.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicyAssignmentReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OSPolicyAssignmentReport.Builder toBuilder()
Returns
Type Description
OSPolicyAssignmentReport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException