All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataproc.v1.LifecycleConfig Maven / Gradle / Ivy

/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataproc/v1/clusters.proto

package com.google.cloud.dataproc.v1;

/**
 *
 *
 * 
 * Specifies the cluster auto-delete schedule configuration.
 * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ public final class LifecycleConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LifecycleConfig) LifecycleConfigOrBuilder { private static final long serialVersionUID = 0L; // Use LifecycleConfig.newBuilder() to construct. private LifecycleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LifecycleConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LifecycleConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LifecycleConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Duration.Builder subBuilder = null; if (idleDeleteTtl_ != null) { subBuilder = idleDeleteTtl_.toBuilder(); } idleDeleteTtl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(idleDeleteTtl_); idleDeleteTtl_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (ttlCase_ == 2) { subBuilder = ((com.google.protobuf.Timestamp) ttl_).toBuilder(); } ttl_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.Timestamp) ttl_); ttl_ = subBuilder.buildPartial(); } ttlCase_ = 2; break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (ttlCase_ == 3) { subBuilder = ((com.google.protobuf.Duration) ttl_).toBuilder(); } ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.Duration) ttl_); ttl_ = subBuilder.buildPartial(); } ttlCase_ = 3; break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (idleStartTime_ != null) { subBuilder = idleStartTime_.toBuilder(); } idleStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(idleStartTime_); idleStartTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } private int ttlCase_ = 0; private java.lang.Object ttl_; public enum TtlCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTO_DELETE_TIME(2), AUTO_DELETE_TTL(3), TTL_NOT_SET(0); private final int value; private TtlCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TtlCase valueOf(int value) { return forNumber(value); } public static TtlCase forNumber(int value) { switch (value) { case 2: return AUTO_DELETE_TIME; case 3: return AUTO_DELETE_TTL; case 0: return TTL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TtlCase getTtlCase() { return TtlCase.forNumber(ttlCase_); } public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration idleDeleteTtl_; /** * * *
   * 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 10 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]; * * * @return Whether the idleDeleteTtl field is set. */ @java.lang.Override public boolean hasIdleDeleteTtl() { return idleDeleteTtl_ != null; } /** * * *
   * 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 10 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]; * * * @return The idleDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getIdleDeleteTtl() { return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } /** * * *
   * 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 10 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]; * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { return getIdleDeleteTtl(); } public static final int AUTO_DELETE_TIME_FIELD_NUMBER = 2; /** * * *
   * 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]; * * * @return Whether the autoDeleteTime field is set. */ @java.lang.Override public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** * * *
   * 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]; * * * @return The autoDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAutoDeleteTime() { if (ttlCase_ == 2) { return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** * * *
   * 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]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { if (ttlCase_ == 2) { return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } public static final int AUTO_DELETE_TTL_FIELD_NUMBER = 3; /** * * *
   * 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]; * * * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** * * *
   * 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]; * * * @return The autoDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getAutoDeleteTtl() { if (ttlCase_ == 3) { return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** * * *
   * 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]; * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { if (ttlCase_ == 3) { return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int IDLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp idleStartTime_; /** * * *
   * 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]; * * * @return Whether the idleStartTime field is set. */ @java.lang.Override public boolean hasIdleStartTime() { return idleStartTime_ != null; } /** * * *
   * 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]; * * * @return The idleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getIdleStartTime() { return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } /** * * *
   * 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]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { return getIdleStartTime(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (idleDeleteTtl_ != null) { output.writeMessage(1, getIdleDeleteTtl()); } if (ttlCase_ == 2) { output.writeMessage(2, (com.google.protobuf.Timestamp) ttl_); } if (ttlCase_ == 3) { output.writeMessage(3, (com.google.protobuf.Duration) ttl_); } if (idleStartTime_ != null) { output.writeMessage(4, getIdleStartTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (idleDeleteTtl_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdleDeleteTtl()); } if (ttlCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.protobuf.Timestamp) ttl_); } if (ttlCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.protobuf.Duration) ttl_); } if (idleStartTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dataproc.v1.LifecycleConfig)) { return super.equals(obj); } com.google.cloud.dataproc.v1.LifecycleConfig other = (com.google.cloud.dataproc.v1.LifecycleConfig) obj; if (hasIdleDeleteTtl() != other.hasIdleDeleteTtl()) return false; if (hasIdleDeleteTtl()) { if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; } if (hasIdleStartTime() != other.hasIdleStartTime()) return false; if (hasIdleStartTime()) { if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; } if (!getTtlCase().equals(other.getTtlCase())) return false; switch (ttlCase_) { case 2: if (!getAutoDeleteTime().equals(other.getAutoDeleteTime())) return false; break; case 3: if (!getAutoDeleteTtl().equals(other.getAutoDeleteTtl())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIdleDeleteTtl()) { hash = (37 * hash) + IDLE_DELETE_TTL_FIELD_NUMBER; hash = (53 * hash) + getIdleDeleteTtl().hashCode(); } if (hasIdleStartTime()) { hash = (37 * hash) + IDLE_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getIdleStartTime().hashCode(); } switch (ttlCase_) { case 2: hash = (37 * hash) + AUTO_DELETE_TIME_FIELD_NUMBER; hash = (53 * hash) + getAutoDeleteTime().hashCode(); break; case 3: hash = (37 * hash) + AUTO_DELETE_TTL_FIELD_NUMBER; hash = (53 * hash) + getAutoDeleteTtl().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.dataproc.v1.LifecycleConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Specifies the cluster auto-delete schedule configuration.
   * 
* * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LifecycleConfig) com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.LifecycleConfig.class, com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); } // Construct using com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); if (idleDeleteTtlBuilder_ == null) { idleDeleteTtl_ = null; } else { idleDeleteTtl_ = null; idleDeleteTtlBuilder_ = null; } if (idleStartTimeBuilder_ == null) { idleStartTime_ = null; } else { idleStartTime_ = null; idleStartTimeBuilder_ = null; } ttlCase_ = 0; ttl_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; } @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { return com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig build() { com.google.cloud.dataproc.v1.LifecycleConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { com.google.cloud.dataproc.v1.LifecycleConfig result = new com.google.cloud.dataproc.v1.LifecycleConfig(this); if (idleDeleteTtlBuilder_ == null) { result.idleDeleteTtl_ = idleDeleteTtl_; } else { result.idleDeleteTtl_ = idleDeleteTtlBuilder_.build(); } if (ttlCase_ == 2) { if (autoDeleteTimeBuilder_ == null) { result.ttl_ = ttl_; } else { result.ttl_ = autoDeleteTimeBuilder_.build(); } } if (ttlCase_ == 3) { if (autoDeleteTtlBuilder_ == null) { result.ttl_ = ttl_; } else { result.ttl_ = autoDeleteTtlBuilder_.build(); } } if (idleStartTimeBuilder_ == null) { result.idleStartTime_ = idleStartTime_; } else { result.idleStartTime_ = idleStartTimeBuilder_.build(); } result.ttlCase_ = ttlCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataproc.v1.LifecycleConfig) { return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { if (other == com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) return this; if (other.hasIdleDeleteTtl()) { mergeIdleDeleteTtl(other.getIdleDeleteTtl()); } if (other.hasIdleStartTime()) { mergeIdleStartTime(other.getIdleStartTime()); } switch (other.getTtlCase()) { case AUTO_DELETE_TIME: { mergeAutoDeleteTime(other.getAutoDeleteTime()); break; } case AUTO_DELETE_TTL: { mergeAutoDeleteTtl(other.getAutoDeleteTtl()); break; } case TTL_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dataproc.v1.LifecycleConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dataproc.v1.LifecycleConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int ttlCase_ = 0; private java.lang.Object ttl_; public TtlCase getTtlCase() { return TtlCase.forNumber(ttlCase_); } public Builder clearTtl() { ttlCase_ = 0; ttl_ = null; onChanged(); return this; } private com.google.protobuf.Duration idleDeleteTtl_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleDeleteTtlBuilder_; /** * * *
     * 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 10 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]; * * * @return Whether the idleDeleteTtl field is set. */ public boolean hasIdleDeleteTtl() { return idleDeleteTtlBuilder_ != null || idleDeleteTtl_ != null; } /** * * *
     * 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 10 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]; * * * @return The idleDeleteTtl. */ public com.google.protobuf.Duration getIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } else { return idleDeleteTtlBuilder_.getMessage(); } } /** * * *
     * 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 10 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]; * */ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } idleDeleteTtl_ = value; onChanged(); } else { idleDeleteTtlBuilder_.setMessage(value); } return this; } /** * * *
     * 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 10 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]; * */ public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { if (idleDeleteTtlBuilder_ == null) { idleDeleteTtl_ = builderForValue.build(); onChanged(); } else { idleDeleteTtlBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * 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 10 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]; * */ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { if (idleDeleteTtlBuilder_ == null) { if (idleDeleteTtl_ != null) { idleDeleteTtl_ = com.google.protobuf.Duration.newBuilder(idleDeleteTtl_) .mergeFrom(value) .buildPartial(); } else { idleDeleteTtl_ = value; } onChanged(); } else { idleDeleteTtlBuilder_.mergeFrom(value); } return this; } /** * * *
     * 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 10 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]; * */ public Builder clearIdleDeleteTtl() { if (idleDeleteTtlBuilder_ == null) { idleDeleteTtl_ = null; onChanged(); } else { idleDeleteTtl_ = null; idleDeleteTtlBuilder_ = null; } return this; } /** * * *
     * 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 10 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]; * */ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { onChanged(); return getIdleDeleteTtlFieldBuilder().getBuilder(); } /** * * *
     * 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 10 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]; * */ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { if (idleDeleteTtlBuilder_ != null) { return idleDeleteTtlBuilder_.getMessageOrBuilder(); } else { return idleDeleteTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleDeleteTtl_; } } /** * * *
     * 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 10 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIdleDeleteTtlFieldBuilder() { if (idleDeleteTtlBuilder_ == null) { idleDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getIdleDeleteTtl(), getParentForChildren(), isClean()); idleDeleteTtl_ = null; } return idleDeleteTtlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> autoDeleteTimeBuilder_; /** * * *
     * 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]; * * * @return Whether the autoDeleteTime field is set. */ @java.lang.Override public boolean hasAutoDeleteTime() { return ttlCase_ == 2; } /** * * *
     * 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]; * * * @return The autoDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAutoDeleteTime() { if (autoDeleteTimeBuilder_ == null) { if (ttlCase_ == 2) { return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } else { if (ttlCase_ == 2) { return autoDeleteTimeBuilder_.getMessage(); } return com.google.protobuf.Timestamp.getDefaultInstance(); } } /** * * *
     * 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]; * */ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ttl_ = value; onChanged(); } else { autoDeleteTimeBuilder_.setMessage(value); } ttlCase_ = 2; return this; } /** * * *
     * 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]; * */ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (autoDeleteTimeBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); } else { autoDeleteTimeBuilder_.setMessage(builderForValue.build()); } ttlCase_ = 2; return this; } /** * * *
     * 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]; * */ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { if (autoDeleteTimeBuilder_ == null) { if (ttlCase_ == 2 && ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { ttl_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) .mergeFrom(value) .buildPartial(); } else { ttl_ = value; } onChanged(); } else { if (ttlCase_ == 2) { autoDeleteTimeBuilder_.mergeFrom(value); } autoDeleteTimeBuilder_.setMessage(value); } ttlCase_ = 2; return this; } /** * * *
     * 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]; * */ public Builder clearAutoDeleteTime() { if (autoDeleteTimeBuilder_ == null) { if (ttlCase_ == 2) { ttlCase_ = 0; ttl_ = null; onChanged(); } } else { if (ttlCase_ == 2) { ttlCase_ = 0; ttl_ = null; } autoDeleteTimeBuilder_.clear(); } return this; } /** * * *
     * 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]; * */ public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { return getAutoDeleteTimeFieldBuilder().getBuilder(); } /** * * *
     * 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]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { if ((ttlCase_ == 2) && (autoDeleteTimeBuilder_ != null)) { return autoDeleteTimeBuilder_.getMessageOrBuilder(); } else { if (ttlCase_ == 2) { return (com.google.protobuf.Timestamp) ttl_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } } /** * * *
     * 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getAutoDeleteTimeFieldBuilder() { if (autoDeleteTimeBuilder_ == null) { if (!(ttlCase_ == 2)) { ttl_ = com.google.protobuf.Timestamp.getDefaultInstance(); } autoDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( (com.google.protobuf.Timestamp) ttl_, getParentForChildren(), isClean()); ttl_ = null; } ttlCase_ = 2; onChanged(); ; return autoDeleteTimeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> autoDeleteTtlBuilder_; /** * * *
     * 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]; * * * @return Whether the autoDeleteTtl field is set. */ @java.lang.Override public boolean hasAutoDeleteTtl() { return ttlCase_ == 3; } /** * * *
     * 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]; * * * @return The autoDeleteTtl. */ @java.lang.Override public com.google.protobuf.Duration getAutoDeleteTtl() { if (autoDeleteTtlBuilder_ == null) { if (ttlCase_ == 3) { return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (ttlCase_ == 3) { return autoDeleteTtlBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** * * *
     * 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]; * */ public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ttl_ = value; onChanged(); } else { autoDeleteTtlBuilder_.setMessage(value); } ttlCase_ = 3; return this; } /** * * *
     * 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]; * */ public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { if (autoDeleteTtlBuilder_ == null) { ttl_ = builderForValue.build(); onChanged(); } else { autoDeleteTtlBuilder_.setMessage(builderForValue.build()); } ttlCase_ = 3; return this; } /** * * *
     * 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]; * */ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { if (autoDeleteTtlBuilder_ == null) { if (ttlCase_ == 3 && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { ttl_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) .mergeFrom(value) .buildPartial(); } else { ttl_ = value; } onChanged(); } else { if (ttlCase_ == 3) { autoDeleteTtlBuilder_.mergeFrom(value); } autoDeleteTtlBuilder_.setMessage(value); } ttlCase_ = 3; return this; } /** * * *
     * 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]; * */ public Builder clearAutoDeleteTtl() { if (autoDeleteTtlBuilder_ == null) { if (ttlCase_ == 3) { ttlCase_ = 0; ttl_ = null; onChanged(); } } else { if (ttlCase_ == 3) { ttlCase_ = 0; ttl_ = null; } autoDeleteTtlBuilder_.clear(); } return this; } /** * * *
     * 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]; * */ public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() { return getAutoDeleteTtlFieldBuilder().getBuilder(); } /** * * *
     * 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]; * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { if ((ttlCase_ == 3) && (autoDeleteTtlBuilder_ != null)) { return autoDeleteTtlBuilder_.getMessageOrBuilder(); } else { if (ttlCase_ == 3) { return (com.google.protobuf.Duration) ttl_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** * * *
     * 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getAutoDeleteTtlFieldBuilder() { if (autoDeleteTtlBuilder_ == null) { if (!(ttlCase_ == 3)) { ttl_ = com.google.protobuf.Duration.getDefaultInstance(); } autoDeleteTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) ttl_, getParentForChildren(), isClean()); ttl_ = null; } ttlCase_ = 3; onChanged(); ; return autoDeleteTtlBuilder_; } private com.google.protobuf.Timestamp idleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> idleStartTimeBuilder_; /** * * *
     * 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]; * * * @return Whether the idleStartTime field is set. */ public boolean hasIdleStartTime() { return idleStartTimeBuilder_ != null || idleStartTime_ != null; } /** * * *
     * 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]; * * * @return The idleStartTime. */ public com.google.protobuf.Timestamp getIdleStartTime() { if (idleStartTimeBuilder_ == null) { return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } else { return idleStartTimeBuilder_.getMessage(); } } /** * * *
     * 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]; * */ public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } idleStartTime_ = value; onChanged(); } else { idleStartTimeBuilder_.setMessage(value); } return this; } /** * * *
     * 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]; * */ public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (idleStartTimeBuilder_ == null) { idleStartTime_ = builderForValue.build(); onChanged(); } else { idleStartTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * 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]; * */ public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { if (idleStartTimeBuilder_ == null) { if (idleStartTime_ != null) { idleStartTime_ = com.google.protobuf.Timestamp.newBuilder(idleStartTime_) .mergeFrom(value) .buildPartial(); } else { idleStartTime_ = value; } onChanged(); } else { idleStartTimeBuilder_.mergeFrom(value); } return this; } /** * * *
     * 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]; * */ public Builder clearIdleStartTime() { if (idleStartTimeBuilder_ == null) { idleStartTime_ = null; onChanged(); } else { idleStartTime_ = null; idleStartTimeBuilder_ = null; } return this; } /** * * *
     * 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]; * */ public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { onChanged(); return getIdleStartTimeFieldBuilder().getBuilder(); } /** * * *
     * 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]; * */ public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { if (idleStartTimeBuilder_ != null) { return idleStartTimeBuilder_.getMessageOrBuilder(); } else { return idleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : idleStartTime_; } } /** * * *
     * 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getIdleStartTimeFieldBuilder() { if (idleStartTimeBuilder_ == null) { idleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getIdleStartTime(), getParentForChildren(), isClean()); idleStartTime_ = null; } return idleStartTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.LifecycleConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LifecycleConfig) private static final com.google.cloud.dataproc.v1.LifecycleConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LifecycleConfig(); } public static com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LifecycleConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LifecycleConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy