Class ListInstanceOSPoliciesCompliancesResponse.Builder (2.5.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance>
Returns
TypeDescription
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
NameDescription
valueInstanceOSPoliciesCompliance
Returns
TypeDescription
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
NameDescription
builderForValueInstanceOSPoliciesCompliance.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstanceOSPoliciesCompliance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstanceOSPoliciesCompliance.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InstanceOSPoliciesCompliance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListInstanceOSPoliciesCompliancesResponse build()
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse

buildPartial()

public ListInstanceOSPoliciesCompliancesResponse buildPartial()
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListInstanceOSPoliciesCompliancesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListInstanceOSPoliciesCompliancesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListInstanceOSPoliciesCompliancesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListInstanceOSPoliciesCompliancesResponse other)

public ListInstanceOSPoliciesCompliancesResponse.Builder mergeFrom(ListInstanceOSPoliciesCompliancesResponse other)
Parameter
NameDescription
otherListInstanceOSPoliciesCompliancesResponse
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListInstanceOSPoliciesCompliancesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListInstanceOSPoliciesCompliancesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInstanceOSPoliciesCompliance
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstanceOSPoliciesCompliance.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListInstanceOSPoliciesCompliancesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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