public final class SchedulingGracefulShutdown extends GeneratedMessage implements SchedulingGracefulShutdownOrBuilderThe configuration for gracefully shutting down the instance.
Protobuf type google.cloud.compute.v1.SchedulingGracefulShutdown
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SchedulingGracefulShutdownImplements
SchedulingGracefulShutdownOrBuilderStatic Fields
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MAX_DURATION_FIELD_NUMBER
public static final int MAX_DURATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static SchedulingGracefulShutdown getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static SchedulingGracefulShutdown.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
newBuilder(SchedulingGracefulShutdown prototype)
public static SchedulingGracefulShutdown.Builder newBuilder(SchedulingGracefulShutdown prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
SchedulingGracefulShutdown |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
parseDelimitedFrom(InputStream input)
public static SchedulingGracefulShutdown parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static SchedulingGracefulShutdown parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static SchedulingGracefulShutdown parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static SchedulingGracefulShutdown parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static SchedulingGracefulShutdown parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static SchedulingGracefulShutdown parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SchedulingGracefulShutdown parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<SchedulingGracefulShutdown> parser()| Returns | |
|---|---|
| Type | Description |
Parser<SchedulingGracefulShutdown> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public SchedulingGracefulShutdown getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown |
|
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. |
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 |
|
getParserForType()
public Parser<SchedulingGracefulShutdown> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SchedulingGracefulShutdown> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public SchedulingGracefulShutdown.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SchedulingGracefulShutdown.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
toBuilder()
public SchedulingGracefulShutdown.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
SchedulingGracefulShutdown.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|