- 2.56.0 (latest)
- 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 GuestPolicies.Assignment.Builder extends GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder> implements GuestPolicies.AssignmentOrBuilder
An assignment represents the group or groups of VM instances that the policy applies to. If an assignment is empty, it applies to all VM instances. Otherwise, the targeted VM instances must meet all the criteria specified. So if both labels and zones are specified, the policy applies to VM instances with those labels and in those zones.
Protobuf type google.cloud.osconfig.v1beta.Assignment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GuestPolicies.Assignment.BuilderImplements
GuestPolicies.AssignmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllGroupLabels(Iterable<? extends GuestPolicies.Assignment.GroupLabel> values)
public GuestPolicies.Assignment.Builder addAllGroupLabels(Iterable<? extends GuestPolicies.Assignment.GroupLabel> values)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment.GroupLabel> |
Type | Description |
GuestPolicies.Assignment.Builder |
addAllInstanceNamePrefixes(Iterable<String> values)
public GuestPolicies.Assignment.Builder addAllInstanceNamePrefixes(Iterable<String> values)
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Name | Description |
values | Iterable<String> The instanceNamePrefixes to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addAllInstances(Iterable<String> values)
public GuestPolicies.Assignment.Builder addAllInstances(Iterable<String> values)
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Name | Description |
values | Iterable<String> The instances to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addAllOsTypes(Iterable<? extends GuestPolicies.Assignment.OsType> values)
public GuestPolicies.Assignment.Builder addAllOsTypes(Iterable<? extends GuestPolicies.Assignment.OsType> values)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment.OsType> |
Type | Description |
GuestPolicies.Assignment.Builder |
addAllZones(Iterable<String> values)
public GuestPolicies.Assignment.Builder addAllZones(Iterable<String> values)
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Name | Description |
values | Iterable<String> The zones to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addGroupLabels(GuestPolicies.Assignment.GroupLabel value)
public GuestPolicies.Assignment.Builder addGroupLabels(GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
value | GuestPolicies.Assignment.GroupLabel |
Type | Description |
GuestPolicies.Assignment.Builder |
addGroupLabels(GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
public GuestPolicies.Assignment.Builder addGroupLabels(GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
builderForValue | GuestPolicies.Assignment.GroupLabel.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
public GuestPolicies.Assignment.Builder addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
value | GuestPolicies.Assignment.GroupLabel |
Type | Description |
GuestPolicies.Assignment.Builder |
addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
public GuestPolicies.Assignment.Builder addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
builderForValue | GuestPolicies.Assignment.GroupLabel.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
addGroupLabelsBuilder()
public GuestPolicies.Assignment.GroupLabel.Builder addGroupLabelsBuilder()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
GuestPolicies.Assignment.GroupLabel.Builder |
addGroupLabelsBuilder(int index)
public GuestPolicies.Assignment.GroupLabel.Builder addGroupLabelsBuilder(int index)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.GroupLabel.Builder |
addInstanceNamePrefixes(String value)
public GuestPolicies.Assignment.Builder addInstanceNamePrefixes(String value)
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Name | Description |
value | String The instanceNamePrefixes to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addInstanceNamePrefixesBytes(ByteString value)
public GuestPolicies.Assignment.Builder addInstanceNamePrefixesBytes(ByteString value)
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Name | Description |
value | ByteString The bytes of the instanceNamePrefixes to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addInstances(String value)
public GuestPolicies.Assignment.Builder addInstances(String value)
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Name | Description |
value | String The instances to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addInstancesBytes(ByteString value)
public GuestPolicies.Assignment.Builder addInstancesBytes(ByteString value)
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Name | Description |
value | ByteString The bytes of the instances to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addOsTypes(GuestPolicies.Assignment.OsType value)
public GuestPolicies.Assignment.Builder addOsTypes(GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
value | GuestPolicies.Assignment.OsType |
Type | Description |
GuestPolicies.Assignment.Builder |
addOsTypes(GuestPolicies.Assignment.OsType.Builder builderForValue)
public GuestPolicies.Assignment.Builder addOsTypes(GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
builderForValue | GuestPolicies.Assignment.OsType.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
addOsTypes(int index, GuestPolicies.Assignment.OsType value)
public GuestPolicies.Assignment.Builder addOsTypes(int index, GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
value | GuestPolicies.Assignment.OsType |
Type | Description |
GuestPolicies.Assignment.Builder |
addOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
public GuestPolicies.Assignment.Builder addOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
builderForValue | GuestPolicies.Assignment.OsType.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
addOsTypesBuilder()
public GuestPolicies.Assignment.OsType.Builder addOsTypesBuilder()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
GuestPolicies.Assignment.OsType.Builder |
addOsTypesBuilder(int index)
public GuestPolicies.Assignment.OsType.Builder addOsTypesBuilder(int index)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.OsType.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GuestPolicies.Assignment.Builder |
addZones(String value)
public GuestPolicies.Assignment.Builder addZones(String value)
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Name | Description |
value | String The zones to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
addZonesBytes(ByteString value)
public GuestPolicies.Assignment.Builder addZonesBytes(ByteString value)
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Name | Description |
value | ByteString The bytes of the zones to add. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
build()
public GuestPolicies.Assignment build()
Type | Description |
GuestPolicies.Assignment |
buildPartial()
public GuestPolicies.Assignment buildPartial()
Type | Description |
GuestPolicies.Assignment |
clear()
public GuestPolicies.Assignment.Builder clear()
Type | Description |
GuestPolicies.Assignment.Builder |
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.Assignment.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
GuestPolicies.Assignment.Builder |
clearGroupLabels()
public GuestPolicies.Assignment.Builder clearGroupLabels()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
GuestPolicies.Assignment.Builder |
clearInstanceNamePrefixes()
public GuestPolicies.Assignment.Builder clearInstanceNamePrefixes()
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
clearInstances()
public GuestPolicies.Assignment.Builder clearInstances()
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.Assignment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
GuestPolicies.Assignment.Builder |
clearOsTypes()
public GuestPolicies.Assignment.Builder clearOsTypes()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
GuestPolicies.Assignment.Builder |
clearZones()
public GuestPolicies.Assignment.Builder clearZones()
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
clone()
public GuestPolicies.Assignment.Builder clone()
Type | Description |
GuestPolicies.Assignment.Builder |
getDefaultInstanceForType()
public GuestPolicies.Assignment getDefaultInstanceForType()
Type | Description |
GuestPolicies.Assignment |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getGroupLabels(int index)
public GuestPolicies.Assignment.GroupLabel getGroupLabels(int index)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.GroupLabel |
getGroupLabelsBuilder(int index)
public GuestPolicies.Assignment.GroupLabel.Builder getGroupLabelsBuilder(int index)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.GroupLabel.Builder |
getGroupLabelsBuilderList()
public List<GuestPolicies.Assignment.GroupLabel.Builder> getGroupLabelsBuilderList()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
List<Builder> |
getGroupLabelsCount()
public int getGroupLabelsCount()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
int |
getGroupLabelsList()
public List<GuestPolicies.Assignment.GroupLabel> getGroupLabelsList()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
List<GroupLabel> |
getGroupLabelsOrBuilder(int index)
public GuestPolicies.Assignment.GroupLabelOrBuilder getGroupLabelsOrBuilder(int index)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.GroupLabelOrBuilder |
getGroupLabelsOrBuilderList()
public List<? extends GuestPolicies.Assignment.GroupLabelOrBuilder> getGroupLabelsOrBuilderList()
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment.GroupLabelOrBuilder> |
getInstanceNamePrefixes(int index)
public String getInstanceNamePrefixes(int index)
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
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 VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
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 VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Type | Description |
int | The count of instanceNamePrefixes. |
getInstanceNamePrefixesList()
public ProtocolStringList getInstanceNamePrefixesList()
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Type | Description |
ProtocolStringList | A list containing the instanceNamePrefixes. |
getInstances(int index)
public String getInstances(int index)
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
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 instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
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 instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Type | Description |
int | The count of instances. |
getInstancesList()
public ProtocolStringList getInstancesList()
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Type | Description |
ProtocolStringList | A list containing the instances. |
getOsTypes(int index)
public GuestPolicies.Assignment.OsType getOsTypes(int index)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.OsType |
getOsTypesBuilder(int index)
public GuestPolicies.Assignment.OsType.Builder getOsTypesBuilder(int index)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.OsType.Builder |
getOsTypesBuilderList()
public List<GuestPolicies.Assignment.OsType.Builder> getOsTypesBuilderList()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
List<Builder> |
getOsTypesCount()
public int getOsTypesCount()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
int |
getOsTypesList()
public List<GuestPolicies.Assignment.OsType> getOsTypesList()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
List<OsType> |
getOsTypesOrBuilder(int index)
public GuestPolicies.Assignment.OsTypeOrBuilder getOsTypesOrBuilder(int index)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.OsTypeOrBuilder |
getOsTypesOrBuilderList()
public List<? extends GuestPolicies.Assignment.OsTypeOrBuilder> getOsTypesOrBuilderList()
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Type | Description |
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment.OsTypeOrBuilder> |
getZones(int index)
public String getZones(int index)
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
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 instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
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 instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Type | Description |
int | The count of zones. |
getZonesList()
public ProtocolStringList getZonesList()
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
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(GuestPolicies.Assignment other)
public GuestPolicies.Assignment.Builder mergeFrom(GuestPolicies.Assignment other)
Name | Description |
other | GuestPolicies.Assignment |
Type | Description |
GuestPolicies.Assignment.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GuestPolicies.Assignment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
GuestPolicies.Assignment.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GuestPolicies.Assignment.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
GuestPolicies.Assignment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GuestPolicies.Assignment.Builder |
removeGroupLabels(int index)
public GuestPolicies.Assignment.Builder removeGroupLabels(int index)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.Builder |
removeOsTypes(int index)
public GuestPolicies.Assignment.Builder removeOsTypes(int index)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
Type | Description |
GuestPolicies.Assignment.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GuestPolicies.Assignment.Builder |
setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
public GuestPolicies.Assignment.Builder setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
value | GuestPolicies.Assignment.GroupLabel |
Type | Description |
GuestPolicies.Assignment.Builder |
setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
public GuestPolicies.Assignment.Builder setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.Assignment.GroupLabel group_labels = 1;
Name | Description |
index | int |
builderForValue | GuestPolicies.Assignment.GroupLabel.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
setInstanceNamePrefixes(int index, String value)
public GuestPolicies.Assignment.Builder setInstanceNamePrefixes(int index, String value)
Targets VM instances whose name starts with one of these prefixes. Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-". Only supported for project-level policies.
repeated string instance_name_prefixes = 4;
Name | Description |
index | int The index to set the value at. |
value | String The instanceNamePrefixes to set. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
setInstances(int index, String value)
public GuestPolicies.Assignment.Builder setInstances(int index, String value)
Targets any of the instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
.
Instance targeting is uncommon and is supported to facilitate the
management of changes by the instance or to target specific VM instances
for development and testing.
Only supported for project-level policies and must reference instances
within this project.
repeated string instances = 3;
Name | Description |
index | int The index to set the value at. |
value | String The instances to set. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |
setOsTypes(int index, GuestPolicies.Assignment.OsType value)
public GuestPolicies.Assignment.Builder setOsTypes(int index, GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
value | GuestPolicies.Assignment.OsType |
Type | Description |
GuestPolicies.Assignment.Builder |
setOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
public GuestPolicies.Assignment.Builder setOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types. VM instances must match all supplied criteria for a given OsType to be included.
repeated .google.cloud.osconfig.v1beta.Assignment.OsType os_types = 5;
Name | Description |
index | int |
builderForValue | GuestPolicies.Assignment.OsType.Builder |
Type | Description |
GuestPolicies.Assignment.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.Assignment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
GuestPolicies.Assignment.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GuestPolicies.Assignment.Builder |
setZones(int index, String value)
public GuestPolicies.Assignment.Builder setZones(int index, String value)
Targets instances in any of these zones. Leave empty to target instances in any zone. Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
repeated string zones = 2;
Name | Description |
index | int The index to set the value at. |
value | String The zones to set. |
Type | Description |
GuestPolicies.Assignment.Builder | This builder for chaining. |