Class NewFlexStartInstancesConfig.Builder (0.1.0)

public static final class NewFlexStartInstancesConfig.Builder extends GeneratedMessageV3.Builder<NewFlexStartInstancesConfig.Builder> implements NewFlexStartInstancesConfigOrBuilder

When set in a ComputeResourceConfig, indicates that VM instances should be created using Flex Start.

Protobuf type google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NewFlexStartInstancesConfig build()
Returns
Type Description
NewFlexStartInstancesConfig

buildPartial()

public NewFlexStartInstancesConfig buildPartial()
Returns
Type Description
NewFlexStartInstancesConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public NewFlexStartInstancesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NewFlexStartInstancesConfig.Builder
Overrides

clearMachineType()

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.

clearMaxDuration()

public NewFlexStartInstancesConfig.Builder clearMaxDuration()

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NewFlexStartInstancesConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public NewFlexStartInstancesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NewFlexStartInstancesConfig.Builder
Overrides

clearZone()

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NewFlexStartInstancesConfig getDefaultInstanceForType()
Returns
Type Description
NewFlexStartInstancesConfig

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.

getMaxDuration()

public Duration getMaxDuration()

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Duration

The maxDuration.

getMaxDurationBuilder()

public Duration.Builder getMaxDurationBuilder()

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Builder

getMaxDurationOrBuilder()

public DurationOrBuilder getMaxDurationOrBuilder()

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DurationOrBuilder

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.

hasMaxDuration()

public boolean hasMaxDuration()

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the maxDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NewFlexStartInstancesConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaxDuration(Duration value)

public NewFlexStartInstancesConfig.Builder mergeMaxDuration(Duration value)

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Duration
Returns
Type Description
NewFlexStartInstancesConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.

setMaxDuration(Duration value)

public NewFlexStartInstancesConfig.Builder setMaxDuration(Duration value)

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Duration
Returns
Type Description
NewFlexStartInstancesConfig.Builder

setMaxDuration(Duration.Builder builderForValue)

public NewFlexStartInstancesConfig.Builder setMaxDuration(Duration.Builder builderForValue)

Required. Immutable. Specifies the time limit for created instances. Instances will be terminated at the end of this duration.

.google.protobuf.Duration max_duration = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
NewFlexStartInstancesConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final NewFlexStartInstancesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NewFlexStartInstancesConfig.Builder
Overrides

setZone(String value)

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public NewFlexStartInstancesConfig.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
NewFlexStartInstancesConfig.Builder

This builder for chaining.