public Builder mergeFrom(com.google.bigtable.v2.Cell other) { if (other == com.google.bigtable.v2.Cell.getDefaultInstance()) return this; if (other.getTimestampMicros() != 0L) { setTimestampMicros(other.getTimestampMicros()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.google.bigtable.v2.Cell other) { if (other == com.google.bigtable.v2.Cell.getDefaultInstance()) return this; if (other.getTimestampMicros() != 0L) { setTimestampMicros(other.getTimestampMicros()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } onChanged(); return this; }
public Builder mergeFrom(com.google.bigtable.v2.Cell other) { if (other == com.google.bigtable.v2.Cell.getDefaultInstance()) return this; if (other.getTimestampMicros() != 0L) { setTimestampMicros(other.getTimestampMicros()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static Cell toCell(FlatRow.Cell cell) { return Cell.newBuilder() .setTimestampMicros(cell.getTimestamp()) .addAllLabels(cell.getLabels()) .setValue(cell.getValue()) .build(); }
/** Helper function that builds a {@link Row} in a test table that could be returned by read. */ private static Row makeRow(ByteString key, ByteString value) { // Build the currentRow and return true. Column.Builder newColumn = TEST_COLUMN.toBuilder().addCells(Cell.newBuilder().setValue(value)); return Row.newBuilder() .setKey(key) .addFamilies(TEST_FAMILY.toBuilder().addColumns(newColumn)) .build(); }