@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasComparable()) { hash = (37 * hash) + COMPARABLE_FIELD_NUMBER; hash = (53 * hash) + getComparable().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasComparable()) { hash = (37 * hash) + COMPARABLE_FIELD_NUMBER; hash = (53 * hash) + getComparable().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator) obj; boolean result = true; result = result && (hasComparable() == other.hasComparable()); if (hasComparable()) { result = result && getComparable() .equals(other.getComparable()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link LongComparator} instance * @return An instance of {@link LongComparator} made from <code>bytes</code> * @throws org.apache.hadoop.hbase.exceptions.DeserializationException * @see #toByteArray */ public static LongComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.LongComparator proto; try { proto = ComparatorProtos.LongComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new LongComparator(Bytes.toLong(proto.getComparable().getValue().toByteArray())); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeMessageSize(1, getComparable()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getComparable()); } unknownFields.writeTo(output); }
/** * @param pbBytes A pb serialized {@link LongComparator} instance * @return An instance of {@link LongComparator} made from <code>bytes</code> * @throws org.apache.hadoop.hbase.exceptions.DeserializationException * @see #toByteArray */ public static LongComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.LongComparator proto; try { proto = ComparatorProtos.LongComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new LongComparator(Bytes.toLong(proto.getComparable().getValue().toByteArray())); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator) obj; boolean result = true; result = result && (hasComparable() == other.hasComparable()); if (hasComparable()) { result = result && getComparable() .equals(other.getComparable()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link LongComparator} instance * @return An instance of {@link LongComparator} made from <code>bytes</code> * @throws org.apache.hadoop.hbase.exceptions.DeserializationException * @see #toByteArray */ public static LongComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.LongComparator proto; try { proto = ComparatorProtos.LongComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new LongComparator(Bytes.toLong(proto.getComparable().getValue().toByteArray())); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeMessageSize(1, getComparable()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getComparable()); } unknownFields.writeTo(output); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.LongComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }