public static final class InstanceOSPoliciesCompliance.OSPolicyCompliance extends GeneratedMessageV3 implements InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder
Compliance data for an OS policy
Protobuf type
google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance
Static Fields
OS_POLICY_ASSIGNMENT_FIELD_NUMBER
public static final int OS_POLICY_ASSIGNMENT_FIELD_NUMBER
Field Value
OS_POLICY_ID_FIELD_NUMBER
public static final int OS_POLICY_ID_FIELD_NUMBER
Field Value
OS_POLICY_RESOURCE_COMPLIANCES_FIELD_NUMBER
public static final int OS_POLICY_RESOURCE_COMPLIANCES_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static InstanceOSPoliciesCompliance.OSPolicyCompliance getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder newBuilder()
Returns
newBuilder(InstanceOSPoliciesCompliance.OSPolicyCompliance prototype)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder newBuilder(InstanceOSPoliciesCompliance.OSPolicyCompliance prototype)
Parameter
Returns
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstanceOSPoliciesCompliance.OSPolicyCompliance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<InstanceOSPoliciesCompliance.OSPolicyCompliance> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public InstanceOSPoliciesCompliance.OSPolicyCompliance getDefaultInstanceForType()
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 = 2 [(.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 = 2 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for osPolicyAssignment.
|
getOsPolicyId()
public String getOsPolicyId()
The OS policy id
string os_policy_id = 1;
Returns
Type | Description |
String | The osPolicyId.
|
getOsPolicyIdBytes()
public ByteString getOsPolicyIdBytes()
The OS policy id
string os_policy_id = 1;
Returns
Type | Description |
ByteString | The bytes for osPolicyId.
|
getOsPolicyResourceCompliances(int index)
public OSPolicyResourceCompliance getOsPolicyResourceCompliances(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter
Returns
getOsPolicyResourceCompliancesCount()
public int getOsPolicyResourceCompliancesCount()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns
getOsPolicyResourceCompliancesList()
public List<OSPolicyResourceCompliance> getOsPolicyResourceCompliancesList()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns
getOsPolicyResourceCompliancesOrBuilder(int index)
public OSPolicyResourceComplianceOrBuilder getOsPolicyResourceCompliancesOrBuilder(int index)
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Parameter
Returns
getOsPolicyResourceCompliancesOrBuilderList()
public List<? extends OSPolicyResourceComplianceOrBuilder> getOsPolicyResourceCompliancesOrBuilderList()
Compliance data for each OSPolicyResource
that is applied to the
VM.
repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5;
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyResourceComplianceOrBuilder> | |
getParserForType()
public Parser<InstanceOSPoliciesCompliance.OSPolicyCompliance> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getState()
public OSPolicyComplianceState getState()
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Returns
getStateValue()
public int getStateValue()
Compliance state of the OS policy.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions