Interface NewSpotInstancesConfigOrBuilder (0.23.0)

public interface NewSpotInstancesConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMachineType()

public abstract String getMachineType()

Required. Immutable. Name of the Compute Engine machine type to use, e.g. n2-standard-2.

string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public abstract ByteString getMachineTypeBytes()

Required. Immutable. Name of the Compute Engine machine type to use, e.g. n2-standard-2.

string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for machineType.

getNetworkTags(int index)

public abstract String getNetworkTags(int index)

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The networkTags at the given index.

getNetworkTagsBytes(int index)

public abstract ByteString getNetworkTagsBytes(int index)

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the networkTags at the given index.

getNetworkTagsCount()

public abstract int getNetworkTagsCount()

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The count of networkTags.

getNetworkTagsList()

public abstract List<String> getNetworkTagsList()

Optional. Immutable. A list of network tags to attach to the VM instances. A maximum of 64 network tags are allowed.

repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<String>

A list containing the networkTags.

getTerminationAction()

public abstract NewSpotInstancesConfig.TerminationAction getTerminationAction()

Optional. Termination action for the instance. If not specified, Compute Engine sets the termination action to DELETE.

.google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig.TerminationAction termination_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NewSpotInstancesConfig.TerminationAction

The terminationAction.

getTerminationActionValue()

public abstract int getTerminationActionValue()

Optional. Termination action for the instance. If not specified, Compute Engine sets the termination action to DELETE.

.google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig.TerminationAction termination_action = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for terminationAction.

getZone()

public abstract 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];

Returns
Type Description
String

The zone.

getZoneBytes()

public abstract 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];

Returns
Type Description
ByteString

The bytes for zone.