Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.Assignment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.Assignment.Builder>
com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment.Builder
- All Implemented Interfaces:
GuestPolicies.AssignmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GuestPolicies.Assignment
public static final class GuestPolicies.Assignment.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroupLabels(Iterable<? extends GuestPolicies.Assignment.GroupLabel> values) Targets instances matching at least one of these label sets.addAllInstanceNamePrefixes(Iterable<String> values) Targets VM instances whose name starts with one of these prefixes.addAllInstances(Iterable<String> values) Targets any of the instances specified.addAllOsTypes(Iterable<? extends GuestPolicies.Assignment.OsType> values) Targets VM instances matching at least one of the following OS types.addAllZones(Iterable<String> values) Targets instances in any of these zones.addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value) Targets instances matching at least one of these label sets.addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue) Targets instances matching at least one of these label sets.Targets instances matching at least one of these label sets.addGroupLabels(GuestPolicies.Assignment.GroupLabel.Builder builderForValue) Targets instances matching at least one of these label sets.Targets instances matching at least one of these label sets.addGroupLabelsBuilder(int index) Targets instances matching at least one of these label sets.addInstanceNamePrefixes(String value) Targets VM instances whose name starts with one of these prefixes.addInstanceNamePrefixesBytes(com.google.protobuf.ByteString value) Targets VM instances whose name starts with one of these prefixes.addInstances(String value) Targets any of the instances specified.addInstancesBytes(com.google.protobuf.ByteString value) Targets any of the instances specified.addOsTypes(int index, GuestPolicies.Assignment.OsType value) Targets VM instances matching at least one of the following OS types.addOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue) Targets VM instances matching at least one of the following OS types.Targets VM instances matching at least one of the following OS types.addOsTypes(GuestPolicies.Assignment.OsType.Builder builderForValue) Targets VM instances matching at least one of the following OS types.Targets VM instances matching at least one of the following OS types.addOsTypesBuilder(int index) Targets VM instances matching at least one of the following OS types.Targets instances in any of these zones.addZonesBytes(com.google.protobuf.ByteString value) Targets instances in any of these zones.build()clear()Targets instances matching at least one of these label sets.Targets VM instances whose name starts with one of these prefixes.Targets any of the instances specified.Targets VM instances matching at least one of the following OS types.Targets instances in any of these zones.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGroupLabels(int index) Targets instances matching at least one of these label sets.getGroupLabelsBuilder(int index) Targets instances matching at least one of these label sets.Targets instances matching at least one of these label sets.intTargets instances matching at least one of these label sets.Targets instances matching at least one of these label sets.getGroupLabelsOrBuilder(int index) Targets instances matching at least one of these label sets.List<? extends GuestPolicies.Assignment.GroupLabelOrBuilder>Targets instances matching at least one of these label sets.getInstanceNamePrefixes(int index) Targets VM instances whose name starts with one of these prefixes.com.google.protobuf.ByteStringgetInstanceNamePrefixesBytes(int index) Targets VM instances whose name starts with one of these prefixes.intTargets VM instances whose name starts with one of these prefixes.com.google.protobuf.ProtocolStringListTargets VM instances whose name starts with one of these prefixes.getInstances(int index) Targets any of the instances specified.com.google.protobuf.ByteStringgetInstancesBytes(int index) Targets any of the instances specified.intTargets any of the instances specified.com.google.protobuf.ProtocolStringListTargets any of the instances specified.getOsTypes(int index) Targets VM instances matching at least one of the following OS types.getOsTypesBuilder(int index) Targets VM instances matching at least one of the following OS types.Targets VM instances matching at least one of the following OS types.intTargets VM instances matching at least one of the following OS types.Targets VM instances matching at least one of the following OS types.getOsTypesOrBuilder(int index) Targets VM instances matching at least one of the following OS types.List<? extends GuestPolicies.Assignment.OsTypeOrBuilder>Targets VM instances matching at least one of the following OS types.getZones(int index) Targets instances in any of these zones.com.google.protobuf.ByteStringgetZonesBytes(int index) Targets instances in any of these zones.intTargets instances in any of these zones.com.google.protobuf.ProtocolStringListTargets instances in any of these zones.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeGroupLabels(int index) Targets instances matching at least one of these label sets.removeOsTypes(int index) Targets VM instances matching at least one of the following OS types.setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value) Targets instances matching at least one of these label sets.setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue) Targets instances matching at least one of these label sets.setInstanceNamePrefixes(int index, String value) Targets VM instances whose name starts with one of these prefixes.setInstances(int index, String value) Targets any of the instances specified.setOsTypes(int index, GuestPolicies.Assignment.OsType value) Targets VM instances matching at least one of the following OS types.setOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue) Targets VM instances matching at least one of the following OS types.Targets instances in any of these zones.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.Assignment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.Assignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.Assignment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.Assignment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GuestPolicies.Assignment.Builder>
-
mergeFrom
public GuestPolicies.Assignment.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<GuestPolicies.Assignment.Builder>- Throws:
IOException
-
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;- Specified by:
getGroupLabelsListin interfaceGuestPolicies.AssignmentOrBuilder
-
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;- Specified by:
getGroupLabelsCountin interfaceGuestPolicies.AssignmentOrBuilder
-
getGroupLabels
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;- Specified by:
getGroupLabelsin interfaceGuestPolicies.AssignmentOrBuilder
-
setGroupLabels
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; -
setGroupLabels
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; -
addGroupLabels
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; -
addGroupLabels
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; -
addGroupLabels
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; -
addGroupLabels
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; -
addAllGroupLabels
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; -
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; -
removeGroupLabels
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; -
getGroupLabelsBuilder
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; -
getGroupLabelsOrBuilder
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;- Specified by:
getGroupLabelsOrBuilderin interfaceGuestPolicies.AssignmentOrBuilder
-
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;- Specified by:
getGroupLabelsOrBuilderListin interfaceGuestPolicies.AssignmentOrBuilder
-
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; -
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; -
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; -
getZonesList
public com.google.protobuf.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;- Specified by:
getZonesListin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- A list containing the zones.
-
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;- Specified by:
getZonesCountin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- The count of zones.
-
getZones
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;- Specified by:
getZonesin interfaceGuestPolicies.AssignmentOrBuilder- 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 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;- Specified by:
getZonesBytesin interfaceGuestPolicies.AssignmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the zones at the given index.
-
setZones
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;- Parameters:
index- The index to set the value at.value- The zones to set.- Returns:
- This builder for chaining.
-
addZones
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;- Parameters:
value- The zones to add.- Returns:
- This builder for chaining.
-
addAllZones
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;- Parameters:
values- The zones to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addZonesBytes
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;- 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 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;- Specified by:
getInstancesListin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- A list containing the instances.
-
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;- Specified by:
getInstancesCountin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- The count of instances.
-
getInstances
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;- Specified by:
getInstancesin interfaceGuestPolicies.AssignmentOrBuilder- 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 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;- Specified by:
getInstancesBytesin interfaceGuestPolicies.AssignmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
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;- Parameters:
index- The index to set the value at.value- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
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;- Parameters:
value- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
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;- Parameters:
values- The instances to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addInstancesBytes
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;- Parameters:
value- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
getInstanceNamePrefixesList
public com.google.protobuf.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;- Specified by:
getInstanceNamePrefixesListin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- A list containing the instanceNamePrefixes.
-
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;- Specified by:
getInstanceNamePrefixesCountin interfaceGuestPolicies.AssignmentOrBuilder- Returns:
- The count of instanceNamePrefixes.
-
getInstanceNamePrefixes
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;- Specified by:
getInstanceNamePrefixesin interfaceGuestPolicies.AssignmentOrBuilder- 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 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;- Specified by:
getInstanceNamePrefixesBytesin interfaceGuestPolicies.AssignmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceNamePrefixes at the given index.
-
setInstanceNamePrefixes
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;- Parameters:
index- The index to set the value at.value- The instanceNamePrefixes to set.- Returns:
- This builder for chaining.
-
addInstanceNamePrefixes
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;- Parameters:
value- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
addAllInstanceNamePrefixes
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;- Parameters:
values- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addInstanceNamePrefixesBytes
public GuestPolicies.Assignment.Builder addInstanceNamePrefixesBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
getOsTypesListin interfaceGuestPolicies.AssignmentOrBuilder
-
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;- Specified by:
getOsTypesCountin interfaceGuestPolicies.AssignmentOrBuilder
-
getOsTypes
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;- Specified by:
getOsTypesin interfaceGuestPolicies.AssignmentOrBuilder
-
setOsTypes
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; -
setOsTypes
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; -
addOsTypes
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; -
addOsTypes
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; -
addOsTypes
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; -
addOsTypes
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; -
addAllOsTypes
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; -
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; -
removeOsTypes
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; -
getOsTypesBuilder
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; -
getOsTypesOrBuilder
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;- Specified by:
getOsTypesOrBuilderin interfaceGuestPolicies.AssignmentOrBuilder
-
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;- Specified by:
getOsTypesOrBuilderListin interfaceGuestPolicies.AssignmentOrBuilder
-
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; -
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; -
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;
-