public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getTimestampsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(timestampsMemoizedSerializedSize); } for (int i = 0; i < timestamps_.size(); i++) { output.writeInt64NoTag(timestamps_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(2, canHint_); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < timestamps_.size(); i++) { dataSize += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(timestamps_.get(i)); } size += dataSize; if (!getTimestampsList().isEmpty()) { size += 1; size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timestampsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeBoolSize(2, canHint_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimestampsCount() > 0) { hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getTimestampsList().hashCode(); } if (hasCanHint()) { hash = (37 * hash) + CAN_HINT_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashBoolean( getCanHint()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < timestamps_.size(); i++) { dataSize += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(timestamps_.get(i)); } size += dataSize; if (!getTimestampsList().isEmpty()) { size += 1; size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timestampsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeBoolSize(2, canHint_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTimestampsCount() > 0) { hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getTimestampsList().hashCode(); } if (hasCanHint()) { hash = (37 * hash) + CAN_HINT_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashBoolean( getCanHint()); } 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.FilterProtos.TimestampsFilter)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter other = (org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter) obj; boolean result = true; result = result && getTimestampsList() .equals(other.getTimestampsList()); result = result && (hasCanHint() == other.hasCanHint()); if (hasCanHint()) { result = result && (getCanHint() == other.getCanHint()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link TimestampsFilter} instance * * @return An instance of {@link TimestampsFilter} made from <code>bytes</code> * @see #toByteArray */ public static TimestampsFilter parseFrom(final byte[] pbBytes) throws DeserializationException { FilterProtos.TimestampsFilter proto; try { proto = FilterProtos.TimestampsFilter.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new TimestampsFilter(proto.getTimestampsList(), proto.hasCanHint() && proto.getCanHint()); }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getTimestampsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(timestampsMemoizedSerializedSize); } for (int i = 0; i < timestamps_.size(); i++) { output.writeInt64NoTag(timestamps_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(2, canHint_); } unknownFields.writeTo(output); }
/** * @param pbBytes A pb serialized {@link TimestampsFilter} instance * * @return An instance of {@link TimestampsFilter} made from <code>bytes</code> * @see #toByteArray */ public static TimestampsFilter parseFrom(final byte[] pbBytes) throws DeserializationException { FilterProtos.TimestampsFilter proto; try { proto = FilterProtos.TimestampsFilter.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new TimestampsFilter(proto.getTimestampsList(), proto.hasCanHint() && proto.getCanHint()); }
@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.FilterProtos.TimestampsFilter)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter other = (org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter) obj; boolean result = true; result = result && getTimestampsList() .equals(other.getTimestampsList()); result = result && (hasCanHint() == other.hasCanHint()); if (hasCanHint()) { result = result && (getCanHint() == other.getCanHint()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * @param pbBytes A pb serialized {@link TimestampsFilter} instance * * @return An instance of {@link TimestampsFilter} made from <code>bytes</code> * @see #toByteArray */ public static TimestampsFilter parseFrom(final byte[] pbBytes) throws DeserializationException { FilterProtos.TimestampsFilter proto; try { proto = FilterProtos.TimestampsFilter.parseFrom(pbBytes); } catch (InvalidProtocolBufferException e) { throw new DeserializationException(e); } return new TimestampsFilter(proto.getTimestampsList(), proto.hasCanHint() && proto.getCanHint()); }