public static final class NewOnDemandInstancesConfig.Builder extends GeneratedMessageV3.Builder<NewOnDemandInstancesConfig.Builder> implements NewOnDemandInstancesConfigOrBuilder
When set in a
ComputeResourceConfig,
indicates that on-demand (i.e., using the standard provisioning model) VM
instances should be created.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewOnDemandInstancesConfig
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 NewOnDemandInstancesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public NewOnDemandInstancesConfig build()
buildPartial()
public NewOnDemandInstancesConfig buildPartial()
clear()
public NewOnDemandInstancesConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public NewOnDemandInstancesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMachineType()
public NewOnDemandInstancesConfig.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 NewOnDemandInstancesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearZone()
public NewOnDemandInstancesConfig.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 NewOnDemandInstancesConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public NewOnDemandInstancesConfig 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(NewOnDemandInstancesConfig other)
public NewOnDemandInstancesConfig.Builder mergeFrom(NewOnDemandInstancesConfig other)
public NewOnDemandInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NewOnDemandInstancesConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NewOnDemandInstancesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public NewOnDemandInstancesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMachineType(String value)
public NewOnDemandInstancesConfig.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 NewOnDemandInstancesConfig.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 NewOnDemandInstancesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NewOnDemandInstancesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setZone(String value)
public NewOnDemandInstancesConfig.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 NewOnDemandInstancesConfig.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.
|