Class ComputeInstanceSlurmNodeSet.Builder

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

public static final class ComputeInstanceSlurmNodeSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComputeInstanceSlurmNodeSet.Builder> implements ComputeInstanceSlurmNodeSetOrBuilder
 When set in a
 [SlurmNodeSet][google.cloud.hypercomputecluster.v1.SlurmNodeSet], indicates
 that the nodeset should be backed by Compute Engine VM instances.
 
Protobuf type google.cloud.hypercomputecluster.v1.ComputeInstanceSlurmNodeSet
  • 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<ComputeInstanceSlurmNodeSet.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public ComputeInstanceSlurmNodeSet 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 ComputeInstanceSlurmNodeSet buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ComputeInstanceSlurmNodeSet.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<ComputeInstanceSlurmNodeSet.Builder>
      Throws:
      IOException
    • getStartupScript

      public String getStartupScript()
       Optional. [Startup
       script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
       to be run on each VM instance in the nodeset. Max 256KB.
       
      string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartupScript in interface ComputeInstanceSlurmNodeSetOrBuilder
      Returns:
      The startupScript.
    • getStartupScriptBytes

      public com.google.protobuf.ByteString getStartupScriptBytes()
       Optional. [Startup
       script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
       to be run on each VM instance in the nodeset. Max 256KB.
       
      string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartupScriptBytes in interface ComputeInstanceSlurmNodeSetOrBuilder
      Returns:
      The bytes for startupScript.
    • setStartupScript

      public ComputeInstanceSlurmNodeSet.Builder setStartupScript(String value)
       Optional. [Startup
       script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
       to be run on each VM instance in the nodeset. Max 256KB.
       
      string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The startupScript to set.
      Returns:
      This builder for chaining.
    • clearStartupScript

      public ComputeInstanceSlurmNodeSet.Builder clearStartupScript()
       Optional. [Startup
       script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
       to be run on each VM instance in the nodeset. Max 256KB.
       
      string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStartupScriptBytes

      public ComputeInstanceSlurmNodeSet.Builder setStartupScriptBytes(com.google.protobuf.ByteString value)
       Optional. [Startup
       script](https://cloud.google.com/compute/docs/instances/startup-scripts/linux)
       to be run on each VM instance in the nodeset. Max 256KB.
       
      string startup_script = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for startupScript to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ComputeInstanceSlurmNodeSetOrBuilder
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ComputeInstanceSlurmNodeSetOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ComputeInstanceSlurmNodeSetOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ComputeInstanceSlurmNodeSetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ComputeInstanceSlurmNodeSetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ComputeInstanceSlurmNodeSetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ComputeInstanceSlurmNodeSetOrBuilder
    • clearLabels

    • removeLabels

      public ComputeInstanceSlurmNodeSet.Builder removeLabels(String key)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public ComputeInstanceSlurmNodeSet.Builder putLabels(String key, String value)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public ComputeInstanceSlurmNodeSet.Builder putAllLabels(Map<String,String> values)
       Optional.
       [Labels](https://cloud.google.com/compute/docs/labeling-resources) that
       should be applied to each VM instance in the nodeset.
       
      map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    • hasBootDisk

      public boolean hasBootDisk()
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBootDisk in interface ComputeInstanceSlurmNodeSetOrBuilder
      Returns:
      Whether the bootDisk field is set.
    • getBootDisk

      public BootDisk getBootDisk()
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBootDisk in interface ComputeInstanceSlurmNodeSetOrBuilder
      Returns:
      The bootDisk.
    • setBootDisk

      public ComputeInstanceSlurmNodeSet.Builder setBootDisk(BootDisk value)
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setBootDisk

      public ComputeInstanceSlurmNodeSet.Builder setBootDisk(BootDisk.Builder builderForValue)
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBootDisk

      public ComputeInstanceSlurmNodeSet.Builder mergeBootDisk(BootDisk value)
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearBootDisk

      public ComputeInstanceSlurmNodeSet.Builder clearBootDisk()
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getBootDiskBuilder

      public BootDisk.Builder getBootDiskBuilder()
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getBootDiskOrBuilder

      public BootDiskOrBuilder getBootDiskOrBuilder()
       Optional. Boot disk for the compute instance
       
      .google.cloud.hypercomputecluster.v1.BootDisk boot_disk = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBootDiskOrBuilder in interface ComputeInstanceSlurmNodeSetOrBuilder