Class OSPolicy.ResourceGroup.Builder

  • All Implemented Interfaces:
    OSPolicy.ResourceGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OSPolicy.ResourceGroup

    public static final class OSPolicy.ResourceGroup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • clear

        public OSPolicy.ResourceGroup.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • getDefaultInstanceForType

        public OSPolicy.ResourceGroup getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public OSPolicy.ResourceGroup build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public OSPolicy.ResourceGroup buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public OSPolicy.ResourceGroup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • clearField

        public OSPolicy.ResourceGroup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • clearOneof

        public OSPolicy.ResourceGroup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • setRepeatedField

        public OSPolicy.ResourceGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • addRepeatedField

        public OSPolicy.ResourceGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • mergeFrom

        public OSPolicy.ResourceGroup.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicy.ResourceGroup.Builder>
        Throws:
        IOException
      • hasOsFilter

        @Deprecated
        public boolean hasOsFilter()
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated. See google/cloud/osconfig/v1alpha/os_policy.proto;l=511
         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:
        hasOsFilter in interface OSPolicy.ResourceGroupOrBuilder
        Returns:
        Whether the osFilter field is set.
      • getOsFilter

        @Deprecated
        public OSPolicy.OSFilter getOsFilter()
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.os_filter is deprecated. See google/cloud/osconfig/v1alpha/os_policy.proto;l=511
         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:
        getOsFilter in interface OSPolicy.ResourceGroupOrBuilder
        Returns:
        The osFilter.
      • setOsFilter

        @Deprecated
        public OSPolicy.ResourceGroup.Builder setOsFilter​(OSPolicy.OSFilter value)
        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];
      • mergeOsFilter

        @Deprecated
        public OSPolicy.ResourceGroup.Builder mergeOsFilter​(OSPolicy.OSFilter value)
        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];
      • clearOsFilter

        @Deprecated
        public OSPolicy.ResourceGroup.Builder clearOsFilter()
        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];
      • getOsFilterBuilder

        @Deprecated
        public OSPolicy.OSFilter.Builder getOsFilterBuilder()
        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];
      • getInventoryFiltersList

        public 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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
        Specified by:
        getInventoryFiltersList in interface OSPolicy.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:
        getInventoryFiltersCount in interface OSPolicy.ResourceGroupOrBuilder
      • getInventoryFilters

        public 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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
        Specified by:
        getInventoryFilters in interface OSPolicy.ResourceGroupOrBuilder
      • setInventoryFilters

        public OSPolicy.ResourceGroup.Builder setInventoryFilters​(int index,
                                                                  OSPolicy.InventoryFilter value)
         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;
      • setInventoryFilters

        public OSPolicy.ResourceGroup.Builder setInventoryFilters​(int index,
                                                                  OSPolicy.InventoryFilter.Builder builderForValue)
         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;
      • addInventoryFilters

        public OSPolicy.ResourceGroup.Builder addInventoryFilters​(OSPolicy.InventoryFilter value)
         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;
      • addInventoryFilters

        public OSPolicy.ResourceGroup.Builder addInventoryFilters​(int index,
                                                                  OSPolicy.InventoryFilter value)
         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;
      • addInventoryFilters

        public OSPolicy.ResourceGroup.Builder addInventoryFilters​(OSPolicy.InventoryFilter.Builder builderForValue)
         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;
      • addInventoryFilters

        public OSPolicy.ResourceGroup.Builder addInventoryFilters​(int index,
                                                                  OSPolicy.InventoryFilter.Builder builderForValue)
         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;
      • addAllInventoryFilters

        public OSPolicy.ResourceGroup.Builder addAllInventoryFilters​(Iterable<? extends OSPolicy.InventoryFilter> values)
         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;
      • clearInventoryFilters

        public OSPolicy.ResourceGroup.Builder clearInventoryFilters()
         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;
      • removeInventoryFilters

        public OSPolicy.ResourceGroup.Builder removeInventoryFilters​(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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
      • getInventoryFiltersBuilder

        public OSPolicy.InventoryFilter.Builder getInventoryFiltersBuilder​(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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
      • getInventoryFiltersOrBuilder

        public 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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
        Specified by:
        getInventoryFiltersOrBuilder in interface OSPolicy.ResourceGroupOrBuilder
      • getInventoryFiltersOrBuilderList

        public 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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
        Specified by:
        getInventoryFiltersOrBuilderList in interface OSPolicy.ResourceGroupOrBuilder
      • addInventoryFiltersBuilder

        public OSPolicy.InventoryFilter.Builder addInventoryFiltersBuilder()
         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;
      • addInventoryFiltersBuilder

        public OSPolicy.InventoryFilter.Builder addInventoryFiltersBuilder​(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.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
      • getInventoryFiltersBuilderList

        public List<OSPolicy.InventoryFilter.Builder> getInventoryFiltersBuilderList()
         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;
      • 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];
        Specified by:
        getResourcesList in interface OSPolicy.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:
        getResourcesCount in interface OSPolicy.ResourceGroupOrBuilder
      • getResources

        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];
        Specified by:
        getResources in interface OSPolicy.ResourceGroupOrBuilder
      • setResources

        public OSPolicy.ResourceGroup.Builder setResources​(int index,
                                                           OSPolicy.Resource value)
         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];
      • setResources

        public OSPolicy.ResourceGroup.Builder setResources​(int index,
                                                           OSPolicy.Resource.Builder builderForValue)
         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];
      • addResources

        public OSPolicy.ResourceGroup.Builder addResources​(OSPolicy.Resource value)
         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];
      • addResources

        public OSPolicy.ResourceGroup.Builder addResources​(int index,
                                                           OSPolicy.Resource value)
         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];
      • addResources

        public OSPolicy.ResourceGroup.Builder addResources​(OSPolicy.Resource.Builder builderForValue)
         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];
      • addResources

        public OSPolicy.ResourceGroup.Builder addResources​(int index,
                                                           OSPolicy.Resource.Builder builderForValue)
         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];
      • addAllResources

        public OSPolicy.ResourceGroup.Builder addAllResources​(Iterable<? extends OSPolicy.Resource> values)
         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];
      • clearResources

        public OSPolicy.ResourceGroup.Builder clearResources()
         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];
      • removeResources

        public OSPolicy.ResourceGroup.Builder removeResources​(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];
      • getResourcesBuilder

        public OSPolicy.Resource.Builder getResourcesBuilder​(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];
      • getResourcesOrBuilder

        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];
        Specified by:
        getResourcesOrBuilder in interface OSPolicy.ResourceGroupOrBuilder
      • 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];
        Specified by:
        getResourcesOrBuilderList in interface OSPolicy.ResourceGroupOrBuilder
      • addResourcesBuilder

        public OSPolicy.Resource.Builder addResourcesBuilder()
         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];
      • addResourcesBuilder

        public OSPolicy.Resource.Builder addResourcesBuilder​(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];
      • getResourcesBuilderList

        public List<OSPolicy.Resource.Builder> getResourcesBuilderList()
         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];
      • setUnknownFields

        public final OSPolicy.ResourceGroup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>
      • mergeUnknownFields

        public final OSPolicy.ResourceGroup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.ResourceGroup.Builder>