public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPoolIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, blockId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, generationStamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, numBytes_); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPoolIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blockId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, generationStamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, numBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPoolId()) { hash = (37 * hash) + POOLID_FIELD_NUMBER; hash = (53 * hash) + getPoolId().hashCode(); } if (hasBlockId()) { hash = (37 * hash) + BLOCKID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getBlockId()); } if (hasGenerationStamp()) { hash = (37 * hash) + GENERATIONSTAMP_FIELD_NUMBER; hash = (53 * hash) + hashLong(getGenerationStamp()); } if (hasNumBytes()) { hash = (37 * hash) + NUMBYTES_FIELD_NUMBER; hash = (53 * hash) + hashLong(getNumBytes()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
getUnknownFields().equals(other.getUnknownFields()); return result;
public Builder mergeFrom(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto other) { if (other == org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto.getDefaultInstance()) return this; if (other.hasPoolId()) { bitField0_ |= 0x00000001; poolId_ = other.poolId_; onChanged(); } if (other.hasBlockId()) { setBlockId(other.getBlockId()); } if (other.hasGenerationStamp()) { setGenerationStamp(other.getGenerationStamp()); } if (other.hasNumBytes()) { setNumBytes(other.getNumBytes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }