Class OSPolicyAssignmentReport.Builder (2.5.6)

public static final class OSPolicyAssignmentReport.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignmentReport.Builder> implements OSPolicyAssignmentReportOrBuilder

A report of the OS policy assignment status for a given instance.

Protobuf type google.cloud.osconfig.v1.OSPolicyAssignmentReport

Static Methods

getDescriptor()

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

Methods

addAllOsPolicyCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance> values)

public OSPolicyAssignmentReport.Builder addAllOsPolicyCompliances(Iterable<? extends OSPolicyAssignmentReport.OSPolicyCompliance> values)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance>
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance value)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance value)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
valueOSPolicyAssignmentReport.OSPolicyCompliance
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
builderForValueOSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport.OSPolicyCompliance
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

public OSPolicyAssignmentReport.Builder addOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyCompliancesBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

addOsPolicyCompliancesBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder(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
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

build()

public OSPolicyAssignmentReport build()
Returns
TypeDescription
OSPolicyAssignmentReport

buildPartial()

public OSPolicyAssignmentReport buildPartial()
Returns
TypeDescription
OSPolicyAssignmentReport

clear()

public OSPolicyAssignmentReport.Builder clear()
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignmentReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

clearInstance()

public OSPolicyAssignmentReport.Builder clearInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

clearLastRunId()

public OSPolicyAssignmentReport.Builder clearLastRunId()

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
OSPolicyAssignmentReport.Builder

This builder for chaining.

clearName()

public OSPolicyAssignmentReport.Builder clearName()

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
OSPolicyAssignmentReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignmentReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

clearOsPolicyAssignment()

public OSPolicyAssignmentReport.Builder clearOsPolicyAssignment()

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
OSPolicyAssignmentReport.Builder

This builder for chaining.

clearOsPolicyCompliances()

public OSPolicyAssignmentReport.Builder clearOsPolicyCompliances()

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

clearUpdateTime()

public OSPolicyAssignmentReport.Builder clearUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

clone()

public OSPolicyAssignmentReport.Builder clone()
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

getDefaultInstanceForType()

public OSPolicyAssignmentReport getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignmentReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance

getOsPolicyCompliancesBuilder(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder getOsPolicyCompliancesBuilder(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
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

getOsPolicyCompliancesBuilderList()

public List<OSPolicyAssignmentReport.OSPolicyCompliance.Builder> getOsPolicyCompliancesBuilderList()

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
TypeDescription
List<Builder>

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

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
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.v1.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.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OSPolicyAssignmentReport other)

public OSPolicyAssignmentReport.Builder mergeFrom(OSPolicyAssignmentReport other)
Parameter
NameDescription
otherOSPolicyAssignmentReport
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyAssignmentReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OSPolicyAssignmentReport.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

mergeUpdateTime(Timestamp value)

public OSPolicyAssignmentReport.Builder mergeUpdateTime(Timestamp value)

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

removeOsPolicyCompliances(int index)

public OSPolicyAssignmentReport.Builder removeOsPolicyCompliances(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
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

setInstance(String value)

public OSPolicyAssignmentReport.Builder setInstance(String value)

The Compute Engine VM instance name.

string instance = 2;

Parameter
NameDescription
valueString

The instance to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public OSPolicyAssignmentReport.Builder setInstanceBytes(ByteString value)

The Compute Engine VM instance name.

string instance = 2;

Parameter
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setLastRunId(String value)

public OSPolicyAssignmentReport.Builder setLastRunId(String value)

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;

Parameter
NameDescription
valueString

The lastRunId to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setLastRunIdBytes(ByteString value)

public OSPolicyAssignmentReport.Builder setLastRunIdBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for lastRunId to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setName(String value)

public OSPolicyAssignmentReport.Builder setName(String value)

The OSPolicyAssignmentReport API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OSPolicyAssignmentReport.Builder setNameBytes(ByteString value)

The OSPolicyAssignmentReport API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setOsPolicyAssignment(String value)

public OSPolicyAssignmentReport.Builder setOsPolicyAssignment(String value)

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) = { ... }

Parameter
NameDescription
valueString

The osPolicyAssignment to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setOsPolicyAssignmentBytes(ByteString value)

public OSPolicyAssignmentReport.Builder setOsPolicyAssignmentBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for osPolicyAssignment to set.

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

This builder for chaining.

setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

public OSPolicyAssignmentReport.Builder setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance value)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport.OSPolicyCompliance
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

public OSPolicyAssignmentReport.Builder setOsPolicyCompliances(int index, OSPolicyAssignmentReport.OSPolicyCompliance.Builder builderForValue)

Compliance data for each OSPolicy that is applied to the VM.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OSPolicyAssignmentReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicyAssignmentReport.Builder
Overrides

setUpdateTime(Timestamp value)

public OSPolicyAssignmentReport.Builder setUpdateTime(Timestamp value)

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public OSPolicyAssignmentReport.Builder setUpdateTime(Timestamp.Builder builderForValue)

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OSPolicyAssignmentReport.Builder