public static final class OSPolicyAssignment.InstanceFilter extends GeneratedMessageV3 implements OSPolicyAssignment.InstanceFilterOrBuilder
Filters to select target VMs for an assignment.
If more than one filter criteria is specified below, a VM will be selected
if and only if it satisfies all of them.
Protobuf type google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter
Static Fields
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
Field Value
EXCLUSION_LABELS_FIELD_NUMBER
public static final int EXCLUSION_LABELS_FIELD_NUMBER
Field Value
INCLUSION_LABELS_FIELD_NUMBER
public static final int INCLUSION_LABELS_FIELD_NUMBER
Field Value
INVENTORIES_FIELD_NUMBER
public static final int INVENTORIES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
Returns
newBuilder(OSPolicyAssignment.InstanceFilter prototype)
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype)
Parameter
Returns
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OSPolicyAssignment.InstanceFilter> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAll()
Target all VMs in the project. If true, no other criteria is
permitted.
bool all = 1;
Returns
getDefaultInstanceForType()
public OSPolicyAssignment.InstanceFilter getDefaultInstanceForType()
Returns
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.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
Parameter
Returns
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.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
Returns
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.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
Returns
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.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
Parameter
Returns
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.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1.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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
Parameter
Returns
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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
Returns
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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
Returns
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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
Parameter
Returns
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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSetOrBuilder> | |
getInventories(int index)
public OSPolicyAssignment.InstanceFilter.Inventory getInventories(int index)
List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the
following inventories.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
Parameter
Returns
getInventoriesCount()
public int getInventoriesCount()
List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the
following inventories.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
Returns
getInventoriesList()
public List<OSPolicyAssignment.InstanceFilter.Inventory> getInventoriesList()
List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the
following inventories.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
Returns
getInventoriesOrBuilder(int index)
public OSPolicyAssignment.InstanceFilter.InventoryOrBuilder getInventoriesOrBuilder(int index)
List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the
following inventories.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
Parameter
Returns
getInventoriesOrBuilderList()
public List<? extends OSPolicyAssignment.InstanceFilter.InventoryOrBuilder> getInventoriesOrBuilderList()
List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the
following inventories.
repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
Returns
Type | Description |
List<? extends com.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.InventoryOrBuilder> | |
getParserForType()
public Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OSPolicyAssignment.InstanceFilter.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OSPolicyAssignment.InstanceFilter.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions