public static final class NewFlexStartInstancesConfig.Builder extends GeneratedMessage.Builder<NewFlexStartInstancesConfig.Builder> implements NewFlexStartInstancesConfigOrBuilderWhen set in a ComputeResourceConfig, indicates that VM instances should be created using Flex Start.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewFlexStartInstancesConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NewFlexStartInstancesConfig.BuilderImplements
NewFlexStartInstancesConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public NewFlexStartInstancesConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NewFlexStartInstancesConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NewFlexStartInstancesConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NewFlexStartInstancesConfig.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
NewFlexStartInstancesConfig.Builder |
This builder for chaining. |