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

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

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

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

  @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.DefineCommon.internal_static_ServerConnectInfo_descriptor;
  }

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

  private int instanceTypeCase_ = 0;
  private java.lang.Object instanceType_;
  public enum InstanceTypeCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INSTANCEID(6),
    MYHOMEINFO(7),
    INSTANCETYPE_NOT_SET(0);
    private final int value;
    private InstanceTypeCase(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 InstanceTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static InstanceTypeCase forNumber(int value) {
      switch (value) {
        case 6: return INSTANCEID;
        case 7: return MYHOMEINFO;
        case 0: return INSTANCETYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public InstanceTypeCase
  getInstanceTypeCase() {
    return InstanceTypeCase.forNumber(
        instanceTypeCase_);
  }

  public static final int SERVERADDR_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object serverAddr_ = "";
  /**
   * <code>string serverAddr = 1;</code>
   * @return The serverAddr.
   */
  @java.lang.Override
  public java.lang.String getServerAddr() {
    java.lang.Object ref = serverAddr_;
    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();
      serverAddr_ = s;
      return s;
    }
  }
  /**
   * <code>string serverAddr = 1;</code>
   * @return The bytes for serverAddr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getServerAddrBytes() {
    java.lang.Object ref = serverAddr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      serverAddr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SERVERPORT_FIELD_NUMBER = 2;
  private int serverPort_ = 0;
  /**
   * <code>int32 serverPort = 2;</code>
   * @return The serverPort.
   */
  @java.lang.Override
  public int getServerPort() {
    return serverPort_;
  }

  public static final int OTP_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object otp_ = "";
  /**
   * <code>string otp = 3;</code>
   * @return The otp.
   */
  @java.lang.Override
  public java.lang.String getOtp() {
    java.lang.Object ref = otp_;
    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();
      otp_ = s;
      return s;
    }
  }
  /**
   * <code>string otp = 3;</code>
   * @return The bytes for otp.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOtpBytes() {
    java.lang.Object ref = otp_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      otp_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ROOMID_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object roomId_ = "";
  /**
   * <code>string roomId = 4;</code>
   * @return The roomId.
   */
  @java.lang.Override
  public java.lang.String getRoomId() {
    java.lang.Object ref = roomId_;
    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();
      roomId_ = s;
      return s;
    }
  }
  /**
   * <code>string roomId = 4;</code>
   * @return The bytes for roomId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRoomIdBytes() {
    java.lang.Object ref = roomId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      roomId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int POS_FIELD_NUMBER = 5;
  private com.caliverse.admin.domain.RabbitMq.message.Pos pos_;
  /**
   * <code>.Pos pos = 5;</code>
   * @return Whether the pos field is set.
   */
  @java.lang.Override
  public boolean hasPos() {
    return pos_ != null;
  }
  /**
   * <code>.Pos pos = 5;</code>
   * @return The pos.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.Pos getPos() {
    return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
  }
  /**
   * <code>.Pos pos = 5;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder getPosOrBuilder() {
    return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
  }

  public static final int INSTANCEID_FIELD_NUMBER = 6;
  /**
   * <code>int32 instanceId = 6;</code>
   * @return Whether the instanceId field is set.
   */
  @java.lang.Override
  public boolean hasInstanceId() {
    return instanceTypeCase_ == 6;
  }
  /**
   * <code>int32 instanceId = 6;</code>
   * @return The instanceId.
   */
  @java.lang.Override
  public int getInstanceId() {
    if (instanceTypeCase_ == 6) {
      return (java.lang.Integer) instanceType_;
    }
    return 0;
  }

  public static final int MYHOMEINFO_FIELD_NUMBER = 7;
  /**
   * <code>.MyHomeInfo myhomeInfo = 7;</code>
   * @return Whether the myhomeInfo field is set.
   */
  @java.lang.Override
  public boolean hasMyhomeInfo() {
    return instanceTypeCase_ == 7;
  }
  /**
   * <code>.MyHomeInfo myhomeInfo = 7;</code>
   * @return The myhomeInfo.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo getMyhomeInfo() {
    if (instanceTypeCase_ == 7) {
       return (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_;
    }
    return com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
  }
  /**
   * <code>.MyHomeInfo myhomeInfo = 7;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.MyHomeInfoOrBuilder getMyhomeInfoOrBuilder() {
    if (instanceTypeCase_ == 7) {
       return (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_;
    }
    return com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverAddr_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverAddr_);
    }
    if (serverPort_ != 0) {
      output.writeInt32(2, serverPort_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(otp_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, otp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roomId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, roomId_);
    }
    if (pos_ != null) {
      output.writeMessage(5, getPos());
    }
    if (instanceTypeCase_ == 6) {
      output.writeInt32(
          6, (int)((java.lang.Integer) instanceType_));
    }
    if (instanceTypeCase_ == 7) {
      output.writeMessage(7, (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverAddr_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverAddr_);
    }
    if (serverPort_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, serverPort_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(otp_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, otp_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roomId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, roomId_);
    }
    if (pos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getPos());
    }
    if (instanceTypeCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(
            6, (int)((java.lang.Integer) instanceType_));
    }
    if (instanceTypeCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_);
    }
    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.ServerConnectInfo)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo other = (com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo) obj;

    if (!getServerAddr()
        .equals(other.getServerAddr())) return false;
    if (getServerPort()
        != other.getServerPort()) return false;
    if (!getOtp()
        .equals(other.getOtp())) return false;
    if (!getRoomId()
        .equals(other.getRoomId())) return false;
    if (hasPos() != other.hasPos()) return false;
    if (hasPos()) {
      if (!getPos()
          .equals(other.getPos())) return false;
    }
    if (!getInstanceTypeCase().equals(other.getInstanceTypeCase())) return false;
    switch (instanceTypeCase_) {
      case 6:
        if (getInstanceId()
            != other.getInstanceId()) return false;
        break;
      case 7:
        if (!getMyhomeInfo()
            .equals(other.getMyhomeInfo())) return false;
        break;
      case 0:
      default:
    }
    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) + SERVERADDR_FIELD_NUMBER;
    hash = (53 * hash) + getServerAddr().hashCode();
    hash = (37 * hash) + SERVERPORT_FIELD_NUMBER;
    hash = (53 * hash) + getServerPort();
    hash = (37 * hash) + OTP_FIELD_NUMBER;
    hash = (53 * hash) + getOtp().hashCode();
    hash = (37 * hash) + ROOMID_FIELD_NUMBER;
    hash = (53 * hash) + getRoomId().hashCode();
    if (hasPos()) {
      hash = (37 * hash) + POS_FIELD_NUMBER;
      hash = (53 * hash) + getPos().hashCode();
    }
    switch (instanceTypeCase_) {
      case 6:
        hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
        hash = (53 * hash) + getInstanceId();
        break;
      case 7:
        hash = (37 * hash) + MYHOMEINFO_FIELD_NUMBER;
        hash = (53 * hash) + getMyhomeInfo().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo 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.ServerConnectInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo 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.ServerConnectInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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.ServerConnectInfo 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 ServerConnectInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ServerConnectInfo)
      com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ServerConnectInfo_descriptor;
    }

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      serverAddr_ = "";
      serverPort_ = 0;
      otp_ = "";
      roomId_ = "";
      pos_ = null;
      if (posBuilder_ != null) {
        posBuilder_.dispose();
        posBuilder_ = null;
      }
      if (myhomeInfoBuilder_ != null) {
        myhomeInfoBuilder_.clear();
      }
      instanceTypeCase_ = 0;
      instanceType_ = null;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.serverAddr_ = serverAddr_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.serverPort_ = serverPort_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.otp_ = otp_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.roomId_ = roomId_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.pos_ = posBuilder_ == null
            ? pos_
            : posBuilder_.build();
      }
    }

    private void buildPartialOneofs(com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo result) {
      result.instanceTypeCase_ = instanceTypeCase_;
      result.instanceType_ = this.instanceType_;
      if (instanceTypeCase_ == 7 &&
          myhomeInfoBuilder_ != null) {
        result.instanceType_ = myhomeInfoBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.ServerConnectInfo.getDefaultInstance()) return this;
      if (!other.getServerAddr().isEmpty()) {
        serverAddr_ = other.serverAddr_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.getServerPort() != 0) {
        setServerPort(other.getServerPort());
      }
      if (!other.getOtp().isEmpty()) {
        otp_ = other.otp_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getRoomId().isEmpty()) {
        roomId_ = other.roomId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.hasPos()) {
        mergePos(other.getPos());
      }
      switch (other.getInstanceTypeCase()) {
        case INSTANCEID: {
          setInstanceId(other.getInstanceId());
          break;
        }
        case MYHOMEINFO: {
          mergeMyhomeInfo(other.getMyhomeInfo());
          break;
        }
        case INSTANCETYPE_NOT_SET: {
          break;
        }
      }
      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 10: {
              serverAddr_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              serverPort_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              otp_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              roomId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getPosFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 48: {
              instanceType_ = input.readInt32();
              instanceTypeCase_ = 6;
              break;
            } // case 48
            case 58: {
              input.readMessage(
                  getMyhomeInfoFieldBuilder().getBuilder(),
                  extensionRegistry);
              instanceTypeCase_ = 7;
              break;
            } // case 58
            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 instanceTypeCase_ = 0;
    private java.lang.Object instanceType_;
    public InstanceTypeCase
        getInstanceTypeCase() {
      return InstanceTypeCase.forNumber(
          instanceTypeCase_);
    }

    public Builder clearInstanceType() {
      instanceTypeCase_ = 0;
      instanceType_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object serverAddr_ = "";
    /**
     * <code>string serverAddr = 1;</code>
     * @return The serverAddr.
     */
    public java.lang.String getServerAddr() {
      java.lang.Object ref = serverAddr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        serverAddr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string serverAddr = 1;</code>
     * @return The bytes for serverAddr.
     */
    public com.google.protobuf.ByteString
        getServerAddrBytes() {
      java.lang.Object ref = serverAddr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        serverAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string serverAddr = 1;</code>
     * @param value The serverAddr to set.
     * @return This builder for chaining.
     */
    public Builder setServerAddr(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      serverAddr_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>string serverAddr = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearServerAddr() {
      serverAddr_ = getDefaultInstance().getServerAddr();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>string serverAddr = 1;</code>
     * @param value The bytes for serverAddr to set.
     * @return This builder for chaining.
     */
    public Builder setServerAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      serverAddr_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int serverPort_ ;
    /**
     * <code>int32 serverPort = 2;</code>
     * @return The serverPort.
     */
    @java.lang.Override
    public int getServerPort() {
      return serverPort_;
    }
    /**
     * <code>int32 serverPort = 2;</code>
     * @param value The serverPort to set.
     * @return This builder for chaining.
     */
    public Builder setServerPort(int value) {
      
      serverPort_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int32 serverPort = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearServerPort() {
      bitField0_ = (bitField0_ & ~0x00000002);
      serverPort_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object otp_ = "";
    /**
     * <code>string otp = 3;</code>
     * @return The otp.
     */
    public java.lang.String getOtp() {
      java.lang.Object ref = otp_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        otp_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string otp = 3;</code>
     * @return The bytes for otp.
     */
    public com.google.protobuf.ByteString
        getOtpBytes() {
      java.lang.Object ref = otp_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        otp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string otp = 3;</code>
     * @param value The otp to set.
     * @return This builder for chaining.
     */
    public Builder setOtp(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      otp_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>string otp = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearOtp() {
      otp_ = getDefaultInstance().getOtp();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>string otp = 3;</code>
     * @param value The bytes for otp to set.
     * @return This builder for chaining.
     */
    public Builder setOtpBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      otp_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object roomId_ = "";
    /**
     * <code>string roomId = 4;</code>
     * @return The roomId.
     */
    public java.lang.String getRoomId() {
      java.lang.Object ref = roomId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        roomId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string roomId = 4;</code>
     * @return The bytes for roomId.
     */
    public com.google.protobuf.ByteString
        getRoomIdBytes() {
      java.lang.Object ref = roomId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        roomId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string roomId = 4;</code>
     * @param value The roomId to set.
     * @return This builder for chaining.
     */
    public Builder setRoomId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      roomId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>string roomId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearRoomId() {
      roomId_ = getDefaultInstance().getRoomId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <code>string roomId = 4;</code>
     * @param value The bytes for roomId to set.
     * @return This builder for chaining.
     */
    public Builder setRoomIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      roomId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private com.caliverse.admin.domain.RabbitMq.message.Pos pos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder> posBuilder_;
    /**
     * <code>.Pos pos = 5;</code>
     * @return Whether the pos field is set.
     */
    public boolean hasPos() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>.Pos pos = 5;</code>
     * @return The pos.
     */
    public com.caliverse.admin.domain.RabbitMq.message.Pos getPos() {
      if (posBuilder_ == null) {
        return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
      } else {
        return posBuilder_.getMessage();
      }
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public Builder setPos(com.caliverse.admin.domain.RabbitMq.message.Pos value) {
      if (posBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pos_ = value;
      } else {
        posBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public Builder setPos(
        com.caliverse.admin.domain.RabbitMq.message.Pos.Builder builderForValue) {
      if (posBuilder_ == null) {
        pos_ = builderForValue.build();
      } else {
        posBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public Builder mergePos(com.caliverse.admin.domain.RabbitMq.message.Pos value) {
      if (posBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          pos_ != null &&
          pos_ != com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance()) {
          getPosBuilder().mergeFrom(value);
        } else {
          pos_ = value;
        }
      } else {
        posBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public Builder clearPos() {
      bitField0_ = (bitField0_ & ~0x00000010);
      pos_ = null;
      if (posBuilder_ != null) {
        posBuilder_.dispose();
        posBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.Pos.Builder getPosBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getPosFieldBuilder().getBuilder();
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder getPosOrBuilder() {
      if (posBuilder_ != null) {
        return posBuilder_.getMessageOrBuilder();
      } else {
        return pos_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
      }
    }
    /**
     * <code>.Pos pos = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder> 
        getPosFieldBuilder() {
      if (posBuilder_ == null) {
        posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder>(
                getPos(),
                getParentForChildren(),
                isClean());
        pos_ = null;
      }
      return posBuilder_;
    }

    /**
     * <code>int32 instanceId = 6;</code>
     * @return Whether the instanceId field is set.
     */
    public boolean hasInstanceId() {
      return instanceTypeCase_ == 6;
    }
    /**
     * <code>int32 instanceId = 6;</code>
     * @return The instanceId.
     */
    public int getInstanceId() {
      if (instanceTypeCase_ == 6) {
        return (java.lang.Integer) instanceType_;
      }
      return 0;
    }
    /**
     * <code>int32 instanceId = 6;</code>
     * @param value The instanceId to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceId(int value) {
      
      instanceTypeCase_ = 6;
      instanceType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 instanceId = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearInstanceId() {
      if (instanceTypeCase_ == 6) {
        instanceTypeCase_ = 0;
        instanceType_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfoOrBuilder> myhomeInfoBuilder_;
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     * @return Whether the myhomeInfo field is set.
     */
    @java.lang.Override
    public boolean hasMyhomeInfo() {
      return instanceTypeCase_ == 7;
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     * @return The myhomeInfo.
     */
    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo getMyhomeInfo() {
      if (myhomeInfoBuilder_ == null) {
        if (instanceTypeCase_ == 7) {
          return (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_;
        }
        return com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
      } else {
        if (instanceTypeCase_ == 7) {
          return myhomeInfoBuilder_.getMessage();
        }
        return com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    public Builder setMyhomeInfo(com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo value) {
      if (myhomeInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        instanceType_ = value;
        onChanged();
      } else {
        myhomeInfoBuilder_.setMessage(value);
      }
      instanceTypeCase_ = 7;
      return this;
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    public Builder setMyhomeInfo(
        com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.Builder builderForValue) {
      if (myhomeInfoBuilder_ == null) {
        instanceType_ = builderForValue.build();
        onChanged();
      } else {
        myhomeInfoBuilder_.setMessage(builderForValue.build());
      }
      instanceTypeCase_ = 7;
      return this;
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    public Builder mergeMyhomeInfo(com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo value) {
      if (myhomeInfoBuilder_ == null) {
        if (instanceTypeCase_ == 7 &&
            instanceType_ != com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance()) {
          instanceType_ = com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.newBuilder((com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_)
              .mergeFrom(value).buildPartial();
        } else {
          instanceType_ = value;
        }
        onChanged();
      } else {
        if (instanceTypeCase_ == 7) {
          myhomeInfoBuilder_.mergeFrom(value);
        } else {
          myhomeInfoBuilder_.setMessage(value);
        }
      }
      instanceTypeCase_ = 7;
      return this;
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    public Builder clearMyhomeInfo() {
      if (myhomeInfoBuilder_ == null) {
        if (instanceTypeCase_ == 7) {
          instanceTypeCase_ = 0;
          instanceType_ = null;
          onChanged();
        }
      } else {
        if (instanceTypeCase_ == 7) {
          instanceTypeCase_ = 0;
          instanceType_ = null;
        }
        myhomeInfoBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.Builder getMyhomeInfoBuilder() {
      return getMyhomeInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.MyHomeInfoOrBuilder getMyhomeInfoOrBuilder() {
      if ((instanceTypeCase_ == 7) && (myhomeInfoBuilder_ != null)) {
        return myhomeInfoBuilder_.getMessageOrBuilder();
      } else {
        if (instanceTypeCase_ == 7) {
          return (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_;
        }
        return com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
      }
    }
    /**
     * <code>.MyHomeInfo myhomeInfo = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfoOrBuilder> 
        getMyhomeInfoFieldBuilder() {
      if (myhomeInfoBuilder_ == null) {
        if (!(instanceTypeCase_ == 7)) {
          instanceType_ = com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.getDefaultInstance();
        }
        myhomeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MyHomeInfoOrBuilder>(
                (com.caliverse.admin.domain.RabbitMq.message.MyHomeInfo) instanceType_,
                getParentForChildren(),
                isClean());
        instanceType_ = null;
      }
      instanceTypeCase_ = 7;
      onChanged();
      return myhomeInfoBuilder_;
    }
    @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:ServerConnectInfo)
  }

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

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

  private static final com.google.protobuf.Parser<ServerConnectInfo>
      PARSER = new com.google.protobuf.AbstractParser<ServerConnectInfo>() {
    @java.lang.Override
    public ServerConnectInfo 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<ServerConnectInfo> parser() {
    return PARSER;
  }

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

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

}

