public Builder toBuilder() { return newBuilder(this); }
/** * converts a position report to google protocol buffers. * * @param pe * @return */ public BaseMessage convert(PositionEvent pe) { // AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setEntryPrice(pe.getPrice()).setOpenDate("") .setQuantity(pe.getQuantity()) .setTradInstId(pe.getTradInstId()).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.activequant.messages.AQMessages.PositionReport prototype) {
public static Builder newBuilder(com.activequant.messages.AQMessages.PositionReport prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static com.activequant.messages.AQMessages.PositionReport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); }
public static com.activequant.messages.AQMessages.PositionReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.activequant.messages.AQMessages.PositionReport parseDelimitedFrom(
public static com.activequant.messages.AQMessages.PositionReport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.PositionReport parseFrom(java.io.InputStream input)
public BaseMessage buildPositionReport(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public BaseMessage OrderCancelReplaceReq(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public static com.activequant.messages.AQMessages.PositionReport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.activequant.messages.AQMessages.PositionReport parseFrom(
public static com.activequant.messages.AQMessages.PositionReport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.PositionReport parseDelimitedFrom(java.io.InputStream input)
public BaseMessage OrderCancelRejected(String mdiId, String entryDate, Double entryPrice, Double quantity) { AQMessages.PositionReport l = AQMessages.PositionReport.newBuilder() .setTradInstId(mdiId).setOpenDate(entryDate) .setEntryPrice(entryPrice).setQuantity(quantity).build(); return wrap(BaseMessage.CommandType.POSITION_REPORT, AQMessages.PositionReport.cmd, l); }
public static com.activequant.messages.AQMessages.PositionReport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.PositionReport parseFrom(byte[] data)