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

yandex.cloud.api.dataproc.v1.SubclusterOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/dataproc/v1/subcluster.proto

package yandex.cloud.api.dataproc.v1;

public final class SubclusterOuterClass {
  private SubclusterOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.dataproc.v1.Role}
   */
  public enum Role
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * ROLE_UNSPECIFIED = 0;
     */
    ROLE_UNSPECIFIED(0),
    /**
     * 
     * The subcluster fulfills the master role.
     * Master can run the following services, depending on the requested components:
     * * HDFS: Namenode, Secondary Namenode
     * * YARN: ResourceManager, Timeline Server
     * * HBase Master
     * * Hive: Server, Metastore, HCatalog
     * * Spark History Server
     * * Zeppelin
     * * ZooKeeper
     * 
* * MASTERNODE = 1; */ MASTERNODE(1), /** *
     * The subcluster is a DATANODE in a Data Proc cluster.
     * DATANODE can run the following services, depending on the requested components:
     * * HDFS DataNode
     * * YARN NodeManager
     * * HBase RegionServer
     * * Spark libraries
     * 
* * DATANODE = 2; */ DATANODE(2), /** *
     * The subcluster is a COMPUTENODE in a Data Proc cluster.
     * COMPUTENODE can run the following services, depending on the requested components:
     * * YARN NodeManager
     * * Spark libraries
     * 
* * COMPUTENODE = 3; */ COMPUTENODE(3), UNRECOGNIZED(-1), ; /** * ROLE_UNSPECIFIED = 0; */ public static final int ROLE_UNSPECIFIED_VALUE = 0; /** *
     * The subcluster fulfills the master role.
     * Master can run the following services, depending on the requested components:
     * * HDFS: Namenode, Secondary Namenode
     * * YARN: ResourceManager, Timeline Server
     * * HBase Master
     * * Hive: Server, Metastore, HCatalog
     * * Spark History Server
     * * Zeppelin
     * * ZooKeeper
     * 
* * MASTERNODE = 1; */ public static final int MASTERNODE_VALUE = 1; /** *
     * The subcluster is a DATANODE in a Data Proc cluster.
     * DATANODE can run the following services, depending on the requested components:
     * * HDFS DataNode
     * * YARN NodeManager
     * * HBase RegionServer
     * * Spark libraries
     * 
* * DATANODE = 2; */ public static final int DATANODE_VALUE = 2; /** *
     * The subcluster is a COMPUTENODE in a Data Proc cluster.
     * COMPUTENODE can run the following services, depending on the requested components:
     * * YARN NodeManager
     * * Spark libraries
     * 
* * COMPUTENODE = 3; */ public static final int COMPUTENODE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Role valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Role forNumber(int value) { switch (value) { case 0: return ROLE_UNSPECIFIED; case 1: return MASTERNODE; case 2: return DATANODE; case 3: return COMPUTENODE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Role> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Role findValueByNumber(int number) { return Role.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.getDescriptor().getEnumTypes().get(0); } private static final Role[] VALUES = values(); public static Role valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Role(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.dataproc.v1.Role) } public interface AutoscalingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dataproc.v1.AutoscalingConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Upper limit for total instance subcluster count.
     * 
* * int64 max_hosts_count = 1 [(.yandex.cloud.value) = "1-100"]; * @return The maxHostsCount. */ long getMaxHostsCount(); /** *
     * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
     * if their resources are needed by Compute.
     * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
     * 
* * bool preemptible = 2; * @return The preemptible. */ boolean getPreemptible(); /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ boolean hasMeasurementDuration(); /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ com.google.protobuf.Duration getMeasurementDuration(); /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder(); /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ boolean hasWarmupDuration(); /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ com.google.protobuf.Duration getWarmupDuration(); /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder(); /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ boolean hasStabilizationDuration(); /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ com.google.protobuf.Duration getStabilizationDuration(); /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder(); /** *
     * Defines an autoscaling rule based on the average CPU utilization of the instance group.
     * 
* * double cpu_utilization_target = 6 [(.yandex.cloud.value) = "10-100"]; * @return The cpuUtilizationTarget. */ double getCpuUtilizationTarget(); /** *
     * Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
     * 
* * int64 decommission_timeout = 7 [(.yandex.cloud.value) = "0-86400"]; * @return The decommissionTimeout. */ long getDecommissionTimeout(); } /** * Protobuf type {@code yandex.cloud.dataproc.v1.AutoscalingConfig} */ public static final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dataproc.v1.AutoscalingConfig) AutoscalingConfigOrBuilder { private static final long serialVersionUID = 0L; // Use AutoscalingConfig.newBuilder() to construct. private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AutoscalingConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AutoscalingConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AutoscalingConfig( 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 8: { maxHostsCount_ = input.readInt64(); break; } case 16: { preemptible_ = input.readBool(); break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (measurementDuration_ != null) { subBuilder = measurementDuration_.toBuilder(); } measurementDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(measurementDuration_); measurementDuration_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Duration.Builder subBuilder = null; if (warmupDuration_ != null) { subBuilder = warmupDuration_.toBuilder(); } warmupDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(warmupDuration_); warmupDuration_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Duration.Builder subBuilder = null; if (stabilizationDuration_ != null) { subBuilder = stabilizationDuration_.toBuilder(); } stabilizationDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stabilizationDuration_); stabilizationDuration_ = subBuilder.buildPartial(); } break; } case 49: { cpuUtilizationTarget_ = input.readDouble(); break; } case 56: { decommissionTimeout_ = input.readInt64(); 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder.class); } public static final int MAX_HOSTS_COUNT_FIELD_NUMBER = 1; private long maxHostsCount_; /** *
     * Upper limit for total instance subcluster count.
     * 
* * int64 max_hosts_count = 1 [(.yandex.cloud.value) = "1-100"]; * @return The maxHostsCount. */ @java.lang.Override public long getMaxHostsCount() { return maxHostsCount_; } public static final int PREEMPTIBLE_FIELD_NUMBER = 2; private boolean preemptible_; /** *
     * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
     * if their resources are needed by Compute.
     * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
     * 
* * bool preemptible = 2; * @return The preemptible. */ @java.lang.Override public boolean getPreemptible() { return preemptible_; } public static final int MEASUREMENT_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration measurementDuration_; /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ @java.lang.Override public boolean hasMeasurementDuration() { return measurementDuration_ != null; } /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ @java.lang.Override public com.google.protobuf.Duration getMeasurementDuration() { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } /** *
     * Time in seconds allotted for averaging metrics.
     * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder() { return getMeasurementDuration(); } public static final int WARMUP_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration warmupDuration_; /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ @java.lang.Override public boolean hasWarmupDuration() { return warmupDuration_ != null; } /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ @java.lang.Override public com.google.protobuf.Duration getWarmupDuration() { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } /** *
     * The warmup time of the instance in seconds. During this time,
     * traffic is sent to the instance, but instance metrics are not collected.
     * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder() { return getWarmupDuration(); } public static final int STABILIZATION_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration stabilizationDuration_; /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ @java.lang.Override public boolean hasStabilizationDuration() { return stabilizationDuration_ != null; } /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ @java.lang.Override public com.google.protobuf.Duration getStabilizationDuration() { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } /** *
     * Minimum amount of time in seconds allotted for monitoring before
     * Instance Groups can reduce the number of instances in the group.
     * During this time, the group size doesn't decrease, even if the new metric values
     * indicate that it should.
     * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder() { return getStabilizationDuration(); } public static final int CPU_UTILIZATION_TARGET_FIELD_NUMBER = 6; private double cpuUtilizationTarget_; /** *
     * Defines an autoscaling rule based on the average CPU utilization of the instance group.
     * 
* * double cpu_utilization_target = 6 [(.yandex.cloud.value) = "10-100"]; * @return The cpuUtilizationTarget. */ @java.lang.Override public double getCpuUtilizationTarget() { return cpuUtilizationTarget_; } public static final int DECOMMISSION_TIMEOUT_FIELD_NUMBER = 7; private long decommissionTimeout_; /** *
     * Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
     * 
* * int64 decommission_timeout = 7 [(.yandex.cloud.value) = "0-86400"]; * @return The decommissionTimeout. */ @java.lang.Override public long getDecommissionTimeout() { return decommissionTimeout_; } 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 (maxHostsCount_ != 0L) { output.writeInt64(1, maxHostsCount_); } if (preemptible_ != false) { output.writeBool(2, preemptible_); } if (measurementDuration_ != null) { output.writeMessage(3, getMeasurementDuration()); } if (warmupDuration_ != null) { output.writeMessage(4, getWarmupDuration()); } if (stabilizationDuration_ != null) { output.writeMessage(5, getStabilizationDuration()); } if (java.lang.Double.doubleToRawLongBits(cpuUtilizationTarget_) != 0) { output.writeDouble(6, cpuUtilizationTarget_); } if (decommissionTimeout_ != 0L) { output.writeInt64(7, decommissionTimeout_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxHostsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxHostsCount_); } if (preemptible_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, preemptible_); } if (measurementDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMeasurementDuration()); } if (warmupDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWarmupDuration()); } if (stabilizationDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStabilizationDuration()); } if (java.lang.Double.doubleToRawLongBits(cpuUtilizationTarget_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, cpuUtilizationTarget_); } if (decommissionTimeout_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, decommissionTimeout_); } 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig)) { return super.equals(obj); } yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig other = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig) obj; if (getMaxHostsCount() != other.getMaxHostsCount()) return false; if (getPreemptible() != other.getPreemptible()) return false; if (hasMeasurementDuration() != other.hasMeasurementDuration()) return false; if (hasMeasurementDuration()) { if (!getMeasurementDuration() .equals(other.getMeasurementDuration())) return false; } if (hasWarmupDuration() != other.hasWarmupDuration()) return false; if (hasWarmupDuration()) { if (!getWarmupDuration() .equals(other.getWarmupDuration())) return false; } if (hasStabilizationDuration() != other.hasStabilizationDuration()) return false; if (hasStabilizationDuration()) { if (!getStabilizationDuration() .equals(other.getStabilizationDuration())) return false; } if (java.lang.Double.doubleToLongBits(getCpuUtilizationTarget()) != java.lang.Double.doubleToLongBits( other.getCpuUtilizationTarget())) return false; if (getDecommissionTimeout() != other.getDecommissionTimeout()) return false; 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(); hash = (37 * hash) + MAX_HOSTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxHostsCount()); hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPreemptible()); if (hasMeasurementDuration()) { hash = (37 * hash) + MEASUREMENT_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMeasurementDuration().hashCode(); } if (hasWarmupDuration()) { hash = (37 * hash) + WARMUP_DURATION_FIELD_NUMBER; hash = (53 * hash) + getWarmupDuration().hashCode(); } if (hasStabilizationDuration()) { hash = (37 * hash) + STABILIZATION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getStabilizationDuration().hashCode(); } hash = (37 * hash) + CPU_UTILIZATION_TARGET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpuUtilizationTarget())); hash = (37 * hash) + DECOMMISSION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDecommissionTimeout()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig 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(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig 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; } /** * Protobuf type {@code yandex.cloud.dataproc.v1.AutoscalingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dataproc.v1.AutoscalingConfig) yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder.class); } // Construct using yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.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(); maxHostsCount_ = 0L; preemptible_ = false; if (measurementDurationBuilder_ == null) { measurementDuration_ = null; } else { measurementDuration_ = null; measurementDurationBuilder_ = null; } if (warmupDurationBuilder_ == null) { warmupDuration_ = null; } else { warmupDuration_ = null; warmupDurationBuilder_ = null; } if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = null; } else { stabilizationDuration_ = null; stabilizationDurationBuilder_ = null; } cpuUtilizationTarget_ = 0D; decommissionTimeout_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getDefaultInstanceForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig build() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig buildPartial() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig result = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig(this); result.maxHostsCount_ = maxHostsCount_; result.preemptible_ = preemptible_; if (measurementDurationBuilder_ == null) { result.measurementDuration_ = measurementDuration_; } else { result.measurementDuration_ = measurementDurationBuilder_.build(); } if (warmupDurationBuilder_ == null) { result.warmupDuration_ = warmupDuration_; } else { result.warmupDuration_ = warmupDurationBuilder_.build(); } if (stabilizationDurationBuilder_ == null) { result.stabilizationDuration_ = stabilizationDuration_; } else { result.stabilizationDuration_ = stabilizationDurationBuilder_.build(); } result.cpuUtilizationTarget_ = cpuUtilizationTarget_; result.decommissionTimeout_ = decommissionTimeout_; 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig) { return mergeFrom((yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig other) { if (other == yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.getDefaultInstance()) return this; if (other.getMaxHostsCount() != 0L) { setMaxHostsCount(other.getMaxHostsCount()); } if (other.getPreemptible() != false) { setPreemptible(other.getPreemptible()); } if (other.hasMeasurementDuration()) { mergeMeasurementDuration(other.getMeasurementDuration()); } if (other.hasWarmupDuration()) { mergeWarmupDuration(other.getWarmupDuration()); } if (other.hasStabilizationDuration()) { mergeStabilizationDuration(other.getStabilizationDuration()); } if (other.getCpuUtilizationTarget() != 0D) { setCpuUtilizationTarget(other.getCpuUtilizationTarget()); } if (other.getDecommissionTimeout() != 0L) { setDecommissionTimeout(other.getDecommissionTimeout()); } 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 { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long maxHostsCount_ ; /** *
       * Upper limit for total instance subcluster count.
       * 
* * int64 max_hosts_count = 1 [(.yandex.cloud.value) = "1-100"]; * @return The maxHostsCount. */ @java.lang.Override public long getMaxHostsCount() { return maxHostsCount_; } /** *
       * Upper limit for total instance subcluster count.
       * 
* * int64 max_hosts_count = 1 [(.yandex.cloud.value) = "1-100"]; * @param value The maxHostsCount to set. * @return This builder for chaining. */ public Builder setMaxHostsCount(long value) { maxHostsCount_ = value; onChanged(); return this; } /** *
       * Upper limit for total instance subcluster count.
       * 
* * int64 max_hosts_count = 1 [(.yandex.cloud.value) = "1-100"]; * @return This builder for chaining. */ public Builder clearMaxHostsCount() { maxHostsCount_ = 0L; onChanged(); return this; } private boolean preemptible_ ; /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 2; * @return The preemptible. */ @java.lang.Override public boolean getPreemptible() { return preemptible_; } /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 2; * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { preemptible_ = value; onChanged(); return this; } /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 2; * @return This builder for chaining. */ public Builder clearPreemptible() { preemptible_ = false; onChanged(); return this; } private com.google.protobuf.Duration measurementDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> measurementDurationBuilder_; /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ public boolean hasMeasurementDuration() { return measurementDurationBuilder_ != null || measurementDuration_ != null; } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ public com.google.protobuf.Duration getMeasurementDuration() { if (measurementDurationBuilder_ == null) { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } else { return measurementDurationBuilder_.getMessage(); } } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public Builder setMeasurementDuration(com.google.protobuf.Duration value) { if (measurementDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } measurementDuration_ = value; onChanged(); } else { measurementDurationBuilder_.setMessage(value); } return this; } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public Builder setMeasurementDuration( com.google.protobuf.Duration.Builder builderForValue) { if (measurementDurationBuilder_ == null) { measurementDuration_ = builderForValue.build(); onChanged(); } else { measurementDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public Builder mergeMeasurementDuration(com.google.protobuf.Duration value) { if (measurementDurationBuilder_ == null) { if (measurementDuration_ != null) { measurementDuration_ = com.google.protobuf.Duration.newBuilder(measurementDuration_).mergeFrom(value).buildPartial(); } else { measurementDuration_ = value; } onChanged(); } else { measurementDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public Builder clearMeasurementDuration() { if (measurementDurationBuilder_ == null) { measurementDuration_ = null; onChanged(); } else { measurementDuration_ = null; measurementDurationBuilder_ = null; } return this; } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public com.google.protobuf.Duration.Builder getMeasurementDurationBuilder() { onChanged(); return getMeasurementDurationFieldBuilder().getBuilder(); } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ public com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder() { if (measurementDurationBuilder_ != null) { return measurementDurationBuilder_.getMessageOrBuilder(); } else { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } } /** *
       * Time in seconds allotted for averaging metrics.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "1m-10m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMeasurementDurationFieldBuilder() { if (measurementDurationBuilder_ == null) { measurementDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMeasurementDuration(), getParentForChildren(), isClean()); measurementDuration_ = null; } return measurementDurationBuilder_; } private com.google.protobuf.Duration warmupDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> warmupDurationBuilder_; /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ public boolean hasWarmupDuration() { return warmupDurationBuilder_ != null || warmupDuration_ != null; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ public com.google.protobuf.Duration getWarmupDuration() { if (warmupDurationBuilder_ == null) { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } else { return warmupDurationBuilder_.getMessage(); } } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder setWarmupDuration(com.google.protobuf.Duration value) { if (warmupDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } warmupDuration_ = value; onChanged(); } else { warmupDurationBuilder_.setMessage(value); } return this; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder setWarmupDuration( com.google.protobuf.Duration.Builder builderForValue) { if (warmupDurationBuilder_ == null) { warmupDuration_ = builderForValue.build(); onChanged(); } else { warmupDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder mergeWarmupDuration(com.google.protobuf.Duration value) { if (warmupDurationBuilder_ == null) { if (warmupDuration_ != null) { warmupDuration_ = com.google.protobuf.Duration.newBuilder(warmupDuration_).mergeFrom(value).buildPartial(); } else { warmupDuration_ = value; } onChanged(); } else { warmupDurationBuilder_.mergeFrom(value); } return this; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder clearWarmupDuration() { if (warmupDurationBuilder_ == null) { warmupDuration_ = null; onChanged(); } else { warmupDuration_ = null; warmupDurationBuilder_ = null; } return this; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public com.google.protobuf.Duration.Builder getWarmupDurationBuilder() { onChanged(); return getWarmupDurationFieldBuilder().getBuilder(); } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder() { if (warmupDurationBuilder_ != null) { return warmupDurationBuilder_.getMessageOrBuilder(); } else { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWarmupDurationFieldBuilder() { if (warmupDurationBuilder_ == null) { warmupDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWarmupDuration(), getParentForChildren(), isClean()); warmupDuration_ = null; } return warmupDurationBuilder_; } private com.google.protobuf.Duration stabilizationDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> stabilizationDurationBuilder_; /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ public boolean hasStabilizationDuration() { return stabilizationDurationBuilder_ != null || stabilizationDuration_ != null; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ public com.google.protobuf.Duration getStabilizationDuration() { if (stabilizationDurationBuilder_ == null) { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } else { return stabilizationDurationBuilder_.getMessage(); } } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder setStabilizationDuration(com.google.protobuf.Duration value) { if (stabilizationDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stabilizationDuration_ = value; onChanged(); } else { stabilizationDurationBuilder_.setMessage(value); } return this; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder setStabilizationDuration( com.google.protobuf.Duration.Builder builderForValue) { if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = builderForValue.build(); onChanged(); } else { stabilizationDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder mergeStabilizationDuration(com.google.protobuf.Duration value) { if (stabilizationDurationBuilder_ == null) { if (stabilizationDuration_ != null) { stabilizationDuration_ = com.google.protobuf.Duration.newBuilder(stabilizationDuration_).mergeFrom(value).buildPartial(); } else { stabilizationDuration_ = value; } onChanged(); } else { stabilizationDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder clearStabilizationDuration() { if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = null; onChanged(); } else { stabilizationDuration_ = null; stabilizationDurationBuilder_ = null; } return this; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public com.google.protobuf.Duration.Builder getStabilizationDurationBuilder() { onChanged(); return getStabilizationDurationFieldBuilder().getBuilder(); } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder() { if (stabilizationDurationBuilder_ != null) { return stabilizationDurationBuilder_.getMessageOrBuilder(); } else { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getStabilizationDurationFieldBuilder() { if (stabilizationDurationBuilder_ == null) { stabilizationDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getStabilizationDuration(), getParentForChildren(), isClean()); stabilizationDuration_ = null; } return stabilizationDurationBuilder_; } private double cpuUtilizationTarget_ ; /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * 
* * double cpu_utilization_target = 6 [(.yandex.cloud.value) = "10-100"]; * @return The cpuUtilizationTarget. */ @java.lang.Override public double getCpuUtilizationTarget() { return cpuUtilizationTarget_; } /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * 
* * double cpu_utilization_target = 6 [(.yandex.cloud.value) = "10-100"]; * @param value The cpuUtilizationTarget to set. * @return This builder for chaining. */ public Builder setCpuUtilizationTarget(double value) { cpuUtilizationTarget_ = value; onChanged(); return this; } /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * 
* * double cpu_utilization_target = 6 [(.yandex.cloud.value) = "10-100"]; * @return This builder for chaining. */ public Builder clearCpuUtilizationTarget() { cpuUtilizationTarget_ = 0D; onChanged(); return this; } private long decommissionTimeout_ ; /** *
       * Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
       * 
* * int64 decommission_timeout = 7 [(.yandex.cloud.value) = "0-86400"]; * @return The decommissionTimeout. */ @java.lang.Override public long getDecommissionTimeout() { return decommissionTimeout_; } /** *
       * Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
       * 
* * int64 decommission_timeout = 7 [(.yandex.cloud.value) = "0-86400"]; * @param value The decommissionTimeout to set. * @return This builder for chaining. */ public Builder setDecommissionTimeout(long value) { decommissionTimeout_ = value; onChanged(); return this; } /** *
       * Timeout to gracefully decommission nodes during downscaling. In seconds. Default value: 120
       * 
* * int64 decommission_timeout = 7 [(.yandex.cloud.value) = "0-86400"]; * @return This builder for chaining. */ public Builder clearDecommissionTimeout() { decommissionTimeout_ = 0L; onChanged(); return this; } @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:yandex.cloud.dataproc.v1.AutoscalingConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.dataproc.v1.AutoscalingConfig) private static final yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig(); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AutoscalingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AutoscalingConfig(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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubclusterOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dataproc.v1.Subcluster) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the subcluster. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the subcluster. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the Data Proc cluster that the subcluster belongs to.
     * 
* * string cluster_id = 2; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * ID of the Data Proc cluster that the subcluster belongs to.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the subcluster. The name is unique within the cluster.
     * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the subcluster. The name is unique within the cluster.
     * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Role that is fulfilled by hosts of the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** *
     * Role that is fulfilled by hosts of the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole(); /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return The resources. */ yandex.cloud.api.dataproc.v1.Common.Resources getResources(); /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * ID of the VPC subnet used for hosts in the subcluster.
     * 
* * string subnet_id = 7; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the VPC subnet used for hosts in the subcluster.
     * 
* * string subnet_id = 7; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Number of hosts in the subcluster.
     * 
* * int64 hosts_count = 8; * @return The hostsCount. */ long getHostsCount(); /** *
     * Assign public ip addresses for all hosts in subcluter.
     * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ boolean getAssignPublicIp(); /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return Whether the autoscalingConfig field is set. */ boolean hasAutoscalingConfig(); /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return The autoscalingConfig. */ yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getAutoscalingConfig(); /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); /** *
     * ID of Compute Instance Group for autoscaling subclusters
     * 
* * string instance_group_id = 11; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of Compute Instance Group for autoscaling subclusters
     * 
* * string instance_group_id = 11; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** *
   * A Data Proc subcluster. For details about the concept, see [documentation](/docs/data-proc/concepts/).
   * 
* * Protobuf type {@code yandex.cloud.dataproc.v1.Subcluster} */ public static final class Subcluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dataproc.v1.Subcluster) SubclusterOrBuilder { private static final long serialVersionUID = 0L; // Use Subcluster.newBuilder() to construct. private Subcluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Subcluster() { id_ = ""; clusterId_ = ""; name_ = ""; role_ = 0; subnetId_ = ""; instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Subcluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Subcluster( 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: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); clusterId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 40: { int rawValue = input.readEnum(); role_ = rawValue; break; } case 50: { yandex.cloud.api.dataproc.v1.Common.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.dataproc.v1.Common.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 64: { hostsCount_ = input.readInt64(); break; } case 72: { assignPublicIp_ = input.readBool(); break; } case 82: { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder subBuilder = null; if (autoscalingConfig_ != null) { subBuilder = autoscalingConfig_.toBuilder(); } autoscalingConfig_ = input.readMessage(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(autoscalingConfig_); autoscalingConfig_ = subBuilder.buildPartial(); } break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); instanceGroupId_ = s; 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Subcluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the subcluster. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * ID of the subcluster. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterId_; /** *
     * ID of the Data Proc cluster that the subcluster belongs to.
     * 
* * string cluster_id = 2; * @return The clusterId. */ @java.lang.Override public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterId_ = s; return s; } } /** *
     * ID of the Data Proc cluster that the subcluster belongs to.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ @java.lang.Override public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the subcluster. The name is unique within the cluster.
     * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the subcluster. The name is unique within the cluster.
     * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 5; private int role_; /** *
     * Role that is fulfilled by hosts of the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
     * Role that is fulfilled by hosts of the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role result = yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.valueOf(role_); return result == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.UNRECOGNIZED : result; } public static final int RESOURCES_FIELD_NUMBER = 6; private yandex.cloud.api.dataproc.v1.Common.Resources resources_; /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return The resources. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.Common.Resources getResources() { return resources_ == null ? yandex.cloud.api.dataproc.v1.Common.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated for each host in the subcluster.
     * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ @java.lang.Override public yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int SUBNET_ID_FIELD_NUMBER = 7; private volatile java.lang.Object subnetId_; /** *
     * ID of the VPC subnet used for hosts in the subcluster.
     * 
* * string subnet_id = 7; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } } /** *
     * ID of the VPC subnet used for hosts in the subcluster.
     * 
* * string subnet_id = 7; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTS_COUNT_FIELD_NUMBER = 8; private long hostsCount_; /** *
     * Number of hosts in the subcluster.
     * 
* * int64 hosts_count = 8; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 9; private boolean assignPublicIp_; /** *
     * Assign public ip addresses for all hosts in subcluter.
     * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 10; private yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig autoscalingConfig_; /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return Whether the autoscalingConfig field is set. */ @java.lang.Override public boolean hasAutoscalingConfig() { return autoscalingConfig_ != null; } /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return The autoscalingConfig. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getAutoscalingConfig() { return autoscalingConfig_ == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } /** *
     * Configuration for instance group based subclusters
     * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { return getAutoscalingConfig(); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 11; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of Compute Instance Group for autoscaling subclusters
     * 
* * string instance_group_id = 11; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } } /** *
     * ID of Compute Instance Group for autoscaling subclusters
     * 
* * string instance_group_id = 11; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (role_ != yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.ROLE_UNSPECIFIED.getNumber()) { output.writeEnum(5, role_); } if (resources_ != null) { output.writeMessage(6, getResources()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subnetId_); } if (hostsCount_ != 0L) { output.writeInt64(8, hostsCount_); } if (assignPublicIp_ != false) { output.writeBool(9, assignPublicIp_); } if (autoscalingConfig_ != null) { output.writeMessage(10, getAutoscalingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, instanceGroupId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (role_ != yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.ROLE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getResources()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subnetId_); } if (hostsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, hostsCount_); } if (assignPublicIp_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, assignPublicIp_); } if (autoscalingConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAutoscalingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, instanceGroupId_); } 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster)) { return super.equals(obj); } yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster other = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster) obj; if (!getId() .equals(other.getId())) return false; if (!getClusterId() .equals(other.getClusterId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (role_ != other.role_) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (!getSubnetId() .equals(other.getSubnetId())) return false; if (getHostsCount() != other.getHostsCount()) return false; if (getAssignPublicIp() != other.getAssignPublicIp()) return false; if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; if (hasAutoscalingConfig()) { if (!getAutoscalingConfig() .equals(other.getAutoscalingConfig())) return false; } if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + role_; if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); hash = (37 * hash) + HOSTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHostsCount()); hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssignPublicIp()); if (hasAutoscalingConfig()) { hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutoscalingConfig().hashCode(); } hash = (37 * hash) + INSTANCE_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster 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(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster 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; } /** *
     * A Data Proc subcluster. For details about the concept, see [documentation](/docs/data-proc/concepts/).
     * 
* * Protobuf type {@code yandex.cloud.dataproc.v1.Subcluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dataproc.v1.Subcluster) yandex.cloud.api.dataproc.v1.SubclusterOuterClass.SubclusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Subcluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.Builder.class); } // Construct using yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.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(); id_ = ""; clusterId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; role_ = 0; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } subnetId_ = ""; hostsCount_ = 0L; assignPublicIp_ = false; if (autoscalingConfigBuilder_ == null) { autoscalingConfig_ = null; } else { autoscalingConfig_ = null; autoscalingConfigBuilder_ = null; } instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster getDefaultInstanceForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster build() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster buildPartial() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster result = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster(this); result.id_ = id_; result.clusterId_ = clusterId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.role_ = role_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.subnetId_ = subnetId_; result.hostsCount_ = hostsCount_; result.assignPublicIp_ = assignPublicIp_; if (autoscalingConfigBuilder_ == null) { result.autoscalingConfig_ = autoscalingConfig_; } else { result.autoscalingConfig_ = autoscalingConfigBuilder_.build(); } result.instanceGroupId_ = instanceGroupId_; 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster) { return mergeFrom((yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster other) { if (other == yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.role_ != 0) { setRoleValue(other.getRoleValue()); } if (other.hasResources()) { mergeResources(other.getResources()); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.getHostsCount() != 0L) { setHostsCount(other.getHostsCount()); } if (other.getAssignPublicIp() != false) { setAssignPublicIp(other.getAssignPublicIp()); } if (other.hasAutoscalingConfig()) { mergeAutoscalingConfig(other.getAutoscalingConfig()); } if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } 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 { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the subcluster. Generated at creation time.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subcluster. Generated at creation time.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subcluster. Generated at creation time.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the subcluster. Generated at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the subcluster. Generated at creation time.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object clusterId_ = ""; /** *
       * ID of the Data Proc cluster that the subcluster belongs to.
       * 
* * string cluster_id = 2; * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Data Proc cluster that the subcluster belongs to.
       * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Data Proc cluster that the subcluster belongs to.
       * 
* * string cluster_id = 2; * @param value The clusterId to set. * @return This builder for chaining. */ public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterId_ = value; onChanged(); return this; } /** *
       * ID of the Data Proc cluster that the subcluster belongs to.
       * 
* * string cluster_id = 2; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * ID of the Data Proc cluster that the subcluster belongs to.
       * 
* * string cluster_id = 2; * @param value The bytes for clusterId to set. * @return This builder for chaining. */ public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the subcluster. The name is unique within the cluster.
       * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the subcluster. The name is unique within the cluster.
       * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the subcluster. The name is unique within the cluster.
       * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the subcluster. The name is unique within the cluster.
       * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the subcluster. The name is unique within the cluster.
       * 
* * string name = 4 [(.yandex.cloud.length) = "1-63"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int role_ = 0; /** *
       * Role that is fulfilled by hosts of the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
       * Role that is fulfilled by hosts of the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ public Builder setRoleValue(int value) { role_ = value; onChanged(); return this; } /** *
       * Role that is fulfilled by hosts of the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role result = yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.valueOf(role_); return result == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.UNRECOGNIZED : result; } /** *
       * Role that is fulfilled by hosts of the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role value) { if (value == null) { throw new NullPointerException(); } role_ = value.getNumber(); onChanged(); return this; } /** *
       * Role that is fulfilled by hosts of the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return This builder for chaining. */ public Builder clearRole() { role_ = 0; onChanged(); return this; } private yandex.cloud.api.dataproc.v1.Common.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.Common.Resources, yandex.cloud.api.dataproc.v1.Common.Resources.Builder, yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; * @return The resources. */ public yandex.cloud.api.dataproc.v1.Common.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.dataproc.v1.Common.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public Builder setResources(yandex.cloud.api.dataproc.v1.Common.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public Builder setResources( yandex.cloud.api.dataproc.v1.Common.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public Builder mergeResources(yandex.cloud.api.dataproc.v1.Common.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.dataproc.v1.Common.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public yandex.cloud.api.dataproc.v1.Common.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ public yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.dataproc.v1.Common.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated for each host in the subcluster.
       * 
* * .yandex.cloud.dataproc.v1.Resources resources = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.Common.Resources, yandex.cloud.api.dataproc.v1.Common.Resources.Builder, yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.Common.Resources, yandex.cloud.api.dataproc.v1.Common.Resources.Builder, yandex.cloud.api.dataproc.v1.Common.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object subnetId_ = ""; /** *
       * ID of the VPC subnet used for hosts in the subcluster.
       * 
* * string subnet_id = 7; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the VPC subnet used for hosts in the subcluster.
       * 
* * string subnet_id = 7; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the VPC subnet used for hosts in the subcluster.
       * 
* * string subnet_id = 7; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the VPC subnet used for hosts in the subcluster.
       * 
* * string subnet_id = 7; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the VPC subnet used for hosts in the subcluster.
       * 
* * string subnet_id = 7; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private long hostsCount_ ; /** *
       * Number of hosts in the subcluster.
       * 
* * int64 hosts_count = 8; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } /** *
       * Number of hosts in the subcluster.
       * 
* * int64 hosts_count = 8; * @param value The hostsCount to set. * @return This builder for chaining. */ public Builder setHostsCount(long value) { hostsCount_ = value; onChanged(); return this; } /** *
       * Number of hosts in the subcluster.
       * 
* * int64 hosts_count = 8; * @return This builder for chaining. */ public Builder clearHostsCount() { hostsCount_ = 0L; onChanged(); return this; } private boolean assignPublicIp_ ; /** *
       * Assign public ip addresses for all hosts in subcluter.
       * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
       * Assign public ip addresses for all hosts in subcluter.
       * 
* * bool assign_public_ip = 9; * @param value The assignPublicIp to set. * @return This builder for chaining. */ public Builder setAssignPublicIp(boolean value) { assignPublicIp_ = value; onChanged(); return this; } /** *
       * Assign public ip addresses for all hosts in subcluter.
       * 
* * bool assign_public_ip = 9; * @return This builder for chaining. */ public Builder clearAssignPublicIp() { assignPublicIp_ = false; onChanged(); return this; } private yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig autoscalingConfig_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_; /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null; } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; * @return The autoscalingConfig. */ public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig getAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { return autoscalingConfig_ == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } else { return autoscalingConfigBuilder_.getMessage(); } } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public Builder setAutoscalingConfig(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoscalingConfig_ = value; onChanged(); } else { autoscalingConfigBuilder_.setMessage(value); } return this; } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public Builder setAutoscalingConfig( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder builderForValue) { if (autoscalingConfigBuilder_ == null) { autoscalingConfig_ = builderForValue.build(); onChanged(); } else { autoscalingConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public Builder mergeAutoscalingConfig(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { if (autoscalingConfig_ != null) { autoscalingConfig_ = yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.newBuilder(autoscalingConfig_).mergeFrom(value).buildPartial(); } else { autoscalingConfig_ = value; } onChanged(); } else { autoscalingConfigBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public Builder clearAutoscalingConfig() { if (autoscalingConfigBuilder_ == null) { autoscalingConfig_ = null; onChanged(); } else { autoscalingConfig_ = null; autoscalingConfigBuilder_ = null; } return this; } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { onChanged(); return getAutoscalingConfigFieldBuilder().getBuilder(); } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { if (autoscalingConfigBuilder_ != null) { return autoscalingConfigBuilder_.getMessageOrBuilder(); } else { return autoscalingConfig_ == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_; } } /** *
       * Configuration for instance group based subclusters
       * 
* * .yandex.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder> getAutoscalingConfigFieldBuilder() { if (autoscalingConfigBuilder_ == null) { autoscalingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfig.Builder, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.AutoscalingConfigOrBuilder>( getAutoscalingConfig(), getParentForChildren(), isClean()); autoscalingConfig_ = null; } return autoscalingConfigBuilder_; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of Compute Instance Group for autoscaling subclusters
       * 
* * string instance_group_id = 11; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of Compute Instance Group for autoscaling subclusters
       * 
* * string instance_group_id = 11; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of Compute Instance Group for autoscaling subclusters
       * 
* * string instance_group_id = 11; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of Compute Instance Group for autoscaling subclusters
       * 
* * string instance_group_id = 11; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of Compute Instance Group for autoscaling subclusters
       * 
* * string instance_group_id = 11; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } @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:yandex.cloud.dataproc.v1.Subcluster) } // @@protoc_insertion_point(class_scope:yandex.cloud.dataproc.v1.Subcluster) private static final yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster(); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Subcluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Subcluster(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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Subcluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dataproc.v1.Host) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
     * and cannot be changed. The name is generated to be unique across all Data Proc
     * hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
     * and cannot be changed. The name is generated to be unique across all Data Proc
     * hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ID of the Data Proc subcluster that the host belongs to.
     * 
* * string subcluster_id = 2; * @return The subclusterId. */ java.lang.String getSubclusterId(); /** *
     * ID of the Data Proc subcluster that the host belongs to.
     * 
* * string subcluster_id = 2; * @return The bytes for subclusterId. */ com.google.protobuf.ByteString getSubclusterIdBytes(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The health. */ yandex.cloud.api.dataproc.v1.Common.Health getHealth(); /** *
     * ID of the Compute virtual machine that is used as the Data Proc host.
     * 
* * string compute_instance_id = 4; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** *
     * ID of the Compute virtual machine that is used as the Data Proc host.
     * 
* * string compute_instance_id = 4; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole(); } /** *
   * A Data Proc host. For details about the concept, see [documentation](/docs/data-proc/concepts/).
   * 
* * Protobuf type {@code yandex.cloud.dataproc.v1.Host} */ public static final class Host extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dataproc.v1.Host) HostOrBuilder { private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Host() { name_ = ""; subclusterId_ = ""; health_ = 0; computeInstanceId_ = ""; role_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Host(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Host( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subclusterId_ = s; break; } case 24: { int rawValue = input.readEnum(); health_ = rawValue; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = s; break; } case 40: { int rawValue = input.readEnum(); role_ = rawValue; 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
     * and cannot be changed. The name is generated to be unique across all Data Proc
     * hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
     * and cannot be changed. The name is generated to be unique across all Data Proc
     * hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBCLUSTER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object subclusterId_; /** *
     * ID of the Data Proc subcluster that the host belongs to.
     * 
* * string subcluster_id = 2; * @return The subclusterId. */ @java.lang.Override public java.lang.String getSubclusterId() { java.lang.Object ref = subclusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subclusterId_ = s; return s; } } /** *
     * ID of the Data Proc subcluster that the host belongs to.
     * 
* * string subcluster_id = 2; * @return The bytes for subclusterId. */ @java.lang.Override public com.google.protobuf.ByteString getSubclusterIdBytes() { java.lang.Object ref = subclusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subclusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTH_FIELD_NUMBER = 3; private int health_; /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The health. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.Common.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.Common.Health result = yandex.cloud.api.dataproc.v1.Common.Health.valueOf(health_); return result == null ? yandex.cloud.api.dataproc.v1.Common.Health.UNRECOGNIZED : result; } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 4; private volatile java.lang.Object computeInstanceId_; /** *
     * ID of the Compute virtual machine that is used as the Data Proc host.
     * 
* * string compute_instance_id = 4; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** *
     * ID of the Compute virtual machine that is used as the Data Proc host.
     * 
* * string compute_instance_id = 4; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 5; private int role_; /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role result = yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.valueOf(role_); return result == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.UNRECOGNIZED : result; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subclusterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subclusterId_); } if (health_ != yandex.cloud.api.dataproc.v1.Common.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(3, health_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, computeInstanceId_); } if (role_ != yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.ROLE_UNSPECIFIED.getNumber()) { output.writeEnum(5, role_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subclusterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subclusterId_); } if (health_ != yandex.cloud.api.dataproc.v1.Common.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, health_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, computeInstanceId_); } if (role_ != yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.ROLE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host)) { return super.equals(obj); } yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host other = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host) obj; if (!getName() .equals(other.getName())) return false; if (!getSubclusterId() .equals(other.getSubclusterId())) return false; if (health_ != other.health_) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) return false; if (role_ != other.role_) return false; 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SUBCLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getSubclusterId().hashCode(); hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + role_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host 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(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host 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; } /** *
     * A Data Proc host. For details about the concept, see [documentation](/docs/data-proc/concepts/).
     * 
* * Protobuf type {@code yandex.cloud.dataproc.v1.Host} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dataproc.v1.Host) yandex.cloud.api.dataproc.v1.SubclusterOuterClass.HostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.class, yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.Builder.class); } // Construct using yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.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(); name_ = ""; subclusterId_ = ""; health_ = 0; computeInstanceId_ = ""; role_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.internal_static_yandex_cloud_dataproc_v1_Host_descriptor; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host getDefaultInstanceForType() { return yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host build() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host buildPartial() { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host result = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host(this); result.name_ = name_; result.subclusterId_ = subclusterId_; result.health_ = health_; result.computeInstanceId_ = computeInstanceId_; result.role_ = role_; 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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host) { return mergeFrom((yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host other) { if (other == yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getSubclusterId().isEmpty()) { subclusterId_ = other.subclusterId_; onChanged(); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; onChanged(); } if (other.role_ != 0) { setRoleValue(other.getRoleValue()); } 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 { yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
       * and cannot be changed. The name is generated to be unique across all Data Proc
       * hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
       * and cannot be changed. The name is generated to be unique across all Data Proc
       * hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
       * and cannot be changed. The name is generated to be unique across all Data Proc
       * hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
       * and cannot be changed. The name is generated to be unique across all Data Proc
       * hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the Data Proc host. The host name is assigned by Data Proc at creation time
       * and cannot be changed. The name is generated to be unique across all Data Proc
       * hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object subclusterId_ = ""; /** *
       * ID of the Data Proc subcluster that the host belongs to.
       * 
* * string subcluster_id = 2; * @return The subclusterId. */ public java.lang.String getSubclusterId() { java.lang.Object ref = subclusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subclusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Data Proc subcluster that the host belongs to.
       * 
* * string subcluster_id = 2; * @return The bytes for subclusterId. */ public com.google.protobuf.ByteString getSubclusterIdBytes() { java.lang.Object ref = subclusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subclusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Data Proc subcluster that the host belongs to.
       * 
* * string subcluster_id = 2; * @param value The subclusterId to set. * @return This builder for chaining. */ public Builder setSubclusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subclusterId_ = value; onChanged(); return this; } /** *
       * ID of the Data Proc subcluster that the host belongs to.
       * 
* * string subcluster_id = 2; * @return This builder for chaining. */ public Builder clearSubclusterId() { subclusterId_ = getDefaultInstance().getSubclusterId(); onChanged(); return this; } /** *
       * ID of the Data Proc subcluster that the host belongs to.
       * 
* * string subcluster_id = 2; * @param value The bytes for subclusterId to set. * @return This builder for chaining. */ public Builder setSubclusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subclusterId_ = value; onChanged(); return this; } private int health_ = 0; /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { health_ = value; onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return The health. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.Common.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.Common.Health result = yandex.cloud.api.dataproc.v1.Common.Health.valueOf(health_); return result == null ? yandex.cloud.api.dataproc.v1.Common.Health.UNRECOGNIZED : result; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.dataproc.v1.Common.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.dataproc.v1.Health health = 3; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** *
       * ID of the Compute virtual machine that is used as the Data Proc host.
       * 
* * string compute_instance_id = 4; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Compute virtual machine that is used as the Data Proc host.
       * 
* * string compute_instance_id = 4; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Compute virtual machine that is used as the Data Proc host.
       * 
* * string compute_instance_id = 4; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** *
       * ID of the Compute virtual machine that is used as the Data Proc host.
       * 
* * string compute_instance_id = 4; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** *
       * ID of the Compute virtual machine that is used as the Data Proc host.
       * 
* * string compute_instance_id = 4; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = value; onChanged(); return this; } private int role_ = 0; /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ public Builder setRoleValue(int value) { role_ = value; onChanged(); return this; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role result = yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.valueOf(role_); return result == null ? yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role.UNRECOGNIZED : result; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Role value) { if (value == null) { throw new NullPointerException(); } role_ = value.getNumber(); onChanged(); return this; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.dataproc.v1.Role role = 5; * @return This builder for chaining. */ public Builder clearRole() { role_ = 0; onChanged(); return this; } @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:yandex.cloud.dataproc.v1.Host) } // @@protoc_insertion_point(class_scope:yandex.cloud.dataproc.v1.Host) private static final yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host(); } public static yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Host parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Host(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 yandex.cloud.api.dataproc.v1.SubclusterOuterClass.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dataproc_v1_Subcluster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dataproc_v1_Host_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dataproc_v1_Host_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n)yandex/cloud/dataproc/v1/subcluster.pr" + "oto\022\030yandex.cloud.dataproc.v1\032\037google/pr" + "otobuf/timestamp.proto\032%yandex/cloud/dat" + "aproc/v1/common.proto\032\035yandex/cloud/vali" + "dation.proto\032\036google/protobuf/duration.p" + "roto\"\362\002\n\021AutoscalingConfig\022\"\n\017max_hosts_" + "count\030\001 \001(\003B\t\372\3071\0051-100\022\023\n\013preemptible\030\002 " + "\001(\010\022G\n\024measurement_duration\030\003 \001(\0132\031.goog" + "le.protobuf.DurationB\016\350\3071\001\372\3071\0061m-10m\022=\n\017" + "warmup_duration\030\004 \001(\0132\031.google.protobuf." + "DurationB\t\372\3071\005<=10m\022E\n\026stabilization_dur" + "ation\030\005 \001(\0132\031.google.protobuf.DurationB\n" + "\372\3071\0061m-30m\022*\n\026cpu_utilization_target\030\006 \001" + "(\001B\n\372\3071\00610-100\022)\n\024decommission_timeout\030\007" + " \001(\003B\013\372\3071\0070-86400\"\200\003\n\nSubcluster\022\n\n\002id\030\001" + " \001(\t\022\022\n\ncluster_id\030\002 \001(\t\022.\n\ncreated_at\030\003" + " \001(\0132\032.google.protobuf.Timestamp\022\026\n\004name" + "\030\004 \001(\tB\010\212\3101\0041-63\022,\n\004role\030\005 \001(\0162\036.yandex." + "cloud.dataproc.v1.Role\0226\n\tresources\030\006 \001(" + "\0132#.yandex.cloud.dataproc.v1.Resources\022\021" + "\n\tsubnet_id\030\007 \001(\t\022\023\n\013hosts_count\030\010 \001(\003\022\030" + "\n\020assign_public_ip\030\t \001(\010\022G\n\022autoscaling_" + "config\030\n \001(\0132+.yandex.cloud.dataproc.v1." + "AutoscalingConfig\022\031\n\021instance_group_id\030\013" + " \001(\t\"\250\001\n\004Host\022\014\n\004name\030\001 \001(\t\022\025\n\rsubcluste" + "r_id\030\002 \001(\t\0220\n\006health\030\003 \001(\0162 .yandex.clou" + "d.dataproc.v1.Health\022\033\n\023compute_instance" + "_id\030\004 \001(\t\022,\n\004role\030\005 \001(\0162\036.yandex.cloud.d" + "ataproc.v1.Role*K\n\004Role\022\024\n\020ROLE_UNSPECIF" + "IED\020\000\022\016\n\nMASTERNODE\020\001\022\014\n\010DATANODE\020\002\022\017\n\013C" + "OMPUTENODE\020\003Be\n\034yandex.cloud.api.datapro" + "c.v1ZEgithub.com/yandex-cloud/go-genprot" + "o/yandex/cloud/dataproc/v1;dataprocb\006pro" + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.dataproc.v1.Common.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dataproc_v1_AutoscalingConfig_descriptor, new java.lang.String[] { "MaxHostsCount", "Preemptible", "MeasurementDuration", "WarmupDuration", "StabilizationDuration", "CpuUtilizationTarget", "DecommissionTimeout", }); internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_dataproc_v1_Subcluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dataproc_v1_Subcluster_descriptor, new java.lang.String[] { "Id", "ClusterId", "CreatedAt", "Name", "Role", "Resources", "SubnetId", "HostsCount", "AssignPublicIp", "AutoscalingConfig", "InstanceGroupId", }); internal_static_yandex_cloud_dataproc_v1_Host_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_dataproc_v1_Host_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dataproc_v1_Host_descriptor, new java.lang.String[] { "Name", "SubclusterId", "Health", "ComputeInstanceId", "Role", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.dataproc.v1.Common.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy