Class OSPolicy.ResourceGroup
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup
- All Implemented Interfaces:
OSPolicy.ResourceGroupOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- OSPolicy
public static final class OSPolicy.ResourceGroup
extends com.google.protobuf.GeneratedMessage
implements OSPolicy.ResourceGroupOrBuilder
Resource groups provide a mechanism to group OS policy resources. Resource groups enable OS policy authors to create a single OS policy to be applied to VMs running different operating Systems. When the OS policy is applied to a target VM, the appropriate resource group within the OS policy is selected based on the `OSFilter` specified within the resource group.Protobuf type
google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResource groups provide a mechanism to group OS policy resources.Nested 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 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 OSPolicy.ResourceGroupstatic final com.google.protobuf.Descriptors.DescriptorgetInventoryFilters(int index) List of inventory filters for the resource group.intList of inventory filters for the resource group.List of inventory filters for the resource group.getInventoryFiltersOrBuilder(int index) List of inventory filters for the resource group.List<? extends OSPolicy.InventoryFilterOrBuilder>List of inventory filters for the resource group.Deprecated.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated.Deprecated.com.google.protobuf.Parser<OSPolicy.ResourceGroup>getResources(int index) Required.intRequired.Required.getResourcesOrBuilder(int index) Required.List<? extends OSPolicy.ResourceOrBuilder>Required.intinthashCode()booleanDeprecated.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(OSPolicy.ResourceGroup prototype) protected OSPolicy.ResourceGroup.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static OSPolicy.ResourceGroupparseDelimitedFrom(InputStream input) static OSPolicy.ResourceGroupparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OSPolicy.ResourceGroupparseFrom(byte[] data) static OSPolicy.ResourceGroupparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OSPolicy.ResourceGroupparseFrom(com.google.protobuf.ByteString data) static OSPolicy.ResourceGroupparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OSPolicy.ResourceGroupparseFrom(com.google.protobuf.CodedInputStream input) static OSPolicy.ResourceGroupparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OSPolicy.ResourceGroupparseFrom(InputStream input) static OSPolicy.ResourceGroupparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OSPolicy.ResourceGroupparseFrom(ByteBuffer data) static OSPolicy.ResourceGroupparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<OSPolicy.ResourceGroup>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
-
OS_FILTER_FIELD_NUMBER
public static final int OS_FILTER_FIELD_NUMBER- See Also:
-
INVENTORY_FILTERS_FIELD_NUMBER
public static final int INVENTORY_FILTERS_FIELD_NUMBER- See Also:
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_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
-
hasOsFilter
Deprecated.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated. See google/cloud/osconfig/v1alpha/os_policy.proto;l=511Deprecated. Use the `inventory_filters` field instead. Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];- Specified by:
hasOsFilterin interfaceOSPolicy.ResourceGroupOrBuilder- Returns:
- Whether the osFilter field is set.
-
getOsFilter
Deprecated.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated. See google/cloud/osconfig/v1alpha/os_policy.proto;l=511Deprecated. Use the `inventory_filters` field instead. Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];- Specified by:
getOsFilterin interfaceOSPolicy.ResourceGroupOrBuilder- Returns:
- The osFilter.
-
getOsFilterOrBuilder
Deprecated.Deprecated. Use the `inventory_filters` field instead. Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];- Specified by:
getOsFilterOrBuilderin interfaceOSPolicy.ResourceGroupOrBuilder
-
getInventoryFiltersList
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;- Specified by:
getInventoryFiltersListin interfaceOSPolicy.ResourceGroupOrBuilder
-
getInventoryFiltersOrBuilderList
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;- Specified by:
getInventoryFiltersOrBuilderListin interfaceOSPolicy.ResourceGroupOrBuilder
-
getInventoryFiltersCount
public int getInventoryFiltersCount()List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;- Specified by:
getInventoryFiltersCountin interfaceOSPolicy.ResourceGroupOrBuilder
-
getInventoryFilters
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;- Specified by:
getInventoryFiltersin interfaceOSPolicy.ResourceGroupOrBuilder
-
getInventoryFiltersOrBuilder
List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either `RHEL` or `CentOS` operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;- Specified by:
getInventoryFiltersOrBuilderin interfaceOSPolicy.ResourceGroupOrBuilder
-
getResourcesList
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesListin interfaceOSPolicy.ResourceGroupOrBuilder
-
getResourcesOrBuilderList
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesOrBuilderListin interfaceOSPolicy.ResourceGroupOrBuilder
-
getResourcesCount
public int getResourcesCount()Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesCountin interfaceOSPolicy.ResourceGroupOrBuilder
-
getResources
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesin interfaceOSPolicy.ResourceGroupOrBuilder
-
getResourcesOrBuilder
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getResourcesOrBuilderin interfaceOSPolicy.ResourceGroupOrBuilder
-
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 OSPolicy.ResourceGroup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static OSPolicy.ResourceGroup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OSPolicy.ResourceGroup 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 OSPolicy.ResourceGroup.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
-