in src/main/java/org/apache/skywalking/banyandb/v1/client/AbstractWrite.java [71:82]
P build() {
if (timestamp <= 0) {
throw new IllegalArgumentException("timestamp is invalid.");
}
BanyandbCommon.Metadata metadata = BanyandbCommon.Metadata.newBuilder()
.setGroup(entityMetadata.getGroup()).setName(entityMetadata.getName()).setModRevision(entityMetadata.getModRevision()).build();
Timestamp ts = Timestamp.newBuilder()
.setSeconds(timestamp / 1000)
.setNanos((int) (timestamp % 1000 * 1_000_000)).build();
return build(metadata, ts);
}