Class NewOnDemandInstancesConfig.Builder (0.1.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NewOnDemandInstancesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

build()

public NewOnDemandInstancesConfig build()
Returns
Type Description
NewOnDemandInstancesConfig

buildPartial()

public NewOnDemandInstancesConfig buildPartial()
Returns
Type Description
NewOnDemandInstancesConfig

clear()

public NewOnDemandInstancesConfig.Builder clear()
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NewOnDemandInstancesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NewOnDemandInstancesConfig.Builder
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];

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NewOnDemandInstancesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NewOnDemandInstancesConfig.Builder
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];

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.

clone()

public NewOnDemandInstancesConfig.Builder clone()
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

getDefaultInstanceForType()

public NewOnDemandInstancesConfig getDefaultInstanceForType()
Returns
Type Description
NewOnDemandInstancesConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NewOnDemandInstancesConfig other)

public NewOnDemandInstancesConfig.Builder mergeFrom(NewOnDemandInstancesConfig other)
Parameter
Name Description
other NewOnDemandInstancesConfig
Returns
Type Description
NewOnDemandInstancesConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NewOnDemandInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public NewOnDemandInstancesConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NewOnDemandInstancesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NewOnDemandInstancesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NewOnDemandInstancesConfig.Builder
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.

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.

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.

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NewOnDemandInstancesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NewOnDemandInstancesConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NewOnDemandInstancesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NewOnDemandInstancesConfig.Builder
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.

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.

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.

Returns
Type Description
NewOnDemandInstancesConfig.Builder

This builder for chaining.