Class VmExtensionPolicyLabelSelector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicyLabelSelector.Builder>
com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder
All Implemented Interfaces:
VmExtensionPolicyLabelSelectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VmExtensionPolicyLabelSelector

public static final class VmExtensionPolicyLabelSelector.Builder extends com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicyLabelSelector.Builder> implements VmExtensionPolicyLabelSelectorOrBuilder
 A LabelSelector is applied to a VM only if it matches all the specified
 labels.
 
Protobuf type google.cloud.compute.v1.VmExtensionPolicyLabelSelector
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicyLabelSelector.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicyLabelSelector.Builder>
    • internalGetFieldAccessorTable

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VmExtensionPolicyLabelSelector buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VmExtensionPolicyLabelSelector.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<VmExtensionPolicyLabelSelector.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<VmExtensionPolicyLabelSelector.Builder>
    • mergeFrom

      public VmExtensionPolicyLabelSelector.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<VmExtensionPolicyLabelSelector.Builder>
      Throws:
      IOException
    • getInclusionLabelsCount

      public int getInclusionLabelsCount()
      Description copied from interface: VmExtensionPolicyLabelSelectorOrBuilder
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
      Specified by:
      getInclusionLabelsCount in interface VmExtensionPolicyLabelSelectorOrBuilder
    • containsInclusionLabels

      public boolean containsInclusionLabels(String key)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
      Specified by:
      containsInclusionLabels in interface VmExtensionPolicyLabelSelectorOrBuilder
    • getInclusionLabels

      @Deprecated public Map<String,String> getInclusionLabels()
      Deprecated.
      Specified by:
      getInclusionLabels in interface VmExtensionPolicyLabelSelectorOrBuilder
    • getInclusionLabelsMap

      public Map<String,String> getInclusionLabelsMap()
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
      Specified by:
      getInclusionLabelsMap in interface VmExtensionPolicyLabelSelectorOrBuilder
    • getInclusionLabelsOrDefault

      public String getInclusionLabelsOrDefault(String key, String defaultValue)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
      Specified by:
      getInclusionLabelsOrDefault in interface VmExtensionPolicyLabelSelectorOrBuilder
    • getInclusionLabelsOrThrow

      public String getInclusionLabelsOrThrow(String key)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
      Specified by:
      getInclusionLabelsOrThrow in interface VmExtensionPolicyLabelSelectorOrBuilder
    • clearInclusionLabels

      public VmExtensionPolicyLabelSelector.Builder clearInclusionLabels()
    • removeInclusionLabels

      public VmExtensionPolicyLabelSelector.Builder removeInclusionLabels(String key)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
    • getMutableInclusionLabels

      @Deprecated public Map<String,String> getMutableInclusionLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInclusionLabels

      public VmExtensionPolicyLabelSelector.Builder putInclusionLabels(String key, String value)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;
    • putAllInclusionLabels

      public VmExtensionPolicyLabelSelector.Builder putAllInclusionLabels(Map<String,String> values)
       Optional. A map of key-value pairs representing VM labels.
       VMs must have all of the labels specified in this map to be selected
       (logical AND).
      
       e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
       "value2")}, the VM labels must contain both ("key1", "value1") and
       ("key2", "value2") to be selected. If the VM labels are ("key1",
       "value1") and ("something", "else"), it will not be selected.
      
       If the map is empty, it's considered a match.
       
      map<string, string> inclusion_labels = 501312642;