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.
      • getOsShortNamesList

        @Deprecated
        public com.google.protobuf.ProtocolStringList getOsShortNamesList()
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Specified by:
        getOsShortNamesList in interface OSPolicyAssignment.InstanceFilterOrBuilder
        Returns:
        A list containing the osShortNames.
      • getOsShortNamesCount

        @Deprecated
        public int getOsShortNamesCount()
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Specified by:
        getOsShortNamesCount in interface OSPolicyAssignment.InstanceFilterOrBuilder
        Returns:
        The count of osShortNames.
      • getOsShortNames

        @Deprecated
        public String getOsShortNames​(int index)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Specified by:
        getOsShortNames in interface OSPolicyAssignment.InstanceFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The osShortNames at the given index.
      • getOsShortNamesBytes

        @Deprecated
        public com.google.protobuf.ByteString getOsShortNamesBytes​(int index)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Specified by:
        getOsShortNamesBytes in interface OSPolicyAssignment.InstanceFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the osShortNames at the given index.
      • setOsShortNames

        @Deprecated
        public OSPolicyAssignment.InstanceFilter.Builder setOsShortNames​(int index,
                                                                         String value)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Parameters:
        index - The index to set the value at.
        value - The osShortNames to set.
        Returns:
        This builder for chaining.
      • addOsShortNames

        @Deprecated
        public OSPolicyAssignment.InstanceFilter.Builder addOsShortNames​(String value)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Parameters:
        value - The osShortNames to add.
        Returns:
        This builder for chaining.
      • addAllOsShortNames

        @Deprecated
        public OSPolicyAssignment.InstanceFilter.Builder addAllOsShortNames​(Iterable<String> values)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Parameters:
        values - The osShortNames to add.
        Returns:
        This builder for chaining.
      • clearOsShortNames

        @Deprecated
        public OSPolicyAssignment.InstanceFilter.Builder clearOsShortNames()
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • addOsShortNamesBytes

        @Deprecated
        public OSPolicyAssignment.InstanceFilter.Builder addOsShortNamesBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.os_short_names is deprecated. See google/cloud/osconfig/v1alpha/os_policy_assignments.proto;l=94
         Deprecated. Use the `inventories` field instead.
         A VM is selected if it's OS short name matches with any of the
         values provided in this list.
         
        repeated string os_short_names = 2 [deprecated = true];
        Parameters:
        value - The bytes of the osShortNames to add.
        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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
        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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
        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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
        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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
      • 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.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;