Class LifecycleConfig

  • All Implemented Interfaces:
    LifecycleConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class LifecycleConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements LifecycleConfigOrBuilder
     Specifies the cluster auto-delete schedule configuration.
     
    Protobuf type google.cloud.dataproc.v1.LifecycleConfig
    See Also:
    Serialized Form
    • Field Detail

      • IDLE_DELETE_TTL_FIELD_NUMBER

        public static final int IDLE_DELETE_TTL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUTO_DELETE_TIME_FIELD_NUMBER

        public static final int AUTO_DELETE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUTO_DELETE_TTL_FIELD_NUMBER

        public static final int AUTO_DELETE_TTL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IDLE_START_TIME_FIELD_NUMBER

        public static final int IDLE_START_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasIdleDeleteTtl in interface LifecycleConfigOrBuilder
        Returns:
        Whether the idleDeleteTtl field is set.
      • getIdleDeleteTtl

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIdleDeleteTtl in interface LifecycleConfigOrBuilder
        Returns:
        The idleDeleteTtl.
      • getIdleDeleteTtlOrBuilder

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIdleDeleteTtlOrBuilder in interface LifecycleConfigOrBuilder
      • hasAutoDeleteTime

        public boolean hasAutoDeleteTime()
         Optional. The time when cluster will be auto-deleted (see JSON
         representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasAutoDeleteTime in interface LifecycleConfigOrBuilder
        Returns:
        Whether the autoDeleteTime field is set.
      • getAutoDeleteTime

        public com.google.protobuf.Timestamp getAutoDeleteTime()
         Optional. The time when cluster will be auto-deleted (see JSON
         representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoDeleteTime in interface LifecycleConfigOrBuilder
        Returns:
        The autoDeleteTime.
      • getAutoDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder()
         Optional. The time when cluster will be auto-deleted (see JSON
         representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoDeleteTimeOrBuilder in interface LifecycleConfigOrBuilder
      • 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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasAutoDeleteTtl in interface LifecycleConfigOrBuilder
        Returns:
        Whether the autoDeleteTtl field is set.
      • getAutoDeleteTtl

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoDeleteTtl in interface LifecycleConfigOrBuilder
        Returns:
        The autoDeleteTtl.
      • getAutoDeleteTtlOrBuilder

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoDeleteTtlOrBuilder in interface LifecycleConfigOrBuilder
      • 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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasIdleStartTime in interface LifecycleConfigOrBuilder
        Returns:
        Whether the idleStartTime field is set.
      • getIdleStartTime

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdleStartTime in interface LifecycleConfigOrBuilder
        Returns:
        The idleStartTime.
      • getIdleStartTimeOrBuilder

        public com.google.protobuf.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](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdleStartTimeOrBuilder in interface LifecycleConfigOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static LifecycleConfig parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LifecycleConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public LifecycleConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public LifecycleConfig.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected LifecycleConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<LifecycleConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<LifecycleConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public LifecycleConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder