Class InstanceOSPoliciesCompliance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.Builder
- All Implemented Interfaces:
InstanceOSPoliciesComplianceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceOSPoliciesCompliance
public static final class InstanceOSPoliciesCompliance.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
implements InstanceOSPoliciesComplianceOrBuilder
This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time. A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM. You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy. For more information, see [View compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).Protobuf type
google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance-
Method Summary
Modifier and TypeMethodDescriptionaddAllOsPolicyCompliances(Iterable<? extends InstanceOSPoliciesCompliance.OSPolicyCompliance> values) Output only.addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value) Output only.addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue) Output only.Output only.Output only.Output only.addOsPolicyCompliancesBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.getOsPolicyCompliances(int index) Output only.getOsPolicyCompliancesBuilder(int index) Output only.Output only.intOutput only.Output only.getOsPolicyCompliancesOrBuilder(int index) Output only.Output only.getState()Output only.intOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastComplianceCheckTime(com.google.protobuf.Timestamp value) Output only.removeOsPolicyCompliances(int index) Output only.setDetailedState(String value) Output only.setDetailedStateBytes(com.google.protobuf.ByteString value) Output only.setDetailedStateReason(String value) Output only.setDetailedStateReasonBytes(com.google.protobuf.ByteString value) Output only.setInstance(String value) Output only.setInstanceBytes(com.google.protobuf.ByteString value) Output only.setLastComplianceCheckTime(com.google.protobuf.Timestamp value) Output only.setLastComplianceCheckTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setLastComplianceRunId(String value) Output only.setLastComplianceRunIdBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value) Output only.setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue) Output only.setState(OSPolicyComplianceState value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceOSPoliciesCompliance.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceOSPoliciesCompliance.Builder>
-
mergeFrom
public InstanceOSPoliciesCompliance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceOSPoliciesCompliance.Builder>- Throws:
IOException
-
getName
Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInstance
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceBytesin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The bytes for instance.
-
setInstance
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setInstanceBytes
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for instance to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The state.
-
setState
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDetailedState
Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailedStatein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The detailedState.
-
getDetailedStateBytes
public com.google.protobuf.ByteString getDetailedStateBytes()Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailedStateBytesin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The bytes for detailedState.
-
setDetailedState
Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The detailedState to set.- Returns:
- This builder for chaining.
-
clearDetailedState
Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDetailedStateBytes
public InstanceOSPoliciesCompliance.Builder setDetailedStateBytes(com.google.protobuf.ByteString value) Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
string detailed_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for detailedState to set.- Returns:
- This builder for chaining.
-
getDetailedStateReason
Output only. The reason for the `detailed_state` of the VM (if any).
string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailedStateReasonin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The detailedStateReason.
-
getDetailedStateReasonBytes
public com.google.protobuf.ByteString getDetailedStateReasonBytes()Output only. The reason for the `detailed_state` of the VM (if any).
string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailedStateReasonBytesin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The bytes for detailedStateReason.
-
setDetailedStateReason
Output only. The reason for the `detailed_state` of the VM (if any).
string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The detailedStateReason to set.- Returns:
- This builder for chaining.
-
clearDetailedStateReason
Output only. The reason for the `detailed_state` of the VM (if any).
string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDetailedStateReasonBytes
public InstanceOSPoliciesCompliance.Builder setDetailedStateReasonBytes(com.google.protobuf.ByteString value) Output only. The reason for the `detailed_state` of the VM (if any).
string detailed_state_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for detailedStateReason to set.- Returns:
- This builder for chaining.
-
getOsPolicyCompliancesList
Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsPolicyCompliancesListin interfaceInstanceOSPoliciesComplianceOrBuilder
-
getOsPolicyCompliancesCount
public int getOsPolicyCompliancesCount()Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsPolicyCompliancesCountin interfaceInstanceOSPoliciesComplianceOrBuilder
-
getOsPolicyCompliances
Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsPolicyCompliancesin interfaceInstanceOSPoliciesComplianceOrBuilder
-
setOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance value) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllOsPolicyCompliances
public InstanceOSPoliciesCompliance.Builder addAllOsPolicyCompliances(Iterable<? extends InstanceOSPoliciesCompliance.OSPolicyCompliance> values) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearOsPolicyCompliances
Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeOsPolicyCompliances
Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getOsPolicyCompliancesBuilder
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder getOsPolicyCompliancesBuilder(int index) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getOsPolicyCompliancesOrBuilder
public InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder getOsPolicyCompliancesOrBuilder(int index) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsPolicyCompliancesOrBuilderin interfaceInstanceOSPoliciesComplianceOrBuilder
-
getOsPolicyCompliancesOrBuilderList
public List<? extends InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOsPolicyCompliancesOrBuilderListin interfaceInstanceOSPoliciesComplianceOrBuilder
-
addOsPolicyCompliancesBuilder
Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addOsPolicyCompliancesBuilder
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder(int index) Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getOsPolicyCompliancesBuilderList
public List<InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder> getOsPolicyCompliancesBuilderList()Output only. Compliance data for each `OSPolicy` that is applied to the VM.
repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasLastComplianceCheckTime
public boolean hasLastComplianceCheckTime()Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLastComplianceCheckTimein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- Whether the lastComplianceCheckTime field is set.
-
getLastComplianceCheckTime
public com.google.protobuf.Timestamp getLastComplianceCheckTime()Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastComplianceCheckTimein interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The lastComplianceCheckTime.
-
setLastComplianceCheckTime
public InstanceOSPoliciesCompliance.Builder setLastComplianceCheckTime(com.google.protobuf.Timestamp value) Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setLastComplianceCheckTime
public InstanceOSPoliciesCompliance.Builder setLastComplianceCheckTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeLastComplianceCheckTime
public InstanceOSPoliciesCompliance.Builder mergeLastComplianceCheckTime(com.google.protobuf.Timestamp value) Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearLastComplianceCheckTime
Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastComplianceCheckTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastComplianceCheckTimeBuilder()Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getLastComplianceCheckTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastComplianceCheckTimeOrBuilder()Output only. Timestamp of the last compliance check for the VM.
.google.protobuf.Timestamp last_compliance_check_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastComplianceCheckTimeOrBuilderin interfaceInstanceOSPoliciesComplianceOrBuilder
-
getLastComplianceRunId
Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastComplianceRunIdin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The lastComplianceRunId.
-
getLastComplianceRunIdBytes
public com.google.protobuf.ByteString getLastComplianceRunIdBytes()Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastComplianceRunIdBytesin interfaceInstanceOSPoliciesComplianceOrBuilder- Returns:
- The bytes for lastComplianceRunId.
-
setLastComplianceRunId
Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The lastComplianceRunId to set.- Returns:
- This builder for chaining.
-
clearLastComplianceRunId
Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLastComplianceRunIdBytes
public InstanceOSPoliciesCompliance.Builder setLastComplianceRunIdBytes(com.google.protobuf.ByteString value) Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
string last_compliance_run_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for lastComplianceRunId to set.- Returns:
- This builder for chaining.
-