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.GeneratedMessageV3.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.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 typegoogle.cloud.osconfig.v1beta.Assignment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuestPolicies.Assignment.Builder
addAllGroupLabels(Iterable<? extends GuestPolicies.Assignment.GroupLabel> values)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
addAllInstanceNamePrefixes(Iterable<String> values)
Targets VM instances whose name starts with one of these prefixes.GuestPolicies.Assignment.Builder
addAllInstances(Iterable<String> values)
Targets any of the instances specified.GuestPolicies.Assignment.Builder
addAllOsTypes(Iterable<? extends GuestPolicies.Assignment.OsType> values)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
addAllZones(Iterable<String> values)
Targets instances in any of these zones.GuestPolicies.Assignment.Builder
addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
addGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
addGroupLabels(GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
addGroupLabels(GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.GroupLabel.Builder
addGroupLabelsBuilder()
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.GroupLabel.Builder
addGroupLabelsBuilder(int index)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
addInstanceNamePrefixes(String value)
Targets VM instances whose name starts with one of these prefixes.GuestPolicies.Assignment.Builder
addInstanceNamePrefixesBytes(com.google.protobuf.ByteString value)
Targets VM instances whose name starts with one of these prefixes.GuestPolicies.Assignment.Builder
addInstances(String value)
Targets any of the instances specified.GuestPolicies.Assignment.Builder
addInstancesBytes(com.google.protobuf.ByteString value)
Targets any of the instances specified.GuestPolicies.Assignment.Builder
addOsTypes(int index, GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
addOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
addOsTypes(GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
addOsTypes(GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.OsType.Builder
addOsTypesBuilder()
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.OsType.Builder
addOsTypesBuilder(int index)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.Assignment.Builder
addZones(String value)
Targets instances in any of these zones.GuestPolicies.Assignment.Builder
addZonesBytes(com.google.protobuf.ByteString value)
Targets instances in any of these zones.GuestPolicies.Assignment
build()
GuestPolicies.Assignment
buildPartial()
GuestPolicies.Assignment.Builder
clear()
GuestPolicies.Assignment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GuestPolicies.Assignment.Builder
clearGroupLabels()
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
clearInstanceNamePrefixes()
Targets VM instances whose name starts with one of these prefixes.GuestPolicies.Assignment.Builder
clearInstances()
Targets any of the instances specified.GuestPolicies.Assignment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GuestPolicies.Assignment.Builder
clearOsTypes()
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
clearZones()
Targets instances in any of these zones.GuestPolicies.Assignment.Builder
clone()
GuestPolicies.Assignment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GuestPolicies.Assignment.GroupLabel
getGroupLabels(int index)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.GroupLabel.Builder
getGroupLabelsBuilder(int index)
Targets instances matching at least one of these label sets.List<GuestPolicies.Assignment.GroupLabel.Builder>
getGroupLabelsBuilderList()
Targets instances matching at least one of these label sets.int
getGroupLabelsCount()
Targets instances matching at least one of these label sets.List<GuestPolicies.Assignment.GroupLabel>
getGroupLabelsList()
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.GroupLabelOrBuilder
getGroupLabelsOrBuilder(int index)
Targets instances matching at least one of these label sets.List<? extends GuestPolicies.Assignment.GroupLabelOrBuilder>
getGroupLabelsOrBuilderList()
Targets instances matching at least one of these label sets.String
getInstanceNamePrefixes(int index)
Targets VM instances whose name starts with one of these prefixes.com.google.protobuf.ByteString
getInstanceNamePrefixesBytes(int index)
Targets VM instances whose name starts with one of these prefixes.int
getInstanceNamePrefixesCount()
Targets VM instances whose name starts with one of these prefixes.com.google.protobuf.ProtocolStringList
getInstanceNamePrefixesList()
Targets VM instances whose name starts with one of these prefixes.String
getInstances(int index)
Targets any of the instances specified.com.google.protobuf.ByteString
getInstancesBytes(int index)
Targets any of the instances specified.int
getInstancesCount()
Targets any of the instances specified.com.google.protobuf.ProtocolStringList
getInstancesList()
Targets any of the instances specified.GuestPolicies.Assignment.OsType
getOsTypes(int index)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.OsType.Builder
getOsTypesBuilder(int index)
Targets VM instances matching at least one of the following OS types.List<GuestPolicies.Assignment.OsType.Builder>
getOsTypesBuilderList()
Targets VM instances matching at least one of the following OS types.int
getOsTypesCount()
Targets VM instances matching at least one of the following OS types.List<GuestPolicies.Assignment.OsType>
getOsTypesList()
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.OsTypeOrBuilder
getOsTypesOrBuilder(int index)
Targets VM instances matching at least one of the following OS types.List<? extends GuestPolicies.Assignment.OsTypeOrBuilder>
getOsTypesOrBuilderList()
Targets VM instances matching at least one of the following OS types.String
getZones(int index)
Targets instances in any of these zones.com.google.protobuf.ByteString
getZonesBytes(int index)
Targets instances in any of these zones.int
getZonesCount()
Targets instances in any of these zones.com.google.protobuf.ProtocolStringList
getZonesList()
Targets instances in any of these zones.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GuestPolicies.Assignment.Builder
mergeFrom(GuestPolicies.Assignment other)
GuestPolicies.Assignment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GuestPolicies.Assignment.Builder
mergeFrom(com.google.protobuf.Message other)
GuestPolicies.Assignment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GuestPolicies.Assignment.Builder
removeGroupLabels(int index)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
removeOsTypes(int index)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GuestPolicies.Assignment.Builder
setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel value)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
setGroupLabels(int index, GuestPolicies.Assignment.GroupLabel.Builder builderForValue)
Targets instances matching at least one of these label sets.GuestPolicies.Assignment.Builder
setInstanceNamePrefixes(int index, String value)
Targets VM instances whose name starts with one of these prefixes.GuestPolicies.Assignment.Builder
setInstances(int index, String value)
Targets any of the instances specified.GuestPolicies.Assignment.Builder
setOsTypes(int index, GuestPolicies.Assignment.OsType value)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
setOsTypes(int index, GuestPolicies.Assignment.OsType.Builder builderForValue)
Targets VM instances matching at least one of the following OS types.GuestPolicies.Assignment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GuestPolicies.Assignment.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GuestPolicies.Assignment.Builder
setZones(int index, String value)
Targets instances in any of these zones.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
clear
public GuestPolicies.Assignment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
getDefaultInstanceForType
public GuestPolicies.Assignment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GuestPolicies.Assignment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GuestPolicies.Assignment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GuestPolicies.Assignment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
setField
public GuestPolicies.Assignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
clearField
public GuestPolicies.Assignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
clearOneof
public GuestPolicies.Assignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
setRepeatedField
public GuestPolicies.Assignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
addRepeatedField
public GuestPolicies.Assignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
mergeFrom
public GuestPolicies.Assignment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.Assignment.Builder>
-
mergeFrom
public GuestPolicies.Assignment.Builder mergeFrom(GuestPolicies.Assignment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
mergeFrom
public GuestPolicies.Assignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GuestPolicies.Assignment.Builder>
- Throws:
IOException
-
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;
- Specified by:
getGroupLabelsList
in 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:
getGroupLabelsCount
in interfaceGuestPolicies.AssignmentOrBuilder
-
getGroupLabels
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;
- Specified by:
getGroupLabels
in 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
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;
-
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
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;
-
removeGroupLabels
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;
-
getGroupLabelsBuilder
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;
-
getGroupLabelsOrBuilder
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;
- Specified by:
getGroupLabelsOrBuilder
in interfaceGuestPolicies.AssignmentOrBuilder
-
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;
- Specified by:
getGroupLabelsOrBuilderList
in interfaceGuestPolicies.AssignmentOrBuilder
-
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;
-
addGroupLabelsBuilder
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;
-
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;
-
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:
getZonesList
in 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:
getZonesCount
in interfaceGuestPolicies.AssignmentOrBuilder
- Returns:
- The count of zones.
-
getZones
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;
- Specified by:
getZones
in 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:
getZonesBytes
in interfaceGuestPolicies.AssignmentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the zones at the given index.
-
setZones
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;
- Parameters:
index
- The index to set the value at.value
- The zones to set.- Returns:
- This builder for chaining.
-
addZones
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;
- Parameters:
value
- The zones to add.- Returns:
- This builder for chaining.
-
addAllZones
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;
- Parameters:
values
- The zones to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
addZonesBytes
public GuestPolicies.Assignment.Builder addZonesBytes(com.google.protobuf.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;
- 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:
getInstancesList
in 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:
getInstancesCount
in interfaceGuestPolicies.AssignmentOrBuilder
- Returns:
- The count of instances.
-
getInstances
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;
- Specified by:
getInstances
in 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:
getInstancesBytes
in interfaceGuestPolicies.AssignmentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
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;
- Parameters:
index
- The index to set the value at.value
- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
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;
- Parameters:
value
- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
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;
- Parameters:
values
- The instances to add.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
addInstancesBytes
public GuestPolicies.Assignment.Builder addInstancesBytes(com.google.protobuf.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;
- 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:
getInstanceNamePrefixesList
in 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:
getInstanceNamePrefixesCount
in interfaceGuestPolicies.AssignmentOrBuilder
- Returns:
- The count of instanceNamePrefixes.
-
getInstanceNamePrefixes
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;
- Specified by:
getInstanceNamePrefixes
in 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:
getInstanceNamePrefixesBytes
in interfaceGuestPolicies.AssignmentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instanceNamePrefixes at the given index.
-
setInstanceNamePrefixes
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;
- Parameters:
index
- The index to set the value at.value
- The instanceNamePrefixes to set.- Returns:
- This builder for chaining.
-
addInstanceNamePrefixes
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;
- Parameters:
value
- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
addAllInstanceNamePrefixes
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;
- Parameters:
values
- The instanceNamePrefixes to add.- Returns:
- This builder for chaining.
-
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;
- 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
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;
- Specified by:
getOsTypesList
in 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:
getOsTypesCount
in interfaceGuestPolicies.AssignmentOrBuilder
-
getOsTypes
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;
- Specified by:
getOsTypes
in 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
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;
-
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
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;
-
removeOsTypes
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;
-
getOsTypesBuilder
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;
-
getOsTypesOrBuilder
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;
- Specified by:
getOsTypesOrBuilder
in interfaceGuestPolicies.AssignmentOrBuilder
-
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;
- Specified by:
getOsTypesOrBuilderList
in interfaceGuestPolicies.AssignmentOrBuilder
-
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;
-
addOsTypesBuilder
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;
-
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;
-
setUnknownFields
public final GuestPolicies.Assignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
mergeUnknownFields
public final GuestPolicies.Assignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.Assignment.Builder>
-
-