@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(); } if (hasBitwiseOp()) { hash = (37 * hash) + BITWISE_OP_FIELD_NUMBER; hash = (53 * hash) + bitwiseOp_; } 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(); } if (hasBitwiseOp()) { hash = (37 * hash) + BITWISE_OP_FIELD_NUMBER; hash = (53 * hash) + bitwiseOp_; } 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.BitComparator)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator) obj; boolean result = true; result = result && (hasComparable() == other.hasComparable()); if (hasComparable()) { result = result && getComparable() .equals(other.getComparable()); } result = result && (hasBitwiseOp() == other.hasBitwiseOp()); if (hasBitwiseOp()) { result = result && bitwiseOp_ == other.bitwiseOp_; } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link BitComparator} instance * @return An instance of {@link BitComparator} made from <code>bytes</code> * @throws DeserializationException * @see #toByteArray */ public static BitComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.BitComparator proto; try { proto = ComparatorProtos.BitComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } BitwiseOp bitwiseOp = BitwiseOp.valueOf(proto.getBitwiseOp().name()); return new BitComparator(proto.getComparable().getValue().toByteArray(),bitwiseOp); }
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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeEnumSize(2, bitwiseOp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } if (other.hasBitwiseOp()) { setBitwiseOp(other.getBitwiseOp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getComparable()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, bitwiseOp_); } unknownFields.writeTo(output); }
/** * @param pbBytes A pb serialized {@link BitComparator} instance * @return An instance of {@link BitComparator} made from <code>bytes</code> * @throws DeserializationException * @see #toByteArray */ public static BitComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.BitComparator proto; try { proto = ComparatorProtos.BitComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } BitwiseOp bitwiseOp = BitwiseOp.valueOf(proto.getBitwiseOp().name()); return new BitComparator(proto.getComparable().getValue().toByteArray(),bitwiseOp); }
@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.BitComparator)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator) obj; boolean result = true; result = result && (hasComparable() == other.hasComparable()); if (hasComparable()) { result = result && getComparable() .equals(other.getComparable()); } result = result && (hasBitwiseOp() == other.hasBitwiseOp()); if (hasBitwiseOp()) { result = result && bitwiseOp_ == other.bitwiseOp_; } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link BitComparator} instance * @return An instance of {@link BitComparator} made from <code>bytes</code> * @throws DeserializationException * @see #toByteArray */ public static BitComparator parseFrom(final byte [] pbBytes) throws DeserializationException { ComparatorProtos.BitComparator proto; try { proto = ComparatorProtos.BitComparator.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } BitwiseOp bitwiseOp = BitwiseOp.valueOf(proto.getBitwiseOp().name()); return new BitComparator(proto.getComparable().getValue().toByteArray(),bitwiseOp); }
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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeEnumSize(2, bitwiseOp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } if (other.hasBitwiseOp()) { setBitwiseOp(other.getBitwiseOp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getComparable()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, bitwiseOp_); } unknownFields.writeTo(output); }