Class ListOSPolicyAssignmentsResponse.Builder (2.21.0)

public static final class ListOSPolicyAssignmentsResponse.Builder extends GeneratedMessageV3.Builder<ListOSPolicyAssignmentsResponse.Builder> implements ListOSPolicyAssignmentsResponseOrBuilder

A response message for listing all assignments under given parent.

Protobuf type google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse

Static Methods

getDescriptor()

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

Methods

addAllOsPolicyAssignments(Iterable<? extends OSPolicyAssignment> values)

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

The list of assignments

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

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

addOsPolicyAssignments(OSPolicyAssignment value)

public ListOSPolicyAssignmentsResponse.Builder addOsPolicyAssignments(OSPolicyAssignment value)

The list of assignments

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

Parameter
NameDescription
valueOSPolicyAssignment
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

addOsPolicyAssignments(OSPolicyAssignment.Builder builderForValue)

public ListOSPolicyAssignmentsResponse.Builder addOsPolicyAssignments(OSPolicyAssignment.Builder builderForValue)

The list of assignments

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

Parameter
NameDescription
builderForValueOSPolicyAssignment.Builder
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

addOsPolicyAssignments(int index, OSPolicyAssignment value)

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

The list of assignments

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

Parameters
NameDescription
indexint
valueOSPolicyAssignment
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

addOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)

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

The list of assignments

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

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignment.Builder
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

addOsPolicyAssignmentsBuilder()

public OSPolicyAssignment.Builder addOsPolicyAssignmentsBuilder()

The list of assignments

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

Returns
TypeDescription
OSPolicyAssignment.Builder

addOsPolicyAssignmentsBuilder(int index)

public OSPolicyAssignment.Builder addOsPolicyAssignmentsBuilder(int index)

The list of assignments

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOSPolicyAssignmentsResponse build()
Returns
TypeDescription
ListOSPolicyAssignmentsResponse

buildPartial()

public ListOSPolicyAssignmentsResponse buildPartial()
Returns
TypeDescription
ListOSPolicyAssignmentsResponse

clear()

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