Class ComputeResourceConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.hypercomputecluster.v1.ComputeResourceConfig
All Implemented Interfaces:
ComputeResourceConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ComputeResourceConfig extends com.google.protobuf.GeneratedMessage implements ComputeResourceConfigOrBuilder
 Describes how a compute resource should be created at runtime.
 
Protobuf type google.cloud.hypercomputecluster.v1.ComputeResourceConfig
See Also:
  • Field Details

    • NEW_ON_DEMAND_INSTANCES_FIELD_NUMBER

      public static final int NEW_ON_DEMAND_INSTANCES_FIELD_NUMBER
      See Also:
    • NEW_SPOT_INSTANCES_FIELD_NUMBER

      public static final int NEW_SPOT_INSTANCES_FIELD_NUMBER
      See Also:
    • NEW_RESERVED_INSTANCES_FIELD_NUMBER

      public static final int NEW_RESERVED_INSTANCES_FIELD_NUMBER
      See Also:
    • NEW_FLEX_START_INSTANCES_FIELD_NUMBER

      public static final int NEW_FLEX_START_INSTANCES_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
    • getConfigCase

      public ComputeResourceConfig.ConfigCase getConfigCase()
      Specified by:
      getConfigCase in interface ComputeResourceConfigOrBuilder
    • hasNewOnDemandInstances

      public boolean hasNewOnDemandInstances()
       Optional. Immutable. If set, indicates that this resource should use
       on-demand VMs.
       
      .google.cloud.hypercomputecluster.v1.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNewOnDemandInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      Whether the newOnDemandInstances field is set.
    • getNewOnDemandInstances

      public NewOnDemandInstancesConfig getNewOnDemandInstances()
       Optional. Immutable. If set, indicates that this resource should use
       on-demand VMs.
       
      .google.cloud.hypercomputecluster.v1.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewOnDemandInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      The newOnDemandInstances.
    • getNewOnDemandInstancesOrBuilder

      public NewOnDemandInstancesConfigOrBuilder getNewOnDemandInstancesOrBuilder()
       Optional. Immutable. If set, indicates that this resource should use
       on-demand VMs.
       
      .google.cloud.hypercomputecluster.v1.NewOnDemandInstancesConfig new_on_demand_instances = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewOnDemandInstancesOrBuilder in interface ComputeResourceConfigOrBuilder
    • hasNewSpotInstances

      public boolean hasNewSpotInstances()
       Optional. Immutable. If set, indicates that this resource should use spot
       VMs.
       
      .google.cloud.hypercomputecluster.v1.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNewSpotInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      Whether the newSpotInstances field is set.
    • getNewSpotInstances

      public NewSpotInstancesConfig getNewSpotInstances()
       Optional. Immutable. If set, indicates that this resource should use spot
       VMs.
       
      .google.cloud.hypercomputecluster.v1.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewSpotInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      The newSpotInstances.
    • getNewSpotInstancesOrBuilder

      public NewSpotInstancesConfigOrBuilder getNewSpotInstancesOrBuilder()
       Optional. Immutable. If set, indicates that this resource should use spot
       VMs.
       
      .google.cloud.hypercomputecluster.v1.NewSpotInstancesConfig new_spot_instances = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewSpotInstancesOrBuilder in interface ComputeResourceConfigOrBuilder
    • hasNewReservedInstances

      public boolean hasNewReservedInstances()
       Optional. Immutable. If set, indicates that this resource should use
       reserved VMs.
       
      .google.cloud.hypercomputecluster.v1.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNewReservedInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      Whether the newReservedInstances field is set.
    • getNewReservedInstances

      public NewReservedInstancesConfig getNewReservedInstances()
       Optional. Immutable. If set, indicates that this resource should use
       reserved VMs.
       
      .google.cloud.hypercomputecluster.v1.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewReservedInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      The newReservedInstances.
    • getNewReservedInstancesOrBuilder

      public NewReservedInstancesConfigOrBuilder getNewReservedInstancesOrBuilder()
       Optional. Immutable. If set, indicates that this resource should use
       reserved VMs.
       
      .google.cloud.hypercomputecluster.v1.NewReservedInstancesConfig new_reserved_instances = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewReservedInstancesOrBuilder in interface ComputeResourceConfigOrBuilder
    • hasNewFlexStartInstances

      public boolean hasNewFlexStartInstances()
       Optional. Immutable. If set, indicates that this resource should use
       flex-start VMs.
       
      .google.cloud.hypercomputecluster.v1.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNewFlexStartInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      Whether the newFlexStartInstances field is set.
    • getNewFlexStartInstances

      public NewFlexStartInstancesConfig getNewFlexStartInstances()
       Optional. Immutable. If set, indicates that this resource should use
       flex-start VMs.
       
      .google.cloud.hypercomputecluster.v1.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewFlexStartInstances in interface ComputeResourceConfigOrBuilder
      Returns:
      The newFlexStartInstances.
    • getNewFlexStartInstancesOrBuilder

      public NewFlexStartInstancesConfigOrBuilder getNewFlexStartInstancesOrBuilder()
       Optional. Immutable. If set, indicates that this resource should use
       flex-start VMs.
       
      .google.cloud.hypercomputecluster.v1.NewFlexStartInstancesConfig new_flex_start_instances = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNewFlexStartInstancesOrBuilder in interface ComputeResourceConfigOrBuilder
    • 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 ComputeResourceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static ComputeResourceConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static ComputeResourceConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static ComputeResourceConfig.Builder newBuilder()
    • newBuilder

      public static ComputeResourceConfig.Builder newBuilder(ComputeResourceConfig prototype)
    • toBuilder

      public ComputeResourceConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static ComputeResourceConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ComputeResourceConfig> 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 ComputeResourceConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder