Class OSPolicy.ResourceGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OSPolicy.ResourceGroup.Builder>
com.google.cloud.osconfig.v1alpha.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public OSPolicy.ResourceGroup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicy.ResourceGroup.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
       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];
    • setOsFilter

      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.
       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.
       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];
    • getOsFilterOrBuilder

      @Deprecated public OSPolicy.OSFilterOrBuilder 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:
      getOsFilterOrBuilder in interface OSPolicy.ResourceGroupOrBuilder
    • 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

       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];