Class InstanceFlexibilityPolicy.Builder

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

public static final class InstanceFlexibilityPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicy.Builder> implements InstanceFlexibilityPolicyOrBuilder
 A flexible specification of machine types for instances to create.
 
Protobuf type google.cloud.compute.v1.InstanceFlexibilityPolicy
  • 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<InstanceFlexibilityPolicy.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

      public InstanceFlexibilityPolicy.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<InstanceFlexibilityPolicy.Builder>
      Throws:
      IOException
    • getInstanceSelectionsCount

      public int getInstanceSelectionsCount()
      Description copied from interface: InstanceFlexibilityPolicyOrBuilder
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
      Specified by:
      getInstanceSelectionsCount in interface InstanceFlexibilityPolicyOrBuilder
    • containsInstanceSelections

      public boolean containsInstanceSelections(String key)
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
      Specified by:
      containsInstanceSelections in interface InstanceFlexibilityPolicyOrBuilder
    • getInstanceSelections

      Deprecated.
      Specified by:
      getInstanceSelections in interface InstanceFlexibilityPolicyOrBuilder
    • getInstanceSelectionsMap

      public Map<String,InstanceFlexibilityPolicyInstanceSelection> getInstanceSelectionsMap()
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
      Specified by:
      getInstanceSelectionsMap in interface InstanceFlexibilityPolicyOrBuilder
    • getInstanceSelectionsOrDefault

      public InstanceFlexibilityPolicyInstanceSelection getInstanceSelectionsOrDefault(String key, InstanceFlexibilityPolicyInstanceSelection defaultValue)
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
      Specified by:
      getInstanceSelectionsOrDefault in interface InstanceFlexibilityPolicyOrBuilder
    • getInstanceSelectionsOrThrow

      public InstanceFlexibilityPolicyInstanceSelection getInstanceSelectionsOrThrow(String key)
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
      Specified by:
      getInstanceSelectionsOrThrow in interface InstanceFlexibilityPolicyOrBuilder
    • clearInstanceSelections

      public InstanceFlexibilityPolicy.Builder clearInstanceSelections()
    • removeInstanceSelections

      public InstanceFlexibilityPolicy.Builder removeInstanceSelections(String key)
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
    • getMutableInstanceSelections

      @Deprecated public Map<String,InstanceFlexibilityPolicyInstanceSelection> getMutableInstanceSelections()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInstanceSelections

       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
    • putAllInstanceSelections

       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;
    • putInstanceSelectionsBuilderIfAbsent

      public InstanceFlexibilityPolicyInstanceSelection.Builder putInstanceSelectionsBuilderIfAbsent(String key)
       Specification of alternative, flexible instance subsets.
       One of them will be selected to create the instances
       based on various criteria, like:
       - ranks,
       - location policy,
       - current capacity,
       - available reservations (you can specify affinity in
       InstanceProperties),
       - SWAN/GOOSE limitations.
       Key is an arbitrary, unique RFC1035 string that identifies the instance
       selection.
       
      map<string, .google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;