public static final class SchedulingGracefulShutdown.Builder extends GeneratedMessage.Builder<SchedulingGracefulShutdown.Builder> implements SchedulingGracefulShutdownOrBuilderThe configuration for gracefully shutting down the instance.
Protobuf type google.cloud.compute.v1.SchedulingGracefulShutdown
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SchedulingGracefulShutdown.BuilderImplements
SchedulingGracefulShutdownOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SchedulingGracefulShutdown build()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
buildPartial()
public SchedulingGracefulShutdown buildPartial()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
clear()
public SchedulingGracefulShutdown.Builder clear()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
clearEnabled()
public SchedulingGracefulShutdown.Builder clearEnabled()Opts-in for graceful shutdown.
optional bool enabled = 1018689;
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
This builder for chaining. |
clearMaxDuration()
public SchedulingGracefulShutdown.Builder clearMaxDuration()The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
getDefaultInstanceForType()
public SchedulingGracefulShutdown getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnabled()
public boolean getEnabled()Opts-in for graceful shutdown.
optional bool enabled = 1018689;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enabled. |
getMaxDuration()
public Duration getMaxDuration()The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxDuration. |
getMaxDurationBuilder()
public Duration.Builder getMaxDurationBuilder()The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
Duration.Builder |
|
getMaxDurationOrBuilder()
public DurationOrBuilder getMaxDurationOrBuilder()The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasEnabled()
public boolean hasEnabled()Opts-in for graceful shutdown.
optional bool enabled = 1018689;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enabled field is set. |
hasMaxDuration()
public boolean hasMaxDuration()The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| 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(SchedulingGracefulShutdown other)
public SchedulingGracefulShutdown.Builder mergeFrom(SchedulingGracefulShutdown other)| Parameter | |
|---|---|
| Name | Description |
other |
SchedulingGracefulShutdown |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SchedulingGracefulShutdown.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SchedulingGracefulShutdown.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
mergeMaxDuration(Duration value)
public SchedulingGracefulShutdown.Builder mergeMaxDuration(Duration value)The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
setEnabled(boolean value)
public SchedulingGracefulShutdown.Builder setEnabled(boolean value)Opts-in for graceful shutdown.
optional bool enabled = 1018689;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enabled to set. |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
This builder for chaining. |
setMaxDuration(Duration value)
public SchedulingGracefulShutdown.Builder setMaxDuration(Duration value)The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
setMaxDuration(Duration.Builder builderForValue)
public SchedulingGracefulShutdown.Builder setMaxDuration(Duration.Builder builderForValue)The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
optional .google.cloud.compute.v1.Duration max_duration = 39954959;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Duration.Builder |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|