public static final class NewSpotInstancesConfig.Builder extends GeneratedMessage.Builder<NewSpotInstancesConfig.Builder> implements NewSpotInstancesConfigOrBuilderWhen set in a ComputeResourceConfig, indicates that spot VM instances should be created.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NewSpotInstancesConfig.BuilderImplements
NewSpotInstancesConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNetworkTags(Iterable<String> values)
public NewSpotInstancesConfig.Builder addAllNetworkTags(Iterable<String> values)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 |
values |
Iterable<String>The networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
addNetworkTags(String value)
public NewSpotInstancesConfig.Builder addNetworkTags(String value)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 |
value |
StringThe networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
addNetworkTagsBytes(ByteString value)
public NewSpotInstancesConfig.Builder addNetworkTagsBytes(ByteString value)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 |
value |
ByteStringThe bytes of the networkTags to add. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
build()
public NewSpotInstancesConfig build()| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig |
|
buildPartial()
public NewSpotInstancesConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig |
|
clear()
public NewSpotInstancesConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
|
clearMachineType()
public NewSpotInstancesConfig.Builder clearMachineType() 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 |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
clearNetworkTags()
public NewSpotInstancesConfig.Builder clearNetworkTags()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 |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
clearTerminationAction()
public NewSpotInstancesConfig.Builder clearTerminationAction()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.Builder |
This builder for chaining. |
clearZone()
public NewSpotInstancesConfig.Builder 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 | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public NewSpotInstancesConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMachineType()
public 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 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 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The networkTags at the given index. |
getNetworkTagsBytes(int index)
public 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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the networkTags at the given index. |
getNetworkTagsCount()
public 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 ProtocolStringList 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 |
ProtocolStringList |
A list containing the networkTags. |
getTerminationAction()
public 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NewSpotInstancesConfig other)
public NewSpotInstancesConfig.Builder mergeFrom(NewSpotInstancesConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
NewSpotInstancesConfig |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NewSpotInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NewSpotInstancesConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
|
setMachineType(String value)
public NewSpotInstancesConfig.Builder setMachineType(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public NewSpotInstancesConfig.Builder setMachineTypeBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setNetworkTags(int index, String value)
public NewSpotInstancesConfig.Builder setNetworkTags(int index, String value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe networkTags to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setTerminationAction(NewSpotInstancesConfig.TerminationAction value)
public NewSpotInstancesConfig.Builder setTerminationAction(NewSpotInstancesConfig.TerminationAction value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
NewSpotInstancesConfig.TerminationActionThe terminationAction to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setTerminationActionValue(int value)
public NewSpotInstancesConfig.Builder setTerminationActionValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for terminationAction to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setZone(String value)
public NewSpotInstancesConfig.Builder setZone(String 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public NewSpotInstancesConfig.Builder setZoneBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
NewSpotInstancesConfig.Builder |
This builder for chaining. |