Class OSPolicyAssignment.InstanceFilter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
All Implemented Interfaces:
OSPolicyAssignment.InstanceFilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
OSPolicyAssignment

public static final class OSPolicyAssignment.InstanceFilter extends com.google.protobuf.GeneratedMessage implements OSPolicyAssignment.InstanceFilterOrBuilder
 Filters to select target VMs for an assignment.

 If more than one filter criteria is specified below, a VM will be selected
 if and only if it satisfies all of them.
 
Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
See Also:
  • Field Details

    • ALL_FIELD_NUMBER

      public static final int ALL_FIELD_NUMBER
      See Also:
    • OS_SHORT_NAMES_FIELD_NUMBER

      public static final int OS_SHORT_NAMES_FIELD_NUMBER
      See Also:
    • INCLUSION_LABELS_FIELD_NUMBER

      public static final int INCLUSION_LABELS_FIELD_NUMBER
      See Also:
    • EXCLUSION_LABELS_FIELD_NUMBER

      public static final int EXCLUSION_LABELS_FIELD_NUMBER
      See Also:
    • INVENTORIES_FIELD_NUMBER

      public static final int INVENTORIES_FIELD_NUMBER
      See Also:
  • 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
    • getAll

      public boolean getAll()
       Target all VMs in the project. If true, no other criteria is
       permitted.
       
      bool all = 1;
      Specified by:
      getAll in interface OSPolicyAssignment.InstanceFilterOrBuilder
      Returns:
      The all.
    • 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.
    • getInclusionLabelsList

      public List<OSPolicyAssignment.LabelSet> getInclusionLabelsList()
       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:
      getInclusionLabelsList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getInclusionLabelsOrBuilderList

      public List<? extends OSPolicyAssignment.LabelSetOrBuilder> getInclusionLabelsOrBuilderList()
       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:
      getInclusionLabelsOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • 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
    • getInclusionLabels

      public OSPolicyAssignment.LabelSet getInclusionLabels(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;
      Specified by:
      getInclusionLabels in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getInclusionLabelsOrBuilder

      public OSPolicyAssignment.LabelSetOrBuilder getInclusionLabelsOrBuilder(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;
      Specified by:
      getInclusionLabelsOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getExclusionLabelsList

      public List<OSPolicyAssignment.LabelSet> getExclusionLabelsList()
       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:
      getExclusionLabelsList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getExclusionLabelsOrBuilderList

      public List<? extends OSPolicyAssignment.LabelSetOrBuilder> getExclusionLabelsOrBuilderList()
       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:
      getExclusionLabelsOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • 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
    • getExclusionLabels

      public OSPolicyAssignment.LabelSet getExclusionLabels(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;
      Specified by:
      getExclusionLabels in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getExclusionLabelsOrBuilder

      public OSPolicyAssignment.LabelSetOrBuilder getExclusionLabelsOrBuilder(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;
      Specified by:
      getExclusionLabelsOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getInventoriesList

      public List<OSPolicyAssignment.InstanceFilter.Inventory> getInventoriesList()
       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:
      getInventoriesList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getInventoriesOrBuilderList

      public List<? extends OSPolicyAssignment.InstanceFilter.InventoryOrBuilder> getInventoriesOrBuilderList()
       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:
      getInventoriesOrBuilderList in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • 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
    • getInventories

      public OSPolicyAssignment.InstanceFilter.Inventory getInventories(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;
      Specified by:
      getInventories in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • getInventoriesOrBuilder

      public OSPolicyAssignment.InstanceFilter.InventoryOrBuilder getInventoriesOrBuilder(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;
      Specified by:
      getInventoriesOrBuilder in interface OSPolicyAssignment.InstanceFilterOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OSPolicyAssignment.InstanceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OSPolicyAssignment.InstanceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static OSPolicyAssignment.InstanceFilter.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OSPolicyAssignment.InstanceFilter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static OSPolicyAssignment.InstanceFilter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> parser()
    • getParserForType

      public com.google.protobuf.Parser<OSPolicyAssignment.InstanceFilter> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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