Class OSPolicyAssignment.InstanceFilter
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
- All Implemented Interfaces:
OSPolicyAssignment.InstanceFilterOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OSPolicyAssignment
public static final class OSPolicyAssignment.InstanceFilter
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFilters to select target VMs for an assignment.static final classVM inventory details.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetAll()Target all VMs in the project.static final com.google.protobuf.Descriptors.DescriptorgetExclusionLabels(int index) List of label sets used for VM exclusion.intList of label sets used for VM exclusion.List of label sets used for VM exclusion.getExclusionLabelsOrBuilder(int index) List of label sets used for VM exclusion.List<? extends OSPolicyAssignment.LabelSetOrBuilder>List of label sets used for VM exclusion.getInclusionLabels(int index) List of label sets used for VM inclusion.intList of label sets used for VM inclusion.List of label sets used for VM inclusion.getInclusionLabelsOrBuilder(int index) List of label sets used for VM inclusion.List<? extends OSPolicyAssignment.LabelSetOrBuilder>List of label sets used for VM inclusion.getInventories(int index) List of inventories to select VMs.intList of inventories to select VMs.List of inventories to select VMs.getInventoriesOrBuilder(int index) List of inventories to select VMs.List of inventories to select VMs.getOsShortNames(int index) Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated.com.google.protobuf.ByteStringgetOsShortNamesBytes(int index) Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated.intDeprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated.com.google.protobuf.ProtocolStringListDeprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated.com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(OSPolicyAssignment.InstanceFilter prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER- See Also:
-
OS_SHORT_NAMES_FIELD_NUMBER
public static final int OS_SHORT_NAMES_FIELD_NUMBER- See Also:
-
INCLUSION_LABELS_FIELD_NUMBER
public static final int INCLUSION_LABELS_FIELD_NUMBER- See Also:
-
EXCLUSION_LABELS_FIELD_NUMBER
public static final int EXCLUSION_LABELS_FIELD_NUMBER- See Also:
-
INVENTORIES_FIELD_NUMBER
public static final int INVENTORIES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAll
public boolean getAll()Target all VMs in the project. If true, no other criteria is permitted.
bool all = 1;- Specified by:
getAllin interfaceOSPolicyAssignment.InstanceFilterOrBuilder- Returns:
- The all.
-
getOsShortNamesList
Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94Deprecated. 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];- Specified by:
getOsShortNamesListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder- Returns:
- A list containing the osShortNames.
-
getOsShortNamesCount
Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94Deprecated. 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];- Specified by:
getOsShortNamesCountin interfaceOSPolicyAssignment.InstanceFilterOrBuilder- Returns:
- The count of osShortNames.
-
getOsShortNames
Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94Deprecated. 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];- Specified by:
getOsShortNamesin interfaceOSPolicyAssignment.InstanceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The osShortNames at the given index.
-
getOsShortNamesBytes
Deprecated.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94Deprecated. 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];- Specified by:
getOsShortNamesBytesin interfaceOSPolicyAssignment.InstanceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the osShortNames at the given index.
-
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;- Specified by:
getInclusionLabelsListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getInclusionLabelsOrBuilderListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getInclusionLabelsCountin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInclusionLabels
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;- Specified by:
getInclusionLabelsin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInclusionLabelsOrBuilder
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;- Specified by:
getInclusionLabelsOrBuilderin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getExclusionLabelsListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getExclusionLabelsOrBuilderListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getExclusionLabelsCountin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getExclusionLabels
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;- Specified by:
getExclusionLabelsin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getExclusionLabelsOrBuilder
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;- Specified by:
getExclusionLabelsOrBuilderin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getInventoriesListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getInventoriesOrBuilderListin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;- Specified by:
getInventoriesCountin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInventories
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;- Specified by:
getInventoriesin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInventoriesOrBuilder
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;- Specified by:
getInventoriesOrBuilderin interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-