public static final class NewSpotInstancesConfig.Builder extends GeneratedMessageV3.Builder<NewSpotInstancesConfig.Builder> implements NewSpotInstancesConfigOrBuilder
When set in a
ComputeResourceConfig,
indicates that spot
VM instances should be
created.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewSpotInstancesConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NewSpotInstancesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public NewSpotInstancesConfig build()
buildPartial()
public NewSpotInstancesConfig buildPartial()
clear()
public NewSpotInstancesConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public NewSpotInstancesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public NewSpotInstancesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public NewSpotInstancesConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public NewSpotInstancesConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(NewSpotInstancesConfig other)
public NewSpotInstancesConfig.Builder mergeFrom(NewSpotInstancesConfig other)
public NewSpotInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NewSpotInstancesConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NewSpotInstancesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public NewSpotInstancesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The machineType to set.
|
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 |
ByteString
The bytes for machineType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NewSpotInstancesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NewSpotInstancesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
String
The zone to set.
|
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 |
ByteString
The bytes for zone to set.
|