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
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 NewFlexStartInstancesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public NewFlexStartInstancesConfig build()
buildPartial()
public NewFlexStartInstancesConfig buildPartial()
clear()
public NewFlexStartInstancesConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public NewFlexStartInstancesConfig.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public NewFlexStartInstancesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public NewFlexStartInstancesConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public NewFlexStartInstancesConfig 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.
|
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(NewFlexStartInstancesConfig other)
public NewFlexStartInstancesConfig.Builder mergeFrom(NewFlexStartInstancesConfig other)
public NewFlexStartInstancesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NewFlexStartInstancesConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NewFlexStartInstancesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public NewFlexStartInstancesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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
|
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NewFlexStartInstancesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NewFlexStartInstancesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|