Class OSPolicyAssignment.InstanceFilter

public static final class OSPolicyAssignment.InstanceFilter extends GeneratedMessageV3 implements OSPolicyAssignment.InstanceFilterOrBuilder

Message to represent the filters to select VMs for an assignment

Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OSPolicyAssignment.InstanceFilter

Fields

ALL_FIELD_NUMBER

public static final int ALL_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUSION_LABELS_FIELD_NUMBER

public static final int EXCLUSION_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

INCLUSION_LABELS_FIELD_NUMBER

public static final int INCLUSION_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

OS_SHORT_NAMES_FIELD_NUMBER

public static final int OS_SHORT_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAll()

public boolean getAll()

Target all VMs in the project. If true, no other criteria is permitted.

bool all = 1;

Returns
TypeDescription
boolean

The all.

getDefaultInstance()

public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter

getDefaultInstanceForType()

public OSPolicyAssignment.InstanceFilter getDefaultInstanceForType()
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter

getDescriptor()

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

getExclusionLabels(int index)

public OSPolicyAssignment.LabelSet getExclusionLabels(int index)

List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.LabelSet

getExclusionLabelsCount()

public int getExclusionLabelsCount()

List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;

Returns
TypeDescription
int

getExclusionLabelsList()

public List<OSPolicyAssignment.LabelSet> getExclusionLabelsList()

List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;

Returns
TypeDescription
List<LabelSet>

getExclusionLabelsOrBuilder(int index)

public OSPolicyAssignment.LabelSetOrBuilder getExclusionLabelsOrBuilder(int index)

List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.LabelSetOrBuilder

getExclusionLabelsOrBuilderList()

public List<? extends OSPolicyAssignment.LabelSetOrBuilder> getExclusionLabelsOrBuilderList()

List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;

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

getInclusionLabels(int index)

public OSPolicyAssignment.LabelSet getInclusionLabels(int index)

List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.LabelSet

getInclusionLabelsCount()

public int getInclusionLabelsCount()

List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;

Returns
TypeDescription
int

getInclusionLabelsList()

public List<OSPolicyAssignment.LabelSet> getInclusionLabelsList()

List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;

Returns
TypeDescription
List<LabelSet>

getInclusionLabelsOrBuilder(int index)

public OSPolicyAssignment.LabelSetOrBuilder getInclusionLabelsOrBuilder(int index)

List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicyAssignment.LabelSetOrBuilder

getInclusionLabelsOrBuilderList()

public List<? extends OSPolicyAssignment.LabelSetOrBuilder> getInclusionLabelsOrBuilderList()

List of label sets used for VM inclusion. If the list has more than one LabelSet, the VM is included if any of the label sets are applicable for the VM.

repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;

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

getOsShortNames(int index)

public String getOsShortNames(int index)

A VM is included if it's OS short name matches with any of the values provided in this list.

repeated string os_short_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The osShortNames at the given index.

getOsShortNamesBytes(int index)

public ByteString getOsShortNamesBytes(int index)

A VM is included if it's OS short name matches with any of the values provided in this list.

repeated string os_short_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the osShortNames at the given index.

getOsShortNamesCount()

public int getOsShortNamesCount()

A VM is included if it's OS short name matches with any of the values provided in this list.

repeated string os_short_names = 2;

Returns
TypeDescription
int

The count of osShortNames.

getOsShortNamesList()

public ProtocolStringList getOsShortNamesList()

A VM is included if it's OS short name matches with any of the values provided in this list.

repeated string os_short_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the osShortNames.

getParserForType()

public Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
Returns
TypeDescription
Parser<InstanceFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter.Builder

newBuilder(OSPolicyAssignment.InstanceFilter prototype)

public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype)
Parameter
NameDescription
prototypeOSPolicyAssignment.InstanceFilter
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter.Builder

newBuilderForType()

public OSPolicyAssignment.InstanceFilter.Builder newBuilderForType()
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OSPolicyAssignment.InstanceFilter> parser()
Returns
TypeDescription
Parser<InstanceFilter>

toBuilder()

public OSPolicyAssignment.InstanceFilter.Builder toBuilder()
Returns
TypeDescription
OSPolicyAssignment.InstanceFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException