@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 org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter buildPartial() { org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter result = new org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { timestamps_ = java.util.Collections.unmodifiableList(timestamps_); bitField0_ = (bitField0_ & ~0x00000001); } result.timestamps_ = timestamps_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.canHint_ = canHint_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter.getDefaultInstance()) return this; if (!other.timestamps_.isEmpty()) { if (timestamps_.isEmpty()) { timestamps_ = other.timestamps_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimestampsIsMutable(); timestamps_.addAll(other.timestamps_); } onChanged(); } if (other.hasCanHint()) { setCanHint(other.getCanHint()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
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 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; }
@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 Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter.getDefaultInstance()) return this; if (!other.timestamps_.isEmpty()) { if (timestamps_.isEmpty()) { timestamps_ = other.timestamps_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimestampsIsMutable(); timestamps_.addAll(other.timestamps_); } onChanged(); } if (other.hasCanHint()) { setCanHint(other.getCanHint()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * @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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
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 org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter buildPartial() { org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter result = new org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { timestamps_ = java.util.Collections.unmodifiableList(timestamps_); bitField0_ = (bitField0_ & ~0x00000001); } result.timestamps_ = timestamps_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.canHint_ = canHint_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter getDefaultInstanceForType() { return org.apache.hadoop.hbase.shaded.protobuf.generated.FilterProtos.TimestampsFilter.getDefaultInstance(); }
/** * @return The filter serialized using pb */ @Override public byte[] toByteArray() { FilterProtos.TimestampsFilter.Builder builder = FilterProtos.TimestampsFilter.newBuilder(); builder.addAllTimestamps(this.timestamps); builder.setCanHint(canHint); return builder.build().toByteArray(); }
/** * @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()); }
/** * @return The filter serialized using pb */ @Override public byte[] toByteArray() { FilterProtos.TimestampsFilter.Builder builder = FilterProtos.TimestampsFilter.newBuilder(); builder.addAllTimestamps(this.timestamps); builder.setCanHint(canHint); return builder.build().toByteArray(); }
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 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); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {