public static final class OSPolicy.ResourceGroup extends com.google.protobuf.GeneratedMessageV3 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.v1.OSPolicy.ResourceGroup| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicy.ResourceGroup.Builder
Resource groups provide a mechanism to group OS policy resources.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
INVENTORY_FILTERS_FIELD_NUMBER |
static int |
RESOURCES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OSPolicy.ResourceGroup |
getDefaultInstance() |
OSPolicy.ResourceGroup |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
OSPolicy.InventoryFilter |
getInventoryFilters(int index)
List of inventory filters for the resource group.
|
int |
getInventoryFiltersCount()
List of inventory filters for the resource group.
|
List<OSPolicy.InventoryFilter> |
getInventoryFiltersList()
List of inventory filters for the resource group.
|
OSPolicy.InventoryFilterOrBuilder |
getInventoryFiltersOrBuilder(int index)
List of inventory filters for the resource group.
|
List<? extends OSPolicy.InventoryFilterOrBuilder> |
getInventoryFiltersOrBuilderList()
List of inventory filters for the resource group.
|
com.google.protobuf.Parser<OSPolicy.ResourceGroup> |
getParserForType() |
OSPolicy.Resource |
getResources(int index)
Required.
|
int |
getResourcesCount()
Required.
|
List<OSPolicy.Resource> |
getResourcesList()
Required.
|
OSPolicy.ResourceOrBuilder |
getResourcesOrBuilder(int index)
Required.
|
List<? extends OSPolicy.ResourceOrBuilder> |
getResourcesOrBuilderList()
Required.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OSPolicy.ResourceGroup.Builder |
newBuilder() |
static OSPolicy.ResourceGroup.Builder |
newBuilder(OSPolicy.ResourceGroup prototype) |
OSPolicy.ResourceGroup.Builder |
newBuilderForType() |
protected OSPolicy.ResourceGroup.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OSPolicy.ResourceGroup |
parseDelimitedFrom(InputStream input) |
static OSPolicy.ResourceGroup |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.ResourceGroup |
parseFrom(byte[] data) |
static OSPolicy.ResourceGroup |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.ResourceGroup |
parseFrom(ByteBuffer data) |
static OSPolicy.ResourceGroup |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.ResourceGroup |
parseFrom(com.google.protobuf.ByteString data) |
static OSPolicy.ResourceGroup |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.ResourceGroup |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OSPolicy.ResourceGroup |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicy.ResourceGroup |
parseFrom(InputStream input) |
static OSPolicy.ResourceGroup |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OSPolicy.ResourceGroup> |
parser() |
OSPolicy.ResourceGroup.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INVENTORY_FILTERS_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<OSPolicy.InventoryFilter> 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.v1.OSPolicy.InventoryFilter inventory_filters = 1;
getInventoryFiltersList in interface OSPolicy.ResourceGroupOrBuilderpublic List<? extends OSPolicy.InventoryFilterOrBuilder> 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.v1.OSPolicy.InventoryFilter inventory_filters = 1;
getInventoryFiltersOrBuilderList in interface OSPolicy.ResourceGroupOrBuilderpublic 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.v1.OSPolicy.InventoryFilter inventory_filters = 1;
getInventoryFiltersCount in interface OSPolicy.ResourceGroupOrBuilderpublic OSPolicy.InventoryFilter getInventoryFilters(int index)
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.v1.OSPolicy.InventoryFilter inventory_filters = 1;
getInventoryFilters in interface OSPolicy.ResourceGroupOrBuilderpublic OSPolicy.InventoryFilterOrBuilder getInventoryFiltersOrBuilder(int index)
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.v1.OSPolicy.InventoryFilter inventory_filters = 1;
getInventoryFiltersOrBuilder in interface OSPolicy.ResourceGroupOrBuilderpublic List<OSPolicy.Resource> getResourcesList()
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
getResourcesList in interface OSPolicy.ResourceGroupOrBuilderpublic List<? extends OSPolicy.ResourceOrBuilder> getResourcesOrBuilderList()
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
getResourcesOrBuilderList in interface OSPolicy.ResourceGroupOrBuilderpublic 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.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
getResourcesCount in interface OSPolicy.ResourceGroupOrBuilderpublic OSPolicy.Resource getResources(int index)
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
getResources in interface OSPolicy.ResourceGroupOrBuilderpublic OSPolicy.ResourceOrBuilder getResourcesOrBuilder(int index)
Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.
repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
getResourcesOrBuilder in interface OSPolicy.ResourceGroupOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OSPolicy.ResourceGroup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicy.ResourceGroup parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.ResourceGroup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.ResourceGroup parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicy.ResourceGroup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicy.ResourceGroup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicy.ResourceGroup.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicy.ResourceGroup.Builder newBuilder()
public static OSPolicy.ResourceGroup.Builder newBuilder(OSPolicy.ResourceGroup prototype)
public OSPolicy.ResourceGroup.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicy.ResourceGroup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicy.ResourceGroup getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicy.ResourceGroup> parser()
public com.google.protobuf.Parser<OSPolicy.ResourceGroup> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicy.ResourceGroup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.