Class ListOSPolicyAssignmentReportsResponse.Builder (2.30.0)

public static final class ListOSPolicyAssignmentReportsResponse.Builder extends GeneratedMessageV3.Builder<ListOSPolicyAssignmentReportsResponse.Builder> implements ListOSPolicyAssignmentReportsResponseOrBuilder

A response message for listing OS Policy assignment reports including the page of results and page token.

Protobuf type google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse

Static Methods

getDescriptor()

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

Methods

addAllOsPolicyAssignmentReports(Iterable<? extends OSPolicyAssignmentReport> values)

public ListOSPolicyAssignmentReportsResponse.Builder addAllOsPolicyAssignmentReports(Iterable<? extends OSPolicyAssignmentReport> values)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

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

addOsPolicyAssignmentReports(OSPolicyAssignmentReport value)

public ListOSPolicyAssignmentReportsResponse.Builder addOsPolicyAssignmentReports(OSPolicyAssignmentReport value)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
valueOSPolicyAssignmentReport
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

addOsPolicyAssignmentReports(OSPolicyAssignmentReport.Builder builderForValue)

public ListOSPolicyAssignmentReportsResponse.Builder addOsPolicyAssignmentReports(OSPolicyAssignmentReport.Builder builderForValue)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
builderForValueOSPolicyAssignmentReport.Builder
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

addOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport value)

public ListOSPolicyAssignmentReportsResponse.Builder addOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport value)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

addOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport.Builder builderForValue)

public ListOSPolicyAssignmentReportsResponse.Builder addOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport.Builder builderForValue)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignmentReport.Builder
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

addOsPolicyAssignmentReportsBuilder()

public OSPolicyAssignmentReport.Builder addOsPolicyAssignmentReportsBuilder()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addOsPolicyAssignmentReportsBuilder(int index)

public OSPolicyAssignmentReport.Builder addOsPolicyAssignmentReportsBuilder(int index)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOSPolicyAssignmentReportsResponse build()
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse

buildPartial()

public ListOSPolicyAssignmentReportsResponse buildPartial()
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOSPolicyAssignmentReportsResponse.Builder clearNextPageToken()

The pagination token to retrieve the next page of OS policy assignment report objects.

string next_page_token = 2;

Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsPolicyAssignmentReports()

public ListOSPolicyAssignmentReportsResponse.Builder clearOsPolicyAssignmentReports()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListOSPolicyAssignmentReportsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The pagination token to retrieve the next page of OS policy assignment report objects.

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 assignment report objects.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getOsPolicyAssignmentReports(int index)

public OSPolicyAssignmentReport getOsPolicyAssignmentReports(int index)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport

getOsPolicyAssignmentReportsBuilder(int index)

public OSPolicyAssignmentReport.Builder getOsPolicyAssignmentReportsBuilder(int index)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReport.Builder

getOsPolicyAssignmentReportsBuilderList()

public List<OSPolicyAssignmentReport.Builder> getOsPolicyAssignmentReportsBuilderList()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
List<Builder>

getOsPolicyAssignmentReportsCount()

public int getOsPolicyAssignmentReportsCount()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
int

getOsPolicyAssignmentReportsList()

public List<OSPolicyAssignmentReport> getOsPolicyAssignmentReportsList()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
List<OSPolicyAssignmentReport>

getOsPolicyAssignmentReportsOrBuilder(int index)

public OSPolicyAssignmentReportOrBuilder getOsPolicyAssignmentReportsOrBuilder(int index)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignmentReportOrBuilder

getOsPolicyAssignmentReportsOrBuilderList()

public List<? extends OSPolicyAssignmentReportOrBuilder> getOsPolicyAssignmentReportsOrBuilderList()

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignmentReportOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListOSPolicyAssignmentReportsResponse other)

public ListOSPolicyAssignmentReportsResponse.Builder mergeFrom(ListOSPolicyAssignmentReportsResponse other)
Parameter
NameDescription
otherListOSPolicyAssignmentReportsResponse
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOsPolicyAssignmentReports(int index)

public ListOSPolicyAssignmentReportsResponse.Builder removeOsPolicyAssignmentReports(int index)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListOSPolicyAssignmentReportsResponse.Builder setNextPageToken(String value)

The pagination token to retrieve the next page of OS policy assignment report objects.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOSPolicyAssignmentReportsResponse.Builder setNextPageTokenBytes(ByteString value)

The pagination token to retrieve the next page of OS policy assignment report objects.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

This builder for chaining.

setOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport value)

public ListOSPolicyAssignmentReportsResponse.Builder setOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport value)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameters
NameDescription
indexint
valueOSPolicyAssignmentReport
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

setOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport.Builder builderForValue)

public ListOSPolicyAssignmentReportsResponse.Builder setOsPolicyAssignmentReports(int index, OSPolicyAssignmentReport.Builder builderForValue)

List of OS policy assignment reports.

repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1;

Parameters
NameDescription
indexint
builderForValueOSPolicyAssignmentReport.Builder
Returns
TypeDescription
ListOSPolicyAssignmentReportsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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