Example #1
0
 public Builder mergeFrom(com.alibaba.wasp.protobuf.generated.AdminProtos.UUID other) {
   if (other == com.alibaba.wasp.protobuf.generated.AdminProtos.UUID.getDefaultInstance())
     return this;
   if (other.hasLeastSigBits()) {
     setLeastSigBits(other.getLeastSigBits());
   }
   if (other.hasMostSigBits()) {
     setMostSigBits(other.getMostSigBits());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
Example #2
0
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.alibaba.wasp.protobuf.generated.AdminProtos.UUID)) {
        return super.equals(obj);
      }
      com.alibaba.wasp.protobuf.generated.AdminProtos.UUID other =
          (com.alibaba.wasp.protobuf.generated.AdminProtos.UUID) obj;

      boolean result = true;
      result = result && (hasLeastSigBits() == other.hasLeastSigBits());
      if (hasLeastSigBits()) {
        result = result && (getLeastSigBits() == other.getLeastSigBits());
      }
      result = result && (hasMostSigBits() == other.hasMostSigBits());
      if (hasMostSigBits()) {
        result = result && (getMostSigBits() == other.getMostSigBits());
      }
      result = result && getUnknownFields().equals(other.getUnknownFields());
      return result;
    }