@@ -0,0 +1,1294 @@
+package org.yamcs.protobuf;%0A%0Aimport org.yamcs.protobuf.Yamcs.Value;%0Aimport org.yamcs.protobuf.Yamcs.Value.Type;%0A%0Aimport com.google.protobuf.ByteString;%0A%0Apublic class ValueHelper %7B%0A%09%0A%09/**%0A%09 * returns a SINT64 Value%0A%09 * @param l%0A%09 */%0A%09static public Value newValue(long l) %7B%0A%09%09return Value.newBuilder().setType(Type.SINT64).setSint64Value(l).build();%0A%09%7D%0A%09/**%0A%09 * returns a SINT32 Value%0A%09 * @param x%0A%09 * @return%0A%09 */%0A%09static public Value newValue(int x) %7B%0A%09%09return Value.newBuilder().setType(Type.SINT32).setSint32Value(x).build();%0A%09%7D%0A%09%0A%09/**%0A%09 * returns a DOUBLE Value%0A%09 * @param x%0A%09 * @return%0A%09 */%0A%09static public Value newValue(Double x) %7B%0A%09%09return Value.newBuilder().setType(Type.DOUBLE).setDoubleValue(x).build();%0A%09%7D%0A%09%0A%09/**%0A%09 * returns a FLOAT Value%0A%09 * @param x%0A%09 * @return%0A%09 */%0A%09static public Value newValue(Float x) %7B%0A%09%09return Value.newBuilder().setType(Type.FLOAT).setFloatValue(x).build();%0A%09%7D%0A%09%0A%09/**%0A%09 * returns a STRING Value%0A%09 * @param x%0A%09 * @return%0A%09 */%0A%09static public Value newValue(String x) %7B%0A%09%09return Value.newBuilder().setType(Type.STRING).setStringValue(x).build();%0A%09%7D%0A%09%0A%09/**%0A%09 * returns a BINARY Value%0A%09 * @param x%0A%09 * @return%0A%09 */%0A%09static public Value newValue(byte%5B%5D x) %7B%0A%09%09return Value.newBuilder().setType(Type.BINARY).setBinaryValue(ByteString.copyFrom(x)).build();%0A%09%7D%0A%09%0A%09%0A%7D%0A

save some typing