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 type
google.cloud.osconfig.v1.PatchInstanceFilter| Modifier and Type | Class and Description |
|---|---|
static class |
PatchJobs.PatchInstanceFilter.Builder
A filter to target VM instances for patching.
|
static class |
PatchJobs.PatchInstanceFilter.GroupLabel
Targets a group of VM instances by using their [assigned
labels](https://cloud.google.com/compute/docs/labeling-resources).
|
static interface |
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder |
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 |
GROUP_LABELS_FIELD_NUMBER |
static int |
INSTANCE_NAME_PREFIXES_FIELD_NUMBER |
static int |
INSTANCES_FIELD_NUMBER |
static int |
ZONES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAll()
Target all VM instances in the project.
|
static PatchJobs.PatchInstanceFilter |
getDefaultInstance() |
PatchJobs.PatchInstanceFilter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
PatchJobs.PatchInstanceFilter.GroupLabel |
getGroupLabels(int index)
Targets VM instances matching ANY of these GroupLabels.
|
int |
getGroupLabelsCount()
Targets VM instances matching ANY of these GroupLabels.
|
List<PatchJobs.PatchInstanceFilter.GroupLabel> |
getGroupLabelsList()
Targets VM instances matching ANY of these GroupLabels.
|
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder |
getGroupLabelsOrBuilder(int index)
Targets VM instances matching ANY of these GroupLabels.
|
List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> |
getGroupLabelsOrBuilderList()
Targets VM instances matching ANY of these GroupLabels.
|
String |
getInstanceNamePrefixes(int index)
Targets VMs whose name starts with one of these prefixes.
|
com.google.protobuf.ByteString |
getInstanceNamePrefixesBytes(int index)
Targets VMs whose name starts with one of these prefixes.
|
int |
getInstanceNamePrefixesCount()
Targets VMs whose name starts with one of these prefixes.
|
com.google.protobuf.ProtocolStringList |
getInstanceNamePrefixesList()
Targets VMs whose name starts with one of these prefixes.
|
String |
getInstances(int index)
Targets any of the VM instances specified.
|
com.google.protobuf.ByteString |
getInstancesBytes(int index)
Targets any of the VM instances specified.
|
int |
getInstancesCount()
Targets any of the VM instances specified.
|
com.google.protobuf.ProtocolStringList |
getInstancesList()
Targets any of the VM instances specified.
|
com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> |
getParserForType() |
int |
getSerializedSize() |
String |
getZones(int index)
Targets VM instances in ANY of these zones.
|
com.google.protobuf.ByteString |
getZonesBytes(int index)
Targets VM instances in ANY of these zones.
|
int |
getZonesCount()
Targets VM instances in ANY of these zones.
|
com.google.protobuf.ProtocolStringList |
getZonesList()
Targets VM instances in ANY of these zones.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PatchJobs.PatchInstanceFilter.Builder |
newBuilder() |
static PatchJobs.PatchInstanceFilter.Builder |
newBuilder(PatchJobs.PatchInstanceFilter prototype) |
PatchJobs.PatchInstanceFilter.Builder |
newBuilderForType() |
protected PatchJobs.PatchInstanceFilter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PatchJobs.PatchInstanceFilter |
parseDelimitedFrom(InputStream input) |
static PatchJobs.PatchInstanceFilter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PatchJobs.PatchInstanceFilter |
parseFrom(byte[] data) |
static PatchJobs.PatchInstanceFilter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PatchJobs.PatchInstanceFilter |
parseFrom(ByteBuffer data) |
static PatchJobs.PatchInstanceFilter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PatchJobs.PatchInstanceFilter |
parseFrom(com.google.protobuf.ByteString data) |
static PatchJobs.PatchInstanceFilter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PatchJobs.PatchInstanceFilter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PatchJobs.PatchInstanceFilter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PatchJobs.PatchInstanceFilter |
parseFrom(InputStream input) |
static PatchJobs.PatchInstanceFilter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> |
parser() |
PatchJobs.PatchInstanceFilter.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 GROUP_LABELS_FIELD_NUMBER
public static final int ZONES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER
public static final int INSTANCE_NAME_PREFIXES_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 VM instances in the project. If true, no other criteria is permitted.
bool all = 1;getAll in interface PatchJobs.PatchInstanceFilterOrBuilderpublic List<PatchJobs.PatchInstanceFilter.GroupLabel> getGroupLabelsList()
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
getGroupLabelsList in interface PatchJobs.PatchInstanceFilterOrBuilderpublic List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> getGroupLabelsOrBuilderList()
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
getGroupLabelsOrBuilderList in interface PatchJobs.PatchInstanceFilterOrBuilderpublic int getGroupLabelsCount()
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
getGroupLabelsCount in interface PatchJobs.PatchInstanceFilterOrBuilderpublic PatchJobs.PatchInstanceFilter.GroupLabel getGroupLabels(int index)
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
getGroupLabels in interface PatchJobs.PatchInstanceFilterOrBuilderpublic PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder getGroupLabelsOrBuilder(int index)
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
getGroupLabelsOrBuilder in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getZonesList in interface PatchJobs.PatchInstanceFilterOrBuilderpublic int getZonesCount()
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;getZonesCount in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getZones in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the element to return.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;getZonesBytes in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the value to return.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;getInstancesList in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getInstancesCount in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getInstances in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the element to return.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;getInstancesBytes in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the value to return.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;getInstanceNamePrefixesList in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getInstanceNamePrefixesCount in interface PatchJobs.PatchInstanceFilterOrBuilderpublic 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;getInstanceNamePrefixes in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the element to return.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;getInstanceNamePrefixesBytes in interface PatchJobs.PatchInstanceFilterOrBuilderindex - The index of the value to return.public 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 PatchJobs.PatchInstanceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(InputStream input) throws IOException
IOExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PatchJobs.PatchInstanceFilter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PatchJobs.PatchInstanceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PatchJobs.PatchInstanceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PatchJobs.PatchInstanceFilter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PatchJobs.PatchInstanceFilter.Builder newBuilder()
public static PatchJobs.PatchInstanceFilter.Builder newBuilder(PatchJobs.PatchInstanceFilter prototype)
public PatchJobs.PatchInstanceFilter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PatchJobs.PatchInstanceFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PatchJobs.PatchInstanceFilter getDefaultInstance()
public static com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> parser()
public com.google.protobuf.Parser<PatchJobs.PatchInstanceFilter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PatchJobs.PatchInstanceFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.