Class OSPolicyAssignment.InstanceFilter.Builder

    • 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<OSPolicyAssignment.InstanceFilter.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<OSPolicyAssignment.InstanceFilter.Builder>
      • getDefaultInstanceForType

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

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

        public OSPolicyAssignment.InstanceFilter buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicyAssignment.InstanceFilter.Builder>
      • setAll

        public OSPolicyAssignment.InstanceFilter.Builder setAll​(boolean value)
         Target all VMs in the project. If true, no other criteria is
         permitted.
         
        bool all = 1;
        Parameters:
        value - The all to set.
        Returns:
        This builder for chaining.
      • getInclusionLabelsCount

        public int getInclusionLabelsCount()
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
        Specified by:
        getInclusionLabelsCount in interface OSPolicyAssignment.InstanceFilterOrBuilder
      • setInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder setInclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet value)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • setInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder setInclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addInclusionLabels​(OSPolicyAssignment.LabelSet value)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addInclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet value)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addInclusionLabels​(OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addInclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addAllInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addAllInclusionLabels​(Iterable<? extends OSPolicyAssignment.LabelSet> values)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • clearInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder clearInclusionLabels()
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • removeInclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder removeInclusionLabels​(int index)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • getInclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder getInclusionLabelsBuilder​(int index)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder addInclusionLabelsBuilder()
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • addInclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder addInclusionLabelsBuilder​(int index)
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • getInclusionLabelsBuilderList

        public List<OSPolicyAssignment.LabelSet.Builder> getInclusionLabelsBuilderList()
         List of label sets used for VM inclusion.
        
         If the list has more than one `LabelSet`, the VM is included if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2;
      • getExclusionLabelsCount

        public int getExclusionLabelsCount()
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
        Specified by:
        getExclusionLabelsCount in interface OSPolicyAssignment.InstanceFilterOrBuilder
      • setExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder setExclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet value)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • setExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder setExclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addExclusionLabels​(OSPolicyAssignment.LabelSet value)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addExclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet value)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addExclusionLabels​(OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addExclusionLabels​(int index,
                                                                            OSPolicyAssignment.LabelSet.Builder builderForValue)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addAllExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder addAllExclusionLabels​(Iterable<? extends OSPolicyAssignment.LabelSet> values)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • clearExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder clearExclusionLabels()
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • removeExclusionLabels

        public OSPolicyAssignment.InstanceFilter.Builder removeExclusionLabels​(int index)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • getExclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder getExclusionLabelsBuilder​(int index)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder addExclusionLabelsBuilder()
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • addExclusionLabelsBuilder

        public OSPolicyAssignment.LabelSet.Builder addExclusionLabelsBuilder​(int index)
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • getExclusionLabelsBuilderList

        public List<OSPolicyAssignment.LabelSet.Builder> getExclusionLabelsBuilderList()
         List of label sets used for VM exclusion.
        
         If the list has more than one label set, the VM is excluded if any
         of the label sets are applicable for the VM.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3;
      • getInventoriesCount

        public int getInventoriesCount()
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
        Specified by:
        getInventoriesCount in interface OSPolicyAssignment.InstanceFilterOrBuilder
      • clearInventories

        public OSPolicyAssignment.InstanceFilter.Builder clearInventories()
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
      • removeInventories

        public OSPolicyAssignment.InstanceFilter.Builder removeInventories​(int index)
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
      • getInventoriesBuilder

        public OSPolicyAssignment.InstanceFilter.Inventory.Builder getInventoriesBuilder​(int index)
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
      • addInventoriesBuilder

        public OSPolicyAssignment.InstanceFilter.Inventory.Builder addInventoriesBuilder()
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
      • addInventoriesBuilder

        public OSPolicyAssignment.InstanceFilter.Inventory.Builder addInventoriesBuilder​(int index)
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;
      • getInventoriesBuilderList

        public List<OSPolicyAssignment.InstanceFilter.Inventory.Builder> getInventoriesBuilderList()
         List of inventories to select VMs.
        
         A VM is selected if its inventory data matches at least one of the
         following inventories.
         
        repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4;