Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.Assignment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.GuestPolicies.Assignment
- All Implemented Interfaces:
GuestPolicies.AssignmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- GuestPolicies
public static final class GuestPolicies.Assignment
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn assignment represents the group or groups of VM instances that the policy applies to.static final classRepresents a group of VM intances that can be identified as having all these labels, for example "env=prod and app=web".static interfacestatic final classDefines the criteria for selecting VM Instances by OS type.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GuestPolicies.Assignmentstatic final com.google.protobuf.Descriptors.DescriptorgetGroupLabels(int index) 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.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.com.google.protobuf.Parser<GuestPolicies.Assignment>intgetZones(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.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(GuestPolicies.Assignment prototype) protected GuestPolicies.Assignment.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GuestPolicies.AssignmentparseDelimitedFrom(InputStream input) static GuestPolicies.AssignmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.AssignmentparseFrom(byte[] data) static GuestPolicies.AssignmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.AssignmentparseFrom(com.google.protobuf.ByteString data) static GuestPolicies.AssignmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.AssignmentparseFrom(com.google.protobuf.CodedInputStream input) static GuestPolicies.AssignmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.AssignmentparseFrom(InputStream input) static GuestPolicies.AssignmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.AssignmentparseFrom(ByteBuffer data) static GuestPolicies.AssignmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GuestPolicies.Assignment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
GROUP_LABELS_FIELD_NUMBER
public static final int GROUP_LABELS_FIELD_NUMBER- See Also:
-
ZONES_FIELD_NUMBER
public static final int ZONES_FIELD_NUMBER- See Also:
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER- See Also:
-
INSTANCE_NAME_PREFIXES_FIELD_NUMBER
public static final int INSTANCE_NAME_PREFIXES_FIELD_NUMBER- See Also:
-
OS_TYPES_FIELD_NUMBER
public static final int OS_TYPES_FIELD_NUMBER- See Also:
-
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GuestPolicies.Assignment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GuestPolicies.Assignment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.Assignment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GuestPolicies.Assignment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-