Send feedback
Class ListOSPolicyAssignmentsResponse.Builder (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
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.v1.ListOSPolicyAssignmentsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addAllOsPolicyAssignments(Iterable<? extends OSPolicyAssignment> values)
public ListOSPolicyAssignmentsResponse . Builder addAllOsPolicyAssignments ( Iterable <? extends OSPolicyAssignment > values )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Name Description values Iterable <? extends com.google.cloud.osconfig.v1.OSPolicyAssignment >
Returns
addOsPolicyAssignments(OSPolicyAssignment value)
public ListOSPolicyAssignmentsResponse . Builder addOsPolicyAssignments ( OSPolicyAssignment value )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
addOsPolicyAssignments(OSPolicyAssignment.Builder builderForValue)
public ListOSPolicyAssignmentsResponse . Builder addOsPolicyAssignments ( OSPolicyAssignment . Builder builderForValue )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
addOsPolicyAssignments(int index, OSPolicyAssignment value)
public ListOSPolicyAssignmentsResponse . Builder addOsPolicyAssignments ( int index , OSPolicyAssignment value )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameters
Returns
addOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)
public ListOSPolicyAssignmentsResponse . Builder addOsPolicyAssignments ( int index , OSPolicyAssignment . Builder builderForValue )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameters
Returns
addOsPolicyAssignmentsBuilder()
public OSPolicyAssignment . Builder addOsPolicyAssignmentsBuilder ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
addOsPolicyAssignmentsBuilder(int index)
public OSPolicyAssignment . Builder addOsPolicyAssignmentsBuilder ( int index )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListOSPolicyAssignmentsResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ListOSPolicyAssignmentsResponse build ()
Returns
buildPartial()
public ListOSPolicyAssignmentsResponse buildPartial ()
Returns
clear()
public ListOSPolicyAssignmentsResponse . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListOSPolicyAssignmentsResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearNextPageToken()
public ListOSPolicyAssignmentsResponse . Builder clearNextPageToken ()
The pagination token to retrieve the next page of OS policy assignments.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListOSPolicyAssignmentsResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearOsPolicyAssignments()
public ListOSPolicyAssignmentsResponse . Builder clearOsPolicyAssignments ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
clone()
public ListOSPolicyAssignmentsResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ListOSPolicyAssignmentsResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getNextPageToken()
public String getNextPageToken ()
The pagination token to retrieve the next page of OS policy assignments.
string next_page_token = 2;
Returns
Type Description 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
Type Description ByteString The bytes for nextPageToken.
getOsPolicyAssignments(int index)
public OSPolicyAssignment getOsPolicyAssignments ( int index )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
getOsPolicyAssignmentsBuilder(int index)
public OSPolicyAssignment . Builder getOsPolicyAssignmentsBuilder ( int index )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
getOsPolicyAssignmentsBuilderList()
public List<OSPolicyAssignment . Builder > getOsPolicyAssignmentsBuilderList ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
getOsPolicyAssignmentsCount()
public int getOsPolicyAssignmentsCount ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
getOsPolicyAssignmentsList()
public List<OSPolicyAssignment> getOsPolicyAssignmentsList ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
getOsPolicyAssignmentsOrBuilder(int index)
public OSPolicyAssignmentOrBuilder getOsPolicyAssignmentsOrBuilder ( int index )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
getOsPolicyAssignmentsOrBuilderList()
public List <? extends OSPolicyAssignmentOrBuilder > getOsPolicyAssignmentsOrBuilderList ()
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Returns
Type Description List <? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ListOSPolicyAssignmentsResponse other)
public ListOSPolicyAssignmentsResponse . Builder mergeFrom ( ListOSPolicyAssignmentsResponse other )
Parameter
Returns
public ListOSPolicyAssignmentsResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListOSPolicyAssignmentsResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListOSPolicyAssignmentsResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeOsPolicyAssignments(int index)
public ListOSPolicyAssignmentsResponse . Builder removeOsPolicyAssignments ( int index )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListOSPolicyAssignmentsResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Name Description value String
The nextPageToken to set.
Returns
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
Name Description value ByteString
The bytes for nextPageToken to set.
Returns
setOsPolicyAssignments(int index, OSPolicyAssignment value)
public ListOSPolicyAssignmentsResponse . Builder setOsPolicyAssignments ( int index , OSPolicyAssignment value )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameters
Returns
setOsPolicyAssignments(int index, OSPolicyAssignment.Builder builderForValue)
public ListOSPolicyAssignmentsResponse . Builder setOsPolicyAssignments ( int index , OSPolicyAssignment . Builder builderForValue )
The list of assignments
repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListOSPolicyAssignmentsResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListOSPolicyAssignmentsResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]