Class ListOSPolicyAssignmentRevisionsResponse.Builder (2.30.0)

public static final class ListOSPolicyAssignmentRevisionsResponse.Builder extends GeneratedMessageV3.Builder<ListOSPolicyAssignmentRevisionsResponse.Builder> implements ListOSPolicyAssignmentRevisionsResponseOrBuilder

A response message for listing all revisions for a OS policy assignment.

Protobuf type google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse

Static Methods

getDescriptor()

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

Methods

addAllOsPolicyAssignments(Iterable<? extends OSPolicyAssignment> values)

public ListOSPolicyAssignmentRevisionsResponse.Builder addAllOsPolicyAssignments(Iterable<? extends OSPolicyAssignment> values)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

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

addOsPolicyAssignments(OSPolicyAssignment value)

public ListOSPolicyAssignmentRevisionsResponse.Builder addOsPolicyAssignments(OSPolicyAssignment value)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Parameter
NameDescription
valueOSPolicyAssignment
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse.Builder

addOsPolicyAssignments(OSPolicyAssignment.Builder builderForValue)

public ListOSPolicyAssignmentRevisionsResponse.Builder addOsPolicyAssignments(OSPolicyAssignment.Builder builderForValue)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Parameter
NameDescription
builderForValueOSPolicyAssignment.Builder
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse.Builder

addOsPolicyAssignments(int index, OSPolicyAssignment value)

public ListOSPolicyAssignmentRevisionsResponse.Builder addOsPolicyAssignments(int index, OSPolicyAssignment value)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Parameters
NameDescription
indexint
valueOSPolicyAssignment
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse.Builder

addOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)

public ListOSPolicyAssignmentRevisionsResponse.Builder addOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignment.Builder
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse.Builder

addOsPolicyAssignmentsBuilder()

public OSPolicyAssignment.Builder addOsPolicyAssignmentsBuilder()

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Returns
TypeDescription
OSPolicyAssignment.Builder

addOsPolicyAssignmentsBuilder(int index)

public OSPolicyAssignment.Builder addOsPolicyAssignmentsBuilder(int index)

The OS policy assignment revisions

repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOSPolicyAssignmentRevisionsResponse build()
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse

buildPartial()

public ListOSPolicyAssignmentRevisionsResponse buildPartial()
Returns
TypeDescription
ListOSPolicyAssignmentRevisionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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