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.v1.OSPolicyAssignmentReport
Static Fields
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
Field Value
LAST_RUN_ID_FIELD_NUMBER
public static final int LAST_RUN_ID_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OS_POLICY_ASSIGNMENT_FIELD_NUMBER
public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
OS_POLICY_COMPLIANCES_FIELD_NUMBER
public static final int OS_POLICY_COMPLIANCES_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OSPolicyAssignmentReport getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OSPolicyAssignmentReport.Builder newBuilder()
Returns
newBuilder(OSPolicyAssignmentReport prototype)
public static OSPolicyAssignmentReport.Builder newBuilder(OSPolicyAssignmentReport prototype)
Parameter
Returns
public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignmentReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OSPolicyAssignmentReport parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignmentReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OSPolicyAssignmentReport parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignmentReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicyAssignmentReport parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignmentReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicyAssignmentReport parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignmentReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OSPolicyAssignmentReport parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignmentReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OSPolicyAssignmentReport> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public OSPolicyAssignmentReport getDefaultInstanceForType()
Returns
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
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
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
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.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
Parameter
Returns
getOsPolicyCompliancesCount()
public int getOsPolicyCompliancesCount()
Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
Returns
getOsPolicyCompliancesList()
public List<OSPolicyAssignmentReport.OSPolicyCompliance> getOsPolicyCompliancesList()
Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
Returns
getOsPolicyCompliancesOrBuilder(int index)
public OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index)
Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
Parameter
Returns
getOsPolicyCompliancesOrBuilderList()
public List<? extends OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()
Compliance data for each OSPolicy
that is applied to the VM.
repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> | |
getParserForType()
public Parser<OSPolicyAssignmentReport> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Timestamp for when the report was last generated.
.google.protobuf.Timestamp update_time = 5;
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Timestamp for when the report was last generated.
.google.protobuf.Timestamp update_time = 5;
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OSPolicyAssignmentReport.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicyAssignmentReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OSPolicyAssignmentReport.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions