Class OSPolicyAssignmentReport.Builder (2.54.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance>
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
value OSPolicyAssignmentReport.OSPolicyCompliance
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
builderForValue OSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
Name Description
index int
value OSPolicyAssignmentReport.OSPolicyCompliance
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
Name Description
index int
builderForValue OSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
Type Description
OSPolicyAssignmentReport.Builder

addOsPolicyCompliancesBuilder()

public OSPolicyAssignmentReport.OSPolicyCompliance.Builder addOsPolicyCompliancesBuilder()

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

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

Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

build()

public OSPolicyAssignmentReport build()
Returns
Type Description
OSPolicyAssignmentReport

buildPartial()

public OSPolicyAssignmentReport buildPartial()
Returns
Type Description
OSPolicyAssignmentReport

clear()

public OSPolicyAssignmentReport.Builder clear()
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignmentReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

clearInstance()

public OSPolicyAssignmentReport.Builder clearInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
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
Type Description
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
Type Description
OSPolicyAssignmentReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignmentReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
Type Description
OSPolicyAssignmentReport.Builder

clearUpdateTime()

public OSPolicyAssignmentReport.Builder clearUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
OSPolicyAssignmentReport.Builder

clone()

public OSPolicyAssignmentReport.Builder clone()
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

getDefaultInstanceForType()

public OSPolicyAssignmentReport getDefaultInstanceForType()
Returns
Type Description
OSPolicyAssignmentReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstance()

public String getInstance()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The Compute Engine VM instance name.

string instance = 2;

Returns
Type Description
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
Type Description
String

The lastRunId.

getLastRunIdBytes()

public ByteString getLastRunIdBytes()

Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.

This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.

string last_run_id = 6;

Returns
Type Description
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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The OSPolicyAssignmentReport API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report

string name = 1;

Returns
Type Description
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
Type Description
String

The osPolicyAssignment.

getOsPolicyAssignmentBytes()

public ByteString getOsPolicyAssignmentBytes()

Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

string os_policy_assignment = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for osPolicyAssignment.

getOsPolicyCompliances(int index)

public OSPolicyAssignmentReport.OSPolicyCompliance getOsPolicyCompliances(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Returns
Type Description
List<Builder>

getOsPolicyCompliancesCount()

public int getOsPolicyCompliancesCount()

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

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

Returns
Type Description
int

getOsPolicyCompliancesList()

public List<OSPolicyAssignmentReport.OSPolicyCompliance> getOsPolicyCompliancesList()

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

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

Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder

getOsPolicyCompliancesOrBuilderList()

public List<? extends OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder> getOsPolicyCompliancesOrBuilderList()

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

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

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyComplianceOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Timestamp for when the report was last generated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OSPolicyAssignmentReport other)

public OSPolicyAssignmentReport.Builder mergeFrom(OSPolicyAssignmentReport other)
Parameter
Name Description
other OSPolicyAssignmentReport
Returns
Type Description
OSPolicyAssignmentReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicyAssignmentReport.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OSPolicyAssignmentReport.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameter
Name Description
index int
Returns
Type Description
OSPolicyAssignmentReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignmentReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

setInstance(String value)

public OSPolicyAssignmentReport.Builder setInstance(String value)

The Compute Engine VM instance name.

string instance = 2;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
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
Name Description
value String

The lastRunId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for lastRunId to set.

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The osPolicyAssignment to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for osPolicyAssignment to set.

Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
Name Description
index int
value OSPolicyAssignmentReport.OSPolicyCompliance
Returns
Type Description
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.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4;

Parameters
Name Description
index int
builderForValue OSPolicyAssignmentReport.OSPolicyCompliance.Builder
Returns
Type Description
OSPolicyAssignmentReport.Builder

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

public OSPolicyAssignmentReport.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OSPolicyAssignmentReport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicyAssignmentReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
OSPolicyAssignmentReport.Builder