Class NewFlexStartInstancesConfig.Builder

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

public static final class NewFlexStartInstancesConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<NewFlexStartInstancesConfig.Builder> implements NewFlexStartInstancesConfigOrBuilder
 When set in a
 [ComputeResourceConfig][google.cloud.hypercomputecluster.v1.ComputeResourceConfig],
 indicates that VM instances should be created using [Flex
 Start](https://cloud.google.com/compute/docs/instances/provisioning-models).
 
Protobuf type google.cloud.hypercomputecluster.v1.NewFlexStartInstancesConfig
  • 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.Builder<NewFlexStartInstancesConfig.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<NewFlexStartInstancesConfig.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<NewFlexStartInstancesConfig.Builder>
    • getDefaultInstanceForType

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

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

      public NewFlexStartInstancesConfig.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<NewFlexStartInstancesConfig.Builder>
      Throws:
      IOException
    • getZone

      public String getZone()
       Required. Immutable. Name of the zone in which VM instances should run,
       e.g., `us-central1-a`. Must be in the same region as the cluster, and must
       match the zone of any other resources specified in the cluster.
       
      string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getZone in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Required. Immutable. Name of the zone in which VM instances should run,
       e.g., `us-central1-a`. Must be in the same region as the cluster, and must
       match the zone of any other resources specified in the cluster.
       
      string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getZoneBytes in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      The bytes for zone.
    • setZone

       Required. Immutable. Name of the zone in which VM instances should run,
       e.g., `us-central1-a`. Must be in the same region as the cluster, and must
       match the zone of any other resources specified in the cluster.
       
      string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

       Required. Immutable. Name of the zone in which VM instances should run,
       e.g., `us-central1-a`. Must be in the same region as the cluster, and must
       match the zone of any other resources specified in the cluster.
       
      string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setZoneBytes

      public NewFlexStartInstancesConfig.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Name of the zone in which VM instances should run,
       e.g., `us-central1-a`. Must be in the same region as the cluster, and must
       match the zone of any other resources specified in the cluster.
       
      string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.
    • getMachineType

      public String getMachineType()
       Required. Immutable. Name of the Compute Engine [machine
       type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
       `n2-standard-2`.
       
      string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMachineType in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Required. Immutable. Name of the Compute Engine [machine
       type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
       `n2-standard-2`.
       
      string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMachineTypeBytes in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public NewFlexStartInstancesConfig.Builder setMachineType(String value)
       Required. Immutable. Name of the Compute Engine [machine
       type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
       `n2-standard-2`.
       
      string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public NewFlexStartInstancesConfig.Builder clearMachineType()
       Required. Immutable. Name of the Compute Engine [machine
       type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
       `n2-standard-2`.
       
      string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public NewFlexStartInstancesConfig.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Name of the Compute Engine [machine
       type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
       `n2-standard-2`.
       
      string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.
    • hasMaxDuration

      public boolean hasMaxDuration()
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasMaxDuration in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      Whether the maxDuration field is set.
    • getMaxDuration

      public com.google.protobuf.Duration getMaxDuration()
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMaxDuration in interface NewFlexStartInstancesConfigOrBuilder
      Returns:
      The maxDuration.
    • setMaxDuration

      public NewFlexStartInstancesConfig.Builder setMaxDuration(com.google.protobuf.Duration value)
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • setMaxDuration

      public NewFlexStartInstancesConfig.Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue)
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • mergeMaxDuration

      public NewFlexStartInstancesConfig.Builder mergeMaxDuration(com.google.protobuf.Duration value)
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • clearMaxDuration

      public NewFlexStartInstancesConfig.Builder clearMaxDuration()
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getMaxDurationBuilder

      public com.google.protobuf.Duration.Builder getMaxDurationBuilder()
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getMaxDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder()
       Required. Immutable. Specifies the time limit for created instances.
       Instances will be terminated at the end of this duration.
       
      .google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMaxDurationOrBuilder in interface NewFlexStartInstancesConfigOrBuilder