Package com.google.cloud.osconfig.v1
Class OSPolicyAssignment.InstanceFilter
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1.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.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 typegoogle.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_FIELD_NUMBER
static int
EXCLUSION_LABELS_FIELD_NUMBER
static int
INCLUSION_LABELS_FIELD_NUMBER
static int
INVENTORIES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.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(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 OSPolicyAssignment.InstanceFilter
parseFrom(ByteBuffer data)
static OSPolicyAssignment.InstanceFilter
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter>
parser()
OSPolicyAssignment.InstanceFilter.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ALL_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INCLUSION_LABELS_FIELD_NUMBER
public static final int INCLUSION_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUSION_LABELS_FIELD_NUMBER
public static final int EXCLUSION_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INVENTORIES_FIELD_NUMBER
public static final int INVENTORIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAll
public boolean getAll()
Target all VMs in the project. If true, no other criteria is permitted.
bool all = 1;
- Specified by:
getAll
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
- Returns:
- The all.
-
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;
- Specified by:
getInclusionLabelsList
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;
- Specified by:
getInclusionLabelsOrBuilderList
in 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.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
- Specified by:
getInclusionLabelsCount
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInclusionLabels
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;
- Specified by:
getInclusionLabels
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInclusionLabelsOrBuilder
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;
- Specified by:
getInclusionLabelsOrBuilder
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;
- Specified by:
getExclusionLabelsList
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;
- Specified by:
getExclusionLabelsOrBuilderList
in 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.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
- Specified by:
getExclusionLabelsCount
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getExclusionLabels
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;
- Specified by:
getExclusionLabels
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getExclusionLabelsOrBuilder
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;
- Specified by:
getExclusionLabelsOrBuilder
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
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;
- Specified by:
getInventoriesList
in 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.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
- Specified by:
getInventoriesOrBuilderList
in 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.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
- Specified by:
getInventoriesCount
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInventories
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;
- Specified by:
getInventories
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
getInventoriesOrBuilder
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;
- Specified by:
getInventoriesOrBuilder
in interfaceOSPolicyAssignment.InstanceFilterOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input) throws IOException
- 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
public OSPolicyAssignment.InstanceFilter.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
-
newBuilder
public static OSPolicyAssignment.InstanceFilter.Builder newBuilder(OSPolicyAssignment.InstanceFilter prototype)
-
toBuilder
public OSPolicyAssignment.InstanceFilter.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> parser()
-
getParserForType
public com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OSPolicyAssignment.InstanceFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-