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

com.clickzetta.rm.VirtualClusterSize 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_size.proto

package com.clickzetta.rm;

public final class VirtualClusterSize {
  private VirtualClusterSize() {}
  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 VirtualClusterSizeSpecOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.VirtualClusterSizeSpec)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int64 id = 1;
     * @return The id.
     */
    long getId();

    /**
     * string name = 2;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * string name = 2;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * optional string alias_1 = 3;
     * @return Whether the alias1 field is set.
     */
    boolean hasAlias1();
    /**
     * optional string alias_1 = 3;
     * @return The alias1.
     */
    java.lang.String getAlias1();
    /**
     * optional string alias_1 = 3;
     * @return The bytes for alias1.
     */
    com.google.protobuf.ByteString
        getAlias1Bytes();

    /**
     * optional string alias_2 = 4;
     * @return Whether the alias2 field is set.
     */
    boolean hasAlias2();
    /**
     * optional string alias_2 = 4;
     * @return The alias2.
     */
    java.lang.String getAlias2();
    /**
     * optional string alias_2 = 4;
     * @return The bytes for alias2.
     */
    com.google.protobuf.ByteString
        getAlias2Bytes();

    /**
     * optional string alias_3 = 5;
     * @return Whether the alias3 field is set.
     */
    boolean hasAlias3();
    /**
     * optional string alias_3 = 5;
     * @return The alias3.
     */
    java.lang.String getAlias3();
    /**
     * optional string alias_3 = 5;
     * @return The bytes for alias3.
     */
    com.google.protobuf.ByteString
        getAlias3Bytes();

    /**
     * double cpu_core = 6;
     * @return The cpuCore.
     */
    double getCpuCore();

    /**
     * int64 mem_gb = 7;
     * @return The memGb.
     */
    long getMemGb();
  }
  /**
   * Protobuf type {@code com.clickzetta.rm.VirtualClusterSizeSpec}
   */
  public static final class VirtualClusterSizeSpec extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.clickzetta.rm.VirtualClusterSizeSpec)
      VirtualClusterSizeSpecOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use VirtualClusterSizeSpec.newBuilder() to construct.
    private VirtualClusterSizeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private VirtualClusterSizeSpec() {
      name_ = "";
      alias1_ = "";
      alias2_ = "";
      alias3_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private VirtualClusterSizeSpec(
        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: {

              id_ = input.readInt64();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              alias1_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              alias2_ = s;
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              alias3_ = s;
              break;
            }
            case 49: {

              cpuCore_ = input.readDouble();
              break;
            }
            case 56: {

              memGb_ = input.readInt64();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.clickzetta.rm.VirtualClusterSize.internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.clickzetta.rm.VirtualClusterSize.internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.class, com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.Builder.class);
    }

    private int bitField0_;
    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * int64 id = 1;
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }

    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * string name = 2;
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      }
    }
    /**
     * string name = 2;
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ALIAS_1_FIELD_NUMBER = 3;
    private volatile java.lang.Object alias1_;
    /**
     * optional string alias_1 = 3;
     * @return Whether the alias1 field is set.
     */
    @java.lang.Override
    public boolean hasAlias1() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string alias_1 = 3;
     * @return The alias1.
     */
    @java.lang.Override
    public java.lang.String getAlias1() {
      java.lang.Object ref = alias1_;
      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();
        alias1_ = s;
        return s;
      }
    }
    /**
     * optional string alias_1 = 3;
     * @return The bytes for alias1.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAlias1Bytes() {
      java.lang.Object ref = alias1_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        alias1_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ALIAS_2_FIELD_NUMBER = 4;
    private volatile java.lang.Object alias2_;
    /**
     * optional string alias_2 = 4;
     * @return Whether the alias2 field is set.
     */
    @java.lang.Override
    public boolean hasAlias2() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string alias_2 = 4;
     * @return The alias2.
     */
    @java.lang.Override
    public java.lang.String getAlias2() {
      java.lang.Object ref = alias2_;
      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();
        alias2_ = s;
        return s;
      }
    }
    /**
     * optional string alias_2 = 4;
     * @return The bytes for alias2.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAlias2Bytes() {
      java.lang.Object ref = alias2_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        alias2_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ALIAS_3_FIELD_NUMBER = 5;
    private volatile java.lang.Object alias3_;
    /**
     * optional string alias_3 = 5;
     * @return Whether the alias3 field is set.
     */
    @java.lang.Override
    public boolean hasAlias3() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string alias_3 = 5;
     * @return The alias3.
     */
    @java.lang.Override
    public java.lang.String getAlias3() {
      java.lang.Object ref = alias3_;
      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();
        alias3_ = s;
        return s;
      }
    }
    /**
     * optional string alias_3 = 5;
     * @return The bytes for alias3.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAlias3Bytes() {
      java.lang.Object ref = alias3_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        alias3_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CPU_CORE_FIELD_NUMBER = 6;
    private double cpuCore_;
    /**
     * double cpu_core = 6;
     * @return The cpuCore.
     */
    @java.lang.Override
    public double getCpuCore() {
      return cpuCore_;
    }

    public static final int MEM_GB_FIELD_NUMBER = 7;
    private long memGb_;
    /**
     * int64 mem_gb = 7;
     * @return The memGb.
     */
    @java.lang.Override
    public long getMemGb() {
      return memGb_;
    }

    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 (id_ != 0L) {
        output.writeInt64(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias1_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, alias2_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alias3_);
      }
      if (java.lang.Double.doubleToRawLongBits(cpuCore_) != 0) {
        output.writeDouble(6, cpuCore_);
      }
      if (memGb_ != 0L) {
        output.writeInt64(7, memGb_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (id_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias1_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, alias2_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alias3_);
      }
      if (java.lang.Double.doubleToRawLongBits(cpuCore_) != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(6, cpuCore_);
      }
      if (memGb_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, memGb_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec)) {
        return super.equals(obj);
      }
      com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec other = (com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec) obj;

      if (getId()
          != other.getId()) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (hasAlias1() != other.hasAlias1()) return false;
      if (hasAlias1()) {
        if (!getAlias1()
            .equals(other.getAlias1())) return false;
      }
      if (hasAlias2() != other.hasAlias2()) return false;
      if (hasAlias2()) {
        if (!getAlias2()
            .equals(other.getAlias2())) return false;
      }
      if (hasAlias3() != other.hasAlias3()) return false;
      if (hasAlias3()) {
        if (!getAlias3()
            .equals(other.getAlias3())) return false;
      }
      if (java.lang.Double.doubleToLongBits(getCpuCore())
          != java.lang.Double.doubleToLongBits(
              other.getCpuCore())) return false;
      if (getMemGb()
          != other.getMemGb()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getId());
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      if (hasAlias1()) {
        hash = (37 * hash) + ALIAS_1_FIELD_NUMBER;
        hash = (53 * hash) + getAlias1().hashCode();
      }
      if (hasAlias2()) {
        hash = (37 * hash) + ALIAS_2_FIELD_NUMBER;
        hash = (53 * hash) + getAlias2().hashCode();
      }
      if (hasAlias3()) {
        hash = (37 * hash) + ALIAS_3_FIELD_NUMBER;
        hash = (53 * hash) + getAlias3().hashCode();
      }
      hash = (37 * hash) + CPU_CORE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getCpuCore()));
      hash = (37 * hash) + MEM_GB_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getMemGb());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec 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 com.clickzetta.rm.VirtualClusterSizeSpec}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.VirtualClusterSizeSpec)
        com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpecOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.clickzetta.rm.VirtualClusterSize.internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.clickzetta.rm.VirtualClusterSize.internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.class, com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.Builder.class);
      }

      // Construct using com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = 0L;

        name_ = "";

        alias1_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        alias2_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        alias3_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        cpuCore_ = 0D;

        memGb_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.clickzetta.rm.VirtualClusterSize.internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor;
      }

      @java.lang.Override
      public com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec getDefaultInstanceForType() {
        return com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.getDefaultInstance();
      }

      @java.lang.Override
      public com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec build() {
        com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec buildPartial() {
        com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec result = new com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.id_ = id_;
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.alias1_ = alias1_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.alias2_ = alias2_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.alias3_ = alias3_;
        result.cpuCore_ = cpuCore_;
        result.memGb_ = memGb_;
        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 com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec) {
          return mergeFrom((com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec other) {
        if (other == com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec.getDefaultInstance()) return this;
        if (other.getId() != 0L) {
          setId(other.getId());
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (other.hasAlias1()) {
          bitField0_ |= 0x00000001;
          alias1_ = other.alias1_;
          onChanged();
        }
        if (other.hasAlias2()) {
          bitField0_ |= 0x00000002;
          alias2_ = other.alias2_;
          onChanged();
        }
        if (other.hasAlias3()) {
          bitField0_ |= 0x00000004;
          alias3_ = other.alias3_;
          onChanged();
        }
        if (other.getCpuCore() != 0D) {
          setCpuCore(other.getCpuCore());
        }
        if (other.getMemGb() != 0L) {
          setMemGb(other.getMemGb());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long id_ ;
      /**
       * int64 id = 1;
       * @return The id.
       */
      @java.lang.Override
      public long getId() {
        return id_;
      }
      /**
       * int64 id = 1;
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(long value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 id = 1;
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * string name = 2;
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string name = 2;
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string name = 2;
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * string name = 2;
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * string name = 2;
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object alias1_ = "";
      /**
       * optional string alias_1 = 3;
       * @return Whether the alias1 field is set.
       */
      public boolean hasAlias1() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional string alias_1 = 3;
       * @return The alias1.
       */
      public java.lang.String getAlias1() {
        java.lang.Object ref = alias1_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          alias1_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string alias_1 = 3;
       * @return The bytes for alias1.
       */
      public com.google.protobuf.ByteString
          getAlias1Bytes() {
        java.lang.Object ref = alias1_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          alias1_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string alias_1 = 3;
       * @param value The alias1 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias1(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        alias1_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string alias_1 = 3;
       * @return This builder for chaining.
       */
      public Builder clearAlias1() {
        bitField0_ = (bitField0_ & ~0x00000001);
        alias1_ = getDefaultInstance().getAlias1();
        onChanged();
        return this;
      }
      /**
       * optional string alias_1 = 3;
       * @param value The bytes for alias1 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias1Bytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        bitField0_ |= 0x00000001;
        alias1_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object alias2_ = "";
      /**
       * optional string alias_2 = 4;
       * @return Whether the alias2 field is set.
       */
      public boolean hasAlias2() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional string alias_2 = 4;
       * @return The alias2.
       */
      public java.lang.String getAlias2() {
        java.lang.Object ref = alias2_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          alias2_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string alias_2 = 4;
       * @return The bytes for alias2.
       */
      public com.google.protobuf.ByteString
          getAlias2Bytes() {
        java.lang.Object ref = alias2_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          alias2_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string alias_2 = 4;
       * @param value The alias2 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias2(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        alias2_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string alias_2 = 4;
       * @return This builder for chaining.
       */
      public Builder clearAlias2() {
        bitField0_ = (bitField0_ & ~0x00000002);
        alias2_ = getDefaultInstance().getAlias2();
        onChanged();
        return this;
      }
      /**
       * optional string alias_2 = 4;
       * @param value The bytes for alias2 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias2Bytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        bitField0_ |= 0x00000002;
        alias2_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object alias3_ = "";
      /**
       * optional string alias_3 = 5;
       * @return Whether the alias3 field is set.
       */
      public boolean hasAlias3() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * optional string alias_3 = 5;
       * @return The alias3.
       */
      public java.lang.String getAlias3() {
        java.lang.Object ref = alias3_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          alias3_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string alias_3 = 5;
       * @return The bytes for alias3.
       */
      public com.google.protobuf.ByteString
          getAlias3Bytes() {
        java.lang.Object ref = alias3_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          alias3_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string alias_3 = 5;
       * @param value The alias3 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias3(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        alias3_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string alias_3 = 5;
       * @return This builder for chaining.
       */
      public Builder clearAlias3() {
        bitField0_ = (bitField0_ & ~0x00000004);
        alias3_ = getDefaultInstance().getAlias3();
        onChanged();
        return this;
      }
      /**
       * optional string alias_3 = 5;
       * @param value The bytes for alias3 to set.
       * @return This builder for chaining.
       */
      public Builder setAlias3Bytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        bitField0_ |= 0x00000004;
        alias3_ = value;
        onChanged();
        return this;
      }

      private double cpuCore_ ;
      /**
       * double cpu_core = 6;
       * @return The cpuCore.
       */
      @java.lang.Override
      public double getCpuCore() {
        return cpuCore_;
      }
      /**
       * double cpu_core = 6;
       * @param value The cpuCore to set.
       * @return This builder for chaining.
       */
      public Builder setCpuCore(double value) {
        
        cpuCore_ = value;
        onChanged();
        return this;
      }
      /**
       * double cpu_core = 6;
       * @return This builder for chaining.
       */
      public Builder clearCpuCore() {
        
        cpuCore_ = 0D;
        onChanged();
        return this;
      }

      private long memGb_ ;
      /**
       * int64 mem_gb = 7;
       * @return The memGb.
       */
      @java.lang.Override
      public long getMemGb() {
        return memGb_;
      }
      /**
       * int64 mem_gb = 7;
       * @param value The memGb to set.
       * @return This builder for chaining.
       */
      public Builder setMemGb(long value) {
        
        memGb_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 mem_gb = 7;
       * @return This builder for chaining.
       */
      public Builder clearMemGb() {
        
        memGb_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:com.clickzetta.rm.VirtualClusterSizeSpec)
    }

    // @@protoc_insertion_point(class_scope:com.clickzetta.rm.VirtualClusterSizeSpec)
    private static final com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec();
    }

    public static com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public VirtualClusterSizeSpec parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new VirtualClusterSizeSpec(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.clickzetta.rm.VirtualClusterSize.VirtualClusterSizeSpec getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_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_size.proto\022\021com.clickz" +
      "etta.rm\"\272\001\n\026VirtualClusterSizeSpec\022\n\n\002id" +
      "\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\024\n\007alias_1\030\003 \001(\tH\000\210" +
      "\001\001\022\024\n\007alias_2\030\004 \001(\tH\001\210\001\001\022\024\n\007alias_3\030\005 \001(" +
      "\tH\002\210\001\001\022\020\n\010cpu_core\030\006 \001(\001\022\016\n\006mem_gb\030\007 \001(\003" +
      "B\n\n\010_alias_1B\n\n\010_alias_2B\n\n\010_alias_3b\006pr" +
      "oto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_com_clickzetta_rm_VirtualClusterSizeSpec_descriptor,
        new java.lang.String[] { "Id", "Name", "Alias1", "Alias2", "Alias3", "CpuCore", "MemGb", "Alias1", "Alias2", "Alias3", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy