Class ListInstanceOSPoliciesCompliancesResponse.Builder (2.49.0)

public static final class ListInstanceOSPoliciesCompliancesResponse.Builder extends GeneratedMessageV3.Builder<ListInstanceOSPoliciesCompliancesResponse.Builder> implements ListInstanceOSPoliciesCompliancesResponseOrBuilder

A response message for listing OS policies compliance data for all Compute Engine VMs in the given location.

Protobuf type google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstanceOsPoliciesCompliances(Iterable<? extends InstanceOSPoliciesCompliance> values)

public ListInstanceOSPoliciesCompliancesResponse.Builder addAllInstanceOsPoliciesCompliances(Iterable<? extends InstanceOSPoliciesCompliance> values)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance>
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

addInstanceOsPoliciesCompliances(InstanceOSPoliciesCompliance value)

public ListInstanceOSPoliciesCompliancesResponse.Builder addInstanceOsPoliciesCompliances(InstanceOSPoliciesCompliance value)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
value InstanceOSPoliciesCompliance
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

addInstanceOsPoliciesCompliances(InstanceOSPoliciesCompliance.Builder builderForValue)

public ListInstanceOSPoliciesCompliancesResponse.Builder addInstanceOsPoliciesCompliances(InstanceOSPoliciesCompliance.Builder builderForValue)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
builderForValue InstanceOSPoliciesCompliance.Builder
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

addInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance value)

public ListInstanceOSPoliciesCompliancesResponse.Builder addInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance value)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameters
Name Description
index int
value InstanceOSPoliciesCompliance
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

addInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance.Builder builderForValue)

public ListInstanceOSPoliciesCompliancesResponse.Builder addInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance.Builder builderForValue)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameters
Name Description
index int
builderForValue InstanceOSPoliciesCompliance.Builder
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

addInstanceOsPoliciesCompliancesBuilder()

public InstanceOSPoliciesCompliance.Builder addInstanceOsPoliciesCompliancesBuilder()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
InstanceOSPoliciesCompliance.Builder

addInstanceOsPoliciesCompliancesBuilder(int index)

public InstanceOSPoliciesCompliance.Builder addInstanceOsPoliciesCompliancesBuilder(int index)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOSPoliciesCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListInstanceOSPoliciesCompliancesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

build()

public ListInstanceOSPoliciesCompliancesResponse build()
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse

buildPartial()

public ListInstanceOSPoliciesCompliancesResponse buildPartial()
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse

clear()

public ListInstanceOSPoliciesCompliancesResponse.Builder clear()
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListInstanceOSPoliciesCompliancesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

clearInstanceOsPoliciesCompliances()

public ListInstanceOSPoliciesCompliancesResponse.Builder clearInstanceOsPoliciesCompliances()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

clearNextPageToken()

public ListInstanceOSPoliciesCompliancesResponse.Builder clearNextPageToken()

The pagination token to retrieve the next page of instance OS policies compliance objects.

string next_page_token = 2;

Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListInstanceOSPoliciesCompliancesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

clone()

public ListInstanceOSPoliciesCompliancesResponse.Builder clone()
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListInstanceOSPoliciesCompliancesResponse getDefaultInstanceForType()
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceOsPoliciesCompliances(int index)

public InstanceOSPoliciesCompliance getInstanceOsPoliciesCompliances(int index)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOSPoliciesCompliance

getInstanceOsPoliciesCompliancesBuilder(int index)

public InstanceOSPoliciesCompliance.Builder getInstanceOsPoliciesCompliancesBuilder(int index)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOSPoliciesCompliance.Builder

getInstanceOsPoliciesCompliancesBuilderList()

public List<InstanceOSPoliciesCompliance.Builder> getInstanceOsPoliciesCompliancesBuilderList()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
List<Builder>

getInstanceOsPoliciesCompliancesCount()

public int getInstanceOsPoliciesCompliancesCount()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
int

getInstanceOsPoliciesCompliancesList()

public List<InstanceOSPoliciesCompliance> getInstanceOsPoliciesCompliancesList()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
List<InstanceOSPoliciesCompliance>

getInstanceOsPoliciesCompliancesOrBuilder(int index)

public InstanceOSPoliciesComplianceOrBuilder getInstanceOsPoliciesCompliancesOrBuilder(int index)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOSPoliciesComplianceOrBuilder

getInstanceOsPoliciesCompliancesOrBuilderList()

public List<? extends InstanceOSPoliciesComplianceOrBuilder> getInstanceOsPoliciesCompliancesOrBuilderList()

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesComplianceOrBuilder>

getNextPageToken()

public String getNextPageToken()

The pagination token to retrieve the next page of instance OS policies compliance objects.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The pagination token to retrieve the next page of instance OS policies compliance objects.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListInstanceOSPoliciesCompliancesResponse other)

public ListInstanceOSPoliciesCompliancesResponse.Builder mergeFrom(ListInstanceOSPoliciesCompliancesResponse other)
Parameter
Name Description
other ListInstanceOSPoliciesCompliancesResponse
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListInstanceOSPoliciesCompliancesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListInstanceOSPoliciesCompliancesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListInstanceOSPoliciesCompliancesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

removeInstanceOsPoliciesCompliances(int index)

public ListInstanceOSPoliciesCompliancesResponse.Builder removeInstanceOsPoliciesCompliances(int index)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameter
Name Description
index int
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListInstanceOSPoliciesCompliancesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

setInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance value)

public ListInstanceOSPoliciesCompliancesResponse.Builder setInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance value)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameters
Name Description
index int
value InstanceOSPoliciesCompliance
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

setInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance.Builder builderForValue)

public ListInstanceOSPoliciesCompliancesResponse.Builder setInstanceOsPoliciesCompliances(int index, InstanceOSPoliciesCompliance.Builder builderForValue)

List of instance OS policies compliance objects.

repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1;

Parameters
Name Description
index int
builderForValue InstanceOSPoliciesCompliance.Builder
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

setNextPageToken(String value)

public ListInstanceOSPoliciesCompliancesResponse.Builder setNextPageToken(String value)

The pagination token to retrieve the next page of instance OS policies compliance objects.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListInstanceOSPoliciesCompliancesResponse.Builder setNextPageTokenBytes(ByteString value)

The pagination token to retrieve the next page of instance OS policies compliance objects.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder

This builder for chaining.

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

public ListInstanceOSPoliciesCompliancesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListInstanceOSPoliciesCompliancesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides