Class OSPolicyAssignmentReport (2.5.1)

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
TypeDescription
int

LAST_RUN_ID_FIELD_NUMBER

public static final int LAST_RUN_ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OS_POLICY_ASSIGNMENT_FIELD_NUMBER

public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
TypeDescription
int

OS_POLICY_COMPLIANCES_FIELD_NUMBER

public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OSPolicyAssignmentReport getDefaultInstance()
Returns
TypeDescription
OSPolicyAssignmentReport

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OSPolicyAssignmentReport.Builder newBuilder()
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

newBuilder(OSPolicyAssignmentReport prototype)

public static OSPolicyAssignmentReport.Builder newBuilder(OSPolicyAssignmentReport prototype)
Parameter
NameDescription
prototypeOSPolicyAssignmentReport
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OSPolicyAssignmentReport parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicyAssignmentReport parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicyAssignmentReport parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OSPolicyAssignmentReport parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OSPolicyAssignmentReport parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignmentReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OSPolicyAssignmentReport> parser()
Returns
TypeDescription
Parser<OSPolicyAssignmentReport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OSPolicyAssignmentReport getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignmentReport

getInstance()

public String getInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The Compute Engine VM instance name.

string instance = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder>

getParserForType()

public Parser<OSPolicyAssignmentReport> getParserForType()
Returns
TypeDescription
Parser<OSPolicyAssignmentReport>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OSPolicyAssignmentReport.Builder newBuilderForType()
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicyAssignmentReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OSPolicyAssignmentReport.Builder toBuilder()
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException