- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class PatchJobs.PatchInstanceFilter.Builder extends 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 type google.cloud.osconfig.v1beta.PatchInstanceFilter
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PatchJobs.PatchInstanceFilter.BuilderImplements
PatchJobs.PatchInstanceFilterOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllGroupLabels(Iterable<? extends PatchJobs.PatchInstanceFilter.GroupLabel> values)
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;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.PatchJobs.PatchInstanceFilter.GroupLabel> |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addAllInstanceNamePrefixes(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The instanceNamePrefixes to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addAllInstances(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The instances to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addAllZones(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The zones to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
Name | Description |
value | PatchJobs.PatchInstanceFilter.GroupLabel |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addGroupLabels(PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
Name | Description |
builderForValue | PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
Name | Description |
index | int |
value | PatchJobs.PatchInstanceFilter.GroupLabel |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addGroupLabelsBuilder()
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder 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;
Type | Description |
PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
addGroupLabelsBuilder(int index)
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder addGroupLabelsBuilder(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;
Name | Description |
index | int |
Type | Description |
PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
addInstanceNamePrefixes(String value)
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;
Name | Description |
value | String The instanceNamePrefixes to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addInstanceNamePrefixesBytes(ByteString value)
public PatchJobs.PatchInstanceFilter.Builder addInstanceNamePrefixesBytes(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;
Name | Description |
value | ByteString The bytes of the instanceNamePrefixes to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addInstances(String value)
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;
Name | Description |
value | String The instances to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addInstancesBytes(ByteString value)
public PatchJobs.PatchInstanceFilter.Builder addInstancesBytes(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;
Name | Description |
value | ByteString The bytes of the instances to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PatchJobs.PatchInstanceFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
addZones(String value)
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;
Name | Description |
value | String The zones to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
addZonesBytes(ByteString value)
public PatchJobs.PatchInstanceFilter.Builder addZonesBytes(ByteString value)
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;
Name | Description |
value | ByteString The bytes of the zones to add. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
build()
public PatchJobs.PatchInstanceFilter build()
Type | Description |
PatchJobs.PatchInstanceFilter |
buildPartial()
public PatchJobs.PatchInstanceFilter buildPartial()
Type | Description |
PatchJobs.PatchInstanceFilter |
clear()
public PatchJobs.PatchInstanceFilter.Builder clear()
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
clearAll()
public PatchJobs.PatchInstanceFilter.Builder clearAll()
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PatchJobs.PatchInstanceFilter.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
clearGroupLabels()
public PatchJobs.PatchInstanceFilter.Builder 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;
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
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;
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | 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;
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PatchJobs.PatchInstanceFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
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;
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
clone()
public PatchJobs.PatchInstanceFilter.Builder clone()
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
getAll()
public boolean getAll()
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;
Type | Description |
boolean | The all. |
getDefaultInstanceForType()
public PatchJobs.PatchInstanceFilter getDefaultInstanceForType()
Type | Description |
PatchJobs.PatchInstanceFilter |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getGroupLabels(int index)
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;
Name | Description |
index | int |
Type | Description |
PatchJobs.PatchInstanceFilter.GroupLabel |
getGroupLabelsBuilder(int index)
public PatchJobs.PatchInstanceFilter.GroupLabel.Builder getGroupLabelsBuilder(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;
Name | Description |
index | int |
Type | Description |
PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
getGroupLabelsBuilderList()
public List<PatchJobs.PatchInstanceFilter.GroupLabel.Builder> 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;
Type | Description |
List<Builder> |
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;
Type | Description |
int |
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;
Type | Description |
List<GroupLabel> |
getGroupLabelsOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> |
getInstanceNamePrefixes(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The instanceNamePrefixes at the given index. |
getInstanceNamePrefixesBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the instanceNamePrefixes at the given index. |
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;
Type | Description |
int | The count of instanceNamePrefixes. |
getInstanceNamePrefixesList()
public 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;
Type | Description |
ProtocolStringList | A list containing the instanceNamePrefixes. |
getInstances(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The instances at the given index. |
getInstancesBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the instances at the given index. |
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;
Type | Description |
int | The count of instances. |
getInstancesList()
public 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;
Type | Description |
ProtocolStringList | A list containing the instances. |
getZones(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The zones at the given index. |
getZonesBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the zones at the given index. |
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;
Type | Description |
int | The count of zones. |
getZonesList()
public ProtocolStringList getZonesList()
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;
Type | Description |
ProtocolStringList | A list containing the zones. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(PatchJobs.PatchInstanceFilter other)
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(PatchJobs.PatchInstanceFilter other)
Name | Description |
other | PatchJobs.PatchInstanceFilter |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PatchJobs.PatchInstanceFilter.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PatchJobs.PatchInstanceFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
removeGroupLabels(int index)
public PatchJobs.PatchInstanceFilter.Builder removeGroupLabels(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;
Name | Description |
index | int |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setAll(boolean value)
public PatchJobs.PatchInstanceFilter.Builder setAll(boolean value)
Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;
Name | Description |
value | boolean The all to set. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PatchJobs.PatchInstanceFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel value)
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;
Name | Description |
index | int |
value | PatchJobs.PatchInstanceFilter.GroupLabel |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setGroupLabels(int index, PatchJobs.PatchInstanceFilter.GroupLabel.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | PatchJobs.PatchInstanceFilter.GroupLabel.Builder |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setInstanceNamePrefixes(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The instanceNamePrefixes to set. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
setInstances(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The instances to set. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PatchJobs.PatchInstanceFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PatchJobs.PatchInstanceFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder |
setZones(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The zones to set. |
Type | Description |
PatchJobs.PatchInstanceFilter.Builder | This builder for chaining. |