Package com.google.cloud.osconfig.v1
Class PatchJobs.PatchInstanceFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
- com.google.cloud.osconfig.v1.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.GeneratedMessageV3.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 typegoogle.cloud.osconfig.v1.PatchInstanceFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchJobs.PatchInstanceFilter.BuilderaddAllGroupLabels(Iterable<? extends PatchJobs.PatchInstanceFilter.GroupLabel> values)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderaddAllInstanceNamePrefixes(Iterable<String> values)Targets VMs whose name starts with one of these prefixes.PatchJobs.PatchInstanceFilter.BuilderaddAllInstances(Iterable<String> values)Targets any of the VM instances specified.PatchJobs.PatchInstanceFilter.BuilderaddAllZones(Iterable<String> values)Targets VM instances in ANY of these zones.PatchJobs.PatchInstanceFilter.BuilderaddGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderaddGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderaddGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel value)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderaddGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.GroupLabel.BuilderaddGroupLabelsBuilder()Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.GroupLabel.BuilderaddGroupLabelsBuilder(int index)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderaddInstanceNamePrefixes(String value)Targets VMs whose name starts with one of these prefixes.PatchJobs.PatchInstanceFilter.BuilderaddInstanceNamePrefixesBytes(com.google.protobuf.ByteString value)Targets VMs whose name starts with one of these prefixes.PatchJobs.PatchInstanceFilter.BuilderaddInstances(String value)Targets any of the VM instances specified.PatchJobs.PatchInstanceFilter.BuilderaddInstancesBytes(com.google.protobuf.ByteString value)Targets any of the VM instances specified.PatchJobs.PatchInstanceFilter.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchInstanceFilter.BuilderaddZones(String value)Targets VM instances in ANY of these zones.PatchJobs.PatchInstanceFilter.BuilderaddZonesBytes(com.google.protobuf.ByteString value)Targets VM instances in ANY of these zones.PatchJobs.PatchInstanceFilterbuild()PatchJobs.PatchInstanceFilterbuildPartial()PatchJobs.PatchInstanceFilter.Builderclear()PatchJobs.PatchInstanceFilter.BuilderclearAll()Target all VM instances in the project.PatchJobs.PatchInstanceFilter.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchJobs.PatchInstanceFilter.BuilderclearGroupLabels()Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuilderclearInstanceNamePrefixes()Targets VMs whose name starts with one of these prefixes.PatchJobs.PatchInstanceFilter.BuilderclearInstances()Targets any of the VM instances specified.PatchJobs.PatchInstanceFilter.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchJobs.PatchInstanceFilter.BuilderclearZones()Targets VM instances in ANY of these zones.PatchJobs.PatchInstanceFilter.Builderclone()booleangetAll()Target all VM instances in the project.PatchJobs.PatchInstanceFiltergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PatchJobs.PatchInstanceFilter.GroupLabelgetGroupLabels(int index)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.GroupLabel.BuildergetGroupLabelsBuilder(int index)Targets VM instances matching ANY of these GroupLabels.List<PatchJobs.PatchInstanceFilter.GroupLabel.Builder>getGroupLabelsBuilderList()Targets VM instances matching ANY of these GroupLabels.intgetGroupLabelsCount()Targets VM instances matching ANY of these GroupLabels.List<PatchJobs.PatchInstanceFilter.GroupLabel>getGroupLabelsList()Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.GroupLabelOrBuildergetGroupLabelsOrBuilder(int index)Targets VM instances matching ANY of these GroupLabels.List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder>getGroupLabelsOrBuilderList()Targets VM instances matching ANY of these GroupLabels.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchJobs.PatchInstanceFilter.BuildermergeFrom(PatchJobs.PatchInstanceFilter other)PatchJobs.PatchInstanceFilter.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchJobs.PatchInstanceFilter.BuildermergeFrom(com.google.protobuf.Message other)PatchJobs.PatchInstanceFilter.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.PatchInstanceFilter.BuilderremoveGroupLabels(int index)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuildersetAll(boolean value)Target all VM instances in the project.PatchJobs.PatchInstanceFilter.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchInstanceFilter.BuildersetGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuildersetGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.BuildersetInstanceNamePrefixes(int index, String value)Targets VMs whose name starts with one of these prefixes.PatchJobs.PatchInstanceFilter.BuildersetInstances(int index, String value)Targets any of the VM instances specified.PatchJobs.PatchInstanceFilter.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchJobs.PatchInstanceFilter.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.PatchInstanceFilter.BuildersetZones(int index, String value)Targets VM instances in ANY of these zones.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchInstanceFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchInstanceFilter build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchInstanceFilter buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchInstanceFilter.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
setField
public PatchJobs.PatchInstanceFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
clearField
public PatchJobs.PatchInstanceFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
clearOneof
public PatchJobs.PatchInstanceFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
setRepeatedField
public PatchJobs.PatchInstanceFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
addRepeatedField
public PatchJobs.PatchInstanceFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
mergeFrom
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(PatchJobs.PatchInstanceFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public PatchJobs.PatchInstanceFilter.Builder setAll(boolean value)
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
public PatchJobs.PatchInstanceFilter.Builder clearAll()
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;- Returns:
- This builder for chaining.
-
getGroupLabelsList
public 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;- Specified by:
getGroupLabelsListin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabelsCount
public 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;- Specified by:
getGroupLabelsCountin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabels
public 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;- Specified by:
getGroupLabelsin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
setGroupLabels
public PatchJobs.PatchInstanceFilter.Builder setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
-
setGroupLabels
public PatchJobs.PatchInstanceFilter.Builder setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
-
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
-
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
-
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
-
addGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
-
addAllGroupLabels
public PatchJobs.PatchInstanceFilter.Builder addAllGroupLabels(Iterable<? extends PatchJobs.PatchInstanceFilter.GroupLabel> values)
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;
-
clearGroupLabels
public PatchJobs.PatchInstanceFilter.Builder clearGroupLabels()
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;
-
removeGroupLabels
public PatchJobs.PatchInstanceFilter.Builder removeGroupLabels(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;
-
getGroupLabelsBuilder
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder getGroupLabelsBuilder(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
public 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;- Specified by:
getGroupLabelsOrBuilderin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
getGroupLabelsOrBuilderList
public 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;- Specified by:
getGroupLabelsOrBuilderListin interfacePatchJobs.PatchInstanceFilterOrBuilder
-
addGroupLabelsBuilder
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder addGroupLabelsBuilder()
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;
-
addGroupLabelsBuilder
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder addGroupLabelsBuilder(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;
-
getGroupLabelsBuilderList
public List<PatchJobs.PatchInstanceFilter.GroupLabel.Builder> getGroupLabelsBuilderList()
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;
-
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.
-
setZones
public PatchJobs.PatchInstanceFilter.Builder setZones(int index, String value)
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
public PatchJobs.PatchInstanceFilter.Builder addZones(String value)
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
public PatchJobs.PatchInstanceFilter.Builder addAllZones(Iterable<String> values)
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
public PatchJobs.PatchInstanceFilter.Builder 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
public PatchJobs.PatchInstanceFilter.Builder addZonesBytes(com.google.protobuf.ByteString value)
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
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.
-
setInstances
public PatchJobs.PatchInstanceFilter.Builder setInstances(int index, String 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:
index- The index to set the value at.value- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
public PatchJobs.PatchInstanceFilter.Builder addInstances(String 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 instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
public PatchJobs.PatchInstanceFilter.Builder addAllInstances(Iterable<String> values)
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
public PatchJobs.PatchInstanceFilter.Builder 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
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.
-
setInstanceNamePrefixes
public PatchJobs.PatchInstanceFilter.Builder setInstanceNamePrefixes(int index, String 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:
index- The index to set the value at.value- The instanceNamePrefixes to set.- Returns:
- This builder for chaining.
-
addInstanceNamePrefixes
public PatchJobs.PatchInstanceFilter.Builder addInstanceNamePrefixes(String 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 instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
addAllInstanceNamePrefixes
public PatchJobs.PatchInstanceFilter.Builder addAllInstanceNamePrefixes(Iterable<String> values)
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
public PatchJobs.PatchInstanceFilter.Builder 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.
-
setUnknownFields
public final PatchJobs.PatchInstanceFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchInstanceFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchInstanceFilter.Builder>
-
-