Send feedback
Class OSPolicy.ResourceGroup (2.3.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.2 keyboard_arrow_down
public static final class OSPolicy . ResourceGroup extends 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.v1alpha.OSPolicy.ResourceGroup
Static Fields
OS_FILTER_FIELD_NUMBER
public static final int OS_FILTER_FIELD_NUMBER
Field Value
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OSPolicy . ResourceGroup getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static OSPolicy . ResourceGroup . Builder newBuilder ()
Returns
newBuilder(OSPolicy.ResourceGroup prototype)
public static OSPolicy . ResourceGroup . Builder newBuilder ( OSPolicy . ResourceGroup prototype )
Parameter
Returns
public static OSPolicy . ResourceGroup parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static OSPolicy . ResourceGroup parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OSPolicy . ResourceGroup parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy . ResourceGroup parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OSPolicy . ResourceGroup parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy . ResourceGroup parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static OSPolicy . ResourceGroup parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static OSPolicy . ResourceGroup parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static OSPolicy . ResourceGroup parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static OSPolicy . ResourceGroup parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OSPolicy . ResourceGroup parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy . ResourceGroup parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<OSPolicy . ResourceGroup > parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public OSPolicy . ResourceGroup getDefaultInstanceForType ()
Returns
getOsFilter()
public OSPolicy . OSFilter getOsFilter ()
Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
Returns
getOsFilterOrBuilder()
public OSPolicy . OSFilterOrBuilder getOsFilterOrBuilder ()
Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
Returns
getParserForType()
public Parser<OSPolicy . ResourceGroup > getParserForType ()
Returns
Overrides
getResources(int index)
public 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.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
Returns
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];
Returns
getResourcesList()
public 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.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getResourcesOrBuilder(int index)
public 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.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
Returns
getResourcesOrBuilderList()
public 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.v1alpha.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <? extends com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceOrBuilder >
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasOsFilter()
public boolean hasOsFilter ()
Used to specify the OS filter for a resource group
.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
Returns
Type
Description
boolean
Whether the osFilter field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public OSPolicy . ResourceGroup . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicy . ResourceGroup . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public OSPolicy . ResourceGroup . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-05 UTC."],[],[]]