예제 #1
0
 public Builder mergeFrom(
     org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo other) {
   if (other
       == org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo
           .getDefaultInstance()) return this;
   if (other.hasTraceId()) {
     setTraceId(other.getTraceId());
   }
   if (other.hasParentId()) {
     setParentId(other.getParentId());
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
예제 #2
0
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo)) {
        return super.equals(obj);
      }
      org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo other =
          (org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo) obj;

      boolean result = true;
      result = result && (hasTraceId() == other.hasTraceId());
      if (hasTraceId()) {
        result = result && (getTraceId() == other.getTraceId());
      }
      result = result && (hasParentId() == other.hasParentId());
      if (hasParentId()) {
        result = result && (getParentId() == other.getParentId());
      }
      result = result && getUnknownFields().equals(other.getUnknownFields());
      return result;
    }