Class LifecycleConfig.Builder (4.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LifecycleConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LifecycleConfig.Builder
Overrides

build()

public LifecycleConfig build()
Returns
TypeDescription
LifecycleConfig

buildPartial()

public LifecycleConfig buildPartial()
Returns
TypeDescription
LifecycleConfig

clear()

public LifecycleConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LifecycleConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public LifecycleConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LifecycleConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LifecycleConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LifecycleConfig.Builder
Overrides

clearTtl()

public LifecycleConfig.Builder clearTtl()
Returns
TypeDescription
LifecycleConfig.Builder

clone()

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

getDefaultInstanceForType()

public LifecycleConfig getDefaultInstanceForType()
Returns
TypeDescription
LifecycleConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getTtlCase()

public LifecycleConfig.TtlCase getTtlCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the idleStartTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
LifecycleConfig.Builder

mergeFrom(LifecycleConfig other)

public LifecycleConfig.Builder mergeFrom(LifecycleConfig other)
Parameter
NameDescription
otherLifecycleConfig
Returns
TypeDescription
LifecycleConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LifecycleConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LifecycleConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LifecycleConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
LifecycleConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LifecycleConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
LifecycleConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LifecycleConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
LifecycleConfig.Builder

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

public LifecycleConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LifecycleConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LifecycleConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LifecycleConfig.Builder
Overrides