Package com.google.cloud.osconfig.v1beta
Class PatchJobs.PatchInstanceFilter
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1beta.PatchJobs.PatchInstanceFilter
-
- All Implemented Interfaces:
PatchJobs.PatchInstanceFilterOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- PatchJobs
public static final class PatchJobs.PatchInstanceFilter extends com.google.protobuf.GeneratedMessageV3 implements PatchJobs.PatchInstanceFilterOrBuilder
A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.
Protobuf typegoogle.cloud.osconfig.v1beta.PatchInstanceFilter- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPatchJobs.PatchInstanceFilter.BuilderA filter to target VM instances for patching.static classPatchJobs.PatchInstanceFilter.GroupLabelRepresents a group of VMs that can be identified as having all these labels, for example "env=prod and app=web".static interfacePatchJobs.PatchInstanceFilter.GroupLabelOrBuilder-
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 intALL_FIELD_NUMBERstatic intGROUP_LABELS_FIELD_NUMBERstatic intINSTANCE_NAME_PREFIXES_FIELD_NUMBERstatic intINSTANCES_FIELD_NUMBERstatic intZONES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAll()Target all VM instances in the project.static PatchJobs.PatchInstanceFiltergetDefaultInstance()PatchJobs.PatchInstanceFiltergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()PatchJobs.PatchInstanceFilter.GroupLabelgetGroupLabels(int index)Targets VM instances matching at least one of these label sets.intgetGroupLabelsCount()Targets VM instances matching at least one of these label sets.List<PatchJobs.PatchInstanceFilter.GroupLabel>getGroupLabelsList()Targets VM instances matching at least one of these label sets.PatchJobs.PatchInstanceFilter.GroupLabelOrBuildergetGroupLabelsOrBuilder(int index)Targets VM instances matching at least one of these label sets.List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder>getGroupLabelsOrBuilderList()Targets VM instances matching at least one of these label sets.StringgetInstanceNamePrefixes(int index)Targets VMs whose name starts with one of these prefixes.com.google.protobuf.ByteStringgetInstanceNamePrefixesBytes(int index)Targets VMs whose name starts with one of these prefixes.intgetInstanceNamePrefixesCount()Targets VMs whose name starts with one of these prefixes.com.google.protobuf.ProtocolStringListgetInstanceNamePrefixesList()Targets VMs whose name starts with one of these prefixes.StringgetInstances(int index)Targets any of the VM instances specified.com.google.protobuf.ByteStringgetInstancesBytes(int index)Targets any of the VM instances specified.intgetInstancesCount()Targets any of the VM instances specified.com.google.protobuf.ProtocolStringListgetInstancesList()Targets any of the VM instances specified.com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter>getParserForType()intgetSerializedSize()StringgetZones(int index)Targets VM instances in ANY of these zones.com.google.protobuf.ByteStringgetZonesBytes(int index)Targets VM instances in ANY of these zones.intgetZonesCount()Targets VM instances in ANY of these zones.com.google.protobuf.ProtocolStringListgetZonesList()Targets VM instances in ANY of these zones.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PatchJobs.PatchInstanceFilter.BuildernewBuilder()static PatchJobs.PatchInstanceFilter.BuildernewBuilder(PatchJobs.PatchInstanceFilter prototype)PatchJobs.PatchInstanceFilter.BuildernewBuilderForType()protected PatchJobs.PatchInstanceFilter.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PatchJobs.PatchInstanceFilterparseDelimitedFrom(InputStream input)static PatchJobs.PatchInstanceFilterparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.PatchInstanceFilterparseFrom(byte[] data)static PatchJobs.PatchInstanceFilterparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.PatchInstanceFilterparseFrom(com.google.protobuf.ByteString data)static PatchJobs.PatchInstanceFilterparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.PatchInstanceFilterparseFrom(com.google.protobuf.CodedInputStream input)static PatchJobs.PatchInstanceFilterparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.PatchInstanceFilterparseFrom(InputStream input)static PatchJobs.PatchInstanceFilterparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.PatchInstanceFilterparseFrom(ByteBuffer data)static PatchJobs.PatchInstanceFilterparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter>parser()PatchJobs.PatchInstanceFilter.BuildertoBuilder()voidwriteTo(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
-
GROUP_LABELS_FIELD_NUMBER
public static final int GROUP_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ZONES_FIELD_NUMBER
public static final int ZONES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_NAME_PREFIXES_FIELD_NUMBER
public static final int INSTANCE_NAME_PREFIXES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getAll
public boolean getAll()
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;- Specified by:
getAllin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- The all.
-
getGroupLabelsList
public List<PatchJobs.PatchInstanceFilter.GroupLabel> getGroupLabelsList()
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2;- Specified by:
getGroupLabelsListin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabelsOrBuilderList
public List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> getGroupLabelsOrBuilderList()
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2;- Specified by:
getGroupLabelsOrBuilderListin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabelsCount
public int getGroupLabelsCount()
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2;- Specified by:
getGroupLabelsCountin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabels
public PatchJobs.PatchInstanceFilter.GroupLabel getGroupLabels(int index)
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2;- Specified by:
getGroupLabelsin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabelsOrBuilder
public PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder getGroupLabelsOrBuilder(int index)
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2;- Specified by:
getGroupLabelsOrBuilderin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getZonesList
public com.google.protobuf.ProtocolStringList getZonesList()
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Specified by:
getZonesListin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- A list containing the zones.
-
getZonesCount
public int getZonesCount()
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Specified by:
getZonesCountin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- The count of zones.
-
getZones
public String getZones(int index)
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Specified by:
getZonesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The zones at the given index.
-
getZonesBytes
public com.google.protobuf.ByteString getZonesBytes(int index)
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Specified by:
getZonesBytesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the zones at the given index.
-
getInstancesList
public com.google.protobuf.ProtocolStringList getInstancesList()
Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Specified by:
getInstancesListin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- A list containing the instances.
-
getInstancesCount
public int getInstancesCount()
Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Specified by:
getInstancesCountin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- The count of instances.
-
getInstances
public String getInstances(int index)
Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Specified by:
getInstancesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
public com.google.protobuf.ByteString getInstancesBytes(int index)
Targets any of the VM instances specified. Instances are specified by their URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Specified by:
getInstancesBytesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
getInstanceNamePrefixesList
public com.google.protobuf.ProtocolStringList getInstanceNamePrefixesList()
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
repeated string instance_name_prefixes = 5;- Specified by:
getInstanceNamePrefixesListin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- A list containing the instanceNamePrefixes.
-
getInstanceNamePrefixesCount
public int getInstanceNamePrefixesCount()
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
repeated string instance_name_prefixes = 5;- Specified by:
getInstanceNamePrefixesCountin interfacePatchJobs.PatchInstanceFilterOrBuilder- Returns:
- The count of instanceNamePrefixes.
-
getInstanceNamePrefixes
public String getInstanceNamePrefixes(int index)
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
repeated string instance_name_prefixes = 5;- Specified by:
getInstanceNamePrefixesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceNamePrefixes at the given index.
-
getInstanceNamePrefixesBytes
public com.google.protobuf.ByteString getInstanceNamePrefixesBytes(int index)
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
repeated string instance_name_prefixes = 5;- Specified by:
getInstanceNamePrefixesBytesin interfacePatchJobs.PatchInstanceFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceNamePrefixes at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 PatchJobs.PatchInstanceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PatchJobs.PatchInstanceFilter parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PatchJobs.PatchInstanceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PatchJobs.PatchInstanceFilter.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PatchJobs.PatchInstanceFilter.Builder newBuilder()
-
newBuilder
public static PatchJobs.PatchInstanceFilter.Builder newBuilder(PatchJobs.PatchInstanceFilter prototype)
-
toBuilder
public PatchJobs.PatchInstanceFilter.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PatchJobs.PatchInstanceFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PatchJobs.PatchInstanceFilter getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> parser()
-
getParserForType
public com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PatchJobs.PatchInstanceFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-