Package com.google.cloud.osconfig.v1beta
Class PatchJobs.PatchInstanceFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.PatchInstanceFilter.Builder
- All Implemented Interfaces:
PatchJobs.PatchInstanceFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.PatchInstanceFilter
public static final class PatchJobs.PatchInstanceFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
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.v1beta.PatchInstanceFilter-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroupLabels(Iterable<? extends PatchJobs.PatchInstanceFilter.GroupLabel> values) Targets VM instances matching at least one of these label sets.addAllInstanceNamePrefixes(Iterable<String> values) Targets VMs whose name starts with one of these prefixes.addAllInstances(Iterable<String> values) Targets any of the VM instances specified.addAllZones(Iterable<String> values) Targets VM instances in ANY of these zones.addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value) Targets VM instances matching at least one of these label sets.addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) Targets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) Targets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.addGroupLabelsBuilder(int index) Targets VM instances matching at least one of these label sets.addInstanceNamePrefixes(String value) Targets VMs whose name starts with one of these prefixes.addInstanceNamePrefixesBytes(com.google.protobuf.ByteString value) Targets VMs whose name starts with one of these prefixes.addInstances(String value) Targets any of the VM instances specified.addInstancesBytes(com.google.protobuf.ByteString value) Targets any of the VM instances specified.Targets VM instances in ANY of these zones.addZonesBytes(com.google.protobuf.ByteString value) Targets VM instances in ANY of these zones.build()clear()clearAll()Target all VM instances in the project.Targets VM instances matching at least one of these label sets.Targets VMs whose name starts with one of these prefixes.Targets any of the VM instances specified.Targets VM instances in ANY of these zones.booleangetAll()Target all VM instances in the project.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGroupLabels(int index) Targets VM instances matching at least one of these label sets.getGroupLabelsBuilder(int index) Targets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.intTargets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.getGroupLabelsOrBuilder(int index) Targets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.getInstanceNamePrefixes(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.intTargets VMs whose name starts with one of these prefixes.com.google.protobuf.ProtocolStringListTargets VMs whose name starts with one of these prefixes.getInstances(int index) Targets any of the VM instances specified.com.google.protobuf.ByteStringgetInstancesBytes(int index) Targets any of the VM instances specified.intTargets any of the VM instances specified.com.google.protobuf.ProtocolStringListTargets any of the VM instances specified.getZones(int index) Targets VM instances in ANY of these zones.com.google.protobuf.ByteStringgetZonesBytes(int index) Targets VM instances in ANY of these zones.intTargets VM instances in ANY of these zones.com.google.protobuf.ProtocolStringListTargets VM instances in ANY of these zones.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeGroupLabels(int index) Targets VM instances matching at least one of these label sets.setAll(boolean value) Target all VM instances in the project.setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value) Targets VM instances matching at least one of these label sets.setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) Targets VM instances matching at least one of these label sets.setInstanceNamePrefixes(int index, String value) Targets VMs whose name starts with one of these prefixes.setInstances(int index, String value) Targets any of the VM instances specified.Targets VM instances in ANY of these zones.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>- Throws:
IOException
-
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.
-
setAll
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;- Parameters:
value- The all to set.- Returns:
- This builder for chaining.
-
clearAll
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;- Returns:
- This builder for chaining.
-
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
-
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
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
-
setGroupLabels
public PatchJobs.PatchInstanceFilter.Builder setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value) 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; -
setGroupLabels
public PatchJobs.PatchInstanceFilter.Builder setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) 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; -
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel value) 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; -
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value) 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; -
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) 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; -
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue) 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; -
addAllGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addAllGroupLabels(Iterable<? extends PatchJobs.PatchInstanceFilter.GroupLabel> values) 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; -
clearGroupLabels
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; -
removeGroupLabels
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; -
getGroupLabelsBuilder
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; -
getGroupLabelsOrBuilder
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
-
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
-
addGroupLabelsBuilder
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; -
addGroupLabelsBuilder
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; -
getGroupLabelsBuilderList
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; -
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
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.
-
setZones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
index- The index to set the value at.value- The zones to set.- Returns:
- This builder for chaining.
-
addZones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
value- The zones to add.- Returns:
- This builder for chaining.
-
addAllZones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
values- The zones to add.- Returns:
- This builder for chaining.
-
clearZones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Returns:
- This builder for chaining.
-
addZonesBytes
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
value- The bytes of the zones to add.- Returns:
- This builder for chaining.
-
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
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.
-
setInstances
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;- Parameters:
index- The index to set the value at.value- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
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;- Parameters:
value- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
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;- Parameters:
values- The instances to add.- Returns:
- This builder for chaining.
-
clearInstances
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;- Returns:
- This builder for chaining.
-
addInstancesBytes
public PatchJobs.PatchInstanceFilter.Builder addInstancesBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
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
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.
-
setInstanceNamePrefixes
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;- Parameters:
index- The index to set the value at.value- The instanceNamePrefixes to set.- Returns:
- This builder for chaining.
-
addInstanceNamePrefixes
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;- Parameters:
value- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
addAllInstanceNamePrefixes
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;- Parameters:
values- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
clearInstanceNamePrefixes
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;- Returns:
- This builder for chaining.
-
addInstanceNamePrefixesBytes
public PatchJobs.PatchInstanceFilter.Builder addInstanceNamePrefixesBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-