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

cz.proto.VirtualClusterMetaOuterClass Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: virtual_cluster_meta.proto

package cz.proto;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface AnalyticsPropertiesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.AnalyticsProperties)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional int32 min_replicas = 1;
     * @return Whether the minReplicas field is set.
     */
    boolean hasMinReplicas();
    /**
     * optional int32 min_replicas = 1;
     * @return The minReplicas.
     */
    int getMinReplicas();

    /**
     * optional int32 max_replicas = 2;
     * @return Whether the maxReplicas field is set.
     */
    boolean hasMaxReplicas();
    /**
     * optional int32 max_replicas = 2;
     * @return The maxReplicas.
     */
    int getMaxReplicas();

    /**
     * optional int32 max_concurrency_per_replica = 3;
     * @return Whether the maxConcurrencyPerReplica field is set.
     */
    boolean hasMaxConcurrencyPerReplica();
    /**
     * optional int32 max_concurrency_per_replica = 3;
     * @return The maxConcurrencyPerReplica.
     */
    int getMaxConcurrencyPerReplica();

    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return Whether the scalePolicy field is set.
     */
    boolean hasScalePolicy();
    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return The enum numeric value on the wire for scalePolicy.
     */
    int getScalePolicyValue();
    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return The scalePolicy.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy();

    /**
     * optional int32 cur_replicas = 5;
     * @return Whether the curReplicas field is set.
     */
    boolean hasCurReplicas();
    /**
     * optional int32 cur_replicas = 5;
     * @return The curReplicas.
     */
    int getCurReplicas();

    /**
     * optional string preload_tables = 6;
     * @return Whether the preloadTables field is set.
     */
    boolean hasPreloadTables();
    /**
     * optional string preload_tables = 6;
     * @return The preloadTables.
     */
    java.lang.String getPreloadTables();
    /**
     * optional string preload_tables = 6;
     * @return The bytes for preloadTables.
     */
    com.google.protobuf.ByteString
        getPreloadTablesBytes();
  }
  /**
   * Protobuf type {@code cz.proto.AnalyticsProperties}
   */
  public static final class AnalyticsProperties extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cz.proto.AnalyticsProperties)
      AnalyticsPropertiesOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AnalyticsProperties.newBuilder() to construct.
    private AnalyticsProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private AnalyticsProperties() {
      scalePolicy_ = 0;
      preloadTables_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new AnalyticsProperties();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private AnalyticsProperties(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      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: {
              bitField0_ |= 0x00000001;
              minReplicas_ = input.readInt32();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              maxReplicas_ = input.readInt32();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              maxConcurrencyPerReplica_ = input.readInt32();
              break;
            }
            case 32: {
              int rawValue = input.readEnum();
              bitField0_ |= 0x00000008;
              scalePolicy_ = rawValue;
              break;
            }
            case 40: {
              bitField0_ |= 0x00000010;
              curReplicas_ = input.readInt32();
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();
              bitField0_ |= 0x00000020;
              preloadTables_ = 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 cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_AnalyticsProperties_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_AnalyticsProperties_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.class, cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder.class);
    }

    private int bitField0_;
    public static final int MIN_REPLICAS_FIELD_NUMBER = 1;
    private int minReplicas_;
    /**
     * optional int32 min_replicas = 1;
     * @return Whether the minReplicas field is set.
     */
    @java.lang.Override
    public boolean hasMinReplicas() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int32 min_replicas = 1;
     * @return The minReplicas.
     */
    @java.lang.Override
    public int getMinReplicas() {
      return minReplicas_;
    }

    public static final int MAX_REPLICAS_FIELD_NUMBER = 2;
    private int maxReplicas_;
    /**
     * optional int32 max_replicas = 2;
     * @return Whether the maxReplicas field is set.
     */
    @java.lang.Override
    public boolean hasMaxReplicas() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional int32 max_replicas = 2;
     * @return The maxReplicas.
     */
    @java.lang.Override
    public int getMaxReplicas() {
      return maxReplicas_;
    }

    public static final int MAX_CONCURRENCY_PER_REPLICA_FIELD_NUMBER = 3;
    private int maxConcurrencyPerReplica_;
    /**
     * optional int32 max_concurrency_per_replica = 3;
     * @return Whether the maxConcurrencyPerReplica field is set.
     */
    @java.lang.Override
    public boolean hasMaxConcurrencyPerReplica() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional int32 max_concurrency_per_replica = 3;
     * @return The maxConcurrencyPerReplica.
     */
    @java.lang.Override
    public int getMaxConcurrencyPerReplica() {
      return maxConcurrencyPerReplica_;
    }

    public static final int SCALE_POLICY_FIELD_NUMBER = 4;
    private int scalePolicy_;
    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return Whether the scalePolicy field is set.
     */
    @java.lang.Override public boolean hasScalePolicy() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return The enum numeric value on the wire for scalePolicy.
     */
    @java.lang.Override public int getScalePolicyValue() {
      return scalePolicy_;
    }
    /**
     * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
     * @return The scalePolicy.
     */
    @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy() {
      @SuppressWarnings("deprecation")
      com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy result = com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.valueOf(scalePolicy_);
      return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.UNRECOGNIZED : result;
    }

    public static final int CUR_REPLICAS_FIELD_NUMBER = 5;
    private int curReplicas_;
    /**
     * optional int32 cur_replicas = 5;
     * @return Whether the curReplicas field is set.
     */
    @java.lang.Override
    public boolean hasCurReplicas() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional int32 cur_replicas = 5;
     * @return The curReplicas.
     */
    @java.lang.Override
    public int getCurReplicas() {
      return curReplicas_;
    }

    public static final int PRELOAD_TABLES_FIELD_NUMBER = 6;
    private volatile java.lang.Object preloadTables_;
    /**
     * optional string preload_tables = 6;
     * @return Whether the preloadTables field is set.
     */
    @java.lang.Override
    public boolean hasPreloadTables() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string preload_tables = 6;
     * @return The preloadTables.
     */
    @java.lang.Override
    public java.lang.String getPreloadTables() {
      java.lang.Object ref = preloadTables_;
      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();
        preloadTables_ = s;
        return s;
      }
    }
    /**
     * optional string preload_tables = 6;
     * @return The bytes for preloadTables.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPreloadTablesBytes() {
      java.lang.Object ref = preloadTables_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preloadTables_ = 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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt32(1, minReplicas_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeInt32(2, maxReplicas_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeInt32(3, maxConcurrencyPerReplica_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeEnum(4, scalePolicy_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeInt32(5, curReplicas_);
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, preloadTables_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, minReplicas_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, maxReplicas_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, maxConcurrencyPerReplica_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(4, scalePolicy_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(5, curReplicas_);
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, preloadTables_);
      }
      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 cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties)) {
        return super.equals(obj);
      }
      cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties other = (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) obj;

      if (hasMinReplicas() != other.hasMinReplicas()) return false;
      if (hasMinReplicas()) {
        if (getMinReplicas()
            != other.getMinReplicas()) return false;
      }
      if (hasMaxReplicas() != other.hasMaxReplicas()) return false;
      if (hasMaxReplicas()) {
        if (getMaxReplicas()
            != other.getMaxReplicas()) return false;
      }
      if (hasMaxConcurrencyPerReplica() != other.hasMaxConcurrencyPerReplica()) return false;
      if (hasMaxConcurrencyPerReplica()) {
        if (getMaxConcurrencyPerReplica()
            != other.getMaxConcurrencyPerReplica()) return false;
      }
      if (hasScalePolicy() != other.hasScalePolicy()) return false;
      if (hasScalePolicy()) {
        if (scalePolicy_ != other.scalePolicy_) return false;
      }
      if (hasCurReplicas() != other.hasCurReplicas()) return false;
      if (hasCurReplicas()) {
        if (getCurReplicas()
            != other.getCurReplicas()) return false;
      }
      if (hasPreloadTables() != other.hasPreloadTables()) return false;
      if (hasPreloadTables()) {
        if (!getPreloadTables()
            .equals(other.getPreloadTables())) 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();
      if (hasMinReplicas()) {
        hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER;
        hash = (53 * hash) + getMinReplicas();
      }
      if (hasMaxReplicas()) {
        hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER;
        hash = (53 * hash) + getMaxReplicas();
      }
      if (hasMaxConcurrencyPerReplica()) {
        hash = (37 * hash) + MAX_CONCURRENCY_PER_REPLICA_FIELD_NUMBER;
        hash = (53 * hash) + getMaxConcurrencyPerReplica();
      }
      if (hasScalePolicy()) {
        hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER;
        hash = (53 * hash) + scalePolicy_;
      }
      if (hasCurReplicas()) {
        hash = (37 * hash) + CUR_REPLICAS_FIELD_NUMBER;
        hash = (53 * hash) + getCurReplicas();
      }
      if (hasPreloadTables()) {
        hash = (37 * hash) + PRELOAD_TABLES_FIELD_NUMBER;
        hash = (53 * hash) + getPreloadTables().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties 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 cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties 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 cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties 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(cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties 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 cz.proto.AnalyticsProperties}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:cz.proto.AnalyticsProperties)
        cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_AnalyticsProperties_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_AnalyticsProperties_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.class, cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder.class);
      }

      // Construct using cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.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();
        minReplicas_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        maxReplicas_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        maxConcurrencyPerReplica_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        scalePolicy_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        curReplicas_ = 0;
        bitField0_ = (bitField0_ & ~0x00000010);
        preloadTables_ = "";
        bitField0_ = (bitField0_ & ~0x00000020);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_AnalyticsProperties_descriptor;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getDefaultInstanceForType() {
        return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance();
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties build() {
        cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties buildPartial() {
        cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties result = new cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.minReplicas_ = minReplicas_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.maxReplicas_ = maxReplicas_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.maxConcurrencyPerReplica_ = maxConcurrencyPerReplica_;
          to_bitField0_ |= 0x00000004;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.scalePolicy_ = scalePolicy_;
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.curReplicas_ = curReplicas_;
          to_bitField0_ |= 0x00000010;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          to_bitField0_ |= 0x00000020;
        }
        result.preloadTables_ = preloadTables_;
        result.bitField0_ = to_bitField0_;
        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 cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) {
          return mergeFrom((cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties other) {
        if (other == cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance()) return this;
        if (other.hasMinReplicas()) {
          setMinReplicas(other.getMinReplicas());
        }
        if (other.hasMaxReplicas()) {
          setMaxReplicas(other.getMaxReplicas());
        }
        if (other.hasMaxConcurrencyPerReplica()) {
          setMaxConcurrencyPerReplica(other.getMaxConcurrencyPerReplica());
        }
        if (other.hasScalePolicy()) {
          setScalePolicy(other.getScalePolicy());
        }
        if (other.hasCurReplicas()) {
          setCurReplicas(other.getCurReplicas());
        }
        if (other.hasPreloadTables()) {
          bitField0_ |= 0x00000020;
          preloadTables_ = other.preloadTables_;
          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 {
        cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int minReplicas_ ;
      /**
       * optional int32 min_replicas = 1;
       * @return Whether the minReplicas field is set.
       */
      @java.lang.Override
      public boolean hasMinReplicas() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional int32 min_replicas = 1;
       * @return The minReplicas.
       */
      @java.lang.Override
      public int getMinReplicas() {
        return minReplicas_;
      }
      /**
       * optional int32 min_replicas = 1;
       * @param value The minReplicas to set.
       * @return This builder for chaining.
       */
      public Builder setMinReplicas(int value) {
        bitField0_ |= 0x00000001;
        minReplicas_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 min_replicas = 1;
       * @return This builder for chaining.
       */
      public Builder clearMinReplicas() {
        bitField0_ = (bitField0_ & ~0x00000001);
        minReplicas_ = 0;
        onChanged();
        return this;
      }

      private int maxReplicas_ ;
      /**
       * optional int32 max_replicas = 2;
       * @return Whether the maxReplicas field is set.
       */
      @java.lang.Override
      public boolean hasMaxReplicas() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional int32 max_replicas = 2;
       * @return The maxReplicas.
       */
      @java.lang.Override
      public int getMaxReplicas() {
        return maxReplicas_;
      }
      /**
       * optional int32 max_replicas = 2;
       * @param value The maxReplicas to set.
       * @return This builder for chaining.
       */
      public Builder setMaxReplicas(int value) {
        bitField0_ |= 0x00000002;
        maxReplicas_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 max_replicas = 2;
       * @return This builder for chaining.
       */
      public Builder clearMaxReplicas() {
        bitField0_ = (bitField0_ & ~0x00000002);
        maxReplicas_ = 0;
        onChanged();
        return this;
      }

      private int maxConcurrencyPerReplica_ ;
      /**
       * optional int32 max_concurrency_per_replica = 3;
       * @return Whether the maxConcurrencyPerReplica field is set.
       */
      @java.lang.Override
      public boolean hasMaxConcurrencyPerReplica() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * optional int32 max_concurrency_per_replica = 3;
       * @return The maxConcurrencyPerReplica.
       */
      @java.lang.Override
      public int getMaxConcurrencyPerReplica() {
        return maxConcurrencyPerReplica_;
      }
      /**
       * optional int32 max_concurrency_per_replica = 3;
       * @param value The maxConcurrencyPerReplica to set.
       * @return This builder for chaining.
       */
      public Builder setMaxConcurrencyPerReplica(int value) {
        bitField0_ |= 0x00000004;
        maxConcurrencyPerReplica_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 max_concurrency_per_replica = 3;
       * @return This builder for chaining.
       */
      public Builder clearMaxConcurrencyPerReplica() {
        bitField0_ = (bitField0_ & ~0x00000004);
        maxConcurrencyPerReplica_ = 0;
        onChanged();
        return this;
      }

      private int scalePolicy_ = 0;
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @return Whether the scalePolicy field is set.
       */
      @java.lang.Override public boolean hasScalePolicy() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @return The enum numeric value on the wire for scalePolicy.
       */
      @java.lang.Override public int getScalePolicyValue() {
        return scalePolicy_;
      }
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @param value The enum numeric value on the wire for scalePolicy to set.
       * @return This builder for chaining.
       */
      public Builder setScalePolicyValue(int value) {
        bitField0_ |= 0x00000008;
        scalePolicy_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @return The scalePolicy.
       */
      @java.lang.Override
      public com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy() {
        @SuppressWarnings("deprecation")
        com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy result = com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.valueOf(scalePolicy_);
        return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.UNRECOGNIZED : result;
      }
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @param value The scalePolicy to set.
       * @return This builder for chaining.
       */
      public Builder setScalePolicy(com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000008;
        scalePolicy_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4;
       * @return This builder for chaining.
       */
      public Builder clearScalePolicy() {
        bitField0_ = (bitField0_ & ~0x00000008);
        scalePolicy_ = 0;
        onChanged();
        return this;
      }

      private int curReplicas_ ;
      /**
       * optional int32 cur_replicas = 5;
       * @return Whether the curReplicas field is set.
       */
      @java.lang.Override
      public boolean hasCurReplicas() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * optional int32 cur_replicas = 5;
       * @return The curReplicas.
       */
      @java.lang.Override
      public int getCurReplicas() {
        return curReplicas_;
      }
      /**
       * optional int32 cur_replicas = 5;
       * @param value The curReplicas to set.
       * @return This builder for chaining.
       */
      public Builder setCurReplicas(int value) {
        bitField0_ |= 0x00000010;
        curReplicas_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 cur_replicas = 5;
       * @return This builder for chaining.
       */
      public Builder clearCurReplicas() {
        bitField0_ = (bitField0_ & ~0x00000010);
        curReplicas_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object preloadTables_ = "";
      /**
       * optional string preload_tables = 6;
       * @return Whether the preloadTables field is set.
       */
      public boolean hasPreloadTables() {
        return ((bitField0_ & 0x00000020) != 0);
      }
      /**
       * optional string preload_tables = 6;
       * @return The preloadTables.
       */
      public java.lang.String getPreloadTables() {
        java.lang.Object ref = preloadTables_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          preloadTables_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string preload_tables = 6;
       * @return The bytes for preloadTables.
       */
      public com.google.protobuf.ByteString
          getPreloadTablesBytes() {
        java.lang.Object ref = preloadTables_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          preloadTables_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string preload_tables = 6;
       * @param value The preloadTables to set.
       * @return This builder for chaining.
       */
      public Builder setPreloadTables(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        preloadTables_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string preload_tables = 6;
       * @return This builder for chaining.
       */
      public Builder clearPreloadTables() {
        bitField0_ = (bitField0_ & ~0x00000020);
        preloadTables_ = getDefaultInstance().getPreloadTables();
        onChanged();
        return this;
      }
      /**
       * optional string preload_tables = 6;
       * @param value The bytes for preloadTables to set.
       * @return This builder for chaining.
       */
      public Builder setPreloadTablesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        bitField0_ |= 0x00000020;
        preloadTables_ = 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:cz.proto.AnalyticsProperties)
    }

    // @@protoc_insertion_point(class_scope:cz.proto.AnalyticsProperties)
    private static final cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties();
    }

    public static cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public AnalyticsProperties parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new AnalyticsProperties(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 cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GeneralPropertiesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.GeneralProperties)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return Whether the clusterMaxSize field is set.
     */
    boolean hasClusterMaxSize();
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return The enum numeric value on the wire for clusterMaxSize.
     */
    int getClusterMaxSizeValue();
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return The clusterMaxSize.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize();
  }
  /**
   * Protobuf type {@code cz.proto.GeneralProperties}
   */
  public static final class GeneralProperties extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cz.proto.GeneralProperties)
      GeneralPropertiesOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GeneralProperties.newBuilder() to construct.
    private GeneralProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GeneralProperties() {
      clusterMaxSize_ = 0;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new GeneralProperties();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private GeneralProperties(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      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: {
              int rawValue = input.readEnum();
              bitField0_ |= 0x00000001;
              clusterMaxSize_ = 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 cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_GeneralProperties_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_GeneralProperties_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.class, cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder.class);
    }

    private int bitField0_;
    public static final int CLUSTER_MAX_SIZE_FIELD_NUMBER = 1;
    private int clusterMaxSize_;
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return Whether the clusterMaxSize field is set.
     */
    @java.lang.Override public boolean hasClusterMaxSize() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return The enum numeric value on the wire for clusterMaxSize.
     */
    @java.lang.Override public int getClusterMaxSizeValue() {
      return clusterMaxSize_;
    }
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
     * @return The clusterMaxSize.
     */
    @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize() {
      @SuppressWarnings("deprecation")
      com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterMaxSize_);
      return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeEnum(1, clusterMaxSize_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, clusterMaxSize_);
      }
      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 cz.proto.VirtualClusterMetaOuterClass.GeneralProperties)) {
        return super.equals(obj);
      }
      cz.proto.VirtualClusterMetaOuterClass.GeneralProperties other = (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) obj;

      if (hasClusterMaxSize() != other.hasClusterMaxSize()) return false;
      if (hasClusterMaxSize()) {
        if (clusterMaxSize_ != other.clusterMaxSize_) 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();
      if (hasClusterMaxSize()) {
        hash = (37 * hash) + CLUSTER_MAX_SIZE_FIELD_NUMBER;
        hash = (53 * hash) + clusterMaxSize_;
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties 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 cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties 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 cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties 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(cz.proto.VirtualClusterMetaOuterClass.GeneralProperties 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 cz.proto.GeneralProperties}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:cz.proto.GeneralProperties)
        cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_GeneralProperties_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_GeneralProperties_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.class, cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder.class);
      }

      // Construct using cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.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();
        clusterMaxSize_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_GeneralProperties_descriptor;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getDefaultInstanceForType() {
        return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance();
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties build() {
        cz.proto.VirtualClusterMetaOuterClass.GeneralProperties result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties buildPartial() {
        cz.proto.VirtualClusterMetaOuterClass.GeneralProperties result = new cz.proto.VirtualClusterMetaOuterClass.GeneralProperties(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.clusterMaxSize_ = clusterMaxSize_;
        result.bitField0_ = to_bitField0_;
        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 cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) {
          return mergeFrom((cz.proto.VirtualClusterMetaOuterClass.GeneralProperties)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(cz.proto.VirtualClusterMetaOuterClass.GeneralProperties other) {
        if (other == cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance()) return this;
        if (other.hasClusterMaxSize()) {
          setClusterMaxSize(other.getClusterMaxSize());
        }
        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 {
        cz.proto.VirtualClusterMetaOuterClass.GeneralProperties parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int clusterMaxSize_ = 0;
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @return Whether the clusterMaxSize field is set.
       */
      @java.lang.Override public boolean hasClusterMaxSize() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @return The enum numeric value on the wire for clusterMaxSize.
       */
      @java.lang.Override public int getClusterMaxSizeValue() {
        return clusterMaxSize_;
      }
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @param value The enum numeric value on the wire for clusterMaxSize to set.
       * @return This builder for chaining.
       */
      public Builder setClusterMaxSizeValue(int value) {
        bitField0_ |= 0x00000001;
        clusterMaxSize_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @return The clusterMaxSize.
       */
      @java.lang.Override
      public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize() {
        @SuppressWarnings("deprecation")
        com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterMaxSize_);
        return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result;
      }
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @param value The clusterMaxSize to set.
       * @return This builder for chaining.
       */
      public Builder setClusterMaxSize(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        clusterMaxSize_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1;
       * @return This builder for chaining.
       */
      public Builder clearClusterMaxSize() {
        bitField0_ = (bitField0_ & ~0x00000001);
        clusterMaxSize_ = 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:cz.proto.GeneralProperties)
    }

    // @@protoc_insertion_point(class_scope:cz.proto.GeneralProperties)
    private static final cz.proto.VirtualClusterMetaOuterClass.GeneralProperties DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new cz.proto.VirtualClusterMetaOuterClass.GeneralProperties();
    }

    public static cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GeneralProperties parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new GeneralProperties(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 cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface JobInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.JobInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional int32 jobs_running = 1;
     * @return Whether the jobsRunning field is set.
     */
    boolean hasJobsRunning();
    /**
     * optional int32 jobs_running = 1;
     * @return The jobsRunning.
     */
    int getJobsRunning();

    /**
     * optional int32 jobs_in_queue = 2;
     * @return Whether the jobsInQueue field is set.
     */
    boolean hasJobsInQueue();
    /**
     * optional int32 jobs_in_queue = 2;
     * @return The jobsInQueue.
     */
    int getJobsInQueue();
  }
  /**
   * Protobuf type {@code cz.proto.JobInfo}
   */
  public static final class JobInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cz.proto.JobInfo)
      JobInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use JobInfo.newBuilder() to construct.
    private JobInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private JobInfo() {
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new JobInfo();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private JobInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      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: {
              bitField0_ |= 0x00000001;
              jobsRunning_ = input.readInt32();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              jobsInQueue_ = input.readInt32();
              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 cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_JobInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_JobInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.VirtualClusterMetaOuterClass.JobInfo.class, cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder.class);
    }

    private int bitField0_;
    public static final int JOBS_RUNNING_FIELD_NUMBER = 1;
    private int jobsRunning_;
    /**
     * optional int32 jobs_running = 1;
     * @return Whether the jobsRunning field is set.
     */
    @java.lang.Override
    public boolean hasJobsRunning() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int32 jobs_running = 1;
     * @return The jobsRunning.
     */
    @java.lang.Override
    public int getJobsRunning() {
      return jobsRunning_;
    }

    public static final int JOBS_IN_QUEUE_FIELD_NUMBER = 2;
    private int jobsInQueue_;
    /**
     * optional int32 jobs_in_queue = 2;
     * @return Whether the jobsInQueue field is set.
     */
    @java.lang.Override
    public boolean hasJobsInQueue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional int32 jobs_in_queue = 2;
     * @return The jobsInQueue.
     */
    @java.lang.Override
    public int getJobsInQueue() {
      return jobsInQueue_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt32(1, jobsRunning_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeInt32(2, jobsInQueue_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, jobsRunning_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, jobsInQueue_);
      }
      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 cz.proto.VirtualClusterMetaOuterClass.JobInfo)) {
        return super.equals(obj);
      }
      cz.proto.VirtualClusterMetaOuterClass.JobInfo other = (cz.proto.VirtualClusterMetaOuterClass.JobInfo) obj;

      if (hasJobsRunning() != other.hasJobsRunning()) return false;
      if (hasJobsRunning()) {
        if (getJobsRunning()
            != other.getJobsRunning()) return false;
      }
      if (hasJobsInQueue() != other.hasJobsInQueue()) return false;
      if (hasJobsInQueue()) {
        if (getJobsInQueue()
            != other.getJobsInQueue()) 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();
      if (hasJobsRunning()) {
        hash = (37 * hash) + JOBS_RUNNING_FIELD_NUMBER;
        hash = (53 * hash) + getJobsRunning();
      }
      if (hasJobsInQueue()) {
        hash = (37 * hash) + JOBS_IN_QUEUE_FIELD_NUMBER;
        hash = (53 * hash) + getJobsInQueue();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo 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 cz.proto.VirtualClusterMetaOuterClass.JobInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo 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 cz.proto.VirtualClusterMetaOuterClass.JobInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo 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(cz.proto.VirtualClusterMetaOuterClass.JobInfo 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 cz.proto.JobInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:cz.proto.JobInfo)
        cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_JobInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_JobInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                cz.proto.VirtualClusterMetaOuterClass.JobInfo.class, cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder.class);
      }

      // Construct using cz.proto.VirtualClusterMetaOuterClass.JobInfo.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();
        jobsRunning_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        jobsInQueue_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_JobInfo_descriptor;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.JobInfo getDefaultInstanceForType() {
        return cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance();
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.JobInfo build() {
        cz.proto.VirtualClusterMetaOuterClass.JobInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public cz.proto.VirtualClusterMetaOuterClass.JobInfo buildPartial() {
        cz.proto.VirtualClusterMetaOuterClass.JobInfo result = new cz.proto.VirtualClusterMetaOuterClass.JobInfo(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.jobsRunning_ = jobsRunning_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.jobsInQueue_ = jobsInQueue_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ = to_bitField0_;
        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 cz.proto.VirtualClusterMetaOuterClass.JobInfo) {
          return mergeFrom((cz.proto.VirtualClusterMetaOuterClass.JobInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(cz.proto.VirtualClusterMetaOuterClass.JobInfo other) {
        if (other == cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance()) return this;
        if (other.hasJobsRunning()) {
          setJobsRunning(other.getJobsRunning());
        }
        if (other.hasJobsInQueue()) {
          setJobsInQueue(other.getJobsInQueue());
        }
        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 {
        cz.proto.VirtualClusterMetaOuterClass.JobInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (cz.proto.VirtualClusterMetaOuterClass.JobInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int jobsRunning_ ;
      /**
       * optional int32 jobs_running = 1;
       * @return Whether the jobsRunning field is set.
       */
      @java.lang.Override
      public boolean hasJobsRunning() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional int32 jobs_running = 1;
       * @return The jobsRunning.
       */
      @java.lang.Override
      public int getJobsRunning() {
        return jobsRunning_;
      }
      /**
       * optional int32 jobs_running = 1;
       * @param value The jobsRunning to set.
       * @return This builder for chaining.
       */
      public Builder setJobsRunning(int value) {
        bitField0_ |= 0x00000001;
        jobsRunning_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 jobs_running = 1;
       * @return This builder for chaining.
       */
      public Builder clearJobsRunning() {
        bitField0_ = (bitField0_ & ~0x00000001);
        jobsRunning_ = 0;
        onChanged();
        return this;
      }

      private int jobsInQueue_ ;
      /**
       * optional int32 jobs_in_queue = 2;
       * @return Whether the jobsInQueue field is set.
       */
      @java.lang.Override
      public boolean hasJobsInQueue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional int32 jobs_in_queue = 2;
       * @return The jobsInQueue.
       */
      @java.lang.Override
      public int getJobsInQueue() {
        return jobsInQueue_;
      }
      /**
       * optional int32 jobs_in_queue = 2;
       * @param value The jobsInQueue to set.
       * @return This builder for chaining.
       */
      public Builder setJobsInQueue(int value) {
        bitField0_ |= 0x00000002;
        jobsInQueue_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 jobs_in_queue = 2;
       * @return This builder for chaining.
       */
      public Builder clearJobsInQueue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        jobsInQueue_ = 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:cz.proto.JobInfo)
    }

    // @@protoc_insertion_point(class_scope:cz.proto.JobInfo)
    private static final cz.proto.VirtualClusterMetaOuterClass.JobInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new cz.proto.VirtualClusterMetaOuterClass.JobInfo();
    }

    public static cz.proto.VirtualClusterMetaOuterClass.JobInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public JobInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new JobInfo(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 cz.proto.VirtualClusterMetaOuterClass.JobInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface VirtualClusterMetaOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.VirtualClusterMeta)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .com.clickzetta.rm.VClusterType cluster_type = 1;
     * @return The enum numeric value on the wire for clusterType.
     */
    int getClusterTypeValue();
    /**
     * .com.clickzetta.rm.VClusterType cluster_type = 1;
     * @return The clusterType.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType();

    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_size = 2;
     * @return Whether the clusterSize field is set.
     */
    boolean hasClusterSize();
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_size = 2;
     * @return The enum numeric value on the wire for clusterSize.
     */
    int getClusterSizeValue();
    /**
     * optional .com.clickzetta.rm.VClusterSize cluster_size = 2;
     * @return The clusterSize.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize();

    /**
     * .cz.proto.AnalyticsProperties analytics_properties = 3;
     * @return Whether the analyticsProperties field is set.
     */
    boolean hasAnalyticsProperties();
    /**
     * .cz.proto.AnalyticsProperties analytics_properties = 3;
     * @return The analyticsProperties.
     */
    cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getAnalyticsProperties();
    /**
     * .cz.proto.AnalyticsProperties analytics_properties = 3;
     */
    cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder();

    /**
     * .cz.proto.GeneralProperties general_properties = 4;
     * @return Whether the generalProperties field is set.
     */
    boolean hasGeneralProperties();
    /**
     * .cz.proto.GeneralProperties general_properties = 4;
     * @return The generalProperties.
     */
    cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getGeneralProperties();
    /**
     * .cz.proto.GeneralProperties general_properties = 4;
     */
    cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder();

    /**
     * optional int32 auto_stop_latency_sec = 5;
     * @return Whether the autoStopLatencySec field is set.
     */
    boolean hasAutoStopLatencySec();
    /**
     * optional int32 auto_stop_latency_sec = 5;
     * @return The autoStopLatencySec.
     */
    int getAutoStopLatencySec();

    /**
     * optional bool auto_start_enabled = 6;
     * @return Whether the autoStartEnabled field is set.
     */
    boolean hasAutoStartEnabled();
    /**
     * optional bool auto_start_enabled = 6;
     * @return The autoStartEnabled.
     */
    boolean getAutoStartEnabled();

    /**
     * map<string, string> tag = 7;
     */
    int getTagCount();
    /**
     * map<string, string> tag = 7;
     */
    boolean containsTag(
        java.lang.String key);
    /**
     * Use {@link #getTagMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map
    getTag();
    /**
     * map<string, string> tag = 7;
     */
    java.util.Map
    getTagMap();
    /**
     * map<string, string> tag = 7;
     */

    java.lang.String getTagOrDefault(
        java.lang.String key,
        java.lang.String defaultValue);
    /**
     * map<string, string> tag = 7;
     */

    java.lang.String getTagOrThrow(
        java.lang.String key);

    /**
     * optional int32 query_process_time_limit_sec = 9;
     * @return Whether the queryProcessTimeLimitSec field is set.
     */
    boolean hasQueryProcessTimeLimitSec();
    /**
     * optional int32 query_process_time_limit_sec = 9;
     * @return The queryProcessTimeLimitSec.
     */
    int getQueryProcessTimeLimitSec();

    /**
     * optional .com.clickzetta.rm.VirtualClusterState state = 10;
     * @return Whether the state field is set.
     */
    boolean hasState();
    /**
     * optional .com.clickzetta.rm.VirtualClusterState state = 10;
     * @return The enum numeric value on the wire for state.
     */
    int getStateValue();
    /**
     * optional .com.clickzetta.rm.VirtualClusterState state = 10;
     * @return The state.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getState();

    /**
     * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11;
     * @return Whether the preState field is set.
     */
    boolean hasPreState();
    /**
     * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11;
     * @return The enum numeric value on the wire for preState.
     */
    int getPreStateValue();
    /**
     * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11;
     * @return The preState.
     */
    com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getPreState();

    /**
     * optional string error_msg = 12;
     * @return Whether the errorMsg field is set.
     */
    boolean hasErrorMsg();
    /**
     * optional string error_msg = 12;
     * @return The errorMsg.
     */
    java.lang.String getErrorMsg();
    /**
     * optional string error_msg = 12;
     * @return The bytes for errorMsg.
     */
    com.google.protobuf.ByteString
        getErrorMsgBytes();

    /**
     * 
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; * @return Whether the jobInfo field is set. */ boolean hasJobInfo(); /** *
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; * @return The jobInfo. */ cz.proto.VirtualClusterMetaOuterClass.JobInfo getJobInfo(); /** *
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; */ cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder getJobInfoOrBuilder(); /** * optional int64 workspace_id = 14; * @return Whether the workspaceId field is set. */ boolean hasWorkspaceId(); /** * optional int64 workspace_id = 14; * @return The workspaceId. */ long getWorkspaceId(); /** * optional int64 vc_id = 15; * @return Whether the vcId field is set. */ boolean hasVcId(); /** * optional int64 vc_id = 15; * @return The vcId. */ long getVcId(); /** * optional string state_info = 16; * @return Whether the stateInfo field is set. */ boolean hasStateInfo(); /** * optional string state_info = 16; * @return The stateInfo. */ java.lang.String getStateInfo(); /** * optional string state_info = 16; * @return The bytes for stateInfo. */ com.google.protobuf.ByteString getStateInfoBytes(); /** * optional string version = 17; * @return Whether the version field is set. */ boolean hasVersion(); /** * optional string version = 17; * @return The version. */ java.lang.String getVersion(); /** * optional string version = 17; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); public cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.ResourceOneofCase getResourceOneofCase(); } /** * Protobuf type {@code cz.proto.VirtualClusterMeta} */ public static final class VirtualClusterMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cz.proto.VirtualClusterMeta) VirtualClusterMetaOrBuilder { private static final long serialVersionUID = 0L; // Use VirtualClusterMeta.newBuilder() to construct. private VirtualClusterMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VirtualClusterMeta() { clusterType_ = 0; clusterSize_ = 0; state_ = 0; preState_ = 0; errorMsg_ = ""; stateInfo_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VirtualClusterMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VirtualClusterMeta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { int rawValue = input.readEnum(); clusterType_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); bitField0_ |= 0x00000001; clusterSize_ = rawValue; break; } case 26: { cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder subBuilder = null; if (resourceOneofCase_ == 3) { subBuilder = ((cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_).toBuilder(); } resourceOneof_ = input.readMessage(cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_); resourceOneof_ = subBuilder.buildPartial(); } resourceOneofCase_ = 3; break; } case 34: { cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder subBuilder = null; if (resourceOneofCase_ == 4) { subBuilder = ((cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_).toBuilder(); } resourceOneof_ = input.readMessage(cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_); resourceOneof_ = subBuilder.buildPartial(); } resourceOneofCase_ = 4; break; } case 40: { bitField0_ |= 0x00000002; autoStopLatencySec_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000004; autoStartEnabled_ = input.readBool(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { tag_ = com.google.protobuf.MapField.newMapField( TagDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry tag__ = input.readMessage( TagDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); tag_.getMutableMap().put( tag__.getKey(), tag__.getValue()); break; } case 72: { bitField0_ |= 0x00000008; queryProcessTimeLimitSec_ = input.readInt32(); break; } case 80: { int rawValue = input.readEnum(); bitField0_ |= 0x00000010; state_ = rawValue; break; } case 88: { int rawValue = input.readEnum(); bitField0_ |= 0x00000020; preState_ = rawValue; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; errorMsg_ = s; break; } case 106: { cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) != 0)) { subBuilder = jobInfo_.toBuilder(); } jobInfo_ = input.readMessage(cz.proto.VirtualClusterMetaOuterClass.JobInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(jobInfo_); jobInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 112: { bitField0_ |= 0x00000100; workspaceId_ = input.readInt64(); break; } case 120: { bitField0_ |= 0x00000200; vcId_ = input.readInt64(); break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; stateInfo_ = s; break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; version_ = 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 cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.class, cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.Builder.class); } private int bitField0_; private int resourceOneofCase_ = 0; private java.lang.Object resourceOneof_; public enum ResourceOneofCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ANALYTICS_PROPERTIES(3), GENERAL_PROPERTIES(4), RESOURCEONEOF_NOT_SET(0); private final int value; private ResourceOneofCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResourceOneofCase valueOf(int value) { return forNumber(value); } public static ResourceOneofCase forNumber(int value) { switch (value) { case 3: return ANALYTICS_PROPERTIES; case 4: return GENERAL_PROPERTIES; case 0: return RESOURCEONEOF_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResourceOneofCase getResourceOneofCase() { return ResourceOneofCase.forNumber( resourceOneofCase_); } public static final int CLUSTER_TYPE_FIELD_NUMBER = 1; private int clusterType_; /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @return The enum numeric value on the wire for clusterType. */ @java.lang.Override public int getClusterTypeValue() { return clusterType_; } /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @return The clusterType. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.valueOf(clusterType_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.UNRECOGNIZED : result; } public static final int CLUSTER_SIZE_FIELD_NUMBER = 2; private int clusterSize_; /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return Whether the clusterSize field is set. */ @java.lang.Override public boolean hasClusterSize() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return The enum numeric value on the wire for clusterSize. */ @java.lang.Override public int getClusterSizeValue() { return clusterSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return The clusterSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } public static final int ANALYTICS_PROPERTIES_FIELD_NUMBER = 3; /** * .cz.proto.AnalyticsProperties analytics_properties = 3; * @return Whether the analyticsProperties field is set. */ @java.lang.Override public boolean hasAnalyticsProperties() { return resourceOneofCase_ == 3; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; * @return The analyticsProperties. */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getAnalyticsProperties() { if (resourceOneofCase_ == 3) { return (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder() { if (resourceOneofCase_ == 3) { return (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } public static final int GENERAL_PROPERTIES_FIELD_NUMBER = 4; /** * .cz.proto.GeneralProperties general_properties = 4; * @return Whether the generalProperties field is set. */ @java.lang.Override public boolean hasGeneralProperties() { return resourceOneofCase_ == 4; } /** * .cz.proto.GeneralProperties general_properties = 4; * @return The generalProperties. */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getGeneralProperties() { if (resourceOneofCase_ == 4) { return (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } /** * .cz.proto.GeneralProperties general_properties = 4; */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder() { if (resourceOneofCase_ == 4) { return (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } public static final int AUTO_STOP_LATENCY_SEC_FIELD_NUMBER = 5; private int autoStopLatencySec_; /** * optional int32 auto_stop_latency_sec = 5; * @return Whether the autoStopLatencySec field is set. */ @java.lang.Override public boolean hasAutoStopLatencySec() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 auto_stop_latency_sec = 5; * @return The autoStopLatencySec. */ @java.lang.Override public int getAutoStopLatencySec() { return autoStopLatencySec_; } public static final int AUTO_START_ENABLED_FIELD_NUMBER = 6; private boolean autoStartEnabled_; /** * optional bool auto_start_enabled = 6; * @return Whether the autoStartEnabled field is set. */ @java.lang.Override public boolean hasAutoStartEnabled() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool auto_start_enabled = 6; * @return The autoStartEnabled. */ @java.lang.Override public boolean getAutoStartEnabled() { return autoStartEnabled_; } public static final int TAG_FIELD_NUMBER = 7; private static final class TagDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_TagEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> tag_; private com.google.protobuf.MapField internalGetTag() { if (tag_ == null) { return com.google.protobuf.MapField.emptyMapField( TagDefaultEntryHolder.defaultEntry); } return tag_; } public int getTagCount() { return internalGetTag().getMap().size(); } /** * map<string, string> tag = 7; */ @java.lang.Override public boolean containsTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTag().getMap().containsKey(key); } /** * Use {@link #getTagMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTag() { return getTagMap(); } /** * map<string, string> tag = 7; */ @java.lang.Override public java.util.Map getTagMap() { return internalGetTag().getMap(); } /** * map<string, string> tag = 7; */ @java.lang.Override public java.lang.String getTagOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> tag = 7; */ @java.lang.Override public java.lang.String getTagOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int QUERY_PROCESS_TIME_LIMIT_SEC_FIELD_NUMBER = 9; private int queryProcessTimeLimitSec_; /** * optional int32 query_process_time_limit_sec = 9; * @return Whether the queryProcessTimeLimitSec field is set. */ @java.lang.Override public boolean hasQueryProcessTimeLimitSec() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 query_process_time_limit_sec = 9; * @return The queryProcessTimeLimitSec. */ @java.lang.Override public int getQueryProcessTimeLimitSec() { return queryProcessTimeLimitSec_; } public static final int STATE_FIELD_NUMBER = 10; private int state_; /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return The state. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getState() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState result = com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.valueOf(state_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.UNRECOGNIZED : result; } public static final int PRE_STATE_FIELD_NUMBER = 11; private int preState_; /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return Whether the preState field is set. */ @java.lang.Override public boolean hasPreState() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return The enum numeric value on the wire for preState. */ @java.lang.Override public int getPreStateValue() { return preState_; } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return The preState. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getPreState() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState result = com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.valueOf(preState_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.UNRECOGNIZED : result; } public static final int ERROR_MSG_FIELD_NUMBER = 12; private volatile java.lang.Object errorMsg_; /** * optional string error_msg = 12; * @return Whether the errorMsg field is set. */ @java.lang.Override public boolean hasErrorMsg() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string error_msg = 12; * @return The errorMsg. */ @java.lang.Override public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; 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(); errorMsg_ = s; return s; } } /** * optional string error_msg = 12; * @return The bytes for errorMsg. */ @java.lang.Override public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JOB_INFO_FIELD_NUMBER = 13; private cz.proto.VirtualClusterMetaOuterClass.JobInfo jobInfo_; /** *
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; * @return Whether the jobInfo field is set. */ @java.lang.Override public boolean hasJobInfo() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; * @return The jobInfo. */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.JobInfo getJobInfo() { return jobInfo_ == null ? cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance() : jobInfo_; } /** *
     * job info is not stored in meta
     * 
* * optional .cz.proto.JobInfo job_info = 13; */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder getJobInfoOrBuilder() { return jobInfo_ == null ? cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance() : jobInfo_; } public static final int WORKSPACE_ID_FIELD_NUMBER = 14; private long workspaceId_; /** * optional int64 workspace_id = 14; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000100) != 0); } /** * optional int64 workspace_id = 14; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } public static final int VC_ID_FIELD_NUMBER = 15; private long vcId_; /** * optional int64 vc_id = 15; * @return Whether the vcId field is set. */ @java.lang.Override public boolean hasVcId() { return ((bitField0_ & 0x00000200) != 0); } /** * optional int64 vc_id = 15; * @return The vcId. */ @java.lang.Override public long getVcId() { return vcId_; } public static final int STATE_INFO_FIELD_NUMBER = 16; private volatile java.lang.Object stateInfo_; /** * optional string state_info = 16; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return ((bitField0_ & 0x00000400) != 0); } /** * optional string state_info = 16; * @return The stateInfo. */ @java.lang.Override public java.lang.String getStateInfo() { java.lang.Object ref = stateInfo_; 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(); stateInfo_ = s; return s; } } /** * optional string state_info = 16; * @return The bytes for stateInfo. */ @java.lang.Override public com.google.protobuf.ByteString getStateInfoBytes() { java.lang.Object ref = stateInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stateInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 17; private volatile java.lang.Object version_; /** * optional string version = 17; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000800) != 0); } /** * optional string version = 17; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * optional string version = 17; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = 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 (clusterType_ != com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.GENERAL.getNumber()) { output.writeEnum(1, clusterType_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(2, clusterSize_); } if (resourceOneofCase_ == 3) { output.writeMessage(3, (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_); } if (resourceOneofCase_ == 4) { output.writeMessage(4, (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(5, autoStopLatencySec_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(6, autoStartEnabled_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTag(), TagDefaultEntryHolder.defaultEntry, 7); if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(9, queryProcessTimeLimitSec_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(10, state_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(11, preState_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, errorMsg_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(13, getJobInfo()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(14, workspaceId_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(15, vcId_); } if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, stateInfo_); } if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, version_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterType_ != com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.GENERAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, clusterType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, clusterSize_); } if (resourceOneofCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_); } if (resourceOneofCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, autoStopLatencySec_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, autoStartEnabled_); } for (java.util.Map.Entry entry : internalGetTag().getMap().entrySet()) { com.google.protobuf.MapEntry tag__ = TagDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, tag__); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, queryProcessTimeLimitSec_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, state_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, preState_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, errorMsg_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getJobInfo()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, workspaceId_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, vcId_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, stateInfo_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, version_); } 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 cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta)) { return super.equals(obj); } cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta other = (cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta) obj; if (clusterType_ != other.clusterType_) return false; if (hasClusterSize() != other.hasClusterSize()) return false; if (hasClusterSize()) { if (clusterSize_ != other.clusterSize_) return false; } if (hasAutoStopLatencySec() != other.hasAutoStopLatencySec()) return false; if (hasAutoStopLatencySec()) { if (getAutoStopLatencySec() != other.getAutoStopLatencySec()) return false; } if (hasAutoStartEnabled() != other.hasAutoStartEnabled()) return false; if (hasAutoStartEnabled()) { if (getAutoStartEnabled() != other.getAutoStartEnabled()) return false; } if (!internalGetTag().equals( other.internalGetTag())) return false; if (hasQueryProcessTimeLimitSec() != other.hasQueryProcessTimeLimitSec()) return false; if (hasQueryProcessTimeLimitSec()) { if (getQueryProcessTimeLimitSec() != other.getQueryProcessTimeLimitSec()) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { if (state_ != other.state_) return false; } if (hasPreState() != other.hasPreState()) return false; if (hasPreState()) { if (preState_ != other.preState_) return false; } if (hasErrorMsg() != other.hasErrorMsg()) return false; if (hasErrorMsg()) { if (!getErrorMsg() .equals(other.getErrorMsg())) return false; } if (hasJobInfo() != other.hasJobInfo()) return false; if (hasJobInfo()) { if (!getJobInfo() .equals(other.getJobInfo())) return false; } if (hasWorkspaceId() != other.hasWorkspaceId()) return false; if (hasWorkspaceId()) { if (getWorkspaceId() != other.getWorkspaceId()) return false; } if (hasVcId() != other.hasVcId()) return false; if (hasVcId()) { if (getVcId() != other.getVcId()) return false; } if (hasStateInfo() != other.hasStateInfo()) return false; if (hasStateInfo()) { if (!getStateInfo() .equals(other.getStateInfo())) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) return false; } if (!getResourceOneofCase().equals(other.getResourceOneofCase())) return false; switch (resourceOneofCase_) { case 3: if (!getAnalyticsProperties() .equals(other.getAnalyticsProperties())) return false; break; case 4: if (!getGeneralProperties() .equals(other.getGeneralProperties())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; hash = (53 * hash) + clusterType_; if (hasClusterSize()) { hash = (37 * hash) + CLUSTER_SIZE_FIELD_NUMBER; hash = (53 * hash) + clusterSize_; } if (hasAutoStopLatencySec()) { hash = (37 * hash) + AUTO_STOP_LATENCY_SEC_FIELD_NUMBER; hash = (53 * hash) + getAutoStopLatencySec(); } if (hasAutoStartEnabled()) { hash = (37 * hash) + AUTO_START_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoStartEnabled()); } if (!internalGetTag().getMap().isEmpty()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + internalGetTag().hashCode(); } if (hasQueryProcessTimeLimitSec()) { hash = (37 * hash) + QUERY_PROCESS_TIME_LIMIT_SEC_FIELD_NUMBER; hash = (53 * hash) + getQueryProcessTimeLimitSec(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; } if (hasPreState()) { hash = (37 * hash) + PRE_STATE_FIELD_NUMBER; hash = (53 * hash) + preState_; } if (hasErrorMsg()) { hash = (37 * hash) + ERROR_MSG_FIELD_NUMBER; hash = (53 * hash) + getErrorMsg().hashCode(); } if (hasJobInfo()) { hash = (37 * hash) + JOB_INFO_FIELD_NUMBER; hash = (53 * hash) + getJobInfo().hashCode(); } if (hasWorkspaceId()) { hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkspaceId()); } if (hasVcId()) { hash = (37 * hash) + VC_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVcId()); } if (hasStateInfo()) { hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } switch (resourceOneofCase_) { case 3: hash = (37 * hash) + ANALYTICS_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getAnalyticsProperties().hashCode(); break; case 4: hash = (37 * hash) + GENERAL_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getGeneralProperties().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta 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 cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta 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 cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta 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(cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta 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 cz.proto.VirtualClusterMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cz.proto.VirtualClusterMeta) cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 7: return internalGetMutableTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.class, cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.Builder.class); } // Construct using cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getJobInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); clusterType_ = 0; clusterSize_ = 0; bitField0_ = (bitField0_ & ~0x00000001); autoStopLatencySec_ = 0; bitField0_ = (bitField0_ & ~0x00000002); autoStartEnabled_ = false; bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTag().clear(); queryProcessTimeLimitSec_ = 0; bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; bitField0_ = (bitField0_ & ~0x00000020); preState_ = 0; bitField0_ = (bitField0_ & ~0x00000040); errorMsg_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (jobInfoBuilder_ == null) { jobInfo_ = null; } else { jobInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); workspaceId_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); vcId_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); stateInfo_ = ""; bitField0_ = (bitField0_ & ~0x00000800); version_ = ""; bitField0_ = (bitField0_ & ~0x00001000); resourceOneofCase_ = 0; resourceOneof_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cz.proto.VirtualClusterMetaOuterClass.internal_static_cz_proto_VirtualClusterMeta_descriptor; } @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta getDefaultInstanceForType() { return cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.getDefaultInstance(); } @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta build() { cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta buildPartial() { cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta result = new cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.clusterType_ = clusterType_; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.clusterSize_ = clusterSize_; if (resourceOneofCase_ == 3) { if (analyticsPropertiesBuilder_ == null) { result.resourceOneof_ = resourceOneof_; } else { result.resourceOneof_ = analyticsPropertiesBuilder_.build(); } } if (resourceOneofCase_ == 4) { if (generalPropertiesBuilder_ == null) { result.resourceOneof_ = resourceOneof_; } else { result.resourceOneof_ = generalPropertiesBuilder_.build(); } } if (((from_bitField0_ & 0x00000002) != 0)) { result.autoStopLatencySec_ = autoStopLatencySec_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoStartEnabled_ = autoStartEnabled_; to_bitField0_ |= 0x00000004; } result.tag_ = internalGetTag(); result.tag_.makeImmutable(); if (((from_bitField0_ & 0x00000010) != 0)) { result.queryProcessTimeLimitSec_ = queryProcessTimeLimitSec_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000010; } result.state_ = state_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000020; } result.preState_ = preState_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000040; } result.errorMsg_ = errorMsg_; if (((from_bitField0_ & 0x00000100) != 0)) { if (jobInfoBuilder_ == null) { result.jobInfo_ = jobInfo_; } else { result.jobInfo_ = jobInfoBuilder_.build(); } to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { result.workspaceId_ = workspaceId_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.vcId_ = vcId_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { to_bitField0_ |= 0x00000400; } result.stateInfo_ = stateInfo_; if (((from_bitField0_ & 0x00001000) != 0)) { to_bitField0_ |= 0x00000800; } result.version_ = version_; result.bitField0_ = to_bitField0_; result.resourceOneofCase_ = resourceOneofCase_; 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 cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta) { return mergeFrom((cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta other) { if (other == cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta.getDefaultInstance()) return this; if (other.clusterType_ != 0) { setClusterTypeValue(other.getClusterTypeValue()); } if (other.hasClusterSize()) { setClusterSize(other.getClusterSize()); } if (other.hasAutoStopLatencySec()) { setAutoStopLatencySec(other.getAutoStopLatencySec()); } if (other.hasAutoStartEnabled()) { setAutoStartEnabled(other.getAutoStartEnabled()); } internalGetMutableTag().mergeFrom( other.internalGetTag()); if (other.hasQueryProcessTimeLimitSec()) { setQueryProcessTimeLimitSec(other.getQueryProcessTimeLimitSec()); } if (other.hasState()) { setState(other.getState()); } if (other.hasPreState()) { setPreState(other.getPreState()); } if (other.hasErrorMsg()) { bitField0_ |= 0x00000080; errorMsg_ = other.errorMsg_; onChanged(); } if (other.hasJobInfo()) { mergeJobInfo(other.getJobInfo()); } if (other.hasWorkspaceId()) { setWorkspaceId(other.getWorkspaceId()); } if (other.hasVcId()) { setVcId(other.getVcId()); } if (other.hasStateInfo()) { bitField0_ |= 0x00000800; stateInfo_ = other.stateInfo_; onChanged(); } if (other.hasVersion()) { bitField0_ |= 0x00001000; version_ = other.version_; onChanged(); } switch (other.getResourceOneofCase()) { case ANALYTICS_PROPERTIES: { mergeAnalyticsProperties(other.getAnalyticsProperties()); break; } case GENERAL_PROPERTIES: { mergeGeneralProperties(other.getGeneralProperties()); break; } case RESOURCEONEOF_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resourceOneofCase_ = 0; private java.lang.Object resourceOneof_; public ResourceOneofCase getResourceOneofCase() { return ResourceOneofCase.forNumber( resourceOneofCase_); } public Builder clearResourceOneof() { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); return this; } private int bitField0_; private int clusterType_ = 0; /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @return The enum numeric value on the wire for clusterType. */ @java.lang.Override public int getClusterTypeValue() { return clusterType_; } /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @param value The enum numeric value on the wire for clusterType to set. * @return This builder for chaining. */ public Builder setClusterTypeValue(int value) { clusterType_ = value; onChanged(); return this; } /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @return The clusterType. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.valueOf(clusterType_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.UNRECOGNIZED : result; } /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @param value The clusterType to set. * @return This builder for chaining. */ public Builder setClusterType(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType value) { if (value == null) { throw new NullPointerException(); } clusterType_ = value.getNumber(); onChanged(); return this; } /** * .com.clickzetta.rm.VClusterType cluster_type = 1; * @return This builder for chaining. */ public Builder clearClusterType() { clusterType_ = 0; onChanged(); return this; } private int clusterSize_ = 0; /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return Whether the clusterSize field is set. */ @java.lang.Override public boolean hasClusterSize() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return The enum numeric value on the wire for clusterSize. */ @java.lang.Override public int getClusterSizeValue() { return clusterSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @param value The enum numeric value on the wire for clusterSize to set. * @return This builder for chaining. */ public Builder setClusterSizeValue(int value) { bitField0_ |= 0x00000001; clusterSize_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return The clusterSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @param value The clusterSize to set. * @return This builder for chaining. */ public Builder setClusterSize(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clusterSize_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 2; * @return This builder for chaining. */ public Builder clearClusterSize() { bitField0_ = (bitField0_ & ~0x00000001); clusterSize_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties, cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder> analyticsPropertiesBuilder_; /** * .cz.proto.AnalyticsProperties analytics_properties = 3; * @return Whether the analyticsProperties field is set. */ @java.lang.Override public boolean hasAnalyticsProperties() { return resourceOneofCase_ == 3; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; * @return The analyticsProperties. */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties getAnalyticsProperties() { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 3) { return (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } else { if (resourceOneofCase_ == 3) { return analyticsPropertiesBuilder_.getMessage(); } return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ public Builder setAnalyticsProperties(cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties value) { if (analyticsPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceOneof_ = value; onChanged(); } else { analyticsPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 3; return this; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ public Builder setAnalyticsProperties( cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder builderForValue) { if (analyticsPropertiesBuilder_ == null) { resourceOneof_ = builderForValue.build(); onChanged(); } else { analyticsPropertiesBuilder_.setMessage(builderForValue.build()); } resourceOneofCase_ = 3; return this; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ public Builder mergeAnalyticsProperties(cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties value) { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 3 && resourceOneof_ != cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance()) { resourceOneof_ = cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.newBuilder((cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_) .mergeFrom(value).buildPartial(); } else { resourceOneof_ = value; } onChanged(); } else { if (resourceOneofCase_ == 3) { analyticsPropertiesBuilder_.mergeFrom(value); } analyticsPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 3; return this; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ public Builder clearAnalyticsProperties() { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 3) { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); } } else { if (resourceOneofCase_ == 3) { resourceOneofCase_ = 0; resourceOneof_ = null; } analyticsPropertiesBuilder_.clear(); } return this; } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ public cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder getAnalyticsPropertiesBuilder() { return getAnalyticsPropertiesFieldBuilder().getBuilder(); } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder() { if ((resourceOneofCase_ == 3) && (analyticsPropertiesBuilder_ != null)) { return analyticsPropertiesBuilder_.getMessageOrBuilder(); } else { if (resourceOneofCase_ == 3) { return (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } } /** * .cz.proto.AnalyticsProperties analytics_properties = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties, cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder> getAnalyticsPropertiesFieldBuilder() { if (analyticsPropertiesBuilder_ == null) { if (!(resourceOneofCase_ == 3)) { resourceOneof_ = cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.getDefaultInstance(); } analyticsPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties, cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.AnalyticsPropertiesOrBuilder>( (cz.proto.VirtualClusterMetaOuterClass.AnalyticsProperties) resourceOneof_, getParentForChildren(), isClean()); resourceOneof_ = null; } resourceOneofCase_ = 3; onChanged();; return analyticsPropertiesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.GeneralProperties, cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder> generalPropertiesBuilder_; /** * .cz.proto.GeneralProperties general_properties = 4; * @return Whether the generalProperties field is set. */ @java.lang.Override public boolean hasGeneralProperties() { return resourceOneofCase_ == 4; } /** * .cz.proto.GeneralProperties general_properties = 4; * @return The generalProperties. */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties getGeneralProperties() { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 4) { return (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } else { if (resourceOneofCase_ == 4) { return generalPropertiesBuilder_.getMessage(); } return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } } /** * .cz.proto.GeneralProperties general_properties = 4; */ public Builder setGeneralProperties(cz.proto.VirtualClusterMetaOuterClass.GeneralProperties value) { if (generalPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceOneof_ = value; onChanged(); } else { generalPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 4; return this; } /** * .cz.proto.GeneralProperties general_properties = 4; */ public Builder setGeneralProperties( cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder builderForValue) { if (generalPropertiesBuilder_ == null) { resourceOneof_ = builderForValue.build(); onChanged(); } else { generalPropertiesBuilder_.setMessage(builderForValue.build()); } resourceOneofCase_ = 4; return this; } /** * .cz.proto.GeneralProperties general_properties = 4; */ public Builder mergeGeneralProperties(cz.proto.VirtualClusterMetaOuterClass.GeneralProperties value) { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 4 && resourceOneof_ != cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance()) { resourceOneof_ = cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.newBuilder((cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_) .mergeFrom(value).buildPartial(); } else { resourceOneof_ = value; } onChanged(); } else { if (resourceOneofCase_ == 4) { generalPropertiesBuilder_.mergeFrom(value); } generalPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 4; return this; } /** * .cz.proto.GeneralProperties general_properties = 4; */ public Builder clearGeneralProperties() { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 4) { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); } } else { if (resourceOneofCase_ == 4) { resourceOneofCase_ = 0; resourceOneof_ = null; } generalPropertiesBuilder_.clear(); } return this; } /** * .cz.proto.GeneralProperties general_properties = 4; */ public cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder getGeneralPropertiesBuilder() { return getGeneralPropertiesFieldBuilder().getBuilder(); } /** * .cz.proto.GeneralProperties general_properties = 4; */ @java.lang.Override public cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder() { if ((resourceOneofCase_ == 4) && (generalPropertiesBuilder_ != null)) { return generalPropertiesBuilder_.getMessageOrBuilder(); } else { if (resourceOneofCase_ == 4) { return (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_; } return cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } } /** * .cz.proto.GeneralProperties general_properties = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.GeneralProperties, cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder> getGeneralPropertiesFieldBuilder() { if (generalPropertiesBuilder_ == null) { if (!(resourceOneofCase_ == 4)) { resourceOneof_ = cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.getDefaultInstance(); } generalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.GeneralProperties, cz.proto.VirtualClusterMetaOuterClass.GeneralProperties.Builder, cz.proto.VirtualClusterMetaOuterClass.GeneralPropertiesOrBuilder>( (cz.proto.VirtualClusterMetaOuterClass.GeneralProperties) resourceOneof_, getParentForChildren(), isClean()); resourceOneof_ = null; } resourceOneofCase_ = 4; onChanged();; return generalPropertiesBuilder_; } private int autoStopLatencySec_ ; /** * optional int32 auto_stop_latency_sec = 5; * @return Whether the autoStopLatencySec field is set. */ @java.lang.Override public boolean hasAutoStopLatencySec() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 auto_stop_latency_sec = 5; * @return The autoStopLatencySec. */ @java.lang.Override public int getAutoStopLatencySec() { return autoStopLatencySec_; } /** * optional int32 auto_stop_latency_sec = 5; * @param value The autoStopLatencySec to set. * @return This builder for chaining. */ public Builder setAutoStopLatencySec(int value) { bitField0_ |= 0x00000002; autoStopLatencySec_ = value; onChanged(); return this; } /** * optional int32 auto_stop_latency_sec = 5; * @return This builder for chaining. */ public Builder clearAutoStopLatencySec() { bitField0_ = (bitField0_ & ~0x00000002); autoStopLatencySec_ = 0; onChanged(); return this; } private boolean autoStartEnabled_ ; /** * optional bool auto_start_enabled = 6; * @return Whether the autoStartEnabled field is set. */ @java.lang.Override public boolean hasAutoStartEnabled() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool auto_start_enabled = 6; * @return The autoStartEnabled. */ @java.lang.Override public boolean getAutoStartEnabled() { return autoStartEnabled_; } /** * optional bool auto_start_enabled = 6; * @param value The autoStartEnabled to set. * @return This builder for chaining. */ public Builder setAutoStartEnabled(boolean value) { bitField0_ |= 0x00000004; autoStartEnabled_ = value; onChanged(); return this; } /** * optional bool auto_start_enabled = 6; * @return This builder for chaining. */ public Builder clearAutoStartEnabled() { bitField0_ = (bitField0_ & ~0x00000004); autoStartEnabled_ = false; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> tag_; private com.google.protobuf.MapField internalGetTag() { if (tag_ == null) { return com.google.protobuf.MapField.emptyMapField( TagDefaultEntryHolder.defaultEntry); } return tag_; } private com.google.protobuf.MapField internalGetMutableTag() { onChanged();; if (tag_ == null) { tag_ = com.google.protobuf.MapField.newMapField( TagDefaultEntryHolder.defaultEntry); } if (!tag_.isMutable()) { tag_ = tag_.copy(); } return tag_; } public int getTagCount() { return internalGetTag().getMap().size(); } /** * map<string, string> tag = 7; */ @java.lang.Override public boolean containsTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTag().getMap().containsKey(key); } /** * Use {@link #getTagMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTag() { return getTagMap(); } /** * map<string, string> tag = 7; */ @java.lang.Override public java.util.Map getTagMap() { return internalGetTag().getMap(); } /** * map<string, string> tag = 7; */ @java.lang.Override public java.lang.String getTagOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> tag = 7; */ @java.lang.Override public java.lang.String getTagOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTag() { internalGetMutableTag().getMutableMap() .clear(); return this; } /** * map<string, string> tag = 7; */ public Builder removeTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTag().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTag() { return internalGetMutableTag().getMutableMap(); } /** * map<string, string> tag = 7; */ public Builder putTag( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTag().getMutableMap() .put(key, value); return this; } /** * map<string, string> tag = 7; */ public Builder putAllTag( java.util.Map values) { internalGetMutableTag().getMutableMap() .putAll(values); return this; } private int queryProcessTimeLimitSec_ ; /** * optional int32 query_process_time_limit_sec = 9; * @return Whether the queryProcessTimeLimitSec field is set. */ @java.lang.Override public boolean hasQueryProcessTimeLimitSec() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 query_process_time_limit_sec = 9; * @return The queryProcessTimeLimitSec. */ @java.lang.Override public int getQueryProcessTimeLimitSec() { return queryProcessTimeLimitSec_; } /** * optional int32 query_process_time_limit_sec = 9; * @param value The queryProcessTimeLimitSec to set. * @return This builder for chaining. */ public Builder setQueryProcessTimeLimitSec(int value) { bitField0_ |= 0x00000010; queryProcessTimeLimitSec_ = value; onChanged(); return this; } /** * optional int32 query_process_time_limit_sec = 9; * @return This builder for chaining. */ public Builder clearQueryProcessTimeLimitSec() { bitField0_ = (bitField0_ & ~0x00000010); queryProcessTimeLimitSec_ = 0; onChanged(); return this; } private int state_ = 0; /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { bitField0_ |= 0x00000020; state_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return The state. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getState() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState result = com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.valueOf(state_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VirtualClusterState state = 10; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; } private int preState_ = 0; /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return Whether the preState field is set. */ @java.lang.Override public boolean hasPreState() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return The enum numeric value on the wire for preState. */ @java.lang.Override public int getPreStateValue() { return preState_; } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @param value The enum numeric value on the wire for preState to set. * @return This builder for chaining. */ public Builder setPreStateValue(int value) { bitField0_ |= 0x00000040; preState_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return The preState. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState getPreState() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState result = com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.valueOf(preState_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @param value The preState to set. * @return This builder for chaining. */ public Builder setPreState(com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; preState_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VirtualClusterState pre_state = 11; * @return This builder for chaining. */ public Builder clearPreState() { bitField0_ = (bitField0_ & ~0x00000040); preState_ = 0; onChanged(); return this; } private java.lang.Object errorMsg_ = ""; /** * optional string error_msg = 12; * @return Whether the errorMsg field is set. */ public boolean hasErrorMsg() { return ((bitField0_ & 0x00000080) != 0); } /** * optional string error_msg = 12; * @return The errorMsg. */ public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMsg_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string error_msg = 12; * @return The bytes for errorMsg. */ public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_msg = 12; * @param value The errorMsg to set. * @return This builder for chaining. */ public Builder setErrorMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; errorMsg_ = value; onChanged(); return this; } /** * optional string error_msg = 12; * @return This builder for chaining. */ public Builder clearErrorMsg() { bitField0_ = (bitField0_ & ~0x00000080); errorMsg_ = getDefaultInstance().getErrorMsg(); onChanged(); return this; } /** * optional string error_msg = 12; * @param value The bytes for errorMsg to set. * @return This builder for chaining. */ public Builder setErrorMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000080; errorMsg_ = value; onChanged(); return this; } private cz.proto.VirtualClusterMetaOuterClass.JobInfo jobInfo_; private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.JobInfo, cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder, cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder> jobInfoBuilder_; /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; * @return Whether the jobInfo field is set. */ public boolean hasJobInfo() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; * @return The jobInfo. */ public cz.proto.VirtualClusterMetaOuterClass.JobInfo getJobInfo() { if (jobInfoBuilder_ == null) { return jobInfo_ == null ? cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance() : jobInfo_; } else { return jobInfoBuilder_.getMessage(); } } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public Builder setJobInfo(cz.proto.VirtualClusterMetaOuterClass.JobInfo value) { if (jobInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } jobInfo_ = value; onChanged(); } else { jobInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public Builder setJobInfo( cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder builderForValue) { if (jobInfoBuilder_ == null) { jobInfo_ = builderForValue.build(); onChanged(); } else { jobInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public Builder mergeJobInfo(cz.proto.VirtualClusterMetaOuterClass.JobInfo value) { if (jobInfoBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && jobInfo_ != null && jobInfo_ != cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance()) { jobInfo_ = cz.proto.VirtualClusterMetaOuterClass.JobInfo.newBuilder(jobInfo_).mergeFrom(value).buildPartial(); } else { jobInfo_ = value; } onChanged(); } else { jobInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public Builder clearJobInfo() { if (jobInfoBuilder_ == null) { jobInfo_ = null; onChanged(); } else { jobInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder getJobInfoBuilder() { bitField0_ |= 0x00000100; onChanged(); return getJobInfoFieldBuilder().getBuilder(); } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ public cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder getJobInfoOrBuilder() { if (jobInfoBuilder_ != null) { return jobInfoBuilder_.getMessageOrBuilder(); } else { return jobInfo_ == null ? cz.proto.VirtualClusterMetaOuterClass.JobInfo.getDefaultInstance() : jobInfo_; } } /** *
       * job info is not stored in meta
       * 
* * optional .cz.proto.JobInfo job_info = 13; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.JobInfo, cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder, cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder> getJobInfoFieldBuilder() { if (jobInfoBuilder_ == null) { jobInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.VirtualClusterMetaOuterClass.JobInfo, cz.proto.VirtualClusterMetaOuterClass.JobInfo.Builder, cz.proto.VirtualClusterMetaOuterClass.JobInfoOrBuilder>( getJobInfo(), getParentForChildren(), isClean()); jobInfo_ = null; } return jobInfoBuilder_; } private long workspaceId_ ; /** * optional int64 workspace_id = 14; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000200) != 0); } /** * optional int64 workspace_id = 14; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } /** * optional int64 workspace_id = 14; * @param value The workspaceId to set. * @return This builder for chaining. */ public Builder setWorkspaceId(long value) { bitField0_ |= 0x00000200; workspaceId_ = value; onChanged(); return this; } /** * optional int64 workspace_id = 14; * @return This builder for chaining. */ public Builder clearWorkspaceId() { bitField0_ = (bitField0_ & ~0x00000200); workspaceId_ = 0L; onChanged(); return this; } private long vcId_ ; /** * optional int64 vc_id = 15; * @return Whether the vcId field is set. */ @java.lang.Override public boolean hasVcId() { return ((bitField0_ & 0x00000400) != 0); } /** * optional int64 vc_id = 15; * @return The vcId. */ @java.lang.Override public long getVcId() { return vcId_; } /** * optional int64 vc_id = 15; * @param value The vcId to set. * @return This builder for chaining. */ public Builder setVcId(long value) { bitField0_ |= 0x00000400; vcId_ = value; onChanged(); return this; } /** * optional int64 vc_id = 15; * @return This builder for chaining. */ public Builder clearVcId() { bitField0_ = (bitField0_ & ~0x00000400); vcId_ = 0L; onChanged(); return this; } private java.lang.Object stateInfo_ = ""; /** * optional string state_info = 16; * @return Whether the stateInfo field is set. */ public boolean hasStateInfo() { return ((bitField0_ & 0x00000800) != 0); } /** * optional string state_info = 16; * @return The stateInfo. */ public java.lang.String getStateInfo() { java.lang.Object ref = stateInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string state_info = 16; * @return The bytes for stateInfo. */ public com.google.protobuf.ByteString getStateInfoBytes() { java.lang.Object ref = stateInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stateInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string state_info = 16; * @param value The stateInfo to set. * @return This builder for chaining. */ public Builder setStateInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; stateInfo_ = value; onChanged(); return this; } /** * optional string state_info = 16; * @return This builder for chaining. */ public Builder clearStateInfo() { bitField0_ = (bitField0_ & ~0x00000800); stateInfo_ = getDefaultInstance().getStateInfo(); onChanged(); return this; } /** * optional string state_info = 16; * @param value The bytes for stateInfo to set. * @return This builder for chaining. */ public Builder setStateInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000800; stateInfo_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** * optional string version = 17; * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00001000) != 0); } /** * optional string version = 17; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string version = 17; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string version = 17; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; version_ = value; onChanged(); return this; } /** * optional string version = 17; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00001000); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * optional string version = 17; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00001000; version_ = 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:cz.proto.VirtualClusterMeta) } // @@protoc_insertion_point(class_scope:cz.proto.VirtualClusterMeta) private static final cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta(); } public static cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VirtualClusterMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VirtualClusterMeta(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 cz.proto.VirtualClusterMetaOuterClass.VirtualClusterMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_AnalyticsProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_AnalyticsProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_GeneralProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_GeneralProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_JobInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_JobInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_VirtualClusterMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_VirtualClusterMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cz_proto_VirtualClusterMeta_TagEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cz_proto_VirtualClusterMeta_TagEntry_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\032virtual_cluster_meta.proto\022\010cz.proto\032\025" + "virtual_cluster.proto\"\337\002\n\023AnalyticsPrope" + "rties\022\031\n\014min_replicas\030\001 \001(\005H\000\210\001\001\022\031\n\014max_" + "replicas\030\002 \001(\005H\001\210\001\001\022(\n\033max_concurrency_p" + "er_replica\030\003 \001(\005H\002\210\001\001\0229\n\014scale_policy\030\004 " + "\001(\0162\036.com.clickzetta.rm.ScalePolicyH\003\210\001\001" + "\022\031\n\014cur_replicas\030\005 \001(\005H\004\210\001\001\022\033\n\016preload_t" + "ables\030\006 \001(\tH\005\210\001\001B\017\n\r_min_replicasB\017\n\r_ma" + "x_replicasB\036\n\034_max_concurrency_per_repli" + "caB\017\n\r_scale_policyB\017\n\r_cur_replicasB\021\n\017" + "_preload_tables\"h\n\021GeneralProperties\022>\n\020" + "cluster_max_size\030\001 \001(\0162\037.com.clickzetta." + "rm.VClusterSizeH\000\210\001\001B\023\n\021_cluster_max_siz" + "e\"c\n\007JobInfo\022\031\n\014jobs_running\030\001 \001(\005H\000\210\001\001\022" + "\032\n\rjobs_in_queue\030\002 \001(\005H\001\210\001\001B\017\n\r_jobs_run" + "ningB\020\n\016_jobs_in_queue\"\313\007\n\022VirtualCluste" + "rMeta\0225\n\014cluster_type\030\001 \001(\0162\037.com.clickz" + "etta.rm.VClusterType\022:\n\014cluster_size\030\002 \001" + "(\0162\037.com.clickzetta.rm.VClusterSizeH\001\210\001\001" + "\022=\n\024analytics_properties\030\003 \001(\0132\035.cz.prot" + "o.AnalyticsPropertiesH\000\0229\n\022general_prope" + "rties\030\004 \001(\0132\033.cz.proto.GeneralProperties" + "H\000\022\"\n\025auto_stop_latency_sec\030\005 \001(\005H\002\210\001\001\022\037" + "\n\022auto_start_enabled\030\006 \001(\010H\003\210\001\001\0222\n\003tag\030\007" + " \003(\0132%.cz.proto.VirtualClusterMeta.TagEn" + "try\022)\n\034query_process_time_limit_sec\030\t \001(" + "\005H\004\210\001\001\022:\n\005state\030\n \001(\0162&.com.clickzetta.r" + "m.VirtualClusterStateH\005\210\001\001\022>\n\tpre_state\030" + "\013 \001(\0162&.com.clickzetta.rm.VirtualCluster" + "StateH\006\210\001\001\022\026\n\terror_msg\030\014 \001(\tH\007\210\001\001\022(\n\010jo" + "b_info\030\r \001(\0132\021.cz.proto.JobInfoH\010\210\001\001\022\031\n\014" + "workspace_id\030\016 \001(\003H\t\210\001\001\022\022\n\005vc_id\030\017 \001(\003H\n" + "\210\001\001\022\027\n\nstate_info\030\020 \001(\tH\013\210\001\001\022\024\n\007version\030" + "\021 \001(\tH\014\210\001\001\032*\n\010TagEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001B\020\n\016resource_oneofB\017\n\r_clu" + "ster_sizeB\030\n\026_auto_stop_latency_secB\025\n\023_" + "auto_start_enabledB\037\n\035_query_process_tim" + "e_limit_secB\010\n\006_stateB\014\n\n_pre_stateB\014\n\n_" + "error_msgB\013\n\t_job_infoB\017\n\r_workspace_idB" + "\010\n\006_vc_idB\r\n\013_state_infoB\n\n\010_versionb\006pr" + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor(), }); internal_static_cz_proto_AnalyticsProperties_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cz_proto_AnalyticsProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_AnalyticsProperties_descriptor, new java.lang.String[] { "MinReplicas", "MaxReplicas", "MaxConcurrencyPerReplica", "ScalePolicy", "CurReplicas", "PreloadTables", "MinReplicas", "MaxReplicas", "MaxConcurrencyPerReplica", "ScalePolicy", "CurReplicas", "PreloadTables", }); internal_static_cz_proto_GeneralProperties_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cz_proto_GeneralProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_GeneralProperties_descriptor, new java.lang.String[] { "ClusterMaxSize", "ClusterMaxSize", }); internal_static_cz_proto_JobInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cz_proto_JobInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_JobInfo_descriptor, new java.lang.String[] { "JobsRunning", "JobsInQueue", "JobsRunning", "JobsInQueue", }); internal_static_cz_proto_VirtualClusterMeta_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cz_proto_VirtualClusterMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_VirtualClusterMeta_descriptor, new java.lang.String[] { "ClusterType", "ClusterSize", "AnalyticsProperties", "GeneralProperties", "AutoStopLatencySec", "AutoStartEnabled", "Tag", "QueryProcessTimeLimitSec", "State", "PreState", "ErrorMsg", "JobInfo", "WorkspaceId", "VcId", "StateInfo", "Version", "ResourceOneof", "ClusterSize", "AutoStopLatencySec", "AutoStartEnabled", "QueryProcessTimeLimitSec", "State", "PreState", "ErrorMsg", "JobInfo", "WorkspaceId", "VcId", "StateInfo", "Version", }); internal_static_cz_proto_VirtualClusterMeta_TagEntry_descriptor = internal_static_cz_proto_VirtualClusterMeta_descriptor.getNestedTypes().get(0); internal_static_cz_proto_VirtualClusterMeta_TagEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cz_proto_VirtualClusterMeta_TagEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy