Class ListOSPolicyAssignmentsResponse.Builder (2.42.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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOSPolicyAssignmentsResponse.Builder clearNextPageToken()

The pagination token to retrieve the next page of OS policy assignments.

string next_page_token = 2;

Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyAssignments()

public ListOSPolicyAssignmentsResponse.Builder clearOsPolicyAssignments()

The list of assignments

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

Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListOSPolicyAssignmentsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOSPolicyAssignmentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The pagination token to retrieve the next page of OS policy assignments.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The pagination token to retrieve the next page of OS policy assignments.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getOsPolicyAssignments(int index)

public OSPolicyAssignment getOsPolicyAssignments(int index)

The list of assignments

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment

getOsPolicyAssignmentsBuilder(int index)

public OSPolicyAssignment.Builder getOsPolicyAssignmentsBuilder(int index)

The list of assignments

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.Builder

getOsPolicyAssignmentsBuilderList()

public List<OSPolicyAssignment.Builder> getOsPolicyAssignmentsBuilderList()

The list of assignments

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

Returns
TypeDescription
List<Builder>

getOsPolicyAssignmentsCount()

public int getOsPolicyAssignmentsCount()

The list of assignments

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

Returns
TypeDescription
int

getOsPolicyAssignmentsList()

public List<OSPolicyAssignment> getOsPolicyAssignmentsList()

The list of assignments

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

Returns
TypeDescription
List<OSPolicyAssignment>

getOsPolicyAssignmentsOrBuilder(int index)

public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentsOrBuilder(int index)

The list of assignments

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

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentOrBuilder

getOsPolicyAssignmentsOrBuilderList()

public List<? extends OSPolicyAssignmentOrBuilder> getOsPolicyAssignmentsOrBuilderList()

The list of assignments

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

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListOSPolicyAssignmentsResponse other)

public ListOSPolicyAssignmentsResponse.Builder mergeFrom(ListOSPolicyAssignmentsResponse other)
Parameter
NameDescription
otherListOSPolicyAssignmentsResponse
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOsPolicyAssignments(int index)

public ListOSPolicyAssignmentsResponse.Builder removeOsPolicyAssignments(int index)

The list of assignments

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListOSPolicyAssignmentsResponse.Builder setNextPageToken(String value)

The pagination token to retrieve the next page of OS policy assignments.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOSPolicyAssignmentsResponse.Builder setNextPageTokenBytes(ByteString value)

The pagination token to retrieve the next page of OS policy assignments.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListOSPolicyAssignmentsResponse.Builder

This builder for chaining.

setOsPolicyAssignments(int index, OSPolicyAssignment value)

public ListOSPolicyAssignmentsResponse.Builder setOsPolicyAssignments(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

setOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)

public ListOSPolicyAssignmentsResponse.Builder setOsPolicyAssignments(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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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