public static final class OSPolicyAssignment.InstanceFilter extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicyAssignment.InstanceFilter.Builder
Filters to select target VMs for an assignment.
|
static class |
OSPolicyAssignment.InstanceFilter.Inventory
VM inventory details.
|
static interface |
OSPolicyAssignment.InstanceFilter.InventoryOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_FIELD_NUMBER |
static int |
EXCLUSION_LABELS_FIELD_NUMBER |
static int |
INCLUSION_LABELS_FIELD_NUMBER |
static int |
INVENTORIES_FIELD_NUMBER |
static int |
OS_SHORT_NAMES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAll()
Target all VMs in the project.
|
static OSPolicyAssignment.InstanceFilter |
getDefaultInstance() |
OSPolicyAssignment.InstanceFilter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OSPolicyAssignment.LabelSet |
getExclusionLabels(int index)
List of label sets used for VM exclusion.
|
int |
getExclusionLabelsCount()
List of label sets used for VM exclusion.
|
List<OSPolicyAssignment.LabelSet> |
getExclusionLabelsList()
List of label sets used for VM exclusion.
|
OSPolicyAssignment.LabelSetOrBuilder |
getExclusionLabelsOrBuilder(int index)
List of label sets used for VM exclusion.
|
List<? extends OSPolicyAssignment.LabelSetOrBuilder> |
getExclusionLabelsOrBuilderList()
List of label sets used for VM exclusion.
|
OSPolicyAssignment.LabelSet |
getInclusionLabels(int index)
List of label sets used for VM inclusion.
|
int |
getInclusionLabelsCount()
List of label sets used for VM inclusion.
|
List<OSPolicyAssignment.LabelSet> |
getInclusionLabelsList()
List of label sets used for VM inclusion.
|
OSPolicyAssignment.LabelSetOrBuilder |
getInclusionLabelsOrBuilder(int index)
List of label sets used for VM inclusion.
|
List<? extends OSPolicyAssignment.LabelSetOrBuilder> |
getInclusionLabelsOrBuilderList()
List of label sets used for VM inclusion.
|
OSPolicyAssignment.InstanceFilter.Inventory |
getInventories(int index)
List of inventories to select VMs.
|
int |
getInventoriesCount()
List of inventories to select VMs.
|
List<OSPolicyAssignment.InstanceFilter.Inventory> |
getInventoriesList()
List of inventories to select VMs.
|
OSPolicyAssignment.InstanceFilter.InventoryOrBuilder |
getInventoriesOrBuilder(int index)
List of inventories to select VMs.
|
List<? extends OSPolicyAssignment.InstanceFilter.InventoryOrBuilder> |
getInventoriesOrBuilderList()
List of inventories to select VMs.
|
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
|
com.google.protobuf.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
|
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
|
com.google.protobuf.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
|
com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OSPolicyAssignment.InstanceFilter.Builder |
newBuilder() |
static OSPolicyAssignment.InstanceFilter.Builder |
newBuilder(OSPolicyAssignment.InstanceFilter prototype) |
OSPolicyAssignment.InstanceFilter.Builder |
newBuilderForType() |
protected OSPolicyAssignment.InstanceFilter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OSPolicyAssignment.InstanceFilter |
parseDelimitedFrom(InputStream input) |
static OSPolicyAssignment.InstanceFilter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(byte[] data) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(ByteBuffer data) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(com.google.protobuf.ByteString data) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(InputStream input) |
static OSPolicyAssignment.InstanceFilter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> |
parser() |
OSPolicyAssignment.InstanceFilter.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ALL_FIELD_NUMBER
public static final int OS_SHORT_NAMES_FIELD_NUMBER
public static final int INCLUSION_LABELS_FIELD_NUMBER
public static final int EXCLUSION_LABELS_FIELD_NUMBER
public static final int INVENTORIES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean getAll()
Target all VMs in the project. If true, no other criteria is permitted.
bool all = 1;getAll in interface OSPolicyAssignment.InstanceFilterOrBuilder@Deprecated public com.google.protobuf.ProtocolStringList getOsShortNamesList()
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];getOsShortNamesList in interface OSPolicyAssignment.InstanceFilterOrBuilder@Deprecated public int getOsShortNamesCount()
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];getOsShortNamesCount in interface OSPolicyAssignment.InstanceFilterOrBuilder@Deprecated public String getOsShortNames(int index)
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];getOsShortNames in interface OSPolicyAssignment.InstanceFilterOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getOsShortNamesBytes(int index)
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];getOsShortNamesBytes in interface OSPolicyAssignment.InstanceFilterOrBuilderindex - The index of the value to return.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;
getInclusionLabelsList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInclusionLabelsOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInclusionLabelsCount in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInclusionLabels in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInclusionLabelsOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getExclusionLabelsList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getExclusionLabelsOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getExclusionLabelsCount in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getExclusionLabels in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getExclusionLabelsOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInventoriesList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInventoriesOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInventoriesCount in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInventories in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic 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;
getInventoriesOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicyAssignment.InstanceFilter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype)
public OSPolicyAssignment.InstanceFilter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> parser()
public com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicyAssignment.InstanceFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.