Class LifecycleConfig (4.49.0)

public final class LifecycleConfig extends GeneratedMessageV3 implements LifecycleConfigOrBuilder

Specifies the cluster auto-delete schedule configuration.

Protobuf type google.cloud.dataproc.v1.LifecycleConfig

Static Fields

AUTO_DELETE_TIME_FIELD_NUMBER

public static final int AUTO_DELETE_TIME_FIELD_NUMBER
Field Value
Type Description
int

AUTO_DELETE_TTL_FIELD_NUMBER

public static final int AUTO_DELETE_TTL_FIELD_NUMBER
Field Value
Type Description
int

IDLE_DELETE_TTL_FIELD_NUMBER

public static final int IDLE_DELETE_TTL_FIELD_NUMBER
Field Value
Type Description
int

IDLE_START_TIME_FIELD_NUMBER

public static final int IDLE_START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LifecycleConfig getDefaultInstance()
Returns
Type Description
LifecycleConfig

getDescriptor()

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

newBuilder()

public static LifecycleConfig.Builder newBuilder()
Returns
Type Description
LifecycleConfig.Builder

newBuilder(LifecycleConfig prototype)

public static LifecycleConfig.Builder newBuilder(LifecycleConfig prototype)
Parameter
Name Description
prototype LifecycleConfig
Returns
Type Description
LifecycleConfig.Builder

parseDelimitedFrom(InputStream input)

public static LifecycleConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LifecycleConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LifecycleConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LifecycleConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LifecycleConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LifecycleConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LifecycleConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LifecycleConfig> parser()
Returns
Type Description
Parser<LifecycleConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAutoDeleteTime()

public Timestamp getAutoDeleteTime()

Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp).

.google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The autoDeleteTime.

getAutoDeleteTimeOrBuilder()

public TimestampOrBuilder getAutoDeleteTimeOrBuilder()

Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp).

.google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getAutoDeleteTtl()

public Duration getAutoDeleteTtl()

Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The autoDeleteTtl.

getAutoDeleteTtlOrBuilder()

public DurationOrBuilder getAutoDeleteTtlOrBuilder()

Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public LifecycleConfig getDefaultInstanceForType()
Returns
Type Description
LifecycleConfig

getIdleDeleteTtl()

public Duration getIdleDeleteTtl()

Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The idleDeleteTtl.

getIdleDeleteTtlOrBuilder()

public DurationOrBuilder getIdleDeleteTtlOrBuilder()

Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getIdleStartTime()

public Timestamp getIdleStartTime()

Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp).

.google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The idleStartTime.

getIdleStartTimeOrBuilder()

public TimestampOrBuilder getIdleStartTimeOrBuilder()

Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp).

.google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<LifecycleConfig> getParserForType()
Returns
Type Description
Parser<LifecycleConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTtlCase()

public LifecycleConfig.TtlCase getTtlCase()
Returns
Type Description
LifecycleConfig.TtlCase

hasAutoDeleteTime()

public boolean hasAutoDeleteTime()

Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp).

.google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the autoDeleteTime field is set.

hasAutoDeleteTtl()

public boolean hasAutoDeleteTtl()

Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the autoDeleteTtl field is set.

hasIdleDeleteTtl()

public boolean hasIdleDeleteTtl()

Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration).

.google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the idleDeleteTtl field is set.

hasIdleStartTime()

public boolean hasIdleStartTime()

Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp).

.google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the idleStartTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LifecycleConfig.Builder newBuilderForType()
Returns
Type Description
LifecycleConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LifecycleConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LifecycleConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LifecycleConfig.Builder toBuilder()
Returns
Type Description
LifecycleConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException