Class LifecycleConfig.Builder (4.50.0)

public static final class LifecycleConfig.Builder extends GeneratedMessageV3.Builder<LifecycleConfig.Builder> implements LifecycleConfigOrBuilder

Specifies the cluster auto-delete schedule configuration.

Protobuf type google.cloud.dataproc.v1.LifecycleConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LifecycleConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LifecycleConfig.Builder
Overrides

build()

public LifecycleConfig build()
Returns
Type Description
LifecycleConfig

buildPartial()

public LifecycleConfig buildPartial()
Returns
Type Description
LifecycleConfig

clear()

public LifecycleConfig.Builder clear()
Returns
Type Description
LifecycleConfig.Builder
Overrides

clearAutoDeleteTime()

public LifecycleConfig.Builder clearAutoDeleteTime()

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
LifecycleConfig.Builder

clearAutoDeleteTtl()

public LifecycleConfig.Builder clearAutoDeleteTtl()

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
LifecycleConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public LifecycleConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LifecycleConfig.Builder
Overrides

clearIdleDeleteTtl()

public LifecycleConfig.Builder clearIdleDeleteTtl()

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
LifecycleConfig.Builder

clearIdleStartTime()

public LifecycleConfig.Builder clearIdleStartTime()

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
LifecycleConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LifecycleConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LifecycleConfig.Builder
Overrides

clearTtl()

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

clone()

public LifecycleConfig.Builder clone()
Returns
Type Description
LifecycleConfig.Builder
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.

getAutoDeleteTimeBuilder()

public Timestamp.Builder getAutoDeleteTimeBuilder()

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
Builder

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.

getAutoDeleteTtlBuilder()

public Duration.Builder getAutoDeleteTtlBuilder()

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
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getIdleDeleteTtlBuilder()

public Duration.Builder getIdleDeleteTtlBuilder()

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
Builder

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.

getIdleStartTimeBuilder()

public Timestamp.Builder getIdleStartTimeBuilder()

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
Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAutoDeleteTime(Timestamp value)

public LifecycleConfig.Builder mergeAutoDeleteTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
LifecycleConfig.Builder

mergeAutoDeleteTtl(Duration value)

public LifecycleConfig.Builder mergeAutoDeleteTtl(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
LifecycleConfig.Builder

mergeFrom(LifecycleConfig other)

public LifecycleConfig.Builder mergeFrom(LifecycleConfig other)
Parameter
Name Description
other LifecycleConfig
Returns
Type Description
LifecycleConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LifecycleConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LifecycleConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LifecycleConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LifecycleConfig.Builder
Overrides

mergeIdleDeleteTtl(Duration value)

public LifecycleConfig.Builder mergeIdleDeleteTtl(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
LifecycleConfig.Builder

mergeIdleStartTime(Timestamp value)

public LifecycleConfig.Builder mergeIdleStartTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
LifecycleConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LifecycleConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LifecycleConfig.Builder
Overrides

setAutoDeleteTime(Timestamp value)

public LifecycleConfig.Builder setAutoDeleteTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
LifecycleConfig.Builder

setAutoDeleteTime(Timestamp.Builder builderForValue)

public LifecycleConfig.Builder setAutoDeleteTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LifecycleConfig.Builder

setAutoDeleteTtl(Duration value)

public LifecycleConfig.Builder setAutoDeleteTtl(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
LifecycleConfig.Builder

setAutoDeleteTtl(Duration.Builder builderForValue)

public LifecycleConfig.Builder setAutoDeleteTtl(Duration.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LifecycleConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LifecycleConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LifecycleConfig.Builder
Overrides

setIdleDeleteTtl(Duration value)

public LifecycleConfig.Builder setIdleDeleteTtl(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
LifecycleConfig.Builder

setIdleDeleteTtl(Duration.Builder builderForValue)

public LifecycleConfig.Builder setIdleDeleteTtl(Duration.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LifecycleConfig.Builder

setIdleStartTime(Timestamp value)

public LifecycleConfig.Builder setIdleStartTime(Timestamp value)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
LifecycleConfig.Builder

setIdleStartTime(Timestamp.Builder builderForValue)

public LifecycleConfig.Builder setIdleStartTime(Timestamp.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LifecycleConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LifecycleConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LifecycleConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LifecycleConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LifecycleConfig.Builder
Overrides