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.v1alpha.OSPolicyAssignment.InstanceFilter
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EXCLUSION_LABELS_FIELD_NUMBER
public static final int EXCLUSION_LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
INCLUSION_LABELS_FIELD_NUMBER
public static final int INCLUSION_LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
INVENTORIES_FIELD_NUMBER
public static final int INVENTORIES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
OS_SHORT_NAMES_FIELD_NUMBER
public static final int OS_SHORT_NAMES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
newBuilder(OSPolicyAssignment.InstanceFilter prototype)
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype)
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input)
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input)
public static OSPolicyAssignment.InstanceFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input)
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<OSPolicyAssignment.InstanceFilter> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAll()
Target all VMs in the project. If true, no other criteria is
permitted.
bool all = 1;
Returns |
Type |
Description |
boolean |
The all.
|
getDefaultInstanceForType()
public OSPolicyAssignment.InstanceFilter getDefaultInstanceForType()
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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
Parameter |
Name |
Description |
index |
int
|
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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
Returns |
Type |
Description |
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.
repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
Parameter |
Name |
Description |
index |
int
|
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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
Returns |
Type |
Description |
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 |
Name |
Description |
index |
int
|
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 |
Type |
Description |
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;
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 |
Name |
Description |
index |
int
|
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 |
Type |
Description |
List<? extends com.google.cloud.osconfig.v1alpha.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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
Parameter |
Name |
Description |
index |
int
|
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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
Returns |
Type |
Description |
int |
|
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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
Parameter |
Name |
Description |
index |
int
|
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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
Returns |
Type |
Description |
List<? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.InventoryOrBuilder> |
|
getOsShortNames(int index) (deprecated)
public String getOsShortNames(int index)
Deprecated. google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is
deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
Deprecated. Use the inventories
field instead.
A VM is selected if it's OS short name matches with any of the
values provided in this list.
repeated string os_short_names = 2 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The osShortNames at the given index.
|
getOsShortNamesBytes(int index) (deprecated)
public ByteString getOsShortNamesBytes(int index)
Deprecated. google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is
deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
Deprecated. Use the inventories
field instead.
A VM is selected if it's OS short name matches with any of the
values provided in this list.
repeated string os_short_names = 2 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the osShortNames at the given index.
|
getOsShortNamesCount() (deprecated)
public int getOsShortNamesCount()
Deprecated. google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is
deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
Deprecated. Use the inventories
field instead.
A VM is selected if it's OS short name matches with any of the
values provided in this list.
repeated string os_short_names = 2 [deprecated = true];
Returns |
Type |
Description |
int |
The count of osShortNames.
|
getOsShortNamesList() (deprecated)
public ProtocolStringList getOsShortNamesList()
Deprecated. google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is
deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
Deprecated. Use the inventories
field instead.
A VM is selected if it's OS short name matches with any of the
values provided in this list.
repeated string os_short_names = 2 [deprecated = true];
getParserForType()
public Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public OSPolicyAssignment.InstanceFilter.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public OSPolicyAssignment.InstanceFilter.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides