// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Define_ProgramVersion.proto

package com.caliverse.admin.domain.RabbitMq.message;

/**
 * Protobuf type {@code ServerProgramVersion}
 */
public final class ServerProgramVersion extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ServerProgramVersion)
    ServerProgramVersionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ServerProgramVersion.newBuilder() to construct.
  private ServerProgramVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ServerProgramVersion() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.caliverse.admin.domain.RabbitMq.message.DefineProgramVersion.internal_static_ServerProgramVersion_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.caliverse.admin.domain.RabbitMq.message.DefineProgramVersion.internal_static_ServerProgramVersion_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.class, com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.Builder.class);
  }

  public static final int METASCHEMAVERSION_FIELD_NUMBER = 1;
  private long metaSchemaVersion_ = 0L;
  /**
   * <code>uint64 metaSchemaVersion = 1;</code>
   * @return The metaSchemaVersion.
   */
  @java.lang.Override
  public long getMetaSchemaVersion() {
    return metaSchemaVersion_;
  }

  public static final int METADATAVERSION_FIELD_NUMBER = 2;
  private long metaDataVersion_ = 0L;
  /**
   * <code>uint64 metaDataVersion = 2;</code>
   * @return The metaDataVersion.
   */
  @java.lang.Override
  public long getMetaDataVersion() {
    return metaDataVersion_;
  }

  public static final int DBSCHEMAVERSION_FIELD_NUMBER = 3;
  private long dbSchemaVersion_ = 0L;
  /**
   * <code>uint64 dbSchemaVersion = 3;</code>
   * @return The dbSchemaVersion.
   */
  @java.lang.Override
  public long getDbSchemaVersion() {
    return dbSchemaVersion_;
  }

  public static final int PACKETVERSION_FIELD_NUMBER = 4;
  private long packetVersion_ = 0L;
  /**
   * <code>uint64 packetVersion = 4;</code>
   * @return The packetVersion.
   */
  @java.lang.Override
  public long getPacketVersion() {
    return packetVersion_;
  }

  public static final int LOGICVERSION_FIELD_NUMBER = 5;
  private com.caliverse.admin.domain.RabbitMq.message.LogicVersion logicVersion_;
  /**
   * <code>.LogicVersion logicVersion = 5;</code>
   * @return Whether the logicVersion field is set.
   */
  @java.lang.Override
  public boolean hasLogicVersion() {
    return logicVersion_ != null;
  }
  /**
   * <code>.LogicVersion logicVersion = 5;</code>
   * @return The logicVersion.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.LogicVersion getLogicVersion() {
    return logicVersion_ == null ? com.caliverse.admin.domain.RabbitMq.message.LogicVersion.getDefaultInstance() : logicVersion_;
  }
  /**
   * <code>.LogicVersion logicVersion = 5;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.LogicVersionOrBuilder getLogicVersionOrBuilder() {
    return logicVersion_ == null ? com.caliverse.admin.domain.RabbitMq.message.LogicVersion.getDefaultInstance() : logicVersion_;
  }

  public static final int RESOURCEVERSION_FIELD_NUMBER = 6;
  private long resourceVersion_ = 0L;
  /**
   * <code>uint64 resourceVersion = 6;</code>
   * @return The resourceVersion.
   */
  @java.lang.Override
  public long getResourceVersion() {
    return resourceVersion_;
  }

  public static final int CONFIGVERSION_FIELD_NUMBER = 7;
  private long configVersion_ = 0L;
  /**
   * <code>uint64 configVersion = 7;</code>
   * @return The configVersion.
   */
  @java.lang.Override
  public long getConfigVersion() {
    return configVersion_;
  }

  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 (metaSchemaVersion_ != 0L) {
      output.writeUInt64(1, metaSchemaVersion_);
    }
    if (metaDataVersion_ != 0L) {
      output.writeUInt64(2, metaDataVersion_);
    }
    if (dbSchemaVersion_ != 0L) {
      output.writeUInt64(3, dbSchemaVersion_);
    }
    if (packetVersion_ != 0L) {
      output.writeUInt64(4, packetVersion_);
    }
    if (logicVersion_ != null) {
      output.writeMessage(5, getLogicVersion());
    }
    if (resourceVersion_ != 0L) {
      output.writeUInt64(6, resourceVersion_);
    }
    if (configVersion_ != 0L) {
      output.writeUInt64(7, configVersion_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (metaSchemaVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, metaSchemaVersion_);
    }
    if (metaDataVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, metaDataVersion_);
    }
    if (dbSchemaVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, dbSchemaVersion_);
    }
    if (packetVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, packetVersion_);
    }
    if (logicVersion_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getLogicVersion());
    }
    if (resourceVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(6, resourceVersion_);
    }
    if (configVersion_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(7, configVersion_);
    }
    size += getUnknownFields().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.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion other = (com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion) obj;

    if (getMetaSchemaVersion()
        != other.getMetaSchemaVersion()) return false;
    if (getMetaDataVersion()
        != other.getMetaDataVersion()) return false;
    if (getDbSchemaVersion()
        != other.getDbSchemaVersion()) return false;
    if (getPacketVersion()
        != other.getPacketVersion()) return false;
    if (hasLogicVersion() != other.hasLogicVersion()) return false;
    if (hasLogicVersion()) {
      if (!getLogicVersion()
          .equals(other.getLogicVersion())) return false;
    }
    if (getResourceVersion()
        != other.getResourceVersion()) return false;
    if (getConfigVersion()
        != other.getConfigVersion()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + METASCHEMAVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMetaSchemaVersion());
    hash = (37 * hash) + METADATAVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMetaDataVersion());
    hash = (37 * hash) + DBSCHEMAVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDbSchemaVersion());
    hash = (37 * hash) + PACKETVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPacketVersion());
    if (hasLogicVersion()) {
      hash = (37 * hash) + LOGICVERSION_FIELD_NUMBER;
      hash = (53 * hash) + getLogicVersion().hashCode();
    }
    hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getResourceVersion());
    hash = (37 * hash) + CONFIGVERSION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getConfigVersion());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion 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.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion 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.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion 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.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion 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 ServerProgramVersion}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ServerProgramVersion)
      com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineProgramVersion.internal_static_ServerProgramVersion_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineProgramVersion.internal_static_ServerProgramVersion_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.class, com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.Builder.class);
    }

    // Construct using com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      metaSchemaVersion_ = 0L;
      metaDataVersion_ = 0L;
      dbSchemaVersion_ = 0L;
      packetVersion_ = 0L;
      logicVersion_ = null;
      if (logicVersionBuilder_ != null) {
        logicVersionBuilder_.dispose();
        logicVersionBuilder_ = null;
      }
      resourceVersion_ = 0L;
      configVersion_ = 0L;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineProgramVersion.internal_static_ServerProgramVersion_descriptor;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion getDefaultInstanceForType() {
      return com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.getDefaultInstance();
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion build() {
      com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion buildPartial() {
      com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion result = new com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.metaSchemaVersion_ = metaSchemaVersion_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.metaDataVersion_ = metaDataVersion_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.dbSchemaVersion_ = dbSchemaVersion_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.packetVersion_ = packetVersion_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.logicVersion_ = logicVersionBuilder_ == null
            ? logicVersion_
            : logicVersionBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.resourceVersion_ = resourceVersion_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.configVersion_ = configVersion_;
      }
    }

    @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.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion.getDefaultInstance()) return this;
      if (other.getMetaSchemaVersion() != 0L) {
        setMetaSchemaVersion(other.getMetaSchemaVersion());
      }
      if (other.getMetaDataVersion() != 0L) {
        setMetaDataVersion(other.getMetaDataVersion());
      }
      if (other.getDbSchemaVersion() != 0L) {
        setDbSchemaVersion(other.getDbSchemaVersion());
      }
      if (other.getPacketVersion() != 0L) {
        setPacketVersion(other.getPacketVersion());
      }
      if (other.hasLogicVersion()) {
        mergeLogicVersion(other.getLogicVersion());
      }
      if (other.getResourceVersion() != 0L) {
        setResourceVersion(other.getResourceVersion());
      }
      if (other.getConfigVersion() != 0L) {
        setConfigVersion(other.getConfigVersion());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              metaSchemaVersion_ = input.readUInt64();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              metaDataVersion_ = input.readUInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              dbSchemaVersion_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              packetVersion_ = input.readUInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 42: {
              input.readMessage(
                  getLogicVersionFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 48: {
              resourceVersion_ = input.readUInt64();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 56: {
              configVersion_ = input.readUInt64();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private long metaSchemaVersion_ ;
    /**
     * <code>uint64 metaSchemaVersion = 1;</code>
     * @return The metaSchemaVersion.
     */
    @java.lang.Override
    public long getMetaSchemaVersion() {
      return metaSchemaVersion_;
    }
    /**
     * <code>uint64 metaSchemaVersion = 1;</code>
     * @param value The metaSchemaVersion to set.
     * @return This builder for chaining.
     */
    public Builder setMetaSchemaVersion(long value) {
      
      metaSchemaVersion_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 metaSchemaVersion = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearMetaSchemaVersion() {
      bitField0_ = (bitField0_ & ~0x00000001);
      metaSchemaVersion_ = 0L;
      onChanged();
      return this;
    }

    private long metaDataVersion_ ;
    /**
     * <code>uint64 metaDataVersion = 2;</code>
     * @return The metaDataVersion.
     */
    @java.lang.Override
    public long getMetaDataVersion() {
      return metaDataVersion_;
    }
    /**
     * <code>uint64 metaDataVersion = 2;</code>
     * @param value The metaDataVersion to set.
     * @return This builder for chaining.
     */
    public Builder setMetaDataVersion(long value) {
      
      metaDataVersion_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 metaDataVersion = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMetaDataVersion() {
      bitField0_ = (bitField0_ & ~0x00000002);
      metaDataVersion_ = 0L;
      onChanged();
      return this;
    }

    private long dbSchemaVersion_ ;
    /**
     * <code>uint64 dbSchemaVersion = 3;</code>
     * @return The dbSchemaVersion.
     */
    @java.lang.Override
    public long getDbSchemaVersion() {
      return dbSchemaVersion_;
    }
    /**
     * <code>uint64 dbSchemaVersion = 3;</code>
     * @param value The dbSchemaVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDbSchemaVersion(long value) {
      
      dbSchemaVersion_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 dbSchemaVersion = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDbSchemaVersion() {
      bitField0_ = (bitField0_ & ~0x00000004);
      dbSchemaVersion_ = 0L;
      onChanged();
      return this;
    }

    private long packetVersion_ ;
    /**
     * <code>uint64 packetVersion = 4;</code>
     * @return The packetVersion.
     */
    @java.lang.Override
    public long getPacketVersion() {
      return packetVersion_;
    }
    /**
     * <code>uint64 packetVersion = 4;</code>
     * @param value The packetVersion to set.
     * @return This builder for chaining.
     */
    public Builder setPacketVersion(long value) {
      
      packetVersion_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 packetVersion = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearPacketVersion() {
      bitField0_ = (bitField0_ & ~0x00000008);
      packetVersion_ = 0L;
      onChanged();
      return this;
    }

    private com.caliverse.admin.domain.RabbitMq.message.LogicVersion logicVersion_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.LogicVersion, com.caliverse.admin.domain.RabbitMq.message.LogicVersion.Builder, com.caliverse.admin.domain.RabbitMq.message.LogicVersionOrBuilder> logicVersionBuilder_;
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     * @return Whether the logicVersion field is set.
     */
    public boolean hasLogicVersion() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     * @return The logicVersion.
     */
    public com.caliverse.admin.domain.RabbitMq.message.LogicVersion getLogicVersion() {
      if (logicVersionBuilder_ == null) {
        return logicVersion_ == null ? com.caliverse.admin.domain.RabbitMq.message.LogicVersion.getDefaultInstance() : logicVersion_;
      } else {
        return logicVersionBuilder_.getMessage();
      }
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public Builder setLogicVersion(com.caliverse.admin.domain.RabbitMq.message.LogicVersion value) {
      if (logicVersionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        logicVersion_ = value;
      } else {
        logicVersionBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public Builder setLogicVersion(
        com.caliverse.admin.domain.RabbitMq.message.LogicVersion.Builder builderForValue) {
      if (logicVersionBuilder_ == null) {
        logicVersion_ = builderForValue.build();
      } else {
        logicVersionBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public Builder mergeLogicVersion(com.caliverse.admin.domain.RabbitMq.message.LogicVersion value) {
      if (logicVersionBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          logicVersion_ != null &&
          logicVersion_ != com.caliverse.admin.domain.RabbitMq.message.LogicVersion.getDefaultInstance()) {
          getLogicVersionBuilder().mergeFrom(value);
        } else {
          logicVersion_ = value;
        }
      } else {
        logicVersionBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public Builder clearLogicVersion() {
      bitField0_ = (bitField0_ & ~0x00000010);
      logicVersion_ = null;
      if (logicVersionBuilder_ != null) {
        logicVersionBuilder_.dispose();
        logicVersionBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.LogicVersion.Builder getLogicVersionBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getLogicVersionFieldBuilder().getBuilder();
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.LogicVersionOrBuilder getLogicVersionOrBuilder() {
      if (logicVersionBuilder_ != null) {
        return logicVersionBuilder_.getMessageOrBuilder();
      } else {
        return logicVersion_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.LogicVersion.getDefaultInstance() : logicVersion_;
      }
    }
    /**
     * <code>.LogicVersion logicVersion = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.LogicVersion, com.caliverse.admin.domain.RabbitMq.message.LogicVersion.Builder, com.caliverse.admin.domain.RabbitMq.message.LogicVersionOrBuilder> 
        getLogicVersionFieldBuilder() {
      if (logicVersionBuilder_ == null) {
        logicVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.LogicVersion, com.caliverse.admin.domain.RabbitMq.message.LogicVersion.Builder, com.caliverse.admin.domain.RabbitMq.message.LogicVersionOrBuilder>(
                getLogicVersion(),
                getParentForChildren(),
                isClean());
        logicVersion_ = null;
      }
      return logicVersionBuilder_;
    }

    private long resourceVersion_ ;
    /**
     * <code>uint64 resourceVersion = 6;</code>
     * @return The resourceVersion.
     */
    @java.lang.Override
    public long getResourceVersion() {
      return resourceVersion_;
    }
    /**
     * <code>uint64 resourceVersion = 6;</code>
     * @param value The resourceVersion to set.
     * @return This builder for chaining.
     */
    public Builder setResourceVersion(long value) {
      
      resourceVersion_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 resourceVersion = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearResourceVersion() {
      bitField0_ = (bitField0_ & ~0x00000020);
      resourceVersion_ = 0L;
      onChanged();
      return this;
    }

    private long configVersion_ ;
    /**
     * <code>uint64 configVersion = 7;</code>
     * @return The configVersion.
     */
    @java.lang.Override
    public long getConfigVersion() {
      return configVersion_;
    }
    /**
     * <code>uint64 configVersion = 7;</code>
     * @param value The configVersion to set.
     * @return This builder for chaining.
     */
    public Builder setConfigVersion(long value) {
      
      configVersion_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 configVersion = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearConfigVersion() {
      bitField0_ = (bitField0_ & ~0x00000040);
      configVersion_ = 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:ServerProgramVersion)
  }

  // @@protoc_insertion_point(class_scope:ServerProgramVersion)
  private static final com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion();
  }

  public static com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ServerProgramVersion>
      PARSER = new com.google.protobuf.AbstractParser<ServerProgramVersion>() {
    @java.lang.Override
    public ServerProgramVersion parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ServerProgramVersion getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

