- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class InstanceOSPoliciesCompliance.Builder extends GeneratedMessageV3.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.
Protobuf type google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InstanceOSPoliciesCompliance.BuilderImplements
InstanceOSPoliciesComplianceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllOsPolicyCompliances(Iterable<? extends InstanceOSPoliciesCompliance.OSPolicyCompliance> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance> |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance value)
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];
Parameter | |
---|---|
Name | Description |
value | InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue | InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value)
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];
Parameters | |
---|---|
Name | Description |
index | int |
value | InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
addOsPolicyCompliancesBuilder()
public InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder 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];
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addOsPolicyCompliancesBuilder(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceOSPoliciesCompliance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
build()
public InstanceOSPoliciesCompliance build()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance |
buildPartial()
public InstanceOSPoliciesCompliance buildPartial()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance |
clear()
public InstanceOSPoliciesCompliance.Builder clear()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
clearDetailedState()
public InstanceOSPoliciesCompliance.Builder 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 | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clearDetailedStateReason()
public InstanceOSPoliciesCompliance.Builder 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 | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public InstanceOSPoliciesCompliance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
clearInstance()
public InstanceOSPoliciesCompliance.Builder clearInstance()
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clearLastComplianceCheckTime()
public InstanceOSPoliciesCompliance.Builder 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];
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
clearLastComplianceRunId()
public InstanceOSPoliciesCompliance.Builder 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 | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clearName()
public InstanceOSPoliciesCompliance.Builder 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 | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceOSPoliciesCompliance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
clearOsPolicyCompliances()
public InstanceOSPoliciesCompliance.Builder 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];
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
clearState()
public InstanceOSPoliciesCompliance.Builder clearState()
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
clone()
public InstanceOSPoliciesCompliance.Builder clone()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
getDefaultInstanceForType()
public InstanceOSPoliciesCompliance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDetailedState()
public String 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];
Returns | |
---|---|
Type | Description |
String | The detailedState. |
getDetailedStateBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for detailedState. |
getDetailedStateReason()
public String 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];
Returns | |
---|---|
Type | Description |
String | The detailedStateReason. |
getDetailedStateReasonBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for detailedStateReason. |
getInstance()
public String getInstance()
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The instance. |
getInstanceBytes()
public ByteString getInstanceBytes()
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for instance. |
getLastComplianceCheckTime()
public 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];
Returns | |
---|---|
Type | Description |
Timestamp | The lastComplianceCheckTime. |
getLastComplianceCheckTimeBuilder()
public 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];
Returns | |
---|---|
Type | Description |
Builder |
getLastComplianceCheckTimeOrBuilder()
public 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];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getLastComplianceRunId()
public String 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];
Returns | |
---|---|
Type | Description |
String | The lastComplianceRunId. |
getLastComplianceRunIdBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for lastComplianceRunId. |
getName()
public String 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];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getOsPolicyCompliances(int index)
public InstanceOSPoliciesCompliance.OSPolicyCompliance getOsPolicyCompliances(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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance |
getOsPolicyCompliancesBuilder(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
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];
Returns | |
---|---|
Type | Description |
List<Builder> |
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];
Returns | |
---|---|
Type | Description |
int |
getOsPolicyCompliancesList()
public List<InstanceOSPoliciesCompliance.OSPolicyCompliance> 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];
Returns | |
---|---|
Type | Description |
List<OSPolicyCompliance> |
getOsPolicyCompliancesOrBuilder(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder |
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];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyComplianceOrBuilder> |
getState()
public OSPolicyComplianceState getState()
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
OSPolicyComplianceState | The state. |
getStateValue()
public int getStateValue()
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
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];
Returns | |
---|---|
Type | Description |
boolean | Whether the lastComplianceCheckTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InstanceOSPoliciesCompliance other)
public InstanceOSPoliciesCompliance.Builder mergeFrom(InstanceOSPoliciesCompliance other)
Parameter | |
---|---|
Name | Description |
other | InstanceOSPoliciesCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceOSPoliciesCompliance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InstanceOSPoliciesCompliance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
mergeLastComplianceCheckTime(Timestamp value)
public InstanceOSPoliciesCompliance.Builder mergeLastComplianceCheckTime(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];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceOSPoliciesCompliance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
removeOsPolicyCompliances(int index)
public InstanceOSPoliciesCompliance.Builder removeOsPolicyCompliances(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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setDetailedState(String value)
public InstanceOSPoliciesCompliance.Builder setDetailedState(String 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];
Parameter | |
---|---|
Name | Description |
value | String The detailedState to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setDetailedStateBytes(ByteString value)
public InstanceOSPoliciesCompliance.Builder setDetailedStateBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for detailedState to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setDetailedStateReason(String value)
public InstanceOSPoliciesCompliance.Builder setDetailedStateReason(String 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];
Parameter | |
---|---|
Name | Description |
value | String The detailedStateReason to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setDetailedStateReasonBytes(ByteString value)
public InstanceOSPoliciesCompliance.Builder setDetailedStateReasonBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for detailedStateReason to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceOSPoliciesCompliance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setInstance(String value)
public InstanceOSPoliciesCompliance.Builder setInstance(String value)
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The instance to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setInstanceBytes(ByteString value)
public InstanceOSPoliciesCompliance.Builder setInstanceBytes(ByteString value)
Output only. The Compute Engine VM instance name.
string instance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for instance to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setLastComplianceCheckTime(Timestamp value)
public InstanceOSPoliciesCompliance.Builder setLastComplianceCheckTime(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];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setLastComplianceCheckTime(Timestamp.Builder builderForValue)
public InstanceOSPoliciesCompliance.Builder setLastComplianceCheckTime(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];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setLastComplianceRunId(String value)
public InstanceOSPoliciesCompliance.Builder setLastComplianceRunId(String 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];
Parameter | |
---|---|
Name | Description |
value | String The lastComplianceRunId to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setLastComplianceRunIdBytes(ByteString value)
public InstanceOSPoliciesCompliance.Builder setLastComplianceRunIdBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for lastComplianceRunId to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setName(String value)
public InstanceOSPoliciesCompliance.Builder setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public InstanceOSPoliciesCompliance.Builder setNameBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance value)
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];
Parameters | |
---|---|
Name | Description |
index | int |
value | InstanceOSPoliciesCompliance.OSPolicyCompliance |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setOsPolicyCompliances(int index, InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder builderForValue)
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];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | InstanceOSPoliciesCompliance.OSPolicyCompliance.Builder |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceOSPoliciesCompliance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |
setState(OSPolicyComplianceState value)
public InstanceOSPoliciesCompliance.Builder setState(OSPolicyComplianceState value)
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | OSPolicyComplianceState The state to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setStateValue(int value)
public InstanceOSPoliciesCompliance.Builder setStateValue(int value)
Output only. Compliance state of the VM.
.google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceOSPoliciesCompliance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance.Builder |